@font-face{font-family:P24Sans;src:url(/assets/DejaVuSans-DRy3OelM.woff2) format("woff2");font-weight:400;font-display:swap}@font-face{font-family:P24Sans;src:url(/assets/DejaVuSans-Bold-CGVeWeyf.woff2) format("woff2");font-weight:700;font-display:swap}@font-face{font-family:P24Chinese;src:url(/assets/NotoSansSC-Regular-B1MckaR1.woff2) format("woff2");font-weight:400;font-display:swap}@font-face{font-family:P24Chinese;src:url(/assets/NotoSansSC-Bold-CPdWiM9g.woff2) format("woff2");font-weight:700;font-display:swap}@font-face{font-family:P24Georgian;src:url(/assets/NotoSansGeorgian-Regular-DW-1FnId.woff2) format("woff2");font-weight:400;font-display:swap}@font-face{font-family:P24Georgian;src:url(/assets/NotoSansGeorgian-Bold-D8FJkkYN.woff2) format("woff2");font-weight:700;font-display:swap}@font-face{font-family:P24Currency;src:url(/assets/NotoSans-Regular-DcUJy4cY.woff2) format("woff2");font-weight:400;font-display:swap}@font-face{font-family:P24Currency;src:url(/assets/NotoSans-Bold-D6bKNSFX.woff2) format("woff2");font-weight:700;font-display:swap}@font-face{font-family:P24Armenian;src:url(/assets/NotoSansArmenian-Regular-Cdt7UxE2.woff2) format("woff2");font-weight:400;font-display:swap}@font-face{font-family:P24Armenian;src:url(/assets/NotoSansArmenian-Bold-D0-Y8nb6.woff2) format("woff2");font-weight:700;font-display:swap}html[lang=hy] body,html[lang=hy] input,html[lang=hy] button,html[lang=hy] select,html[lang=hy] textarea,html[lang=ka] body,html[lang=ka] input,html[lang=ka] button,html[lang=ka] select,html[lang=ka] textarea,html[lang=zh] body,html[lang=zh] input,html[lang=zh] button,html[lang=zh] select,html[lang=zh] textarea{font-family:P24Sans,P24Currency,P24Armenian,P24Georgian,P24Chinese,sans-serif!important}.mebel24-workspace{--bg: #F5F7F8;--surface: #FFFFFF;--sidebar-bg: #FFFFFF;--ctrl-bg: #FFFFFF;--border: #E0E7EE;--border-md: #CCD9E5;--grid: #E7EAF0;--grid-strong: #CFD5DF;--text: #111827;--text-2: #111827;--muted: #6B7280;--accent: #2563EB;--accent-h: #1D4ED8;--accent-bg: #ECF1F4;--green: #16A34A;--green-h: #15803D;--red: #B91C1C;--shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);--shadow-md: 0 4px 16px rgba(0,0,0,.08);--r-sm: 4px;--r-md: 6px;--r-lg: 8px;--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif}.mebel24-workspace,.mebel24-workspace *,.mebel24-workspace *:before,.mebel24-workspace *:after{box-sizing:border-box;margin:0;padding:0}.mebel24-workspace{height:100%;min-height:0;display:flex;flex-direction:column;font-family:var(--font);font-size:13px;color:var(--text);background:var(--bg);overflow:hidden}.mebel24-workspace>div{flex:1;min-height:0;display:flex;flex-direction:column}.mebel24-workspace button{font-family:var(--font);cursor:pointer;border:none;background:none}.mebel24-workspace input,.mebel24-workspace select,.mebel24-workspace textarea{font-family:var(--font)}.mebel24-workspace a{text-decoration:none;color:inherit}.mebel24-workspace svg{display:block}.cutting-app{position:relative;display:flex;flex-direction:column;width:100%;height:100%;min-height:0;overflow:hidden}.cv-body{display:flex;flex:1;flex-direction:row;overflow:hidden}.cv-right{display:flex;flex-direction:column;flex:1;overflow:hidden;min-width:0}.cv-left{display:flex;flex-shrink:0;background:var(--sidebar-bg);border-right:0;overflow:hidden}.cv-tree{width:231px;display:flex;flex-direction:column;overflow:hidden;border-right:0}.cv-tree-head{display:flex;align-items:center;gap:8px;padding:0 14px;height:56px;border-bottom:1px solid var(--border);flex-shrink:0;font-size:16px;font-weight:700;color:var(--text)}.cv-tree-nav{flex-shrink:0;border-bottom:1px solid var(--border)}.cv-nav-btn{display:flex;align-items:center;gap:10px;width:100%;padding:12px 16px;font-size:13px;font-weight:400;color:var(--text);transition:background .1s,color .1s}.cv-nav-btn:hover{background:#0000000a;color:var(--text)}.cv-nav-btn.active{background:transparent;color:var(--text)}.cv-nav-icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--muted)}.cv-tree-scroll{flex:1;overflow-y:auto;overflow-x:hidden;padding:4px 0}.tree-group{padding-bottom:2px}.tree-sheet-row{display:flex;align-items:center;gap:5px;padding:5px 10px 5px 6px;font-size:11px;font-weight:500;color:var(--text);cursor:pointer;user-select:none}.tree-sheet-row:hover{background:#0000000a}.tree-caret{font-size:10px;color:var(--muted);flex-shrink:0;width:10px}.tree-part-row{display:flex;align-items:center;gap:5px;padding:3px 10px 3px 22px;font-size:11px;color:var(--text-2);cursor:pointer;user-select:none;overflow:hidden}.tree-part-row:hover{background:#00000008}.tree-check{width:13px;height:13px;flex-shrink:0;appearance:none;-webkit-appearance:none;border:1.5px solid var(--border-md);border-radius:3px;cursor:pointer;position:relative;background:var(--surface)}.tree-check:checked{background:var(--accent);border-color:var(--accent)}.tree-check:checked:after{content:"";position:absolute;left:1.5px;top:-.5px;width:7px;height:4.5px;border-left:1.5px solid #fff;border-bottom:1.5px solid #fff;transform:rotate(-45deg)}.tree-dot{width:8px;height:8px;border-radius:2px;flex-shrink:0}.tree-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-count{font-size:10px;color:var(--muted);flex-shrink:0}.tree-dim{font-size:9px;color:var(--muted);flex-shrink:0;white-space:nowrap}.tree-part-row.excluded{opacity:.6}.tree-empty{padding:12px 10px;font-size:11px;color:var(--muted)}.cv-tree-bottom{flex-shrink:0;border-top:1px solid var(--border);padding:8px 10px;overflow-y:auto;max-height:270px}.stats-title{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:5px}.stats-group{display:flex;flex-direction:column;gap:0}.stats-divider{height:1px;background:var(--border);margin:5px 0}.stats-row{display:flex;justify-content:space-between;align-items:center;font-size:10.5px;color:var(--text-2);padding:1.5px 0;gap:4px}.stats-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stats-row strong{font-weight:600;color:var(--text);white-space:nowrap;flex-shrink:0}.cv-controls{width:56px;height:calc(100vh - 56px);margin-top:56px;display:flex;flex-direction:column;align-items:center;background:var(--ctrl-bg);overflow-y:auto;overflow-x:hidden;padding:8px 0;gap:8px;flex-shrink:0}.ctrl-grip{width:100%;display:flex;justify-content:center;padding:0;cursor:grab;flex-shrink:0}.ctrl-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;width:40px;height:40px;background:transparent;border-radius:8px;font-size:0;font-weight:400;color:var(--text);transition:background .1s,color .1s;margin:0}.ctrl-btn:hover,.ctrl-btn.active{background:var(--accent-bg);color:var(--text)}.ctrl-icon{line-height:1;display:flex;align-items:center;justify-content:center}.ctrl-sep{width:32px;height:1px;background:var(--border);margin:0;flex-shrink:0}.ctrl-algo-btn{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background:transparent;border-radius:8px;transition:background .1s;margin:0}.ctrl-algo-btn:not(:disabled):hover{background:var(--accent-bg)}.ctrl-algo-btn.active{background:var(--accent-bg)}.ctrl-algo-btn:disabled{opacity:1;cursor:default}.ctrl-rotate-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;width:40px;height:40px;background:transparent;border-radius:8px;font-size:0;font-weight:400;color:var(--text);transition:background .1s,color .1s;margin:0}.ctrl-rotate-btn:hover,.ctrl-rotate-btn.active{background:var(--accent-bg);color:var(--text)}.ctrl-section-lbl{display:none}.ctrl-check-row{display:flex;align-items:flex-start;gap:0;width:40px;height:40px;padding:0;justify-content:center;font-size:0;color:var(--text);cursor:pointer}.ctrl-check-row:hover{color:var(--text)}.ctrl-check{width:14px;height:14px;flex-shrink:0;margin:0;accent-color:var(--accent);cursor:pointer}.ctrl-label,.ctrl-check-row>span{display:none}.ctrl-btn svg,.ctrl-algo-btn svg,.ctrl-rotate-btn svg{width:26px;height:26px}.cv-controls{width:90px;height:calc(100vh - 56px);margin-top:64px;padding:8px 0 0;gap:8px;background:#f5f7f8;border:1px solid #E0E7EE;color:#000;font-family:IBM Plex Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.ctrl-grip{width:24px;height:12px;align-items:center;padding:0}.ctrl-grip-icon{width:12px;height:24px;transform:rotate(90deg)}.ctrl-btn{width:65px;height:60px;min-height:60px;padding:8px;gap:4px;background:transparent;border-radius:8px;color:#000;font-family:inherit;font-size:12px;line-height:normal}.ctrl-btn--list,.ctrl-btn--scraps,.ctrl-btn.active{background:#e0e7ee}.ctrl-btn:hover{background:#e0e7ee;color:#000}.ctrl-btn--delete{background:transparent}.ctrl-btn--delete:hover{background:#e0e7ee}.ctrl-icon{width:24px;height:24px;flex-shrink:0}.ctrl-icon img,.ctrl-algo-btn img,.ctrl-rotate-btn img{display:block}.ctrl-primary-icon{transform:rotate(-90deg) scaleY(-1)}.ctrl-label,.ctrl-rotate-btn .ctrl-label{display:block;font-family:inherit;font-size:12px;line-height:normal;white-space:nowrap}.ctrl-rotate-btn .ctrl-label{font-size:13px}.ctrl-sep{width:89px;height:1px;background:#b8c5d1}.ctrl-section-lbl{display:block;width:auto;height:32px;padding:0;color:#000;font-family:inherit;font-size:12px;font-weight:400;line-height:normal;text-align:center}.ctrl-algo-btn{width:40px;height:40px;padding:8px;background:transparent;border-radius:8px}.ctrl-algo-btn.active{background:#e0e7ee}.ctrl-algo-btn:not(:disabled):hover{background:#e0e7ee}.ctrl-direction{width:92px;height:132px;display:flex;flex-direction:column;align-items:center;gap:10px;padding:8px;border-radius:8px;flex-shrink:0}.ctrl-direction .ctrl-section-lbl{width:76px}.ctrl-algo-icon-btn{display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;background:transparent;border-radius:8px;flex:0 0 24px}.ctrl-algo-icon-btn--optimal{width:40px;height:40px;padding:8px;flex-basis:40px}.ctrl-composite-icon{position:relative;display:block;width:24px;height:24px}.ctrl-composite-icon>img:first-child{position:absolute;inset:0;width:24px;height:24px}.ctrl-composite-overlay{position:absolute;left:5.03px;top:4.51px;width:14px;height:15px}.ctrl-composite-icon--width .ctrl-composite-overlay{left:4.53px;top:5.01px;width:15px;height:14px;transform:rotate(90deg) scaleY(-1)}.ctrl-rotate-btn{width:fit-content;height:61px;min-height:61px;padding:8px;gap:4px;background:transparent;border-radius:8px;color:#000;font-family:inherit;font-size:13px;line-height:normal}.ctrl-rotate-btn:hover,.ctrl-rotate-btn.active{background:#e0e7ee;color:#000}.ctrl-colors{width:78px;height:166px;display:flex;flex-direction:column;align-items:center;gap:10px;padding:8px;border-radius:8px;flex-shrink:0}.ctrl-colors .ctrl-section-lbl{width:62px}.ctrl-color-icon-btn{display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;background:transparent;border-radius:8px;flex:0 0 24px}.ctrl-color-icon-btn.active{background:#e0e7ee}.ctrl-color-icon{width:20px;height:20px}.ctrl-colors .ctrl-algo-btn{flex:0 0 40px}.ctrl-check-row{position:relative;display:flex;align-items:flex-start;justify-content:flex-start;gap:10px;width:76px;height:24px;padding:0;color:#000;font-family:inherit;font-size:12px;line-height:12px}.ctrl-check-row--first{height:36px;padding-bottom:12px}.ctrl-check-row>span{display:block}.ctrl-check{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.ctrl-check-icon,.ctrl-check-placeholder{display:block;width:14px;height:14px;flex:0 0 14px}.ctrl-check-placeholder{border:1px solid #B8C5D1;border-radius:2px;background:#fff}.cv-controls.cv-controls--pro .ctrl-btn{width:40px;height:40px;min-height:40px;padding:8px}.cv-controls.cv-controls--pro .ctrl-btn .ctrl-label,.cv-controls.cv-controls--pro .ctrl-section-lbl{display:none}.cv-controls.cv-controls--pro .ctrl-direction,.cv-controls.cv-controls--pro .ctrl-colors{width:auto;height:auto;padding:0;gap:4px}.cv-controls.cv-controls--pro .ctrl-algo-icon-btn:not(.ctrl-algo-icon-btn--optimal){width:40px;height:40px;padding:8px;flex-basis:40px}.cv-main{flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0;background:var(--surface)}.cv-topbar{display:flex;align-items:center;height:56px;padding:0 8px;gap:8px;background:var(--surface);border-bottom:1px solid var(--border);flex-shrink:0;overflow:hidden}.tb-vline{width:1px;height:56px;background:var(--border);margin:0;flex-shrink:0}.tb-sidebar-btn{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:var(--ctrl-bg);color:var(--text-2);flex-shrink:0;transition:background .1s,color .1s}.tb-sidebar-btn:hover{background:var(--border-md);color:var(--text)}.tb-sidebar-btn.on{background:#2461e81a;color:var(--accent)}.tb-icon-btn{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;color:var(--text-2);transition:background .1s,color .1s;flex-shrink:0}.tb-icon-btn:hover{background:var(--ctrl-bg);color:var(--text)}.tb-icon-btn:disabled{opacity:.35;cursor:default}.tb-action-btn{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:0 10px;height:56px;border-radius:8px;color:var(--text-2);font-size:12px;font-weight:500;white-space:nowrap;transition:background .1s,color .1s;flex-shrink:0}.tb-action-btn:hover{background:var(--ctrl-bg);color:var(--text)}.tb-chevron{font-size:9px}.cv-tabs{display:flex;align-items:center;gap:2px;flex-shrink:0}.tb-tab-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:0 12px;height:56px;border-radius:8px;background:#ccd9e5;color:var(--text-2);white-space:nowrap;transition:background .1s,color .1s;flex-shrink:0}.tb-tab-btn:hover{background:#bdd0de;color:var(--text)}.tb-tab-btn.active{background:var(--accent-bg);color:var(--accent)}.tb-tab-lbl{font-size:12px;font-weight:400}.cv-spacer{flex:1}.mode-toggle{display:flex;align-items:center;gap:6px;flex-shrink:0}.mode-label{font-size:12px;font-weight:400;color:var(--muted);white-space:nowrap}.mode-label.active{color:var(--text)}.toggle-switch{position:relative;width:38px;height:20px}.toggle-switch input{opacity:0;width:0;height:0}.toggle-track{position:absolute;inset:0;background:var(--border-md);border-radius:10px;cursor:pointer;transition:background .2s}.toggle-switch input:checked+.toggle-track{background:var(--accent)}.toggle-track:after{content:"";position:absolute;left:2px;top:2px;width:16px;height:16px;background:#fff;border-radius:50%;transition:transform .2s}.ps-strip{display:flex;flex-direction:row;align-items:stretch;height:105px;flex-shrink:0;background:#f5f7f8;border-bottom:1px solid #E0E7EE;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.ps-strip::-webkit-scrollbar{display:none}.ps-label-col{display:flex;flex-direction:row;align-items:center;gap:6px;padding:0 8px 0 12px;flex-shrink:0}.ps-label-text{font-size:10px;font-weight:700;color:var(--text-2);letter-spacing:.06em;white-space:nowrap}.ps-vline{width:1px;align-self:stretch;background:#ccd9e5;flex-shrink:0}.ps-sec{display:flex;flex-direction:column;padding:11px 8px 0 10px;flex-shrink:0}.ps-sec--corner{padding-bottom:10px}.ps-sec-title{font-size:9px;font-weight:700;color:#8ea2b5;text-transform:uppercase;letter-spacing:.07em;white-space:nowrap;line-height:1;margin-bottom:9px}.ps-chips{display:flex;gap:4px;align-items:stretch;height:61px}.ps-chip{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;padding:8px;border-radius:8px;height:61px;min-width:52px;cursor:pointer;transition:background .12s,color .12s;color:#8ea2b5;flex-shrink:0}.ps-chip:hover{background:#2461e80f;color:var(--text-2)}.ps-chip.sel{background:#2461e81c;color:var(--accent)}.ps-chip-lbl{font-size:9px;font-weight:600;white-space:nowrap;text-align:center;line-height:16px;margin-top:auto}.ps-cfg{display:flex;flex-direction:column;justify-content:flex-start;gap:5px;padding:10px 12px 0;flex-shrink:0}.ps-cfg-row{display:flex;align-items:center;gap:7px;height:32px}.ps-cfg-row--tall{align-items:center;height:40px}.ps-cfg-lbl{font-size:10.5px;color:var(--muted);white-space:normal;width:77px;flex-shrink:0;line-height:1.35}.ps-cfg-sep{width:12px;flex-shrink:0}.ps-sel{height:30px;padding:0 24px 0 8px;border:1.5px solid #DCE4EE;border-radius:6px;background:#fff;font:inherit;font-size:11.5px;color:var(--text);outline:none;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2396A8B8'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 7px center;cursor:pointer;flex-shrink:0;transition:border-color .1s}.ps-sel:focus{border-color:var(--accent)}.ps-sel--sm{width:78px}.ps-sel--md{width:108px}.ps-sel--lg{width:152px}.strip-sep{width:1px;height:18px;background:var(--border);flex-shrink:0}.strip-input{width:46px;padding:3px 6px;border:1px solid var(--border-md);border-radius:var(--r-sm);font:inherit;font-size:12px;color:var(--text);background:var(--surface);outline:none;text-align:center}.strip-input:focus{border-color:var(--accent)}.ms-strip{height:50px;background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;flex-shrink:0;overflow:hidden}.ms-lbl-col{display:flex;flex-direction:row;align-items:center;gap:10px;padding:0 12px 0 16px;flex-shrink:0}.ms-lbl-text{font-size:10px;font-weight:700;color:var(--text-2);letter-spacing:.06em;white-space:nowrap}.ms-vline{width:1px;height:30px;background:var(--border);flex-shrink:0}.ms-mat-sec{display:flex;align-items:center;gap:10px;padding:0 12px;flex-grow:1;min-width:0}.ms-mat-lbl{font-size:11px;font-weight:500;color:var(--muted);white-space:nowrap;flex-shrink:0}.ms-size-badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:6px;background:var(--ctrl-bg);font-size:11px;font-weight:600;color:var(--text);white-space:nowrap;flex-shrink:0}.ms-mat-sel{flex:1;min-width:0;height:30px;padding:4px 28px 4px 10px;border:1px solid var(--border-md);border-radius:8px;font:inherit;font-size:12px;color:var(--text);background:var(--surface);outline:none;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2396A8B8'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ms-mat-sel:focus{border-color:var(--accent)}.ms-filter-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:6px;color:var(--muted);flex-shrink:0;cursor:pointer;transition:color .12s,background .12s}.ms-filter-btn:hover{color:var(--text-2);background:var(--ctrl-bg)}.ms-edge-row{display:flex;align-items:center;gap:8px;padding:0 12px;flex-shrink:0}.ms-edge-type-lbl{flex-shrink:0;font-size:9px;font-weight:600;color:var(--muted);white-space:nowrap}.ms-edge-sel-wrap{display:flex;align-items:center;height:30px;border:1px solid var(--border-md);border-radius:8px;background:var(--surface);flex:1;min-width:0;overflow:hidden;padding-left:8px;gap:4px}.ms-thick-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;padding:3px 5px;border-radius:4px;background:var(--ctrl-bg);font-size:10px;font-weight:700;color:var(--text);white-space:nowrap;flex-shrink:0}.ms-edge-sel{flex:1;min-width:0;height:100%;border:none;background:transparent;font:inherit;font-size:11px;color:var(--text);outline:none;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2396A8B8'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 6px center;padding-right:22px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cv-action-bar{display:flex;align-items:center;gap:20px;height:56px;padding:8px 16px;background:var(--surface);border-bottom:0;flex-shrink:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.cv-action-bar::-webkit-scrollbar{display:none}.btn-add{display:inline-flex;align-items:center;justify-content:center;width:155px;height:36px;padding:0 16px;background:#adea00;color:#000;border-radius:8px;font-size:15px;font-weight:500;line-height:normal;white-space:nowrap;flex-shrink:0}.btn-add:hover{background:#9ed600}.btn-action{display:inline-flex;align-items:center;justify-content:space-between;gap:10px;width:145px;height:36px;padding:8px 12px;border:0;border-radius:8px;font-size:13px;font-weight:400;line-height:normal;color:#000;background:#e0e7ee;white-space:nowrap;flex-shrink:0}.btn-action:hover{background:#d4dde6}.btn-action--active{background:#d6e9f8}.btn-action--active:hover{background:#c2e0f8}.action-comment-icon{width:24px;height:16px;padding-left:8px;display:inline-flex;align-items:center;justify-content:flex-end;border-left:1px solid #CCD9E5;flex:0 0 24px}.action-comment-icon img{width:15px;height:15px}.btn-reset{display:inline-flex;align-items:center;gap:5px;padding:5px 12px;border:1px solid var(--accent);border-radius:var(--r-md);font-size:12px;font-weight:500;color:var(--accent);background:var(--accent-bg);white-space:nowrap;transition:all .1s;flex-shrink:0}.btn-reset:hover{background:var(--accent);color:#fff}.qty-group{display:flex;align-items:center;gap:10px;width:194px;height:40px;padding:8px 10px;border-radius:8px;background:#e0e7ee;font-size:13px;color:#000;flex-shrink:0}.qty-label{width:79px;flex:0 0 79px;font-size:13px;font-weight:400;line-height:normal;white-space:nowrap}.qty-counter{width:85px;height:24px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:4px;background:#fff}.qty-btn{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;flex:0 0 18px}.qty-btn img{width:18px;height:18px}.qty-val{min-width:8px;text-align:center;font-size:13px;font-weight:500;line-height:normal;color:#000}.pack-group{display:flex;align-items:center;gap:12px;width:232px;height:36px;padding:4px 12px;border-radius:8px;background:#e0e7ee;flex-shrink:0}.pack-content{width:178px;height:32px;display:flex;align-items:center;gap:8px;flex:0 0 178px}.pack-label{width:61px;flex:0 0 61px;font-size:13px;font-weight:400;line-height:17px;color:#000;white-space:nowrap}.pack-select-wrap{position:relative;width:109px;height:32px;display:inline-flex;align-items:center;border-radius:8px;background:#fff;overflow:hidden}.pack-select{width:100%;height:100%;padding:7px 28px 8px 8px;border:0;border-radius:8px;font:inherit;font-size:13px;font-weight:400;line-height:17px;color:#000;background:transparent;outline:none;appearance:none;-webkit-appearance:none;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.pack-trigger{text-align:left}.pack-menu--portal.pack-menu--portal{position:fixed;width:max-content;max-width:220px;z-index:2001}.pack-arrow{position:absolute;right:8px;top:10px;width:12px;height:12px;pointer-events:none}.pack-settings{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 18px}.pack-settings img{width:18px;height:18px}.cv-content{flex:1;display:flex;overflow:hidden;background:var(--bg)}.cv-sheets-area{flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0;background-color:#fff;background-image:linear-gradient(to right,var(--grid-strong) 1px,transparent 1px),linear-gradient(to bottom,var(--grid-strong) 1px,transparent 1px),linear-gradient(to right,var(--grid) 1px,transparent 1px),linear-gradient(to bottom,var(--grid) 1px,transparent 1px);background-size:100px 100px,100px 100px,10px 10px,10px 10px}.cv-sheets-area--no-grid{background-image:none}.cv-section-head{display:flex;align-items:center;gap:6px;padding:8px 14px;font-size:12px;font-weight:600;color:var(--text);flex-shrink:0}.cv-section-count{font-size:11px;font-weight:400;color:var(--muted)}.cv-sheets-grid{flex:1;overflow:auto;padding:0 10px 10px;display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px}.sheet-card{width:560px;flex:0 0 560px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow-sm)}.sheet-card-head{display:flex;align-items:center;justify-content:space-between;padding:6px 10px;border-bottom:1px solid var(--border);background:var(--sidebar-bg);flex-shrink:0}.sheet-card-title{font-size:11px;font-weight:600;color:var(--text)}.sheet-card-sub{font-size:10px;color:var(--muted);margin-left:4px}.sheet-card-body{flex:0 0 auto;overflow:visible;display:flex;align-items:center;justify-content:center;padding:8px;min-height:140px}.sheet-card-footer{display:flex;align-items:center;justify-content:flex-start;gap:4px;padding:4px 8px;border-top:1px solid var(--border);background:var(--sidebar-bg);flex-shrink:0}.zoom-btn{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border-md);border-radius:3px;background:var(--surface);font-size:13px;font-weight:600;color:var(--text-2);transition:all .1s}.zoom-btn:hover{background:var(--bg);color:var(--text)}.zoom-pct{font-size:11px;color:var(--text-2);min-width:34px;text-align:center}.cv-unplaced{width:330px;height:771px;max-height:calc(100% - 9px);margin:9px 14px 0 0;flex:0 0 330px;align-self:flex-start;display:flex;flex-direction:column;overflow:hidden;border:0;border-right:1px solid #E0E7EE;border-radius:8px;background:#f5f7f8}.cv-unplaced>.cv-section-head{height:43px;padding:10px 0 16px;justify-content:center;gap:4px;color:#000;font-size:13px;font-weight:400;line-height:17px}.cv-unplaced>.cv-section-head .cv-section-count{color:#8ea2b5;font-size:13px;font-weight:400;line-height:17px}.cv-unplaced-scroll{flex:1;width:100%;overflow-y:auto;padding:0 15px 12px 12px;display:flex;flex-direction:column;gap:10px;scrollbar-width:thin}.unplaced-group{width:303px;padding:10px 12px;display:flex;flex-direction:column;gap:16px;border:0;border-radius:8px;background:#fff;flex-shrink:0;transition:opacity .12s,outline-color .12s;outline:2px dashed transparent;outline-offset:2px}.unplaced-group.is-dragging{opacity:.4}.unplaced-group.is-drag-over{outline-color:#008cea}.unplaced-row{width:279px;height:16px;min-height:16px;display:flex;align-items:center;gap:8px;padding:0;user-select:none}.unplaced-row-btn{flex:1;min-width:0;height:100%;display:flex;align-items:center;gap:8px;padding:0;border:0;background:transparent;cursor:pointer;text-align:left}.unplaced-grip{width:4px;height:18px;flex:0 0 4px;cursor:grab}.unplaced-grip:active{cursor:grabbing}.unplaced-group.is-open .unplaced-row{height:18px;min-height:18px}.unplaced-summary{flex:1;min-width:0;font-size:13px;font-weight:400;line-height:17px;color:#000;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.unplaced-total{color:#8ea2b5}.unplaced-caret{width:12px;height:12px;flex:0 0 12px;transition:transform .12s ease}.unplaced-caret.is-open{transform:rotate(180deg)}.unplaced-preview{position:relative;width:277px;min-height:23px;padding-left:12px;display:flex;align-items:flex-end;justify-content:space-between;background:transparent}.unplaced-part-shape{position:relative;min-width:23px;min-height:23px;border:1px solid #93ACB4;flex-shrink:0}.unplaced-size-x,.unplaced-size-y{position:absolute;color:#6f808f;font-size:9px;font-weight:500;line-height:normal}.unplaced-size-x{top:9px;left:50%;transform:translate(-50%)}.unplaced-size-y{left:5px;top:50%;transform:translate(-50%,-50%) rotate(-90deg)}.unplaced-rotate{position:absolute;right:9px;bottom:8px;width:9px;height:9px;display:inline-flex;align-items:center;justify-content:center}.unplaced-rotate img{width:9px;height:9px}.unplaced-rotate:disabled{cursor:default;opacity:1}.unplaced-delete{width:12px;height:12px;margin-left:auto;display:inline-flex;align-items:center;justify-content:center;flex:0 0 12px}.unplaced-delete img{width:12px;height:12px}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:40px 20px;color:var(--muted);text-align:center}.empty-icon{font-size:36px;opacity:.4}.empty-text{font-size:12px;line-height:1.5}.doc-overlay{position:fixed;inset:0;background:#00000052;display:flex;align-items:stretch;justify-content:flex-end;z-index:100}.doc-panel{width:820px;max-width:92vw;background:var(--surface);display:flex;flex-direction:column;box-shadow:-4px 0 32px #0000001f}.doc-panel-head{display:flex;align-items:center;gap:10px;padding:0 18px;height:52px;border-bottom:1px solid var(--border);flex-shrink:0}.doc-panel-title{font-size:15px;font-weight:600;color:var(--text);flex:1}.doc-close-btn{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--r-sm);font-size:18px;color:var(--muted);transition:all .1s}.doc-close-btn:hover{background:var(--bg);color:var(--text)}.doc-panel-body{flex:1;overflow-y:auto;padding:0}.parts-table{width:100%;border-collapse:collapse;font-size:12px}.parts-table th{position:sticky;top:0;background:var(--sidebar-bg);border-bottom:1px solid var(--border);padding:8px 10px;text-align:left;font-size:11px;font-weight:600;color:var(--muted);white-space:nowrap;z-index:1}.parts-table td{padding:5px 10px;border-bottom:1px solid var(--border);vertical-align:middle;color:var(--text)}.parts-table tr:hover td{background:var(--bg)}.tbl-input{width:100%;padding:4px 6px;border:1px solid transparent;border-radius:var(--r-sm);font:inherit;font-size:12px;color:var(--text);background:transparent;outline:none;text-align:center}.tbl-input:focus{border-color:var(--accent);background:var(--surface)}.tbl-name-input{width:100%;padding:4px 6px;border:1px solid transparent;border-radius:var(--r-sm);font:inherit;font-size:12px;color:var(--text);background:transparent;outline:none}.tbl-name-input:focus{border-color:var(--accent);background:var(--surface)}.tbl-check{width:13px;height:13px;accent-color:var(--accent);cursor:pointer}.edge-chip{display:inline-flex;align-items:center;gap:2px;padding:2px 5px;background:var(--bg);border:1px solid var(--border);border-radius:3px;font-size:10px;font-weight:500;color:var(--text-2)}.edge-chip.on{background:var(--accent-bg);border-color:var(--accent);color:var(--accent)}.tbl-del-btn{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--r-sm);font-size:14px;color:var(--muted);transition:all .1s}.tbl-del-btn:hover{color:var(--red);background:#e0392c14}.tbl-add-row td{padding:6px 10px;background:var(--sidebar-bg)}.btn-add-row{display:inline-flex;align-items:center;gap:5px;padding:5px 12px;border:1.5px dashed var(--border-md);border-radius:var(--r-md);font-size:12px;font-weight:500;color:var(--text-2);background:transparent;transition:all .15s}.btn-add-row:hover{border-color:var(--green);color:var(--green);background:#5cbb000f}.doc-panel-foot{display:flex;align-items:center;gap:8px;padding:10px 18px;border-top:1px solid var(--border);flex-shrink:0;background:var(--sidebar-bg)}.btn-primary{display:inline-flex;align-items:center;gap:5px;padding:7px 18px;background:var(--accent);color:#fff;border-radius:var(--r-md);font-size:13px;font-weight:600;white-space:nowrap;transition:background .1s}.btn-primary:hover{background:var(--accent-h)}.btn-ghost{display:inline-flex;align-items:center;gap:5px;padding:7px 14px;border:1px solid var(--border-md);border-radius:var(--r-md);font-size:13px;font-weight:500;color:var(--text-2);background:var(--surface);transition:all .1s}.btn-ghost:hover{background:var(--bg);color:var(--text)}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border-md);border-radius:4px}.dp-overlay{position:absolute;inset:0;z-index:2000;display:flex;align-items:stretch;justify-content:flex-end;background:#30415185;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .24s ease,visibility 0s linear .3s;font-family:IBM Plex Sans,Arial,sans-serif}.dp-overlay.open{opacity:1;visibility:visible;pointer-events:auto;transition-delay:0s}.dp-panel{position:relative;display:flex;flex-direction:column;gap:0;width:90.5%;flex:0 0 90.5%;min-width:1120px;max-width:1500px;height:100%;padding:20px 16px 10px;box-sizing:border-box;background:#e0e7ee;transform:translate3d(100%,0,0);transition:transform .3s cubic-bezier(.22,1,.36,1)}.dp-panel--edges-4{max-width:1710px}.dp-overlay.open .dp-panel{transform:translateZ(0)}.dp-close-tab{position:absolute;right:100%;top:20px;display:flex;align-items:center;gap:6px;padding:8px 14px;border:0;border-radius:14px 0 0 14px;background:#f5f7f8;color:#111827;font:inherit;font-size:13px;font-weight:500;white-space:nowrap;cursor:pointer;transition:background-color .12s ease}.dp-close-tab:hover{background:#e0e7ee}.dp-close-tab span:first-child{font-size:16px;font-weight:300;line-height:1;color:#687386}.dp-header{display:flex;align-items:center;gap:16px;height:36px;min-height:36px;padding:0;flex-shrink:0}.dp-title{font-size:22px;font-weight:600;line-height:29px;color:#111827;white-space:nowrap}.dp-subtitle{margin-left:0;font-size:16px;line-height:21px;color:#687386;white-space:nowrap}.dp-content{display:flex;flex:1;min-height:0;flex-direction:column;padding-top:16px;box-sizing:border-box}.dp-tabs{display:flex;align-items:flex-end;height:36px;min-height:36px;flex:0 0 36px}.dp-tab{height:36px;padding:0;border:0;border-radius:8px 8px 0 0;background:transparent;color:#8ea2b5;font:inherit;font-size:13px;font-weight:500;cursor:pointer}.dp-tab:nth-child(1){width:97px}.dp-tab:nth-child(2){width:101px}.dp-tab:nth-child(3){width:95px}.dp-tab.active{background:#fff;color:#111827}.dp-tab:not(.active):hover{color:#687386}.dp-workspace{display:flex;flex:1;min-height:0;flex-direction:column;overflow:hidden;border-radius:0 8px 8px;background:#fff;box-shadow:none}.dp-workspace--empty{background:#fff}.dp-mat-strip{display:flex;flex-direction:column;gap:10px;padding:20px 16px;background:#fff;border-bottom:0;flex-shrink:0;overflow-x:auto;scrollbar-width:none}.dp-mat-strip::-webkit-scrollbar{display:none}.dp-mat-row{display:grid;grid-template-columns:541px 269px 263px;align-items:center;gap:10px;width:1093px;min-width:1093px;height:43px}.dp-mat-row--edges-4{grid-template-columns:541px repeat(4,265px);width:1641px;min-width:1641px}.dp-mat-control{display:flex;align-items:center;gap:10px;height:43px;padding:4px 10px;box-sizing:border-box;border-radius:8px;background:#e0e7ee;flex:0 0 auto}.dp-mat-control--material,.dp-mat-control--edge{width:auto}.dp-mat-badge{flex:0 0 auto;font-size:13px;font-weight:400;color:#111827;white-space:nowrap}.dp-mat-dim-chip{min-height:24px;padding:3px 7px;border-radius:6px;background:#e0e7ee;color:#8ea2b5;font-size:13px;font-weight:600;line-height:18px;white-space:nowrap}.dp-mat-select-field{position:relative;display:flex;align-items:center;gap:8px;height:35px;min-width:0;flex:1 1 auto;padding-left:10px;box-sizing:border-box;overflow:hidden;border:1px solid #E0E7EE;border-radius:8px;background:#fff}.dp-mat-select{height:33px;min-width:0;flex:1 1 auto;appearance:none;-webkit-appearance:none;border:0;border-radius:0;outline:0;background:transparent;color:#111827;font:inherit;font-size:13px;padding:0 28px 0 0}.dp-mat-arrow{position:absolute;top:50%;right:10px;width:12px;height:12px;transform:translateY(-50%);pointer-events:none}.dp-mat-filter{width:24px;height:35px;flex:0 0 24px;padding:0;border:0;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;background:transparent;cursor:pointer}.dp-mat-filter img{width:16px;height:13px}.dp-mat-filter:hover{background:#ffffffa6}.dp-mat-vsep{width:1px;height:28px;background:#ccd9e5;margin:0 2px}.dp-edge-badge{display:flex;align-items:center;gap:12px;flex:1 1 auto;min-width:0}.dp-edge-badge-type{position:relative;display:flex;flex:0 0 48px;width:48px;min-height:30px;flex-direction:column;align-items:center;justify-content:center;padding-bottom:4px;box-sizing:border-box;color:#111827;font-size:13px;font-weight:400;line-height:13px;white-space:nowrap}.dp-edge-badge-type:after{position:absolute;right:0;bottom:0;left:0;height:2px;content:"";background:#8ea2b5}.dp-edge-badge-type--1:after{background:repeating-linear-gradient(90deg,#8EA2B5 0 13.16px,transparent 13.16px 16.92px)}.dp-edge-badge-type--3:after{background:linear-gradient(90deg,#8EA2B5 0 19.881px,transparent 19.881px 22.32px,#8EA2B5 22.32px 24.67px,transparent 24.67px 27.12px,#8EA2B5 27.12px 47px,transparent 47px 48px)}.dp-edge-badge-type--4:after{height:4px;background:repeating-linear-gradient(90deg,#8EA2B5 0 4px,transparent 4px 14.3px)}.dp-edge-badge-val{flex:0 0 auto;padding:3px 7px;border-radius:6px;background:#e0e7ee;color:#8ea2b5;font-size:13px;font-weight:600;white-space:nowrap}.dp-action-bar{display:flex;align-items:center;gap:20px;height:56px;min-height:56px;padding:0 16px 20px;box-sizing:border-box;border-bottom:1px solid #CCD9E5;background:#fff;flex-shrink:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.dp-action-bar::-webkit-scrollbar{display:none}.dp-btn-add{width:155px;height:36px;flex:0 0 155px;padding:0 16px;border:0;border-radius:8px;background:#adea00;color:#000;font:inherit;font-size:15px;font-weight:500;line-height:normal;cursor:pointer;white-space:nowrap;transition:background-color .12s ease}.dp-btn-add:hover{background:#9ed600}.dp-btn-ghost{display:inline-flex;align-items:center;justify-content:space-between;gap:10px;width:145px;height:36px;flex:0 0 145px;padding:0 12px;border:1px solid #E0E7EE;border-radius:8px;background:#f5f7f8;color:#111827;font:inherit;font-size:13px;font-weight:500;cursor:pointer;white-space:nowrap;transition:background-color .12s ease}.dp-btn-ghost img{width:15px;height:15px}.dp-btn-ghost:hover{background:#e0e7ee}.dp-cfg-lbl{font-size:13px;font-weight:500;color:#111827;white-space:nowrap}.dp-action-divider{width:1px;height:16px;flex:0 0 1px;background:#ccd9e5}.dp-select-arrow{width:12px;height:12px;flex:0 0 12px;pointer-events:none}.dp-sel-sm{width:auto;min-width:0;height:34px;flex:1 1 auto;appearance:none;-webkit-appearance:none;border:0;border-radius:0;outline:0;background:transparent;color:#111827;font:inherit;font-size:13px;padding:0}.dp-pack-trigger{text-align:left;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dp-pack-menu{min-width:100%;width:max-content;max-width:220px}.dp-pack-menu--portal.dp-pack-menu--portal{position:fixed;width:max-content;max-width:220px;z-index:2001}.dp-qty-group{display:flex;align-items:center;justify-content:space-between;gap:10px;width:85px;height:36px;flex:0 0 85px;margin:0;padding:0 12px;border:0;border-radius:8px;background:#fff}.dp-qty-val{width:20px;text-align:center;font-size:13px;font-weight:600}.dp-pack-group{position:relative;display:flex;align-items:center;gap:6px;width:170px;height:36px;flex:0 0 170px;padding:0 12px;border:1px solid #E0E7EE;border-radius:8px;background:#f5f7f8}.dp-package-icon{width:18px;height:18px}.dp-sets-group{display:flex;align-items:center;gap:10px;height:36px;flex:0 0 auto}.dp-qty-btn{width:18px;height:18px;padding:0;border:0;display:inline-flex;align-items:center;justify-content:center;background:transparent;cursor:pointer;border-radius:50%;flex-shrink:0}.dp-qty-btn img{width:18px;height:18px}.dp-qty-btn:hover{background:#fff}.dp-body{flex:1;overflow:auto;min-height:0;background:#fff;scrollbar-gutter:auto}.dp-table{border-collapse:collapse;table-layout:fixed;color:#111827;font-size:13px}.dp-table--edges-4{width:1657px;min-width:1657px}.dp-table--edges-2{width:1435px;min-width:1435px}.dp-col-select{width:82px}.dp-col-id{width:35px}.dp-col-position{width:141px}.dp-col-length{width:90px}.dp-col-times{width:19px}.dp-col-width{width:93px}.dp-col-quantity{width:135px}.dp-col-edge-type{width:74px}.dp-col-edge-length{width:63px}.dp-col-edge-width{width:83px}.dp-col-edge-width--second{width:85px}.dp-col-groove-length{width:57px}.dp-col-groove-width{width:86px}.dp-col-rotation{width:130px}.dp-col-texture,.dp-col-cut-length{width:88px}.dp-col-times--cut{width:17px}.dp-col-cut-width,.dp-col-delete{width:77px}.dp-table th{position:sticky;top:0;z-index:2;height:53px;padding:6px 4px;box-sizing:border-box;border-bottom:1px solid #CCD9E5;background:#fff;color:#8ea2b5;font-size:13px;font-weight:500;text-align:center;white-space:nowrap;line-height:1.2}.dp-th-sub{font-size:11px;font-weight:400;color:#8ea2b5}.dp-th-times{padding:0!important}.dp-th-select{padding:0 16px!important}.dp-head-tools{display:flex;align-items:center;justify-content:space-between;gap:10px}.dp-head-settings{display:inline-flex;width:18px;height:18px;align-items:center;justify-content:center;padding:0;border:0;background:transparent;cursor:pointer}.dp-head-settings img{width:14px;height:14px;opacity:.72}.dp-table td{height:63px;padding:4px 5px;box-sizing:border-box;border-bottom:1px solid #CCD9E5;background:#fff;text-align:center;vertical-align:middle}.dp-row:hover td{background:#f8fafc}.dp-td-num{color:#687386;font-size:12px}.dp-td-cut{font-size:12px;color:#111827;white-space:nowrap}.dp-mm{font-size:10px;color:#687386}.dp-times{padding:0!important;color:#111827}.dp-select-cell{padding:4px 16px!important;white-space:nowrap}.dp-select-cell .dp-check,.dp-row-menu-wrap{vertical-align:middle}.dp-row-menu-wrap{position:relative;display:inline-block;margin-left:16px}.dp-row-grip-btn{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:0;border-radius:4px;background:transparent;cursor:pointer}.dp-row-grip-btn:hover,.dp-row-grip-btn[aria-expanded=true]{background:#e0e7ee}.dp-row-grip{display:inline-block;width:16px;height:16px;object-fit:contain}.dp-row-menu{position:absolute;top:calc(100% + 4px);left:0;z-index:10;min-width:160px;padding:6px 0;border:1px solid #CCD9E5;border-radius:8px;background:#fff;box-shadow:0 4px 12px #192a3b2e}.dp-row-menu-item{display:block;width:100%;padding:8px 16px;border:0;background:transparent;color:#111827;font:inherit;font-size:13px;font-weight:500;text-align:left;white-space:nowrap;cursor:pointer}.dp-row-menu-item:hover{background:#f5f7f8}.dp-row-menu-item--danger:hover{background:#ffeae8;color:var(--red)}.dp-add-row td{height:auto;padding:10px 24px 14px;text-align:left;border-bottom:0}.dp-btn-add-row{min-height:36px;padding:0 14px;border:1px dashed #CCD9E5;border-radius:8px;background:#fff;color:#687386;font:inherit;font-size:13px;cursor:pointer;transition:border-color .12s ease,color .12s ease,background-color .12s ease}.dp-btn-add-row:hover{border-color:#008cea;color:#008cea;background:#f5f7f8}.dp-text-input{width:100%;min-width:0;height:30px;padding:0 29px 0 12px;border:1px solid #E0E7EE;border-radius:8px;background:#f5f7f8;color:#111827;font:inherit;font-size:13px;text-align:left;transition:border-color .1s ease}.dp-text-field{position:relative;width:121px;height:30px;margin:0 auto}.dp-text-divider{position:absolute;top:6px;right:24px;width:1px;height:18px;background:#ccd9e5;pointer-events:none}.dp-text-arrow{position:absolute;top:50%;right:7px;width:10px;height:10px;transform:translateY(-50%);pointer-events:none}.dp-text-arrow-btn{position:absolute;top:50%;right:3px;transform:translateY(-50%);width:18px;height:18px;padding:0;border:0;border-radius:4px;background:transparent;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.dp-text-arrow-btn:hover{background:#e0e7ee}.dp-text-arrow-btn .dp-text-arrow{position:static;transform:none}.dp-text-menu{min-width:100%;width:max-content;max-width:220px}.dp-text-input:hover{border-color:#8ea2b5}.dp-text-input:focus{border-color:#008cea;background:#fff;outline:none}.dp-num-input{width:58px;height:30px;padding:0 3px;border:1px solid #E0E7EE;border-radius:8px;background:#fff;color:#111827;font:inherit;font-size:13px;text-align:center;transition:border-color .1s ease;-moz-appearance:textfield}.dp-num-input::-webkit-inner-spin-button,.dp-num-input::-webkit-outer-spin-button{-webkit-appearance:none}.dp-num-input:hover{border-color:#8ea2b5}.dp-num-input:focus{border-color:#008cea;outline:none}.dp-check{width:14px;height:14px;margin:0;padding:0;appearance:none;-webkit-appearance:none;border:1px solid #8EA2B5;border-radius:4px;background:#fff;cursor:pointer}.dp-check:checked{border-color:#008cea;background-color:#008cea;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2.3 6.2 2.1 2.1 5.1-5' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:center;background-repeat:no-repeat}.dp-check:focus-visible{outline:2px solid rgba(0,140,234,.28);outline-offset:1px}.dp-qty-ctrl{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:103px;height:30px;padding:0 12px;border:1px solid #8EA2B5;border-radius:8px;box-sizing:border-box;background:#fff}.dp-qty-text{display:inline-flex;align-items:center;gap:2px;font-size:13px;font-weight:500;color:#111827}.dp-qty-ctrl .dp-num-input{border:none!important;background:transparent!important;width:24px;height:auto;padding:0;font-size:13px;font-weight:500}.dp-edge-td{border-left:1px solid #CCD9E5;padding:2px 5px!important}.dp-edge-pair{display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:2px 0}.dp-edge-num{width:10px;flex-shrink:0;font-size:13px;font-weight:500;font-variant-numeric:tabular-nums;color:#111827;text-align:center;white-space:nowrap}.dp-edge-chip{display:inline-flex;align-items:center;justify-content:center;height:20px;font-size:13px;font-weight:600;padding:0 10px;border-radius:6px;background:#e0e7ee;color:#8ea2b5;white-space:nowrap}.dp-edge-chip.on{background:#d4e4f5;color:#1a52a8}.dp-edge-chk{padding:1px 6px;vertical-align:middle}.dp-edge-side-row{display:flex;gap:8px;align-items:center;justify-content:center;padding:2px 0}.dp-edge-side-row input{margin:0;transition:opacity .12s}.dp-groove-sides{display:flex;align-items:center;justify-content:center;gap:8px}.dp-td-dim{padding:2px 4px}.dp-dim-card{display:inline-flex;flex-direction:column;align-items:center;border:1px solid #8EA2B5;border-radius:8px;width:78px;height:30px;padding:2px 7px;box-sizing:border-box;background:#fff;min-width:78px;overflow:hidden;transition:border-color .12s}.dp-dim-card:focus-within{border-color:#008cea}.dp-dim-top{display:flex;align-items:baseline;gap:2px}.dp-dim-card .dp-num-input{border:none!important;background:transparent!important;font-size:13px;font-weight:600;line-height:1;width:46px;height:auto;padding:0;text-align:center}.dp-dim-card .dp-mm{font-size:11px;line-height:1;color:#687386}.dp-dim-indicators{display:flex;flex-direction:column;align-items:center;gap:2px;margin-top:0;min-height:4px}.dp-dim-indicator-row{display:flex;align-items:center;gap:2px;height:2px}.dp-dim-indicator-seg{display:block;height:2px;background:#8ea2b5}.dp-rot-ctrl{display:flex;align-items:center;justify-content:center;gap:10px}.dp-rot-btn{position:relative;width:26px;height:20px;border:1px solid #CCD9E5;border-radius:6px;background:#fff;cursor:pointer;font-size:13px;display:flex;align-items:center;justify-content:center;color:#111827;transition:all .1s}.dp-rot-btn svg{display:block}.dp-rot-btn:hover{background:#e0e7ee}.dp-rot-btn.active{background:#008cea;border-color:#008cea;color:#fff}.dp-rot-btn:after{position:absolute;z-index:8;top:calc(100% + 8px);left:50%;padding:6px 10px;border-radius:6px;background:#fff;box-shadow:0 4px 12px #192a3b2e;color:#111827;content:attr(data-tooltip);font-size:12px;font-weight:400;line-height:16px;opacity:0;pointer-events:none;transform:translate(-50%,-3px);transition:opacity .12s ease,transform .12s ease;white-space:nowrap}.dp-rot-btn:hover:after,.dp-rot-btn:focus-visible:after{opacity:1;transform:translate(-50%)}.dp-del-btn{width:24px;height:24px;border-radius:5px;border:none;background:transparent;cursor:pointer;font-size:13px;color:#687386;transition:all .1s}.dp-del-btn img{width:14px;height:14px;opacity:.75}.dp-del-btn:hover{background:#ffeae8;color:var(--red)}.dp-cut-card{display:inline-flex;width:78px;height:30px;align-items:center;justify-content:center;gap:3px;border:1px solid #8EA2B5;border-radius:8px;background:#fff;box-sizing:border-box}.dp-bulk-bar{display:flex;align-items:center;gap:20px;padding:12px 16px;border-top:1px solid #CCD9E5;background:#fff;flex-shrink:0}.dp-bulk-count{font-size:13px;font-weight:500;color:#687386}.dp-bulk-action{height:36px;padding:0 16px;border:0;border-radius:8px;background:#e0e7ee;color:#111827;font:inherit;font-size:15px;font-weight:500;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.dp-bulk-action:hover{background:#ccd9e5}.dp-bulk-action--danger{background:#ff6711;color:#fff}.dp-bulk-action--danger:hover{background:#eb5300}.dp-stats{display:flex;align-items:flex-start;gap:32px;min-height:134px;padding:27px 16px 20px;box-sizing:border-box;background:#fff;border-top:1px solid #CCD9E5;font-size:13px;color:#111827;flex-shrink:0}.dp-stat-group{display:grid;width:199px;margin:0;gap:4px}.dp-stat-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;column-gap:12px;min-height:16px}.dp-stat-row dt,.dp-stat-row dd{margin:0}.dp-stat-row dt{color:#8ea2b5;white-space:nowrap}.dp-stat-row dd{color:#111827;font-weight:500;white-space:nowrap}.dp-footer{display:flex;align-items:center;justify-content:center;height:82px;min-height:82px;padding:20px 16px 26px;box-sizing:border-box;border-top:1px solid #CCD9E5;border-radius:0 0 8px 8px;background:#fff;box-shadow:none;flex-shrink:0}.dp-footer-actions{display:flex;width:533px;height:36px;gap:16px}.dp-footer .btn-primary,.dp-footer .btn-ghost{min-width:0;flex:1 1 0;height:36px;padding:0 16px;border-radius:8px;font-size:15px;font-weight:500;justify-content:center}.dp-footer .btn-primary{border:0;background:#008cea;color:#fff}.dp-footer .btn-primary:hover{background:#007dce}.dp-footer .btn-ghost{border:0;background:#e0e7ee;color:#8ea2b5}@media(max-width:1180px){.dp-panel{width:100%;min-width:0;flex-basis:100%}}@media(prefers-reduced-motion:reduce){.dp-overlay,.dp-panel{transition-duration:1ms}}::-webkit-scrollbar-thumb:hover{background:var(--muted)}.tb-panel-toggles{display:flex;align-items:center;gap:1px;flex-shrink:0}.tb-panel-btn{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;color:var(--text-2);background:transparent;transition:background .1s,color .1s;flex-shrink:0}.tb-panel-btn:hover{background:var(--bg);color:var(--text)}.tb-panel-btn.on{background:#2461e81a;color:var(--accent)}.ps-strip--pro{height:66px}.ps-strip--pro .ps-sec-title,.ps-strip--pro .ps-chip-lbl{display:none}.ps-strip--pro .ps-chip{height:44px;min-width:44px;max-width:44px;padding:8px;justify-content:center;flex-shrink:0}.ps-strip--pro .ps-chips{height:44px}.ps-strip--pro .ps-sec{padding-top:0;justify-content:center;align-items:center}.ps-strip--pro .ps-cfg,.ps-strip--pro .ps-label-col{display:none}.cv-body--h{flex-direction:column}.cv-body--h .cv-left{flex-direction:row;width:100%;height:220px;border-right:none;border-bottom:1px solid var(--border);flex-shrink:0;min-width:0}.cv-body--h .cv-controls{flex-direction:column;width:93px;height:100%;border-right:1px solid var(--border);flex-shrink:0;padding:0}.cv-body--h .cv-tree{flex:1;width:auto;height:100%;overflow:auto}.ps-margin-btn{display:inline-flex;align-items:center;gap:5px;padding:0 8px;height:30px;border:1.5px solid #DCE4EE;border-radius:6px;font-size:11.5px;font-weight:600;color:var(--text);background:#fff;cursor:pointer;transition:border-color .1s,color .1s;white-space:nowrap;flex-shrink:0}.ps-margin-btn:hover{border-color:var(--accent);color:var(--accent)}.ps-margin-val{font-size:11.5px;font-weight:600;letter-spacing:-.02em}.modal-overlay{position:fixed;inset:0;background:#00000059;z-index:2100;display:flex;align-items:center;justify-content:center}.mm-modal{position:relative;box-sizing:border-box;width:451px;display:flex;flex-direction:column;align-items:center;gap:12px;padding:12px 16px 16px;background:#f5f7f8;border:1.5px solid #8EA2B5;border-radius:8px}.mm-title{margin:0;font-size:15px;font-weight:500;color:#000;text-align:center;white-space:nowrap}.mm-close{position:absolute;top:12px;right:16px;width:12px;height:12px;padding:0;border:0;background:none;cursor:pointer}.mm-close img{display:block;width:100%;height:100%}.mm-divider{width:100%;height:1px;flex-shrink:0;background:#e0e7ee}.mm-diagram{position:relative;width:376px;height:278px;flex-shrink:0}.mm-diagram-outer{position:absolute;left:91px;top:77px;width:194px;height:124px;box-sizing:border-box;border:1px solid #000}.mm-diagram-inner{position:absolute;left:100px;top:86px;width:176px;height:106px;box-sizing:border-box;border:1px solid #000;background:#f5f7f8;overflow:hidden}.mm-diagram-inner img{display:block;width:100%;height:100%}.mm-arrow-h{position:absolute;top:135px;width:36px;height:8.765px}.mm-arrow-h img{display:block;width:100%;height:100%}.mm-arrow-h--left1{left:60px}.mm-arrow-h--left2{left:96px;transform:rotate(180deg) scaleY(-1)}.mm-arrow-h--right1{left:244px}.mm-arrow-h--right2{left:280px;transform:rotate(180deg) scaleY(-1)}.mm-arrow-v{position:absolute;left:184px;width:8.765px;height:36px;display:flex;align-items:center;justify-content:center}.mm-arrow-v img{display:block;width:36px;height:8.765px}.mm-arrow-v--top1{top:46px}.mm-arrow-v--top1 img{transform:rotate(90deg)}.mm-arrow-v--top2{top:82px}.mm-arrow-v--top2 img{transform:rotate(-90deg) scaleY(-1)}.mm-arrow-v--bottom1{top:160px}.mm-arrow-v--bottom1 img{transform:rotate(90deg)}.mm-arrow-v--bottom2{top:196px}.mm-arrow-v--bottom2 img{transform:rotate(-90deg) scaleY(-1)}.mm-num-input{box-sizing:border-box;width:50px;height:36px;padding:8px 12px 8px 16px;border:1px solid #E0E7EE;border-radius:8px;background:#fff;font-family:inherit;font-size:13px;font-weight:500;color:#000;outline:none}.mm-num-input:focus{border-color:#008cea}.mm-num-input::-webkit-outer-spin-button,.mm-num-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.mm-num-input[type=number]{appearance:textfield}.mm-num-input--top{position:absolute;left:163px;top:0}.mm-num-input--bottom{position:absolute;left:163px;top:242px}.mm-num-input--right{position:absolute;left:326px;top:122px}.mm-num-input--left{position:absolute;left:0;top:122px}.mm-check-row{display:flex;align-items:center;gap:8px;width:100%}.mm-check-lbl{display:flex;align-items:center;gap:8px;flex:1 1 auto;min-width:0;cursor:pointer}.mm-check-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.mm-check-icon,.mm-check-placeholder{display:block;width:18px;height:18px;flex:0 0 18px}.mm-check-placeholder{box-sizing:border-box;border:1px solid #CCD9E5;border-radius:4px;background:#fff}.mm-check-lbl span{font-size:13px;font-weight:500;color:#000}.mm-actions{display:flex;align-items:center;justify-content:center;gap:12px;height:36px}.mm-btn-save,.mm-btn-cancel,.mm-btn-clear{display:flex;align-items:center;justify-content:center;height:36px;border:0;border-radius:8px;font-family:inherit;font-size:13px;font-weight:400;cursor:pointer}.mm-btn-save{width:148px;background:#008cea;color:#fff}.mm-btn-save:hover{background:#0079c9}.mm-btn-cancel,.mm-btn-clear{width:128px;background:#e0e7ee;color:#000}.mm-btn-cancel:hover,.mm-btn-clear:hover{background:#ccd9e5}.cmt-modal,.pkg-modal{position:relative;box-sizing:border-box;width:451px;display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:12px 16px 16px;background:#f5f7f8;border:1.5px solid #8EA2B5;border-radius:8px}.cmt-field{display:flex;flex-direction:column;gap:6px}.cmt-label,.pkg-list-label{font-size:13px;font-weight:500;color:#000}.cmt-textarea{box-sizing:border-box;width:100%;min-height:92px;padding:8px 12px;border:1px solid #E0E7EE;border-radius:8px;background:#fff;color:#000;font-family:inherit;font-size:13px;font-weight:400;line-height:1.45;resize:vertical;outline:none}.cmt-textarea:focus{border-color:#008cea}.cmt-textarea::placeholder{color:#6b7280}.pkg-list{display:flex;flex-direction:column;gap:8px;max-height:260px;overflow-y:auto;padding-right:4px}.pkg-item{display:flex;align-items:center;gap:8px;height:36px;padding:0 8px;box-sizing:border-box;border:1px solid #E0E7EE;border-radius:8px;background:#fff;transition:opacity .12s,outline-color .12s;outline:2px dashed transparent;outline-offset:2px}.pkg-item.is-dragging{opacity:.4}.pkg-item.is-drag-over{outline-color:#008cea}.pkg-grip{width:6px;height:18px;flex:0 0 6px;cursor:grab}.pkg-grip:active{cursor:grabbing}.pkg-input{flex:1;min-width:0;height:100%;border:0;background:transparent;font-family:inherit;font-size:13px;font-weight:400;color:#000;outline:none}.pkg-input::placeholder{color:#6b7280}.pkg-remove{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;flex:0 0 22px;padding:0;border:0;border-radius:4px;background:transparent}.pkg-remove img{width:12px;height:12px}.pkg-remove:hover{background:#ffeae8}.pkg-add-btn{width:100%;height:36px;border:1px dashed #8EA2B5;border-radius:8px;background:transparent;font-family:inherit;font-size:13px;font-weight:400;color:#008cea}.pkg-add-btn:hover{border-color:#008cea;background:#e9f4fc}.pkg-empty{margin:0;padding:12px 0;font-size:13px;color:#6b7280;text-align:center}.mebel24-workspace{--font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif}.mebel24-workspace,.mebel24-workspace button,.mebel24-workspace input,.mebel24-workspace select,.mebel24-workspace textarea{font-family:var(--font)}.cv-body{display:grid;grid-template-columns:231px 90px minmax(0,1fr);grid-template-rows:64px minmax(0,1fr);grid-template-areas:"tree topbar topbar" "tree tools main";flex:1;min-height:0;overflow:hidden}.cv-body--tree-hidden{grid-template-columns:0 90px minmax(0,1fr)}.cv-body--tree-hidden .cv-tree{width:0;min-width:0;overflow:hidden;visibility:hidden;border-right:0}.cv-body--tools-hidden{grid-template-columns:231px 0 minmax(0,1fr)}.cv-body--tree-hidden.cv-body--tools-hidden{grid-template-columns:0 0 minmax(0,1fr)}.cv-left,.cv-right{display:contents}.cv-tree{grid-area:tree;width:231px;height:auto;align-self:stretch;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:#f5f7f8;border-right:1px solid #CCD9E5;color:#000}.cv-controls{grid-area:tools;width:90px;height:auto;min-height:0;margin-top:0;overflow-x:hidden;overflow-y:auto}.cv-main{grid-area:main;min-width:0;min-height:0;overflow:hidden}.cv-tree-head{height:47px;min-height:47px;padding:0 16px;display:flex;align-items:center;border-bottom:0;color:#000;font-size:27px;font-weight:700;line-height:35px}.cv-tree-nav{height:100px;min-height:100px;border:0}.cv-nav-btn{width:268px;height:50px;padding:8px 16px;display:flex;align-items:center;gap:8px;border-right:1px solid #CCD9E5;border-bottom:1px solid #CCD9E5;background:#f5f7f8;color:#000;font-size:13px;font-weight:400;line-height:17px}.cv-nav-btn:first-child{border-top:1px solid #CCD9E5}.cv-nav-btn:hover,.cv-nav-btn.active{background:#f5f7f8;color:#000}.cv-nav-icon{width:16px;height:16px;flex:0 0 16px}.cv-nav-label{flex:1;text-align:left;white-space:nowrap}.cv-nav-arrow{width:12px;height:12px;flex:0 0 12px}.cv-nav-arrow--up{transform:rotate(180deg)}.cv-tree-scroll{flex:1;min-height:0;padding:10px 0 0;overflow-x:hidden;overflow-y:auto}.tree-group{position:relative;width:285px;margin:0 0 10px 17px;padding:0}.tree-sheet-row{width:269px;height:32px;padding:0;display:flex;align-items:center;gap:10px;color:#000;font-size:12px;font-weight:400;line-height:16px;overflow:visible}.tree-sheet-row:hover{background:transparent}.tree-collapse{width:14px;height:14px;flex:0 0 14px;padding:0}.tree-collapse img{width:14px;height:14px}.tree-sheet-card{width:221px;height:32px;padding:8px 10px;display:flex;align-items:center;border-radius:8px;overflow:hidden;background:transparent}.tree-sheet-card.active{background:#e0e7ee}.tree-sheet-card .tree-label{font-weight:400}.tree-children{position:relative;width:285px}.tree-connector{position:absolute;left:31px;top:-11.5px;width:18px;height:62.5px;z-index:0}.tree-part-row{position:relative;z-index:1;width:237px;height:32px;margin-left:48px;padding:0;display:flex;align-items:center;gap:10px;color:#000;font-size:12px;font-weight:400;line-height:16px;overflow:hidden}.tree-part-row:hover{background:transparent}.tree-check{width:14px;height:14px;flex:0 0 14px;margin:0;appearance:none;-webkit-appearance:none;border:1px solid #8EA2B5;border-radius:4px;background:#fff}.tree-check:checked{border:0;background-color:transparent;background-image:url(../../shared/assets/figma-layout/sidebar/checked.svg);background-repeat:no-repeat;background-position:center;background-size:14px 14px}.tree-check:checked:after{content:none}.tree-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-empty{padding:10px 17px;color:#8ea2b5;font-size:12px}.cv-tree-bottom{height:417px;max-height:417px;min-height:417px;flex:0 0 417px;padding:0 15px 0 16px;overflow:hidden;border-top:0;background:#f5f7f8}.stats-title{height:50px;margin:0 -15px 16px -16px;padding:8px 0 8px 18px;display:flex;align-items:center;border-right:1px solid #CCD9E5;border-bottom:1px solid #CCD9E5;color:#000;font-size:13px;font-weight:400;line-height:17px;letter-spacing:0;text-transform:none}.stats-group{width:199px;display:flex;flex-direction:column;gap:12px}.stats-divider{height:32px;margin:0;background:transparent;flex:0 0 32px}.stats-row{width:199px;height:9px;min-height:9px;padding:0;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;color:#8ea2b5;font-size:13px;font-weight:500;line-height:9px}.stats-row span{flex:1;min-width:0;overflow:visible;text-overflow:clip;white-space:nowrap}.stats-row strong{flex:0 0 auto;color:#000;font-size:13px;font-weight:500;line-height:9px;white-space:nowrap}.cv-topbar{grid-area:topbar;align-self:stretch;width:calc(100% + 1px);height:64px;margin-left:-1px;padding:0;display:flex;align-items:center;gap:12px;overflow:hidden;background:#f5f7f8;border-bottom:1px solid #E0E7EE;color:#000}.tb-edge-line{width:1px;height:64px;flex:0 0 1px;background:#ccd9e5}.tb-vline{width:1px;height:56px;flex:0 0 1px;margin:0;background:#ccd9e5}.tb-svg-icon{display:block;width:24px;height:24px;flex:0 0 24px}.tb-sidebar-btn{width:66px;height:40px;padding:8px 18px 8px 21px;display:flex;align-items:center;justify-content:center;flex:0 0 66px;border-radius:0;background:transparent;color:#000}.tb-sidebar-btn:hover,.tb-sidebar-btn.on{background:transparent;color:#000}.tb-icon-btn{width:40px;height:40px;padding:8px;display:flex;align-items:center;justify-content:center;flex:0 0 40px;border-radius:8px;background:transparent;color:#000}.tb-icon-btn:hover{background:#e0e7ee;color:#000}.tb-icon-btn:disabled{opacity:1;cursor:default}.tb-icon-btn:disabled:hover{background:transparent}.tb-user-controls .tb-icon-btn:disabled{opacity:.35}.tb-action-btn{height:56px;padding:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;flex:0 0 auto;border-radius:8px;background:transparent;color:#000;font-size:12px;font-weight:400;line-height:16px}.tb-action-btn:hover{background:#e0e7ee;color:#000}.tb-action-btn--save{width:76px}.tb-action-btn--import{width:59px}.tb-action-btn--export{width:71px;height:48px;padding:4px;gap:4px}.tb-action-btn--print{width:56px}.tb-action-label{display:flex;align-items:center;gap:4px;white-space:nowrap}.tb-arrow-icon{width:12px;height:12px;flex:0 0 12px}.cv-topbar.cv-topbar--pro .tb-action-btn{height:40px;padding:8px}.cv-topbar.cv-topbar--pro .tb-action-btn--save,.cv-topbar.cv-topbar--pro .tb-action-btn--import,.cv-topbar.cv-topbar--pro .tb-action-btn--print{width:40px}.cv-topbar.cv-topbar--pro .tb-action-btn--export{width:32px;height:32px;padding:4px}.cv-topbar.cv-topbar--pro .cv-tabs{width:auto;height:32px;gap:10px;flex:0 0 auto}.cv-topbar.cv-topbar--pro .tb-tab-btn,.cv-topbar.cv-topbar--pro .tb-tab-btn:nth-child(1),.cv-topbar.cv-topbar--pro .tb-tab-btn:nth-child(2),.cv-topbar.cv-topbar--pro .tb-tab-btn:nth-child(3),.cv-topbar.cv-topbar--pro .tb-tab-btn:nth-child(4){width:32px;height:32px;padding:4px}.cv-topbar.cv-topbar--pro .tb-tab-btn{background:transparent;color:#000}.cv-topbar.cv-topbar--pro .tb-tab-btn:hover,.cv-topbar.cv-topbar--pro .tb-tab-btn.active{background:#e0e7ee;color:#000}.cv-tabs{width:292px;height:49px;display:flex;align-items:center;gap:12px;flex:0 0 292px}.tb-tab-btn{height:49px;padding:4px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:0;flex:0 0 auto;border-radius:8px;background:transparent;color:#000;white-space:nowrap}.tb-tab-btn:nth-child(1){width:44px}.tb-tab-btn:nth-child(2){width:78px}.tb-tab-btn:nth-child(3){width:66px}.tb-tab-btn:nth-child(4){width:68px}.tb-tab-btn:hover,.tb-tab-btn.active{background:#e0e7ee;color:#000}.tb-tab-lbl{height:17px;color:#000;font-size:13px;font-weight:400;line-height:17px}.cv-spacer{min-width:0;flex:1 1 auto;display:flex;align-items:center;padding:0 16px}.cv-doc-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6b7280;font-size:13px;line-height:17px}.tb-scale-controls{height:56px;display:flex;align-items:center;gap:8px;flex:0 0 auto;color:#6b7280}.tb-scale-icon{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 18px}.tb-scale-icon svg{width:16px;height:16px}.tb-scale-switch{display:inline-flex;gap:1px;padding:2px;flex:0 0 auto;border-radius:7px;background:#e0e7ee}.tb-scale-switch button{height:24px;padding:3px 6px;border-radius:5px;color:#6b7280;font-size:11px;font-weight:400;line-height:14px;white-space:nowrap}.tb-scale-switch button:hover{color:#111827}.tb-scale-switch button.active{background:#2563eb;color:#fff}.tb-user-controls{width:282px;height:56px;padding-right:8px;align-self:flex-start;display:flex;align-items:center;gap:8px;flex:0 0 282px;background:#f5f7f8}.mode-toggle{width:151px;height:17px;display:flex;align-items:center;gap:12px;flex:0 0 151px}.mode-label{color:#000;font-size:13px;font-weight:400;line-height:17px;white-space:nowrap}.mode-label:first-child{width:53px}.mode-label:last-child{width:42px}.mode-label.active{color:#000}.toggle-switch{position:relative;width:32px;height:16px;flex:0 0 32px}.toggle-switch input{position:absolute;width:1px;height:1px;opacity:0}.toggle-track{position:absolute;inset:0;border-radius:8px;background:#8ea2b5}.toggle-switch input:checked+.toggle-track{background:#008cea}.toggle-track:after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#fff}.toggle-switch input:checked+.toggle-track:after{transform:translate(16px)}.ps-strip{width:100%;height:105px;min-height:105px;padding:0 8px 0 16px;display:flex;flex-direction:row;align-items:center;gap:12px;overflow-x:auto;overflow-y:hidden;background:#f5f7f8;border-bottom:1px solid #E0E7EE;color:#000}.ps-label-col{width:96px;height:105px;padding:0;display:flex;align-items:center;gap:10px;flex:0 0 96px}.ps-grip{width:12px;height:24px;flex:0 0 12px}.ps-label-text{color:#000;font-size:13px;font-weight:600;line-height:17px;letter-spacing:0}.ps-vline{width:1px;height:105px;align-self:center;flex:0 0 1px;background:#ccd9e5}.ps-vline--end{height:95px}.ps-sec{height:82px;padding:0;display:flex;flex-direction:column;align-items:stretch;gap:4px;flex:0 0 auto}.ps-sec--method{width:305px}.ps-sec--sort{width:336px}.ps-sec--corner{width:151px;height:83px;padding:0;align-items:center}.ps-sec-title{height:17px;margin:0;color:#000;font-size:13px;font-weight:600;line-height:17px;letter-spacing:0;text-align:center;text-transform:none}.ps-chips{width:100%;height:61px;display:flex;align-items:stretch;gap:0}.ps-sec--method .ps-chips{gap:16px}.ps-sec--sort .ps-chips{gap:12px}.ps-chip{height:61px;min-width:0;padding:0 8px;display:flex;align-items:stretch;justify-content:center;flex:0 0 auto;border-radius:8px;background:transparent;color:#000}.ps-sec--method .ps-chip:nth-child(1){width:85px}.ps-sec--method .ps-chip:nth-child(2){width:95px}.ps-sec--method .ps-chip:nth-child(3){width:102px}.ps-sec--sort .ps-chip:nth-child(1){width:71px}.ps-sec--sort .ps-chip:nth-child(2){width:71px}.ps-sec--sort .ps-chip:nth-child(3){width:87px}.ps-sec--sort .ps-chip:nth-child(4){width:71px}.ps-chip-inner{width:100%;height:61px;padding:8px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;border-radius:8px;background:transparent}.ps-chip:hover,.ps-chip.sel{background:transparent;color:#000}.ps-chip:hover .ps-chip-inner,.ps-chip.sel .ps-chip-inner{background:#e0e7ee}.ps-sec--sort.is-disabled{opacity:.35}.ps-sec--sort.is-disabled .ps-chip{cursor:default}.ps-sec--sort.is-disabled .ps-chip:hover .ps-chip-inner{background:transparent}.ps-chip-icon{width:30px;height:25px;flex:0 0 25px;object-fit:contain}.ps-chip-lbl{height:16px;margin:0;color:#000;font-size:12px;font-weight:400;line-height:16px;white-space:nowrap}.ps-start-widget{position:relative;width:113px;height:48px;flex:0 0 48px}.ps-start-image{display:block;width:113px;height:48px}.ps-start-corner{position:absolute;width:9px;height:9px;padding:0;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;border:.649428px solid #000;border-radius:50%;background:#fff}.ps-start-corner.active{background:#fff}.ps-start-corner.active:after{content:"";width:6px;height:6px;border-radius:50%;background:#000}.ps-cfg{height:85px;padding:0 8px;display:flex;flex-direction:column;justify-content:flex-start;gap:5px;flex:0 0 auto}.ps-cfg--cut{width:181px}.ps-cfg--first{width:233px}.ps-cfg-row{width:100%;height:32px;display:flex;align-items:center;gap:12px}.ps-cfg-row--margin{height:40px}.ps-cfg-lbl{width:77px;flex:0 0 77px;color:#000;font-size:12px;font-weight:400;line-height:16px;white-space:nowrap}.ps-select-wrap{position:relative;height:32px;display:block;flex:0 0 auto}.ps-select-wrap--kerf{width:57px}.ps-select-wrap--first-cut{width:136px}.ps-select-wrap--edges{width:92px}.ps-sel{width:100%;height:32px;padding:0 28px 0 12px;border:1px solid #E0E7EE;border-radius:8px;outline:0;appearance:none;-webkit-appearance:none;background:#fff;color:#000;font-size:12px;font-weight:400;line-height:16px}.ps-field-arrow{position:absolute;top:10px;right:8px;width:12px;height:12px;pointer-events:none}.ps-margin-btn{width:84px;height:34px;padding:8px 8px 8px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex:0 0 84px;border:1px solid #E0E7EE;border-radius:8px;background:#fff;color:#000}.ps-margin-btn:hover{border-color:#e0e7ee;color:#000}.ps-margin-val{color:#000;font-size:12px;font-weight:400;line-height:16px;letter-spacing:0}.ps-margin-icon{width:18px;height:18px;flex:0 0 18px}.ms-strip{width:100%;height:66px;min-height:66px;padding:0 8px 0 16px;display:flex;align-items:center;gap:12px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;background:#f5f7f8;border-bottom:1px solid #E0E7EE;color:#000}.ms-lbl-col{width:96px;height:66px;padding:0;display:flex;align-items:center;gap:10px;flex:0 0 96px}.ms-grip{width:12px;height:24px;flex:0 0 12px}.ms-lbl-text{color:#000;font-size:13px;font-weight:600;line-height:17px;letter-spacing:0}.ms-strip.ms-strip--pro .ms-lbl-col{width:12px;flex:0 0 12px;gap:0}.ms-vline{width:1px;height:66px;flex:0 0 1px;background:#ccd9e5}.ms-column{height:43px;display:flex;flex-direction:column;gap:10px;flex:0 0 auto}.ms-column--material{width:541px}.ms-column--edges-primary,.ms-column--edges-secondary{height:43px;flex-direction:row;gap:12px}.ms-column--edges-primary{width:550px}.ms-column--edges-secondary{width:538px}.ms-panel{width:100%;height:43px;min-height:43px;padding:4px 12px;display:flex;align-items:center;gap:12px;border-radius:8px;background:#e0e7ee;color:#000}.ms-mat-sec{flex:0 0 43px}.ms-material-content,.ms-edge-content{min-width:0;display:flex;align-items:center;gap:8px;flex:1 1 auto}.ms-mat-lbl{flex:0 0 auto;color:#000;font-size:13px;font-weight:400;line-height:17px}.ms-select-field{position:relative;height:35px;min-width:0;display:flex;align-items:center;gap:10px;overflow:hidden;border:1px solid #E0E7EE;border-radius:8px;background:#fff}.ms-mat-sel-wrap{flex:1 1 auto;padding-left:10px}.ms-size-badge,.ms-thick-badge{height:20px;min-width:0;padding:0 5px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:6px;background:#e0e7ee;color:#8ea2b5;font-size:13px;font-weight:600;line-height:17px;white-space:nowrap}.ms-mat-sel,.ms-edge-sel{height:33px;min-width:0;padding:0 24px 0 0;flex:1 1 auto;border:0;outline:0;appearance:none;-webkit-appearance:none;background:transparent;color:#000;font-size:13px;font-weight:400;line-height:17px}.ms-field-arrow{position:absolute;top:11px;right:10px;width:12px;height:12px;pointer-events:none}.ms-filter-btn{width:14px;height:11px;padding:0;display:flex;align-items:center;justify-content:center;flex:0 0 14px;border-radius:0;background:transparent;color:#000}.ms-filter-btn:hover{background:transparent;color:#000}.ms-filter-btn img{width:13.5px;height:10.5px}.ms-edge-row{flex:0 0 43px}.ms-column--edges-primary .ms-edge-row{width:269px;flex-basis:269px}.ms-column--edges-secondary .ms-edge-row{width:263px;flex-basis:263px}.ms-edge-type-lbl{width:47px;min-width:47px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#000;font-size:13px;font-weight:400;line-height:13px;text-align:center;white-space:nowrap}.ms-edge-mark{position:relative;width:47px;height:2px;flex:0 0 2px}.ms-edge-type-lbl--1 .ms-edge-mark{background:linear-gradient(to right,#8EA2B5 0 13.16px,transparent 13.16px 16.92px,#8EA2B5 16.92px 30.08px,transparent 30.08px 33.84px,#8EA2B5 33.84px 47px)}.ms-edge-type-lbl--2 .ms-edge-mark{background:#8ea2b5}.ms-edge-type-lbl--3 .ms-edge-mark{background:linear-gradient(to right,#8EA2B5 0 19.881px,transparent 19.881px 22.32px,#8EA2B5 22.32px 24.67px,transparent 24.67px 27.12px,#8EA2B5 27.12px 47px)}.ms-edge-type-lbl--4 .ms-edge-mark{height:4px;flex-basis:4px;background:repeating-linear-gradient(90deg,#8EA2B5 0 4px,transparent 4px 14.3px)}.ms-edge-sel-wrap{flex:1 1 auto;padding-left:10px}.ps-strip.ps-strip--pro{height:66px;min-height:66px}.ps-strip.ps-strip--pro .ps-vline{height:66px}.ps-strip.ps-strip--pro .ps-sec{height:44px}.ps-strip.ps-strip--pro .ps-sec--method{width:140px}.ps-strip.ps-strip--pro .ps-sec--sort{width:188px}.ps-strip.ps-strip--pro .ps-sec--corner{width:113px;height:48px}.ps-strip.ps-strip--pro .ps-chips{height:44px;gap:4px}.ps-strip.ps-strip--pro .ps-chip,.ps-strip.ps-strip--pro .ps-sec--method .ps-chip,.ps-strip.ps-strip--pro .ps-sec--sort .ps-chip{width:44px;min-width:44px;max-width:44px;height:44px;padding:0;flex:0 0 44px}.ps-strip.ps-strip--pro .ps-chip-inner{width:44px;height:44px;padding:8px;gap:0;justify-content:center}.ps-strip.ps-strip--pro .ps-label-col{display:flex;width:12px;flex:0 0 12px;gap:0}.ps-strip.ps-strip--pro .ps-label-text{display:none}.ps-strip.ps-strip--pro .ps-cfg{display:flex;flex-direction:row;align-items:center;height:auto;width:auto;padding:0;gap:16px}.ps-strip.ps-strip--pro .ps-cfg-row{width:auto;height:auto}.mebel24-workspace button.mm-btn-save{background:#008cea;color:#fff}.mebel24-workspace button.mm-btn-save:hover{background:#0079c9}.mebel24-workspace button.mm-btn-cancel,.mebel24-workspace button.mm-btn-clear{background:#e0e7ee;color:#000}.mebel24-workspace button.mm-btn-cancel:hover,.mebel24-workspace button.mm-btn-clear:hover{background:#ccd9e5}.mebel24-workspace button.pkg-add-btn{border:1px dashed #8EA2B5;background:transparent}.mebel24-workspace button.pkg-add-btn:hover{border-color:#008cea;background:#e9f4fc}.mebel24-workspace button.btn-add,.mebel24-workspace button.dp-btn-add{background:#adea00;color:#000}.mebel24-workspace button.btn-add:hover,.mebel24-workspace button.dp-btn-add:hover{background:#9ed600}.mebel24-workspace button.btn-action,.mebel24-workspace button.dp-btn-ghost{width:auto;flex:0 0 auto;background:var(--border);color:var(--line);justify-content:flex-start;gap:8px;border:none}.mebel24-workspace button.btn-action:hover,.mebel24-workspace button.dp-btn-ghost:hover{background:var(--chip-hover)}.mebel24-workspace button.btn-action.btn-action--active,.mebel24-workspace button.dp-btn-ghost.dp-btn-ghost--active{background:#dbeafe}.mebel24-workspace button.btn-action.btn-action--active:hover,.mebel24-workspace button.dp-btn-ghost.dp-btn-ghost--active:hover{background:#bfdbfe}.mebel24-workspace button.ps-sel{background:#fff;border:1px solid #E0E7EE;text-align:left;cursor:pointer}.mebel24-workspace button.ms-select-field,.mebel24-workspace button.dp-mat-select-field{background:#fff;border:1px solid #E0E7EE;font:inherit;color:inherit;text-align:left;cursor:pointer}.ms-field-value{min-width:0;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:400;line-height:17px;color:#000}.mebel24-workspace .order-exit-modal__button{padding:8px 12px;border:1px solid var(--border);background:#fff;color:var(--line)}.mebel24-workspace .order-exit-modal__button:hover:not(:disabled){background:var(--chip)}.mebel24-workspace .order-exit-modal__button--primary{background:var(--accent);border-color:var(--accent);color:#fff}.mebel24-workspace .order-exit-modal__button--primary:hover:not(:disabled){background:#1d4ed8}.mebel24-workspace .order-exit-modal__button--danger{color:#b91c1c;border-color:#fca5a5;background:#fff}.mebel24-workspace button.dp-close-tab{padding:8px 14px;border:0;background:#f5f7f8;color:#111827}.mebel24-workspace button.dp-close-tab:hover{background:#e0e7ee}.cv-toasts{position:fixed;right:20px;bottom:20px;z-index:5001;display:flex;flex-direction:column;align-items:flex-end;gap:8px;pointer-events:none}.cv-toast{max-width:420px;padding:10px 14px;border-radius:8px;background:#fff;border-left:4px solid #2563eb;box-shadow:0 6px 20px #11182729;color:#111827;font-family:IBM Plex Sans,Arial,sans-serif;font-size:13px;line-height:1.35}.cv-toast--err{border-left-color:#dc2626;color:#991b1b}:root{--bg: #F5F7F8;--panel: #ffffff;--line: #111827;--muted: #6b7280;--border: #E0E7EE;--accent: #2563eb;--accent-hover: #1d4ed8;--grid: #e7eaf0;--grid-strong: #cfd5df;--select: #2563eb;--snap: #16a34a;--hl: #fde68a;--border-soft: #CCD9E5;--chip: #ECF1F4;--chip-hover: #E0E7EE;--app-dark: #444444}*{box-sizing:border-box}html,body,#root{margin:0;height:100%;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,P24Currency,P24Armenian,sans-serif;color:var(--line);background:var(--app-dark);user-select:none}#app{display:grid;grid-template-columns:232px 56px 1fr;grid-template-rows:56px 86px 86px 1fr 36px;height:100%;grid-template-areas:"sidebar  appbar     appbar" "sidebar  tools      canvasbar" "sidebar  tools      cncbar" "sidebar  tools      canvas" "sidebar  tools      statusbar"}#app.mebel24-on{display:block;height:100%;min-height:0;overflow:hidden}#app.cnc-off{grid-template-rows:56px 86px 1fr 36px;grid-template-areas:"sidebar  appbar     appbar" "sidebar  tools      canvasbar" "sidebar  tools      canvas" "sidebar  tools      statusbar"}#app.cnc-off #cncbar{display:none}#app.cnc-off.p24-on{grid-template-rows:56px 86px 86px 40px 1fr 36px;grid-template-areas:"sidebar  appbar     appbar" "sidebar  tools      canvasbar" "sidebar  tools      p24bar" "sidebar  tools      matbar" "sidebar  tools      canvas" "sidebar  tools      statusbar"}#p24bar{display:none;grid-area:p24bar}#matbar{display:none;grid-area:matbar}#app.p24-on #p24bar,#app.p24-on #matbar{display:flex}#app.sidebar-collapsed{grid-template-columns:0px 56px 1fr}#app.sidebar-collapsed #sidebar{width:0;min-width:0;overflow:hidden;visibility:hidden;border-right:none}#appbar{grid-area:appbar;background:var(--panel);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:8px;padding:0 8px}#appbar .vbar{width:1px;height:56px;background:var(--border);flex-shrink:0}#appbar .iconbtn{width:40px;height:40px;border:none;background:transparent;border-radius:8px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:var(--line);flex-shrink:0}#appbar .iconbtn:hover{background:var(--chip)}#appbar .iconbtn:disabled{color:var(--muted);cursor:not-allowed;opacity:.55}#appbar .iconbtn:disabled:hover{background:transparent}#appbar .iconbtn svg{width:24px;height:24px}#appbar .tbtn{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:none;background:transparent;border-radius:8px;cursor:pointer;padding:0 10px;font-size:12px;color:var(--line);height:56px;min-width:56px}#appbar .tbtn:hover,#appbar .tbtn.active{background:var(--chip)}#appbar .tbtn svg{width:24px;height:24px}#appbar .tbtn .lbl{line-height:1.4;white-space:nowrap}#appbar .docname{color:var(--muted);font-size:13px;margin-left:6px}#appbar .grow{flex:1}#appbar .seg{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);padding:0 6px}#appbar .switch{width:38px;height:20px;border-radius:11px;background:var(--border-soft);position:relative;cursor:pointer;transition:background .15s;border:none;flex-shrink:0}#appbar .switch.pro{background:var(--accent)}#appbar .switch:after{content:"";position:absolute;width:16px;height:16px;border-radius:50%;background:#fff;top:2px;left:2px;transition:left .15s}#appbar .switch.pro:after{left:20px}#appbar .scale-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;color:var(--muted);flex-shrink:0}#appbar .scale-icon svg{width:16px;height:16px}#appbar .scale-switch{display:inline-flex;gap:1px;background:var(--chip);padding:2px;border-radius:7px;flex-shrink:0}#appbar .scale-switch button{font:inherit;font-size:11px;padding:3px 6px;border:none;background:transparent;border-radius:5px;cursor:pointer;color:var(--muted)}#appbar .scale-switch button:hover{color:var(--line)}#appbar .scale-switch button.active{background:var(--accent);color:#fff}.cnc-toggle{display:inline-flex;align-items:center;gap:6px;border:none;border-radius:8px;cursor:pointer;padding:0 12px;height:36px;background:var(--chip);color:var(--muted);flex-shrink:0;transition:background .15s,color .15s}.cnc-toggle:hover{background:var(--chip-hover);color:var(--line)}.cnc-dot{width:8px;height:8px;border-radius:50%;background:var(--muted);flex-shrink:0;transition:background .15s}.cnc-label{font-size:12px;font-weight:600;line-height:1;white-space:nowrap}.cnc-state{font-size:11px;line-height:1;color:var(--muted)}.cnc-toggle.on{background:#eff6ff;color:#1d4ed8}.cnc-toggle.on:hover{background:#dbeafe}.cnc-toggle.on .cnc-dot{background:#2563eb}.cnc-toggle.on .cnc-state{color:#1d4ed8}.p24-toggle{display:inline-flex;align-items:center;gap:6px;border:none;border-radius:8px;cursor:pointer;padding:0 12px;height:36px;background:var(--chip);color:var(--muted);flex-shrink:0;transition:background .15s,color .15s}.p24-toggle:hover{background:var(--chip-hover);color:var(--line)}.p24-dot{width:8px;height:8px;border-radius:50%;background:var(--muted);flex-shrink:0;transition:background .15s}.p24-label{font-size:12px;font-weight:600;line-height:1;white-space:nowrap}.p24-state{font-size:11px;line-height:1;color:var(--muted)}.p24-toggle.on{background:#dcfce7;color:#166534}.p24-toggle.on:hover{background:#bbf7d0}.p24-toggle.on .p24-dot{background:#16a34a}.p24-toggle.on .p24-state{color:#166534}#canvasbar{grid-area:canvasbar;background:var(--panel);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:2px;padding:0 8px}#canvasbar .cbtn{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:none;background:transparent;border-radius:8px;cursor:pointer;padding:0 8px;font-size:12px;color:var(--line);height:61px;min-width:44px}#canvasbar .cbtn:hover,#canvasbar .cbtn.active{background:var(--chip)}#canvasbar .cbtn:disabled{cursor:not-allowed;opacity:.45}#canvasbar .cbtn:disabled:hover{background:transparent}#canvasbar .cbtn svg{width:24px;height:24px}#canvasbar .cbtn .lbl{line-height:1.4;white-space:nowrap}#canvasbar .csep{width:1px;height:86px;background:var(--border);margin:0 4px;flex-shrink:0}.toolbar-config{position:relative;flex-shrink:0}.toolbar-config--canvas{margin-left:auto}.toolbar-config--drawing{margin-top:auto}.toolbar-config__gear{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;padding:5px;border:0;border-radius:7px;color:var(--muted);background:transparent;cursor:pointer;opacity:.38;transition:opacity .15s,background-color .15s}.toolbar-config__gear:hover,.toolbar-config__gear:focus-visible,.toolbar-config__gear.is-open{opacity:1;background:var(--chip)}.toolbar-config__gear svg{width:18px;height:18px}.toolbar-config__popover{position:absolute;width:248px;padding:12px;box-sizing:border-box;border:1px solid var(--border);border-radius:10px;background:var(--panel);box-shadow:0 10px 32px #0f172a2e;z-index:1000;color:var(--line)}.toolbar-config--canvas .toolbar-config__popover{top:calc(100% + 8px);right:0}.toolbar-config--drawing .toolbar-config__popover{left:calc(100% + 8px);bottom:0}.toolbar-config__header{padding:1px 2px 10px;font-size:13px;font-weight:700}.toolbar-config__list{max-height:min(520px,calc(100vh - 180px));overflow-y:auto;scrollbar-width:thin}.toolbar-config__row{min-height:34px;display:flex;align-items:center;gap:10px;padding:2px;font-size:13px;cursor:pointer;user-select:none}.toolbar-config__row>span:first-child{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toolbar-config__row input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.toolbar-config__switch{position:relative;width:34px;height:20px;flex:0 0 34px;border-radius:999px;background:#cbd5e1;transition:background-color .15s}.toolbar-config__switch:after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0f172a4d;transition:transform .15s}.toolbar-config__row input:checked+.toolbar-config__switch{background:var(--accent)}.toolbar-config__row input:checked+.toolbar-config__switch:after{transform:translate(14px)}.toolbar-config__row input:focus-visible+.toolbar-config__switch{outline:2px solid var(--accent);outline-offset:2px}.toolbar-config__show-all{width:100%;margin-top:10px;padding:7px 10px;border:1px solid var(--border);border-radius:7px;background:transparent;color:var(--line);font:inherit;font-size:12px;cursor:pointer}.toolbar-config__show-all:hover{background:var(--chip)}#cncbar{grid-area:cncbar;background:#eff6ff;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:2px;padding:0 8px}#cncbar .modlabel{font-weight:700;font-size:11px;line-height:1.2;padding:0 8px 0 4px;color:var(--line);flex-shrink:0}#cncbar .csep{width:1px;height:86px;background:var(--border);margin:0 4px;flex-shrink:0}#cncbar .mbtn{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:none;background:transparent;border-radius:8px;cursor:pointer;padding:0 8px;font-size:12px;color:var(--line);height:61px;min-width:48px}#cncbar .mbtn:hover,#cncbar .mbtn.active{background:var(--chip)}#cncbar .mbtn svg{width:24px;height:24px}#cncbar .mbtn .cnc-ico{width:24px;height:24px;display:block;object-fit:contain;pointer-events:none}#cncbar .mbtn .lbl{line-height:1.33;white-space:nowrap}#cncbar .sp-group{display:inline-flex;align-items:center;gap:20px;padding:0 8px}#cncbar .sp-item{display:inline-flex;align-items:center;gap:12px}#cncbar .sp-label{font-size:11px;color:var(--muted);line-height:1.45}#cncbar .sp-pill{display:inline-flex;align-items:center;gap:4px;height:34px;padding:0 8px 0 10px;border:1px solid var(--border);border-radius:6px;background:#fff;min-width:62px}#cncbar .sp-pill input{border:none;outline:none;font:inherit;font-size:12px;width:28px;color:var(--line);background:transparent;-moz-appearance:textfield}#cncbar .sp-pill input::-webkit-outer-spin-button,#cncbar .sp-pill input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#cncbar .sp-unit{font-size:12px;color:var(--muted)}#cncbar .sp-gear{display:flex;align-items:center;color:var(--muted);cursor:pointer}#cncbar .sp-gear:hover{color:var(--line)}#cncbar .sp-gear svg{width:16px;height:16px}#p24bar{background-color:#f0fdf4;background-image:linear-gradient(to right,#f0fdf4 30%,#f0fdf400),linear-gradient(to right,#f0fdf400,#f0fdf4 70%),linear-gradient(to right,#11182759,#11182700),linear-gradient(to left,#11182759,#11182700);background-position:left,right,left,right;background-repeat:no-repeat;background-size:32px 100%,32px 100%,20px 100%,20px 100%;background-attachment:local,local,scroll,scroll;border-bottom:1px solid var(--border);align-items:center;gap:2px;padding:0 8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}#p24bar::-webkit-scrollbar{display:none;width:0;height:0}#p24bar .pbtn{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:none;background:transparent;border-radius:8px;cursor:pointer;padding:0 8px;font-size:12px;color:var(--line);height:61px;min-width:44px;flex-shrink:0}#p24bar .pbtn:hover{background:var(--chip)}#p24bar .pbtn.active{background:var(--chip);color:var(--accent)}#p24bar .pbtn:disabled{cursor:not-allowed;opacity:.42}#p24bar .pbtn svg{width:24px;height:24px}#p24bar .pbtn .lbl{line-height:1.4;white-space:nowrap}#p24bar .p24-onboarding-launch{display:inline-flex;width:30px;height:30px;flex:0 0 30px;align-items:center;justify-content:center;padding:0;border:1px solid rgba(37,99,235,.28);border-radius:50%;background:#ffffffa3;color:var(--accent);cursor:pointer}#p24bar .p24-onboarding-launch:hover:not(:disabled){border-color:var(--accent);background:#fff}#p24bar .p24-onboarding-launch:focus-visible{outline:2px solid var(--accent);outline-offset:2px}#p24bar .p24-onboarding-launch:disabled{border-color:#94a3b852;color:#94a3b8;cursor:not-allowed;opacity:.6}#p24bar .p24-onboarding-launch svg{width:19px;height:19px}#p24bar .psep{width:1px;height:86px;background:var(--border);margin:0 4px;flex-shrink:0}#p24bar .p24-modlabel{font-weight:700;font-size:11px;line-height:1.2;padding:0 8px 0 4px;color:var(--line);flex-shrink:0}#p24bar .p24-chk-spacer{display:inline-block;min-width:120px;flex-shrink:0}#p24bar .p24-seam-lbl{min-width:52px}#p24bar .p24-sel-pill select{min-width:80px}#p24bar .p24-ctrl-group{display:flex;flex-direction:column;justify-content:center;gap:1px;flex-shrink:0;padding:0 4px}#p24bar .p24-row{display:flex;align-items:center;gap:4px;height:28px}#p24bar .p24-chk{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--line);cursor:pointer;white-space:nowrap;min-width:120px}#p24bar .p24-chk input[type=checkbox]{width:14px;height:14px;cursor:pointer;margin:0;accent-color:var(--accent);flex-shrink:0}#p24bar .p24-ctrl-lbl{font-size:11px;color:var(--muted);white-space:nowrap;min-width:30px}#p24bar .p24-field-pill{display:inline-flex;align-items:center;height:24px;padding:0 6px;border:1px solid var(--border);border-radius:5px;background:#fff;gap:2px;min-width:60px}#p24bar .p24-field-pill input{border:none;outline:none;font:inherit;font-size:11px;width:40px;color:var(--line);background:transparent;-moz-appearance:textfield;text-align:right}#p24bar .p24-percent-field{min-width:0;padding-right:4px;padding-left:4px}#p24bar .p24-percent-field input{width:5ch}#p24bar .p24-field-pill input::-webkit-outer-spin-button,#p24bar .p24-field-pill input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#p24bar .p24-unit{font-size:11px;color:var(--muted)}#p24bar .p24-field-pill--readonly{background:var(--bg-muted, #f1f5f9);border-color:transparent}#p24bar .p24-field-pill--readonly input{color:var(--muted)}#p24bar .p24-ruler{display:flex;align-items:center;color:var(--muted)}#p24bar .p24-ruler svg{width:14px;height:14px}#p24bar .p24-sel-pill{display:inline-flex;align-items:center;height:24px;padding:0 4px 0 6px;border:1px solid var(--border);border-radius:5px;background:#fff;gap:2px}#p24bar .p24-sel-pill select{border:none;outline:none;font:inherit;font-size:11px;color:var(--line);background:transparent;cursor:pointer;appearance:none;-webkit-appearance:none}#p24bar .p24-sel-pill svg{width:12px;height:12px;color:var(--muted);flex-shrink:0;pointer-events:none}#p24bar .p24-auto-select-row .p24-chk{min-width:0}#p24bar .p24-fabric-width-pill select{width:6ch;min-width:0}.p24-ai-sketch-button{position:relative}.p24-ai-sketch-button:after{content:"AI";position:absolute;top:4px;right:3px;padding:1px 3px;border-radius:4px;background:#2563eb;color:#fff;font-size:7px;font-weight:800;line-height:1}.p24-ai-sketch-button:disabled:after{background:#94a3b8}.p24-ai-sketch-panel{position:fixed;z-index:8500;top:180px;left:10px;width:min(440px,calc(100vw - 20px));max-height:calc(100vh - 195px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #dbe3ef;border-radius:12px;background:#f8fafc;box-shadow:0 12px 36px #0f172a38;color:#172033}.p24-ai-sketch-header{position:relative;display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid #e2e8f0;background:#fff}.p24-ai-sketch-header-main{display:flex;flex:1;flex-direction:column;gap:2px}.p24-ai-sketch-header strong{font-size:16px}.p24-ai-sketch-header span{color:#64748b;font-size:12px}.p24-ai-sketch-timing{margin-top:3px;color:#2563eb;font-size:11px;font-weight:700}.p24-ai-sketch-header-actions{display:flex;align-items:center;gap:4px}.p24-ai-sketch-header-actions>button{display:grid;width:30px;height:30px;padding:0;place-items:center;border:none;border-radius:7px;background:transparent;color:#64748b;cursor:pointer;font-size:20px;line-height:1}.p24-ai-sketch-header-actions>button:hover,.p24-ai-sketch-header-actions>button.is-active{background:#eff6ff;color:#1d4ed8}.p24-ai-sketch-header-actions>button:disabled{cursor:default;opacity:.45}.p24-ai-sketch-header-actions>button svg{width:22px;height:22px}.p24-ai-sketch-settings{position:absolute;z-index:2;top:calc(100% - 4px);right:12px;display:flex;width:min(320px,calc(100vw - 48px));padding:12px;flex-direction:column;gap:7px;border:1px solid #dbe3ef;border-radius:10px;background:#fff;box-shadow:0 10px 28px #0f172a33}.p24-ai-sketch-settings>strong{font-size:13px}.p24-ai-sketch-settings>label{display:flex;padding:8px;align-items:center;gap:8px;border-radius:8px;background:#f8fafc;cursor:pointer}.p24-ai-sketch-settings>label input{accent-color:#2563eb}.p24-ai-sketch-settings>label span{display:flex;flex:1;flex-direction:column}.p24-ai-sketch-settings>label b{color:#172033;font-size:12px}.p24-ai-sketch-settings>em{color:#b91c1c;font-size:10px;font-style:normal}.p24-ai-sketch-drop{display:flex;min-height:300px;margin:16px;padding:30px 22px;align-items:center;justify-content:center;flex-direction:column;gap:10px;border:2px dashed #bfdbfe;border-radius:12px;background:#fff;text-align:center;transition:border-color .12s ease,background .12s ease}.p24-ai-sketch-drop.is-dragging{border-color:#2563eb;background:#eff6ff}.p24-ai-sketch-drop-icon{display:grid;width:50px;height:50px;place-items:center;border-radius:14px;background:#dbeafe;color:#1d4ed8;font-size:17px;font-weight:800}.p24-ai-sketch-drop>span,.p24-ai-sketch-drop>small{color:#64748b;font-size:12px}.p24-ai-sketch-upload-actions{display:flex;gap:8px;margin-top:8px}.p24-ai-sketch-upload-actions button,.p24-ai-sketch-review-title button{padding:8px 12px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#334155;cursor:pointer;font-weight:600}.p24-ai-sketch-upload-actions button:first-child{border-color:#2563eb;background:#2563eb;color:#fff}.p24-ai-sketch-preview{position:relative;min-height:180px;margin:14px 14px 0;overflow:hidden;border-radius:10px;background:#e2e8f0}.p24-ai-sketch-preview img{display:block;width:100%;max-height:260px;object-fit:contain}.p24-ai-sketch-preview-actions{position:absolute;right:8px;bottom:8px;display:flex;gap:6px}.p24-ai-sketch-preview-actions>button{padding:6px 9px;border:1px solid #cbd5e1;border-radius:8px;background:#fffffff0;color:#334155;cursor:pointer;font-size:11px;font-weight:600}.p24-ai-sketch-preview-actions>button:disabled{cursor:default;opacity:.5}.p24-ai-sketch-token{position:absolute;display:grid;min-width:18px;min-height:18px;place-items:center;border:2px solid #2563eb;border-radius:4px;background:#dbeafea6;color:#1d4ed8;font-size:10px;font-weight:800}.p24-ai-crop-backdrop{position:fixed;z-index:9000;inset:0;display:flex;padding:20px;align-items:center;justify-content:center;background:#0f172ab8}.p24-ai-crop-dialog{display:flex;width:min(780px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:16px;flex-direction:column;gap:12px;overflow:auto;border-radius:14px;background:#fff;box-shadow:0 24px 70px #0f172a61;color:#172033}.p24-ai-crop-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.p24-ai-crop-heading>div{display:flex;flex-direction:column;gap:3px}.p24-ai-crop-heading strong{font-size:18px}.p24-ai-crop-heading span{color:#64748b;font-size:12px}.p24-ai-crop-heading>button{width:30px;height:30px;padding:0;border:0;border-radius:7px;background:transparent;color:#64748b;cursor:pointer;font-size:24px}.p24-ai-crop-heading>button:hover{background:#f1f5f9}.p24-ai-crop-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:4px;border-radius:10px;background:#f1f5f9}.p24-ai-crop-modes button{padding:9px 12px;border:0;border-radius:7px;background:transparent;color:#475569;cursor:pointer;font-weight:700}.p24-ai-crop-modes button.is-active{background:#fff;color:#1d4ed8;box-shadow:0 1px 4px #0f172a1f}.p24-ai-crop-workspace{display:flex;min-height:240px;align-items:center;justify-content:center;overflow:hidden;border-radius:10px;background:#dbe3ef}.p24-ai-crop-frame{position:relative;max-width:100%;flex:0 0 auto;overflow:hidden;background:#fff;touch-action:none;user-select:none}.p24-ai-crop-frame.is-drawing{cursor:crosshair}.p24-ai-crop-frame.is-panning{cursor:grab}.p24-ai-crop-frame.is-panning:active{cursor:grabbing}.p24-ai-crop-frame>img{display:block;width:100%;height:100%;object-fit:fill;pointer-events:none;transform-origin:center}.p24-ai-crop-frame>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.p24-ai-crop-view-controls{display:flex;align-items:center;justify-content:center;gap:6px}.p24-ai-crop-view-controls button,.p24-ai-crop-actions button{padding:8px 11px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#334155;cursor:pointer;font-weight:650}.p24-ai-crop-view-controls button.is-active{border-color:#60a5fa;background:#eff6ff;color:#1d4ed8}.p24-ai-crop-view-controls button:disabled,.p24-ai-crop-actions button:disabled{cursor:default;opacity:.45}.p24-ai-crop-error{padding:9px 11px;border:1px solid #fecaca;border-radius:8px;background:#fef2f2;color:#b91c1c;font-size:12px}.p24-ai-crop-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.p24-ai-crop-actions>div{display:flex;flex-wrap:wrap;gap:6px}.p24-ai-crop-actions .p24-ai-crop-confirm{border-color:#2563eb;background:#2563eb;color:#fff}@media(max-width:600px){.p24-ai-crop-backdrop{padding:8px}.p24-ai-crop-dialog{width:calc(100vw - 16px);max-height:calc(100vh - 16px);padding:12px}.p24-ai-crop-heading strong{font-size:16px}.p24-ai-crop-modes button{padding:8px 4px;font-size:12px}.p24-ai-crop-actions{align-items:stretch;flex-direction:column}.p24-ai-crop-actions .p24-ai-crop-confirm{width:100%}}.p24-ai-sketch-progress{display:flex;padding:18px;align-items:center;flex-direction:column;gap:7px;text-align:center}.p24-ai-sketch-progress span{width:30px;height:30px;border:3px solid #dbeafe;border-top-color:#2563eb;border-radius:50%;animation:p24-ai-sketch-spin .8s linear infinite}.p24-ai-sketch-progress small{color:#64748b}.p24-ai-sketch-progress b{color:#1d4ed8;font-size:20px;font-variant-numeric:tabular-nums}.p24-ai-sketch-error{margin:12px 14px 0;padding:10px 12px;border:1px solid #fecaca;border-radius:8px;background:#fef2f2;color:#b91c1c;font-size:12px}.p24-ai-sketch-retry{display:flex;margin:10px 14px 0;padding:11px;flex-direction:column;gap:7px;border:1px solid #bfdbfe;border-radius:9px;background:#eff6ff}.p24-ai-sketch-retry>strong{color:#1e3a8a;font-size:12px}.p24-ai-sketch-retry>span{color:#475569;font-size:10px}.p24-ai-sketch-retry select,.p24-ai-sketch-retry button{padding:8px 10px;border:1px solid #93c5fd;border-radius:7px;background:#fff;color:#1d4ed8;font-weight:700}.p24-ai-sketch-retry button{cursor:pointer}.p24-ai-sketch-retry button:disabled{cursor:default;opacity:.45}.p24-ai-sketch-review{display:flex;min-height:0;padding:14px;flex-direction:column;gap:10px;overflow:hidden}.p24-ai-sketch-review-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.p24-ai-sketch-review-title>div{display:flex;flex-direction:column}.p24-ai-sketch-review-title span{color:#64748b;font-size:11px}.p24-ai-sketch-review-title button{padding:6px 9px;font-size:11px}.p24-ai-sketch-closure-warning,.p24-ai-sketch-closure-ok{padding:9px 10px;border:1px solid #fed7aa;border-radius:8px;background:#fff7ed;color:#c2410c;font-size:12px;font-weight:600}.p24-ai-sketch-closure-ok{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.p24-ai-sketch-corrections{display:flex;padding:10px;flex-direction:column;gap:4px;border:1px solid #bfdbfe;border-radius:9px;background:#eff6ff}.p24-ai-sketch-corrections>strong{color:#1e3a8a;font-size:12px}.p24-ai-sketch-corrections>span{color:#475569;font-size:10px}.p24-ai-sketch-corrections>div{display:flex;margin-top:4px;flex-direction:column;gap:4px}.p24-ai-sketch-correction{display:flex;min-height:30px;padding:4px 5px 4px 8px;align-items:center;justify-content:space-between;gap:8px;border-radius:7px;background:#fff}.p24-ai-sketch-correction>span{display:flex;min-width:0;flex-direction:column;color:#334155;font-size:10px}.p24-ai-sketch-correction b{color:#1d4ed8}.p24-ai-sketch-correction button{padding:5px 7px;flex-shrink:0;border:1px solid #93c5fd;border-radius:6px;background:#fff;color:#1d4ed8;cursor:pointer;font-size:10px;font-weight:700}.p24-ai-sketch-side-list{display:flex;min-height:0;flex-direction:column;gap:6px;overflow-y:auto}.p24-ai-sketch-side{display:grid;grid-template-columns:24px minmax(78px,1fr) 148px auto;align-items:center;gap:6px}.p24-ai-sketch-side-number{display:grid;width:22px;height:22px;place-items:center;border-radius:50%;background:#dbeafe;color:#1d4ed8;font-size:11px;font-weight:700}.p24-ai-sketch-side label{display:flex;align-items:center;overflow:hidden;border:1px solid #cbd5e1;border-radius:7px;background:#fff}.p24-ai-sketch-side label input{min-width:0;width:100%;padding:7px 3px 7px 8px;border:none;outline:none}.p24-ai-sketch-side label span{padding-right:7px;color:#64748b;font-size:11px}.p24-ai-sketch-side.is-inferred>label{border-color:#f59e0b;background:#fff7ed}.p24-ai-sketch-side.is-inferred .p24-ai-sketch-side-number{background:#ffedd5;color:#c2410c}.p24-ai-sketch-turn-controls{display:grid;min-width:0;grid-template-columns:minmax(82px,1fr) 58px;gap:4px}.p24-ai-sketch-side select{min-width:0;padding:7px 4px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#334155}.p24-ai-sketch-side .p24-ai-sketch-angle input{padding-left:6px}.p24-ai-sketch-side .p24-ai-sketch-angle input:disabled{color:#94a3b8;background:#f8fafc}.p24-ai-sketch-side-actions{display:flex;gap:2px}.p24-ai-sketch-side-actions button{width:24px;height:28px;padding:0;border:1px solid #cbd5e1;border-radius:6px;background:#fff;cursor:pointer}.p24-ai-sketch-side-actions button:disabled{cursor:default;opacity:.35}.p24-ai-sketch-warnings{margin:0;padding:9px 10px 9px 26px;border-radius:8px;background:#fff7ed;color:#9a3412;font-size:11px}.p24-ai-sketch-apply{padding:10px 16px;border:none;border-radius:8px;background:#2563eb;color:#fff;cursor:pointer;font-weight:700}.p24-ai-sketch-apply:disabled{cursor:wait;opacity:.6}@keyframes p24-ai-sketch-spin{to{transform:rotate(360deg)}}#matbar{background-color:var(--panel);background-image:linear-gradient(to right,var(--panel) 30%,rgba(255,255,255,0)),linear-gradient(to right,rgba(255,255,255,0),var(--panel) 70%),linear-gradient(to right,#11182759,#11182700),linear-gradient(to left,#11182759,#11182700);background-position:left,right,left,right;background-repeat:no-repeat;background-size:32px 100%,32px 100%,20px 100%,20px 100%;background-attachment:local,local,scroll,scroll;border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:0 12px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}#matbar::-webkit-scrollbar{display:none}#matbar .mb-panel{display:inline-flex;align-items:center;gap:8px;background:#e0e7ee;border-radius:8px;padding:4px 4px 4px 12px;align-self:stretch;flex-shrink:0}#matbar .mb-panel--wide{padding-right:8px}#matbar .mb-panel--comment{padding:8px 12px;cursor:pointer;font-size:13px;color:#000;transition:background .15s}#matbar .mb-panel--comment:hover{background:#d4dde6}#matbar .mb-panel--comment-active{background:#dbeafe}#matbar .mb-panel--comment-active:hover{background:#bfdbfe}#matbar .mb-panel--error{background:#fee2e2;outline:1.5px solid #ef4444}#matbar .mb-panel--error .mb-lbl{color:#b91c1c}#matbar .mb-lbl{font-size:13px;color:#000;white-space:nowrap;flex-shrink:0}#matbar .mb-select-pill{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid #e0e7ee;border-radius:8px;padding:0 8px;height:32px;flex-shrink:0}#matbar .mb-sel{border:none;outline:none;background:transparent;font:inherit;font-size:13px;color:#000;cursor:pointer;appearance:none;-webkit-appearance:none;white-space:nowrap;max-width:120px}#matbar .mb-sel--wide{max-width:340px}#matbar .mb-arr{width:12px;height:12px;flex-shrink:0;pointer-events:none;color:#000;transition:transform .15s}#matbar .mb-arr--up{transform:rotate(180deg)}#matbar .mb-select-pill--click{cursor:pointer;user-select:none;max-width:380px}#matbar .mb-select-pill--click:hover{border-color:#b0bec5}#matbar .mb-select-pill--empty{border-style:dashed;border-color:#b0bec5}#matbar .mb-sel-val{font-size:13px;color:#000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1}#matbar .mb-select-pill--empty .mb-sel-val{color:var(--muted)}.mb-drop{position:fixed;z-index:10000;background:#fff;border:1px solid #e0e7ee;border-radius:10px;box-shadow:0 8px 32px #00000029;overflow-y:auto;max-height:340px;scrollbar-width:thin}.mb-drop-header{padding:6px 14px 5px;font-size:11px;color:#1d4ed8;background:#eff6ff;border-bottom:1px solid #dbeafe;font-weight:500;white-space:nowrap}.mb-drop-item{padding:8px 14px;font-size:13px;color:#000;cursor:pointer;white-space:nowrap;border-bottom:1px solid #f0f3f7}.mb-drop-item:last-child{border-bottom:none}.mb-drop-hint{padding:8px 14px;font-size:13px;color:#64748b;white-space:normal;cursor:default}.mb-drop-item:hover{background:#f5f7f8}.mb-drop-item--on{background:#2563eb;color:#fff}.mb-drop-item--on:hover{background:#1d4ed8}.mb-drop-item--check{display:flex;align-items:center;gap:8px}.mb-drop-item--check svg{width:16px;height:16px;flex-shrink:0}.mb-drop-item--check input[type=checkbox]{width:14px;height:14px;margin:0;flex-shrink:0;accent-color:var(--accent);cursor:pointer}.mb-drop-item--disabled{opacity:.45;cursor:not-allowed}.mb-drop-item--disabled:hover{background:transparent}.mb-drop-item--disabled input[type=checkbox]{cursor:not-allowed}.mb-tip{position:fixed;z-index:10001;background:var(--chip);color:var(--line);font-size:12px;line-height:1.4;padding:6px 12px;border-radius:10px;max-width:240px;white-space:normal;pointer-events:none}.mb-tip:before{content:"";position:absolute;left:100%;top:50%;transform:translateY(-50%);border:5px solid transparent;border-left-color:var(--chip)}#matbar .mb-gear{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border:none;background:none;cursor:pointer;border-radius:6px;padding:4px;color:var(--muted);flex-shrink:0}#matbar .mb-gear:hover{background:#00000012}.stub svg{opacity:.55}#nest-panel,#pattern-panel,#gcode-panel{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:10px;padding:10px 14px;font-size:12px;box-shadow:0 4px 12px #00000014;z-index:25;flex-wrap:wrap;display:none;align-items:center;gap:10px;max-width:calc(100% - 24px)}#nest-panel.show,#pattern-panel.show{display:flex}#gcode-panel{box-sizing:border-box;flex-direction:column;align-items:stretch;gap:6px;width:min(680px,calc(100% - 24px));max-height:calc(100% - 64px);overflow-y:auto}#gcode-panel.show{display:flex}#gcode-panel .gcode-panel-header,#gcode-panel .gcode-panel-row,#gcode-panel .gcode-panel-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}#gcode-panel .gcode-panel-header select{flex:1;min-width:140px}#gcode-panel .gcode-panel-row label{white-space:nowrap}#gcode-panel .gcode-panel-status{color:var(--muted);font-variant-numeric:tabular-nums}#gcode-panel .gcode-status-time{color:#2563eb}#gcode-panel .gcode-status-legend{color:#16a34a}#gcode-panel .gcode-status-warning{color:#b45309}#nest-panel{width:fit-content;flex-direction:column;align-items:flex-start;gap:6px}#nest-panel .nest-panel-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px}#nest-panel .nest-panel-status{font-variant-numeric:tabular-nums}#pattern-panel{width:fit-content;flex-direction:column;align-items:flex-start;gap:6px}#pattern-panel .pattern-panel-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px}#pattern-panel .pattern-panel-status{color:var(--muted);font-variant-numeric:tabular-nums}#tools{grid-area:tools;background:var(--panel);border-right:1px solid var(--border);padding:8px 0;display:flex;flex-direction:column;gap:8px;align-items:center}.tool{width:40px;height:40px;border:none;background:transparent;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--line);padding:0;position:relative}.tool:hover{background:var(--chip);color:var(--line)}.tool:hover .tool-tip{opacity:1}.tool.active{background:var(--chip);color:var(--line)}.tool svg{width:26px;height:26px}.tool-sep{width:32px;height:1px;background:var(--border)}.tool-flyout-arrow{position:absolute;right:0;bottom:0;width:10px;height:10px;cursor:pointer}.tool-flyout-arrow:after{content:"";position:absolute;right:3px;bottom:3px;width:0;height:0;border-style:solid;border-width:0 0 6px 6px;border-color:transparent transparent var(--line) transparent}.tool-tip{position:absolute;left:calc(100% + 10px);top:50%;transform:translateY(-50%);background:var(--chip);color:var(--line);font-size:12px;padding:5px 12px;border-radius:100px;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .12s;z-index:200}.tool-tip:before{content:"";position:absolute;right:100%;top:50%;transform:translateY(-50%);border:5px solid transparent;border-right-color:var(--chip)}#canvas-wrap{grid-area:canvas;position:relative;background:#fff;overflow:hidden}#paint-side-layer{position:absolute;inset:0;z-index:4;pointer-events:none}#paint-side-layer button{position:absolute;box-sizing:border-box;margin:0;padding:0;pointer-events:auto;border:1px solid #64748b;border-radius:3px;background:#fffffff5;color:#111827;font:600 13px Arial,sans-serif;line-height:1;cursor:pointer}#paint-side-layer button.on{background:#2563eb;border-color:#1d4ed8;color:#fff}canvas{display:block;width:100%;height:100%;cursor:none}#cursor-hint{position:absolute;pointer-events:none;background:#111827eb;color:#fff;padding:4px 8px;border-radius:4px;font-size:11px;font-family:ui-monospace,Menlo,monospace;transform:translate(12px,-28px);white-space:nowrap;display:none}#calccard{position:absolute;top:0;left:0;right:0;height:40px;background-color:var(--bg);background-image:linear-gradient(to right,var(--bg) 30%,rgba(255,255,255,0)),linear-gradient(to right,rgba(255,255,255,0),var(--bg) 70%),linear-gradient(to right,#11182759,#11182700),linear-gradient(to left,#11182759,#11182700);background-position:left,right,left,right;background-repeat:no-repeat;background-size:32px 100%,32px 100%,20px 100%,20px 100%;background-attachment:local,local,scroll,scroll;border-bottom:1px solid var(--border);display:flex;align-items:center;padding:0 8px;gap:6px;font-size:12px;z-index:20;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}#calccard::-webkit-scrollbar{display:none}#calccard .cc-group{display:inline-flex;align-items:center;gap:6px;padding:4px 4px 4px 12px;background:var(--border);border-radius:8px;white-space:nowrap;align-self:stretch;flex-shrink:0}#calccard .cc-lbl{color:var(--line);font-size:13px;white-space:nowrap}#calccard .cc-group--error{background:#fee2e2;box-shadow:inset 0 0 0 1.5px #ef4444}#calccard .cc-group--error .cc-lbl{color:#b91c1c}#calccard .cc-chip{display:inline-flex;align-items:center;height:22px;padding:0 7px;background:var(--panel);border:1px solid var(--border);border-radius:6px;font-size:13px;color:var(--muted);white-space:nowrap}#calccard .cc-select-pill{display:inline-flex;align-items:center;gap:8px;background:var(--panel);border:1px solid var(--border);border-radius:8px;padding:0 8px;height:32px;flex-shrink:0}#calccard .cc-select-pill--stepper{gap:4px;padding:0 6px}#calccard .cc-select-pill--click{cursor:pointer;user-select:none;max-width:200px}#calccard .cc-select-pill--click:hover{border-color:var(--muted)}#calccard .cc-select-pill--wide{width:280px;max-width:280px}#calccard .cc-select-pill--half{width:140px;max-width:140px}#calccard .cc-select-pill--empty{border-style:dashed;border-color:var(--muted)}#calccard .cc-select-pill--required{border:1.5px solid #ef4444;opacity:1}#calccard .cc-select-pill--required:hover{border-color:#ef4444}#calccard .cc-select-pill--required.cc-select-pill--disabled{opacity:1;cursor:not-allowed}#calccard .cc-sel-val{font-size:13px;color:var(--line);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1}#calccard .cc-select-pill--empty .cc-sel-val{color:var(--muted)}#calccard .cc-select-pill--disabled{cursor:not-allowed;opacity:.5}#calccard .cc-sel{font:inherit;font-size:13px;padding:0;border:none;background:transparent;outline:none;color:var(--line);cursor:pointer;appearance:none;-webkit-appearance:none;white-space:nowrap}#calccard .cc-sel:focus{outline:1px solid var(--accent);border-radius:3px}#calccard .cc-arr{width:12px;height:12px;flex-shrink:0;pointer-events:none;color:var(--muted);transition:transform .15s}#calccard .cc-arr--up{transform:rotate(180deg)}#calccard .cc-ico{width:26px;height:26px;border:none;background:transparent;border-radius:6px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);padding:0;flex-shrink:0}#calccard .cc-ico:hover{background:var(--chip);color:var(--line)}#calccard .cc-ico:disabled{cursor:not-allowed;opacity:.5}#calccard .cc-ico--active{background:#dbeafe;color:#2563eb}#calccard .cc-ico--active:hover{background:#bfdbfe;color:#2563eb}#calccard .cc-step{width:18px;height:18px;border:none;background:transparent;border-radius:50%;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);padding:0;flex-shrink:0}#calccard .cc-step:hover{color:var(--line)}#calccard .cc-step:disabled{cursor:not-allowed}#calccard .cc-val{font-size:13px;color:var(--line);min-width:14px;text-align:center}#calccard .cc-comment{display:inline-flex;align-items:center;gap:8px;border:none;background:var(--border);cursor:pointer;font:inherit;font-size:13px;color:var(--line);padding:8px 12px;white-space:nowrap;border-radius:8px;align-self:stretch;flex-shrink:0;transition:background .15s}#calccard .cc-comment:hover{background:var(--chip-hover)}#calccard .cc-comment--active{background:#dbeafe}#calccard .cc-comment--active:hover{background:#bfdbfe}#cnc-summary{position:absolute;left:50%;transform:translate(-50%);bottom:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px 12px;font-size:12px;font-variant-numeric:tabular-nums;box-shadow:0 2px 8px #0000000f;z-index:30;display:flex;align-items:center;flex-wrap:nowrap;gap:14px;max-width:calc(100% - 24px);overflow-x:auto}#cnc-summary .item{display:inline-flex;align-items:center;white-space:nowrap;color:#374151;line-height:1.2}#cnc-summary .item b{color:var(--line);margin-right:4px}#cnc-summary .item .sub{color:#6b7280;margin-left:4px;font-size:11px}#cnc-summary .item.muted,#cnc-summary .item.muted b{color:#9ca3af}#cnc-summary .item.warn,#cnc-summary .item.warn b{color:#b45309}#cnc-summary button.cnc-waste-btn{display:inline-flex;align-items:center;gap:6px;border:1px solid #cbd5e1;background:#f8fafc;font:inherit;color:#374151;padding:3px 8px 3px 6px;border-radius:8px;cursor:pointer;box-shadow:0 1px #0f172a0a}#cnc-summary button.cnc-waste-btn:hover{background:#f1f5f9;border-color:#94a3b8}#cnc-summary button.cnc-waste-btn:focus{outline:none}#cnc-summary button.cnc-waste-btn:focus-visible{outline:2px solid rgba(37,99,235,.45);outline-offset:1px}#cnc-summary button.cnc-waste-btn:before{content:"";width:16px;height:10px;border-radius:2px;flex-shrink:0;background:repeating-linear-gradient(-45deg,transparent,transparent 2px,currentColor 2px,currentColor 3px)}#cnc-summary button.cnc-waste-btn--total:before{color:#2563eb;background-color:#2563eb1f}#cnc-summary button.cnc-waste-btn--clean:before{color:#dc2626;background-color:#dc26261a}#cnc-summary button.cnc-waste-btn--business:before{color:#16a34a;background-color:#16a34a1f}#cnc-summary button.cnc-waste-btn.is-on-total{background:#2563eb24;border-color:#2563eb}#cnc-summary button.cnc-waste-btn.is-on-clean{background:#dc26261f;border-color:#dc2626}#cnc-summary button.cnc-waste-btn.is-on-business{background:#16a34a29;border-color:#16a34a}.cnc-metric-toggle{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;font-weight:600;cursor:pointer;white-space:nowrap;flex-shrink:0}.cnc-metric-toggle input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.cnc-metric-slider{position:relative;width:30px;height:18px;border-radius:999px;background:#cbd5e1;transition:background .15s ease;flex-shrink:0}.cnc-metric-slider:before{content:"";position:absolute;width:14px;height:14px;top:2px;left:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0f172a40;transition:transform .15s ease}.cnc-metric-toggle input:checked+.cnc-metric-slider{background:var(--accent)}.cnc-metric-toggle input:checked+.cnc-metric-slider:before{transform:translate(12px)}.cnc-metric-toggle input:focus-visible+.cnc-metric-slider{outline:2px solid rgba(37,99,235,.35);outline-offset:2px}.modal-back{position:fixed;inset:0;background:#0f172a66;display:flex;align-items:center;justify-content:center;z-index:200}.modal{background:#fff;border-radius:12px;padding:18px 20px;box-shadow:0 12px 48px #00000040;min-width:720px;max-width:90vw;max-height:86vh;overflow-y:auto}.modal h2{margin:0 0 14px;font-size:16px}.modal .mat-list{width:100%;border-collapse:collapse;font-size:12px}.modal .mat-list th{text-align:left;color:var(--muted);font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.05em;padding:6px 8px;border-bottom:1px solid var(--border)}.modal .mat-list td{padding:6px 8px;border-bottom:1px solid var(--border);vertical-align:middle}.modal .mat-list tr:hover{background:#f9fafb}.modal .mat-list input[type=text],.modal .mat-list input[type=number]{width:100%;padding:3px 6px;border:1px solid transparent;background:transparent;font:inherit;font-size:12px;border-radius:4px}.modal .mat-list input:focus{background:#fff;border-color:var(--accent);outline:none}.modal .mat-list .sheets-input{width:130px}.modal .actions{display:flex;gap:8px;justify-content:flex-end;margin-top:14px}.modal .actions button{font:inherit;font-size:12px;padding:6px 12px;border:1px solid var(--border);background:#fff;border-radius:5px;cursor:pointer}.modal .actions button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.modal .actions button.primary:hover{background:#1d4ed8}.modal .swatch-input{width:24px;height:22px;border:1px solid var(--border);border-radius:4px;padding:0}.modal .row-actions{white-space:nowrap}.modal .row-actions button{font-size:11px;padding:2px 8px;border:1px solid var(--border);background:#fff;border-radius:4px;cursor:pointer;color:var(--line)}.modal .row-actions button.danger{color:#b91c1c;border-color:#fca5a5}.modal .row-actions button:hover{background:#f3f4f6}.modal .add-row{padding-top:8px}.modal .add-row button{font:inherit;font-size:12px;padding:6px 12px;border:1px solid var(--border);background:#fff;border-radius:5px;cursor:pointer}.order-exit-modal{width:min(420px,calc(100vw - 32px));background:#fff;border-radius:12px;padding:20px;box-shadow:0 12px 48px #00000040}.order-exit-modal h2{margin:0 0 8px;font-size:17px;color:var(--line)}.order-exit-modal p{margin:0;color:var(--muted);font-size:13px;line-height:1.45}.order-exit-modal__error{margin-top:12px!important;color:#b91c1c!important}.order-exit-modal__actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:18px}.order-exit-modal__button{font:inherit;font-size:13px;padding:8px 12px;border:1px solid var(--border);background:#fff;border-radius:6px;cursor:pointer;color:var(--line)}.order-exit-modal__button:hover:not(:disabled){background:var(--chip)}.order-exit-modal__button:disabled{cursor:wait;opacity:.65}.order-exit-modal__button--primary{background:var(--accent);border-color:var(--accent);color:#fff}.order-exit-modal__button--primary:hover:not(:disabled){background:#1d4ed8}.order-exit-modal__button--danger{color:#b91c1c;border-color:#fca5a5}.confirm-modal{width:min(380px,calc(100vw - 32px));background:#fff;border-radius:12px;padding:20px;box-shadow:0 12px 48px #00000040}.confirm-modal h2{margin:0 0 8px;font-size:17px;color:var(--line)}.confirm-modal p{margin:0;color:var(--muted);font-size:13px;line-height:1.45}.confirm-modal__actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:18px}.confirm-modal__button{font:inherit;font-size:13px;padding:8px 12px;border:1px solid var(--border);background:#fff;border-radius:6px;cursor:pointer;color:var(--line)}.confirm-modal__button:hover{background:var(--chip)}.confirm-modal__button--primary{background:var(--accent);border-color:var(--accent);color:#fff}.confirm-modal__button--primary:hover{background:#1d4ed8}.mf-backdrop{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center}.mf-header--drag{margin:-20px -20px 0;padding:8px 8px 8px 14px;background:#dcdfe3;border-radius:12px 12px 0 0;cursor:grab;user-select:none;touch-action:none}.mf-header--drag:active{cursor:grabbing}.mf-modal{background:#fff;border-radius:12px;padding:20px;box-shadow:0 12px 48px #00000038;width:760px;max-width:min(96vw,900px);max-height:90vh;overflow:hidden;display:flex;flex-direction:column;gap:12px;font-size:13px;color:#000}.mf-header{display:flex;align-items:center;justify-content:space-between}.mf-title{font-size:15px;font-weight:600}.mf-close{border:none;background:none;cursor:pointer;color:var(--muted);border-radius:6px;padding:4px;display:flex;align-items:center;justify-content:center}.mf-close:hover{background:#f3f4f6;color:#000}.mf-tag-input-wrap{display:flex;flex-wrap:wrap;align-items:center;gap:5px;border:1px solid #e0e7ee;border-radius:8px;padding:6px 36px 6px 8px;background:#f5f7f8;cursor:text;min-height:38px;position:relative;box-sizing:border-box}.mf-tag-input-wrap:focus-within{border-color:#2563eb;background:#fff}.mf-input-tag{display:inline-flex;align-items:center;gap:4px;background:#dbeafe;border:1px solid #93c5fd;color:#1d4ed8;border-radius:6px;padding:2px 6px;font-size:13px;white-space:nowrap}.mf-input-tag-x{border:none;background:none;cursor:pointer;color:#1d4ed8;padding:0;display:inline-flex;align-items:center;opacity:.7}.mf-input-tag-x:hover{opacity:1}.mf-tag-input{border:none;outline:none;background:transparent;font:inherit;font-size:13px;min-width:120px;flex:1;color:#000}.mf-tag-input::placeholder{color:var(--muted)}.mf-tag-input-icons{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:4px;color:var(--muted);pointer-events:none}.mf-tag-input-clear{pointer-events:all;border:none;background:none;cursor:pointer;color:var(--muted);padding:2px;display:flex;align-items:center;border-radius:4px}.mf-tag-input-clear:hover{background:#e0e7ee;color:#000}.mf-col-hdr{font-size:12px;color:var(--muted);white-space:nowrap;display:flex;align-items:center;gap:4px}.mf-col-clear{cursor:pointer;display:inline-flex;align-items:center;color:#ef4444;opacity:.7}.mf-col-clear:hover{opacity:1}.mf-section-hdr{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.mf-badge{font-size:11px;background:#dbeafe;color:#1d4ed8;border:1px solid #93c5fd;border-radius:4px;padding:1px 6px;white-space:nowrap}.mf-section-lbl{font-size:13px;color:var(--muted);white-space:nowrap}.mf-link{border:none;background:none;cursor:pointer;font:inherit;font-size:13px;color:#2563eb;padding:0;white-space:nowrap}.mf-link:hover{text-decoration:underline}.mf-icon-btn{border:none;background:none;cursor:pointer;color:var(--muted);border-radius:6px;padding:3px;display:flex;align-items:center}.mf-icon-btn:hover{background:#f3f4f6;color:#000}.mf-icon-btn--active{background:#dbeafe;color:#2563eb}.mf-settings-panel{position:absolute;right:0;top:calc(100% + 6px);z-index:100;background:#fff;border:1px solid #e0e7ee;border-radius:10px;box-shadow:0 8px 28px #00000029;padding:12px 14px;min-width:200px}.mf-settings-hdr{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.mf-settings-title{font-size:13px;font-weight:600;color:#000}.mf-settings-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:5px 0}.mf-settings-lbl{font-size:13px;color:#000}.mf-toggle{width:36px;height:20px;border-radius:10px;border:none;background:#d1d5db;position:relative;cursor:pointer;transition:background .18s;flex-shrink:0;padding:0}.mf-toggle:after{content:"";position:absolute;width:16px;height:16px;border-radius:50%;background:#fff;top:2px;left:2px;transition:left .18s;box-shadow:0 1px 3px #00000040}.mf-toggle--on{background:#2563eb}.mf-toggle--on:after{left:18px}.mf-filters{display:flex;align-items:flex-start;flex-wrap:nowrap;gap:12px;flex-shrink:0;overflow-x:auto;padding-bottom:2px;scrollbar-width:thin}.mf-filter-col{display:flex;flex-direction:column;gap:6px;flex:1 1 140px;min-width:140px}.mf-tags{display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;gap:4px;max-height:160px;overflow-y:auto;scrollbar-width:thin}.mf-tag{display:inline-flex;align-items:center;gap:4px;border:1px solid #e0e7ee;background:#f5f7f8;border-radius:6px;padding:4px 8px;font:inherit;font-size:12px;cursor:pointer;text-align:left;white-space:nowrap}.mf-tag:hover{background:#e0e7ee}.mf-tag--on{background:#dbeafe;border-color:#93c5fd;color:#1d4ed8}.mf-tag--on:hover{background:#bfdbfe}.mf-tag-x{display:inline-flex;align-items:center;margin-left:2px}.mf-divider{height:1px;background:#e0e7ee;margin:0 -4px}.mf-link:disabled{color:var(--muted);cursor:default;opacity:.6}.mf-link:disabled:hover{text-decoration:none}.mf-modal--fixed{height:940px;width:880px;max-width:min(96vw,1020px)}.mf-sections-split{display:flex;gap:12px;flex:1;min-height:0}.mf-sections{width:190px;flex-shrink:0;overflow-y:auto;border:1px solid #e0e7ee;border-radius:8px;padding:6px;scrollbar-width:thin}.mf-sections-item{display:flex;align-items:center;gap:4px;padding:4px 8px;border-radius:8px;cursor:pointer;font-size:13px;color:#1f2937}.mf-sections-item:hover{background:#e0e7ee}.mf-sections-item.mf-sections-item--active{background:#e0e7ee;color:#1f2937}.mf-sections-caret{width:12px;height:18px;flex-shrink:0;display:flex;align-items:center;justify-content:center;color:#8ea2b5;cursor:pointer}.mf-sections-caret svg{transition:transform .15s ease}.mf-sections-folder-icon{width:18px;height:18px;flex-shrink:0;display:flex;align-items:center;justify-content:center;color:#384c5f}.mf-sections-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mf-sections-right{flex:1;min-width:0;display:flex;flex-direction:column;gap:12px;min-height:0}.mf-table-wrap{border:1px solid #e0e7ee;border-radius:8px;overflow-y:auto;flex:1;min-height:0;scrollbar-width:thin}.mf-table{width:100%;border-collapse:collapse;font-size:13px}.mf-table th{text-align:left;color:var(--muted);font-weight:500;font-size:12px;padding:8px 12px;border-bottom:1px solid #e0e7ee;background:#f5f7f8}.mf-th-sm{width:64px}.mf-th-size,.mf-th-price{width:1%;white-space:nowrap}.mf-table td{padding:8px 12px;border-bottom:1px solid #f0f3f7;cursor:pointer}.mf-td-sm{width:64px;color:var(--muted)}.mf-td-size{width:1%;white-space:nowrap;color:var(--muted)}.mf-td-price{width:1%;white-space:nowrap;text-align:right;color:var(--muted);font-variant-numeric:tabular-nums}.mf-table tbody tr:last-child td{border-bottom:none}.mf-table tbody tr:hover{background:#f5f7f8}.mf-row--selected td{background:#2563eb!important;color:#fff!important}.mf-row--selected .mf-td-sm,.mf-row--selected .mf-td-size,.mf-row--selected .mf-td-price{color:#fffc!important}.mf-price-th{position:relative;display:inline-flex}.mf-price-th-label{display:inline-flex;align-items:center;gap:3px;cursor:pointer;user-select:none}.mf-price-popover{position:absolute;top:calc(100% + 4px);right:0;z-index:50;min-width:140px;background:#fff;border:1px solid #e0e7ee;border-radius:8px;box-shadow:0 8px 28px #00000029;padding:4px;display:flex;flex-direction:column}.mf-price-popover-item{font:inherit;font-size:12px;text-align:left;padding:6px 8px;border:none;background:none;border-radius:5px;cursor:pointer;color:#000;white-space:nowrap}.mf-price-popover-item:hover{background:#f3f4f6}.mf-price-popover-item--active{background:#dbeafe;color:#1d4ed8;font-weight:500}.mf-row--bound td{background:#eff6ff!important}.mf-footer{display:flex;gap:8px;justify-content:flex-end;padding-top:4px;flex-shrink:0;border-top:1px solid #f0f3f7;margin-top:4px}.mf-btn{font:inherit;font-size:13px;padding:8px 20px;border:1px solid #e0e7ee;background:#f5f7f8;border-radius:8px;cursor:pointer;color:#000}.mf-btn:hover{background:#e0e7ee}.mf-btn--primary{background:#2563eb;color:#fff;border-color:#2563eb}.mf-btn--primary:hover{background:#1d4ed8;border-color:#1d4ed8}.cm-modal{background:#f5f7f8;border-radius:12px;padding:24px;box-shadow:0 12px 48px #00000038;width:560px;max-width:96vw;display:flex;flex-direction:column;gap:16px;font-size:13px;color:#000}.cm-header{display:flex;align-items:center;justify-content:space-between}.cm-title{font-size:15px;font-weight:600;color:#000}.cm-close{border:none;background:none;cursor:pointer;color:var(--muted);border-radius:6px;padding:4px;display:flex;align-items:center}.cm-close:hover{background:#e0e7ee;color:#000}.cm-close:disabled{opacity:.5;cursor:not-allowed}.cm-field{display:flex;flex-direction:column;gap:6px}.cm-label{font-size:13px;color:#374151;font-weight:500}.cm-textarea{width:100%;box-sizing:border-box;border:1px solid #e0e7ee;border-radius:8px;padding:10px 12px;font:inherit;font-size:13px;background:#fff;color:#000;resize:vertical;outline:none;line-height:1.5;min-height:100px}.cm-textarea:focus{border-color:#2563eb}.cm-textarea::placeholder{color:var(--muted)}.cm-footer{display:flex;gap:8px;justify-content:center;padding-top:4px}.cm-btn{font:inherit;font-size:13px;padding:9px 28px;border:1px solid #e0e7ee;background:#e8edf2;border-radius:8px;cursor:pointer;color:#000}.cm-btn:hover{background:#d8dfe8}.cm-btn--primary{background:#2563eb;color:#fff;border-color:#2563eb}.cm-btn--primary:hover{background:#1d4ed8;border-color:#1d4ed8}.cm-btn:disabled{opacity:.6;cursor:not-allowed}.cm-btn:disabled:hover,.cm-btn--primary:disabled:hover{background:inherit;border-color:inherit}.cm-error{margin-top:-4px;text-align:center;color:#b91c1c;font-size:12px}.rs-modal{background:#fff;border-radius:12px;box-shadow:0 12px 48px #00000038;width:560px;max-width:96vw;max-height:90vh;display:flex;flex-direction:column;font-size:13px;color:#000;overflow:hidden}.rs-header{padding:20px 24px 16px;border-bottom:1px solid #e0e7ee;flex-shrink:0}.rs-title{font-size:15px;font-weight:600}.rs-body{flex:1;min-height:0;overflow-y:auto;padding:20px 24px;display:flex;flex-direction:column;gap:12px;background:#f5f7f8}.rs-name-row{display:flex;flex-direction:column;gap:6px}.rs-lbl{font-size:12px;color:#6b7280;font-weight:500}.rs-name-val{background:#fff;border:1px solid #e0e7ee;border-radius:8px;padding:9px 12px;font-size:13px;color:#000}.rs-list{display:flex;flex-direction:column;gap:6px}.rs-item{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #e0e7ee;border-radius:8px;padding:6px 10px;cursor:grab;transition:background .1s,border-color .1s}.rs-item:active{cursor:grabbing}.rs-item--dragging{opacity:.4}.rs-item--over{border-color:#2563eb;background:#eff6ff}.rs-drag{color:#9ca3af;display:flex;align-items:center;flex-shrink:0;cursor:grab}.rs-drag:hover{color:#6b7280}.rs-input{flex:1;border:none;outline:none;font:inherit;font-size:13px;color:#000;background:transparent;padding:2px 0}.rs-input::placeholder{color:#9ca3af}.rs-remove{border:none;background:none;cursor:pointer;color:#9ca3af;font-size:18px;line-height:1;padding:2px 4px;border-radius:4px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.rs-remove:hover{background:#fee2e2;color:#dc2626}.rs-add-btn{align-self:flex-start;border:1px dashed #cbd5e1;background:transparent;border-radius:8px;padding:8px 16px;font:inherit;font-size:13px;color:#6b7280;cursor:pointer;transition:border-color .15s,color .15s}.rs-add-btn:hover{border-color:#2563eb;color:#2563eb}.rs-footer{padding:16px 24px;border-top:1px solid #e0e7ee;display:flex;gap:8px;justify-content:flex-end;flex-shrink:0;background:#fff}.rs-btn{font:inherit;font-size:13px;padding:9px 24px;border:1px solid #e0e7ee;background:#e8edf2;border-radius:8px;cursor:pointer;color:#000}.rs-btn:hover{background:#d8dfe8}.rs-btn--primary{background:#2563eb;color:#fff;border-color:#2563eb}.rs-btn--primary:hover{background:#1d4ed8;border-color:#1d4ed8}.rs-btn:disabled{opacity:.5;cursor:not-allowed}.cnc-sheet-size-row{display:flex;gap:16px}.cnc-sheet-size-field{display:flex;flex-direction:column;gap:6px;flex:1}.cnc-sheet-size-field-input{display:flex;align-items:center;gap:6px;height:34px;padding:0 10px;border:1px solid var(--border);border-radius:8px;background:#fff}.cnc-sheet-size-field-input input{flex:1;width:0;border:none;outline:none;font:inherit;font-size:13px;color:#000;background:transparent;-moz-appearance:textfield}.cnc-sheet-size-field-input input::-webkit-outer-spin-button,.cnc-sheet-size-field-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.cnc-pad-modal .rs-body{gap:20px}.cnc-pad-diagram{display:grid;grid-template-columns:90px 1fr 90px;grid-template-rows:auto 160px auto;gap:10px;align-items:center;justify-items:center}.cnc-pad-diagram-top{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:center;gap:4px}.cnc-pad-diagram-bottom{grid-column:2;grid-row:3;display:flex;flex-direction:column;align-items:center;gap:4px}.cnc-pad-diagram-left{grid-column:1;grid-row:2;display:flex;align-items:center;gap:4px}.cnc-pad-diagram-right{grid-column:3;grid-row:2;display:flex;align-items:center;gap:4px}.cnc-pad-diagram-box{grid-column:2;grid-row:2;width:100%;height:100%;border:2px solid #64748b;border-radius:6px;background:repeating-linear-gradient(45deg,#e2e8f0 0 4px,#fff 4px 10px)}.cnc-pad-arrow{width:20px;height:20px;color:#2563eb;flex-shrink:0}.cnc-pad-diagram-top input,.cnc-pad-diagram-bottom input,.cnc-pad-diagram-left input,.cnc-pad-diagram-right input{width:56px;height:32px;border:1px solid var(--border);border-radius:6px;text-align:center;font:inherit;font-size:12px;color:#000;-moz-appearance:textfield}.cnc-pad-diagram-top input::-webkit-outer-spin-button,.cnc-pad-diagram-bottom input::-webkit-outer-spin-button,.cnc-pad-diagram-left input::-webkit-outer-spin-button,.cnc-pad-diagram-right input::-webkit-outer-spin-button,.cnc-pad-diagram-top input::-webkit-inner-spin-button,.cnc-pad-diagram-bottom input::-webkit-inner-spin-button,.cnc-pad-diagram-left input::-webkit-inner-spin-button,.cnc-pad-diagram-right input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.cnc-pad-diagram-top input:disabled,.cnc-pad-diagram-bottom input:disabled,.cnc-pad-diagram-left input:disabled,.cnc-pad-diagram-right input:disabled{background:#f1f5f9;color:#94a3b8}.cnc-pad-uniform-row{display:flex;align-items:center;gap:10px;font-size:13px;color:#000}.cnc-pad-uniform-label{display:inline-flex;align-items:center;gap:10px;cursor:pointer}.cnc-pad-shared-pill{display:inline-flex;align-items:center;gap:4px;height:34px;padding:0 8px 0 10px;border:1px solid var(--border);border-radius:6px;background:#fff}.cnc-pad-shared-pill input{border:none;outline:none;font:inherit;font-size:12px;width:40px;color:#000;background:transparent;-moz-appearance:textfield}.cnc-pad-shared-pill input::-webkit-outer-spin-button,.cnc-pad-shared-pill input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.cnc-pad-shared-pill input:disabled{color:#94a3b8}#dimhud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:6px 10px;display:none;align-items:center;gap:6px;font-size:12px;box-shadow:0 2px 8px #0000000f;z-index:30}#dimhud.show{display:flex}#dimhud .title{font-weight:700;margin-right:6px}#dimhud .seg{display:inline-flex;gap:2px;background:#f3f4f6;padding:2px;border-radius:6px}#dimhud .seg button{font:inherit;font-size:11px;padding:4px 10px;border:none;background:transparent;border-radius:4px;cursor:pointer;color:#374151}#dimhud .seg button.on{background:#2563eb;color:#fff}#dimhud .hint{color:var(--muted);margin-left:4px;font-size:11px}#dimhud .dim-val-grp{display:inline-flex;align-items:center;gap:3px;margin-left:4px}#dimhud .dim-val-grp input{width:68px;padding:3px 6px;border:1px solid var(--border);border-radius:4px;font:inherit;font-size:12px;text-align:right;color:var(--line);background:#fff;-moz-appearance:textfield}#dimhud .dim-val-grp input:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}#dimhud .dim-val-grp input:not(:placeholder-shown){border-color:#f59e0b;background:#fffbeb;font-weight:600}#dimhud .dim-val-grp input::-webkit-outer-spin-button,#dimhud .dim-val-grp input::-webkit-inner-spin-button{-webkit-appearance:none}#dimhud .dim-unit{color:var(--muted);font-size:11px}#dimbreakhud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:6px 10px;display:none;align-items:center;gap:6px;font-size:12px;box-shadow:0 2px 8px #0000000f;z-index:30}#dimbreakhud.show{display:flex}#dimbreakhud .title{font-weight:700;margin-right:6px}#dimbreakhud .seg{display:inline-flex;gap:2px;background:#f3f4f6;padding:2px;border-radius:6px}#dimbreakhud .seg button{font:inherit;font-size:11px;padding:4px 10px;border:none;background:transparent;border-radius:4px;cursor:pointer;color:#374151}#dimbreakhud .seg button.on{background:#2563eb;color:#fff}#dimbreakhud .hint{color:var(--muted);margin-left:4px;font-size:11px}#dimbreakhud .close{width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:18px;border:none;background:transparent;border-radius:50%;cursor:pointer}#dimbreakhud .close:hover{background:var(--chip);color:var(--line)}#dimedittexthud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:6px 10px;display:none;align-items:center;gap:6px;font-size:12px;box-shadow:0 2px 8px #0000000f;z-index:30}#dimedittexthud.show{display:flex}#dimedittexthud .title{font-weight:700;margin-right:6px}#dimedittexthud .seg{display:inline-flex;gap:2px;background:#f3f4f6;padding:2px;border-radius:6px}#dimedittexthud .seg button{font:inherit;font-size:11px;padding:4px 10px;border:none;background:transparent;border-radius:4px;cursor:pointer;color:#374151}#dimedittexthud .seg button.on{background:#2563eb;color:#fff}#dimedittexthud .dimedittext-ang-grp{display:flex;align-items:center;gap:4px}#dimedittexthud .dimedittext-ang-grp label{color:#374151;font-size:11px;white-space:nowrap}#dimedittexthud .dimedittext-ang-grp input[type=number]{width:60px;padding:4px 6px;border:1px solid var(--border);border-radius:5px;background:#fff;font:inherit;font-size:12px;text-align:right}#dimedittexthud .hint{color:var(--muted);margin-left:4px;font-size:11px}#dimedittexthud .close{width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:18px;border:none;background:transparent;border-radius:50%;cursor:pointer}#dimedittexthud .close:hover{background:var(--chip);color:var(--line)}#dimradialmodehud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:6px 10px;display:none;align-items:center;gap:6px;font-size:12px;box-shadow:0 2px 8px #0000000f;z-index:30}#dimradialmodehud.show{display:flex}#dimradialmodehud .title{font-weight:700;margin-right:6px}#dimradialmodehud .seg{display:inline-flex;gap:2px;background:#f3f4f6;padding:2px;border-radius:6px}#dimradialmodehud .seg button{font:inherit;font-size:11px;padding:4px 10px;border:none;background:transparent;border-radius:4px;cursor:pointer;color:#374151}#dimradialmodehud .seg button.on{background:#2563eb;color:#fff}#dimradialmodehud .close{width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:18px;border:none;background:transparent;border-radius:50%;cursor:pointer}#dimradialmodehud .close:hover{background:var(--chip);color:var(--line)}#chhud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px 14px;display:none;align-items:center;gap:12px;font-size:13px;box-shadow:0 2px 8px #0000000f;z-index:30}#chhud.show{display:flex}#chhud .title{font-weight:700;color:var(--line);white-space:nowrap;margin-right:2px}#chhud .grp{display:flex;align-items:center;gap:6px}#chhud .grp label{color:#374151;white-space:nowrap}#chhud .grp input[type=number]{width:72px;padding:5px 8px;border:1px solid var(--border);border-radius:5px;background:#fff;font:inherit;font-size:13px;text-align:right;color:var(--line);-moz-appearance:textfield}#chhud .grp input[type=number]:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}#chhud .grp input[type=number]::-webkit-outer-spin-button,#chhud .grp input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#chhud .ch-unit{color:var(--muted);font-size:12px}#chhud .close{width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:18px;border:none;background:transparent;border-radius:50%;cursor:pointer}#chhud .close:hover{background:var(--chip);color:var(--line)}#fihud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px 14px;display:none;align-items:center;gap:12px;font-size:13px;box-shadow:0 2px 8px #0000000f;z-index:30}#fihud.show{display:flex}#fihud .title{font-weight:700;color:var(--line);white-space:nowrap;margin-right:2px}#fihud .grp{display:flex;align-items:center;gap:6px}#fihud .grp label{color:#374151;white-space:nowrap}#fihud .grp input[type=number]{width:72px;padding:5px 8px;border:1px solid var(--border);border-radius:5px;background:#fff;font:inherit;font-size:13px;text-align:right;color:var(--line);-moz-appearance:textfield}#fihud .grp input[type=number]:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}#fihud .grp input[type=number]::-webkit-outer-spin-button,#fihud .grp input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#fihud .fi-unit{color:var(--muted);font-size:12px}#fihud .close{width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:18px;border:none;background:transparent;border-radius:50%;cursor:pointer}#fihud .close:hover{background:var(--chip);color:var(--line)}#offsethud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px 14px;display:none;align-items:center;gap:12px;font-size:13px;box-shadow:0 2px 8px #0000000f;z-index:30}#offsethud.show{display:flex}#offsethud .title{font-weight:700;color:var(--line);white-space:nowrap;margin-right:2px}#offsethud .off-status{color:var(--muted);font-size:12px;white-space:nowrap}#offsethud .grp{display:flex;align-items:center;gap:6px}#offsethud .grp label{color:#374151;white-space:nowrap}#offsethud .grp input[type=number]{width:72px;padding:5px 8px;border:1px solid var(--border);border-radius:5px;background:#fff;font:inherit;font-size:13px;text-align:right;color:var(--line);-moz-appearance:textfield}#offsethud .grp input[type=number]:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}#offsethud .grp input[type=number]::-webkit-outer-spin-button,#offsethud .grp input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#offsethud .off-unit{color:var(--muted);font-size:12px}#offsethud .close{width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:18px;border:none;background:transparent;border-radius:50%;cursor:pointer}#offsethud .close:hover{background:var(--chip);color:var(--line)}#leaderhud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px 14px;display:none;align-items:center;gap:10px;font-size:13px;box-shadow:0 2px 8px #0000000f;z-index:30}#leaderhud.show{display:flex}#leaderhud .title{font-weight:700;color:var(--line);white-space:nowrap}#leaderhud .leader-status{color:var(--muted);font-size:12px;white-space:nowrap;max-width:220px;overflow:hidden;text-overflow:ellipsis}#leaderhud textarea{width:200px;resize:none;padding:5px 8px;border:1px solid var(--border);border-radius:5px;background:#fff;font:inherit;font-size:12px;color:var(--line)}#leaderhud textarea:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}#leaderhud .grp{display:flex;align-items:center;gap:6px}#leaderhud .grp label{color:#374151;white-space:nowrap}#leaderhud .leader-fontsize-combo{position:relative;display:flex;align-items:stretch}#leaderhud .leader-fontsize-combo input[type=text]{width:48px;padding:5px 6px;border:1px solid var(--border);border-right:none;border-radius:5px 0 0 5px;background:#fff;font:inherit;font-size:13px;text-align:right;color:var(--line)}#leaderhud .leader-fontsize-combo input[type=text]:focus{outline:none;border-color:var(--accent)}#leaderhud .leader-fontsize-toggle{width:20px;padding:0;border:1px solid var(--border);border-radius:0 5px 5px 0;background:#f9fafb;color:var(--muted);font-size:10px;line-height:1;cursor:pointer}#leaderhud .leader-fontsize-toggle:hover{background:var(--chip);color:var(--line)}#leaderhud .leader-fontsize-menu{display:none;position:absolute;top:calc(100% + 4px);left:0;z-index:40;background:#fff;border:1px solid var(--border);border-radius:6px;box-shadow:0 4px 14px #0000001f;padding:4px;grid-template-columns:repeat(4,1fr);gap:2px;width:132px}#leaderhud .leader-fontsize-menu.show{display:grid}#leaderhud .leader-fontsize-menu button{padding:5px 0;border:none;border-radius:4px;background:transparent;color:var(--line);font-size:12px;cursor:pointer;text-align:center}#leaderhud .leader-fontsize-menu button:hover{background:var(--chip)}#leaderhud .leader-unit{color:var(--muted);font-size:12px}#leaderhud button.primary{padding:6px 14px;border:none;border-radius:5px;background:var(--accent);color:#fff;font-weight:600;font-size:13px;cursor:pointer;white-space:nowrap}#leaderhud button.primary:disabled{opacity:.45;cursor:default}#leaderhud .close{width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:18px;border:none;background:transparent;border-radius:50%;cursor:pointer}#leaderhud .close:hover{background:var(--chip);color:var(--line)}#measurehud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px 14px;display:none;align-items:center;gap:12px;font-size:13px;box-shadow:0 2px 8px #0000000f;z-index:30}#measurehud.show{display:flex}#measurehud .title{font-weight:700;color:var(--line);white-space:nowrap;margin-right:2px}#measurehud .measure-status{color:var(--muted);font-size:12px;white-space:nowrap;max-width:280px;overflow:hidden;text-overflow:ellipsis}#measurehud .grp{display:flex;align-items:center;gap:6px}#measurehud .grp label{color:#374151;white-space:nowrap}#measurehud .grp input[type=number]{width:72px;padding:5px 8px;border:1px solid var(--border);border-radius:5px;background:#fff;font:inherit;font-size:13px;text-align:right;color:var(--line);-moz-appearance:textfield}#measurehud .grp input[type=number]:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}#measurehud .grp input[type=number]::-webkit-outer-spin-button,#measurehud .grp input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#measurehud .measure-unit{color:var(--muted);font-size:12px}#measurehud button.primary{padding:6px 14px;border:none;border-radius:5px;background:var(--accent);color:#fff;font-weight:600;font-size:13px;cursor:pointer;white-space:nowrap}#measurehud button.primary:disabled{opacity:.45;cursor:default}#measurehud .close{width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:18px;border:none;background:transparent;border-radius:50%;cursor:pointer}#measurehud .close:hover{background:var(--chip);color:var(--line)}#dividehud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px 14px;display:none;align-items:center;gap:12px;font-size:13px;box-shadow:0 2px 8px #0000000f;z-index:30}#dividehud.show{display:flex}#dividehud .title{font-weight:700;color:var(--line);white-space:nowrap;margin-right:2px}#dividehud .divide-status{color:var(--muted);font-size:12px;white-space:nowrap;max-width:280px;overflow:hidden;text-overflow:ellipsis}#dividehud .grp{display:flex;align-items:center;gap:6px}#dividehud .grp label{color:#374151;white-space:nowrap}#dividehud .grp input[type=number]{width:72px;padding:5px 8px;border:1px solid var(--border);border-radius:5px;background:#fff;font:inherit;font-size:13px;text-align:right;color:var(--line);-moz-appearance:textfield}#dividehud .grp input[type=number]:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}#dividehud .grp input[type=number]::-webkit-outer-spin-button,#dividehud .grp input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#dividehud button.primary{padding:6px 14px;border:none;border-radius:5px;background:var(--accent);color:#fff;font-weight:600;font-size:13px;cursor:pointer;white-space:nowrap}#dividehud button.primary:disabled{opacity:.45;cursor:default}#dividehud .close{width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:18px;border:none;background:transparent;border-radius:50%;cursor:pointer}#dividehud .close:hover{background:var(--chip);color:var(--line)}#xlhud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px 14px;display:none;align-items:center;gap:12px;font-size:13px;box-shadow:0 2px 8px #0000000f;z-index:30}#xlhud.show{display:flex}#xlhud .title{font-weight:700;color:var(--line);white-space:nowrap;margin-right:2px}#xlhud .grp{display:flex;align-items:center;gap:6px}#xlhud .grp.metric{color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px;white-space:nowrap}#xlhud .grp.metric b{color:var(--line)}#xlhud .grp label{color:#374151;white-space:nowrap}#xlhud .grp input[type=number]{width:72px;padding:5px 8px;border:1px solid var(--border);border-radius:5px;background:#fff;font:inherit;font-size:13px;text-align:right;color:var(--line);-moz-appearance:textfield}#xlhud .grp input[type=number]:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}#xlhud .grp input[type=number]:disabled{background:#f9fafb;color:var(--muted)}#xlhud .grp input[type=number]::-webkit-outer-spin-button,#xlhud .grp input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#xlhud .xl-unit{color:var(--muted);font-size:12px}#xlhud input[type=color]{width:26px;height:26px;border:1px solid var(--border);border-radius:5px;cursor:pointer;padding:2px;background:#fff;flex-shrink:0}#xlhud input[type=color]::-webkit-color-swatch-wrapper{padding:0;border-radius:3px}#xlhud input[type=color]::-webkit-color-swatch{border:none;border-radius:3px}#xlhud .xl-del{font:inherit;font-size:12px;padding:5px 10px;border:1px solid #fca5a5;background:#fff;border-radius:5px;cursor:pointer;color:#b91c1c;white-space:nowrap;display:none}#xlhud .xl-del:hover{background:#fee2e2}#xlhud.edit .xl-del{display:inline-flex;align-items:center}#xlhud .close{width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:18px;border:none;background:transparent;border-radius:50%;cursor:pointer}#xlhud .close:hover{background:var(--chip);color:var(--line)}#archud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px 14px;display:none;align-items:center;gap:12px;font-size:13px;box-shadow:0 2px 8px #0000000f;z-index:30}#archud.show{display:flex}#archud .title{font-weight:700;color:var(--line);white-space:nowrap;margin-right:2px}#archud .grp{display:flex;align-items:center;gap:6px}#archud .grp.metric{color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px;white-space:nowrap}#archud .grp.metric b{color:var(--line)}#archud .grow{flex:1;min-width:16px}#archud button{font:inherit;font-size:12px;padding:5px 12px;border:1px solid var(--border);background:#fff;border-radius:5px;cursor:pointer;color:var(--line);white-space:nowrap}#archud button:hover:not(:disabled){background:#f3f4f6}#archud button.primary{border-color:var(--accent);color:var(--accent);font-weight:600}#archud button.primary:hover:not(:disabled){background:#eff6ff}#archud button:disabled{opacity:.4;cursor:default}#archud .close{width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:18px;border:none;background:transparent;border-radius:50%}#archud .close:hover{background:var(--chip);color:var(--line)}#archud .grp label{color:#374151;white-space:nowrap}#archud .grp input[type=number]{width:72px;padding:5px 8px;border:1px solid var(--border);border-radius:5px;background:#fff;font:inherit;font-size:13px;text-align:right;color:var(--line);-moz-appearance:textfield}#archud .grp input[type=number]:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}#archud .grp input[type=number]::-webkit-outer-spin-button,#archud .grp input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#archud .arc-unit{color:var(--muted);font-size:12px}#archud .arc-del{color:#dc2626;border-color:#fca5a5}#archud .arc-del:hover{background:#fef2f2}#archud:not(.edit) .arc-edit-only{display:none}#archud.edit .arc-draw-only{display:none}#splhud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px 14px;display:none;align-items:center;gap:12px;font-size:13px;box-shadow:0 2px 8px #0000000f;z-index:30}#splhud.show{display:flex}#splhud .title{font-weight:700;color:var(--line);white-space:nowrap;margin-right:2px}#splhud .grp{display:flex;align-items:center;gap:6px}#splhud .grp.metric{color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px;white-space:nowrap}#splhud .grp.metric b{color:var(--line)}#splhud .grow{flex:1}#splhud button{font:inherit;font-size:12px;padding:5px 12px;border:1px solid var(--border);background:#fff;border-radius:5px;cursor:pointer;color:var(--line);white-space:nowrap}#splhud button:hover{background:#f3f4f6}#splhud button.primary{border-color:var(--accent);color:var(--accent);font-weight:600}#splhud button.primary:hover{background:#eff6ff}#splhud .close{width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:18px;border:none;background:transparent;border-radius:50%}#splhud .close:hover{background:var(--chip);color:var(--line)}#splhud .chk{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--line);cursor:pointer;white-space:nowrap}#splhud .chk input{width:14px;height:14px;cursor:pointer;margin:0;accent-color:var(--accent)}#splhud.result .chk,#splhud.result .grow,#splhud.result #spl-ok,#splhud.result .hud-sep{display:none}#alhud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px 14px;display:none;align-items:center;gap:12px;font-size:13px;box-shadow:0 2px 8px #0000000f;z-index:30}#alhud.show{display:flex}#alhud .title{font-weight:700;color:var(--line);white-space:nowrap;margin-right:2px}#alhud .grp{display:flex;align-items:center;gap:6px}#alhud .grp label{color:#374151;white-space:nowrap}#alhud .grp input[type=number]{width:72px;padding:5px 8px;border:1px solid var(--border);border-radius:5px;background:#fff;font:inherit;font-size:13px;text-align:right;color:var(--line);-moz-appearance:textfield}#alhud .grp input[type=number]:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}#alhud .grp input[type=number]::-webkit-outer-spin-button,#alhud .grp input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#alhud .grp.metric{color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px;white-space:nowrap}#alhud .grp.metric b{color:var(--line)}#alhud .grow{flex:1}#alhud button{font:inherit;font-size:12px;padding:5px 12px;border:1px solid var(--border);background:#fff;border-radius:5px;cursor:pointer;color:var(--line);white-space:nowrap}#alhud button:hover{background:#f3f4f6}#alhud button.primary{border-color:var(--accent);color:var(--accent);font-weight:600}#alhud button.primary:hover{background:#eff6ff}#alhud button.danger{color:#b91c1c;border-color:#fca5a5}#alhud button.danger:hover{background:#fee2e2}#alhud .close{width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:18px;border:none;background:transparent;border-radius:50%}#alhud .close:hover{background:var(--chip);color:var(--line)}#alhud .chk{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--line);cursor:pointer;white-space:nowrap}#alhud .chk input{width:14px;height:14px;cursor:pointer;margin:0;accent-color:var(--accent)}#alhud .chk.disabled{opacity:.5;cursor:not-allowed}#alhud.result .grp:not(.metric):not(.al-style-grp){display:none}#alhud.result .chk,#alhud.result .grow,#alhud.result #al-ok,#alhud.result #al-undo{display:none}#alhud.result .title{margin-right:8px}#alhud.result .hud-sep{display:none}#mirrorhud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px 14px;display:none;align-items:center;gap:12px;font-size:13px;box-shadow:0 2px 8px #0000000f;z-index:30}#mirrorhud.show{display:flex}#mirrorhud .title{font-weight:700;color:var(--line);white-space:nowrap;margin-right:2px}#mirrorhud .status{color:var(--muted);font-size:12px;white-space:nowrap}#mirrorhud .grp{display:flex;align-items:center;gap:6px}#mirrorhud .grp label{color:#374151;white-space:nowrap}#mirrorhud .grp input[type=number]{width:72px;padding:5px 8px;border:1px solid var(--border);border-radius:5px;background:#fff;font:inherit;font-size:13px;text-align:right;color:var(--line);-moz-appearance:textfield}#mirrorhud .grp input[type=number]:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}#mirrorhud .grp input[type=number]::-webkit-outer-spin-button,#mirrorhud .grp input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#mirrorhud .grow{flex:1}#mirrorhud button{font:inherit;font-size:12px;padding:5px 12px;border:1px solid var(--border);background:#fff;border-radius:5px;cursor:pointer;color:var(--line);white-space:nowrap}#mirrorhud button:hover{background:#f3f4f6}#mirrorhud button.primary{border-color:var(--accent);color:var(--accent);font-weight:600}#mirrorhud button.primary:hover:not(:disabled){background:#eff6ff}#mirrorhud button:disabled{opacity:.4;cursor:default}#mirrorhud .close{width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:18px;border:none;background:transparent;border-radius:50%}#mirrorhud .close:hover{background:var(--chip);color:var(--line)}#rotatehud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px 14px;display:none;align-items:center;gap:12px;font-size:13px;box-shadow:0 2px 8px #0000000f;z-index:30}#rotatehud.show{display:flex}#rotatehud .title{font-weight:700;color:var(--line);white-space:nowrap;margin-right:2px}#rotatehud .status{color:var(--muted);font-size:12px;white-space:nowrap}#rotatehud .grp{display:flex;align-items:center;gap:6px}#rotatehud .grp label{color:#374151;white-space:nowrap}#rotatehud .grp input[type=number]{width:72px;padding:5px 8px;border:1px solid var(--border);border-radius:5px;background:#fff;font:inherit;font-size:13px;text-align:right;color:var(--line);-moz-appearance:textfield}#rotatehud .grp input[type=number]:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}#rotatehud .grp input[type=number]::-webkit-outer-spin-button,#rotatehud .grp input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#rotatehud .grow{flex:1}#rotatehud button{font:inherit;font-size:12px;padding:5px 12px;border:1px solid var(--border);background:#fff;border-radius:5px;cursor:pointer;color:var(--line);white-space:nowrap}#rotatehud button:hover{background:#f3f4f6}#rotatehud button.primary{border-color:var(--accent);color:var(--accent);font-weight:600}#rotatehud button.primary:hover:not(:disabled){background:#eff6ff}#rotatehud button:disabled{opacity:.4;cursor:default}#rotatehud .close{width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:18px;border:none;background:transparent;border-radius:50%}#rotatehud .close:hover{background:var(--chip);color:var(--line)}.hud-sep,#archud .hud-sep,#rechud .hud-sep,#splhud .hud-sep,#alhud .hud-sep,#leaderhud .hud-sep{width:1px;height:22px;background:var(--border);flex-shrink:0}#archud input[type=color],#rechud input[type=color],#splhud input[type=color],#alhud input[type=color],#leaderhud input[type=color]{width:26px;height:26px;border:1px solid var(--border);border-radius:5px;cursor:pointer;padding:2px;background:#fff;flex-shrink:0}#archud input[type=color]::-webkit-color-swatch-wrapper,#rechud input[type=color]::-webkit-color-swatch-wrapper,#splhud input[type=color]::-webkit-color-swatch-wrapper,#alhud input[type=color]::-webkit-color-swatch-wrapper,#leaderhud input[type=color]::-webkit-color-swatch-wrapper{padding:0;border-radius:3px}#archud input[type=color]::-webkit-color-swatch,#rechud input[type=color]::-webkit-color-swatch,#splhud input[type=color]::-webkit-color-swatch,#alhud input[type=color]::-webkit-color-swatch,#leaderhud input[type=color]::-webkit-color-swatch{border:none;border-radius:3px}#archud select,#rechud select,#splhud select,#alhud select,#multihud select{border:1px solid var(--border);border-radius:5px;background:#fff;font:inherit;font-size:12px;color:var(--line);padding:4px 6px;cursor:pointer;outline:none}.warn{color:#b45309}#dyninput{position:absolute;pointer-events:auto;display:none;gap:6px;transform:translate(14px,-34px);z-index:50}#dyninput.show{display:flex}.dyn-field{display:flex;align-items:center;background:#111827eb;border:1.5px solid transparent;border-radius:5px;padding:2px 4px 2px 6px;font-family:ui-monospace,Menlo,monospace;font-size:12px;color:#f9fafb;box-shadow:0 2px 6px #0000004d}.dyn-field.active{border-color:#fbbf24;background:#1f2937fa}.dyn-field .label{color:#93c5fd;margin-right:4px;font-weight:600}.dyn-field input{background:transparent;border:none;outline:none;color:#fff;font-family:inherit;font-size:inherit;width:64px;padding:2px 0;caret-color:#fbbf24}.dyn-field input::placeholder{color:#6b7280}.dyn-field .unit{color:#9ca3af;margin-left:4px;font-size:10px}#sidebar{grid-area:sidebar;background:var(--panel);border-right:1px solid var(--border);display:flex;flex-direction:column;min-height:0;width:232px}#sidebar-logo{height:56px;display:flex;align-items:center;gap:8px;padding:0 14px;border-bottom:1px solid var(--border);flex-shrink:0}#sidebar-logo .logo-icon{width:32px;height:32px;flex-shrink:0;display:block}#sidebar-logo .logo-text{font-size:16px;font-weight:700;color:var(--line);display:flex;align-items:center;gap:5px}#sidebar-logo .logo-text .dot{width:4px;height:4px;border-radius:50%;background:var(--muted)}#sidebar-logo .logo-text .sub{font-weight:700;color:var(--line);font-size:16px}#sidebar-nav{display:flex;flex-direction:column;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden}#sidebar-nav .nav-item{display:flex;align-items:center;gap:10px;padding:12px 16px;cursor:pointer;font-size:13px;color:var(--line);border-bottom:1px solid var(--border)}#sidebar-nav .nav-item:last-child{border-bottom:none}#sidebar-nav .nav-item:hover{background:var(--chip)}#sidebar-nav .nav-item svg{width:20px;height:20px;color:var(--muted);flex-shrink:0}#sidebar-nav .nav-item .nav-label{flex:1}#sidebar-nav .nav-item .nav-chevron{color:var(--muted)}#tree,#layers-section{display:flex;flex-direction:column}#tree-head,#layers-head{padding:10px 12px 6px;display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--border)}#tree-head h3,#layers-head h3{margin:0;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:600;flex:1}#tree-search,#layers-search{width:100%;padding:4px 8px;font-size:12px;border:1px solid var(--border);border-radius:5px;outline:none}#tree-search:focus,#layers-search:focus{border-color:var(--accent)}#tree-controls,#layers-controls,.layer-tree-controls{display:flex;align-items:center;gap:2px;padding:5px 10px;border-bottom:1px solid var(--border)}#layers-controls{justify-content:flex-end}#tree-controls .tc-count,#layers-controls .tc-count,.layer-tree-controls .tc-count{flex:1;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}#tree-controls .tc-btn,#layers-controls .tc-btn,.layer-tree-controls .tc-btn{width:30px;height:30px;border:none;background:transparent;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--muted);padding:0;flex-shrink:0;position:relative}#tree-controls .tc-btn:hover,#layers-controls .tc-btn:hover,.layer-tree-controls .tc-btn:hover{background:var(--chip);color:var(--line)}#tree-controls .tc-btn svg,#layers-controls .tc-btn svg,.layer-tree-controls .tc-btn svg{width:18px;height:18px}#tree-controls .tc-btn:disabled,#layers-controls .tc-btn:disabled,.layer-tree-controls .tc-btn:disabled{opacity:.4;cursor:not-allowed}#tree-controls .tc-btn:disabled:hover,#layers-controls .tc-btn:disabled:hover,.layer-tree-controls .tc-btn:disabled:hover{background:transparent;color:var(--muted)}#tree-controls .tc-danger:hover,#layers-controls .tc-danger:hover,.layer-tree-controls .tc-danger:hover{color:#b91c1c;background:#fee2e2}#tree-controls .tc-sep,#layers-controls .tc-sep,.layer-tree-controls .tc-sep{width:1px;height:18px;background:var(--border);margin:0 2px;flex-shrink:0}#tree-controls .tc-tip,#layers-controls .tc-tip,.layer-tree-controls .tc-tip{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%);background:var(--chip);color:var(--line);font-size:11px;padding:4px 10px;border-radius:100px;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .12s;z-index:200}#tree-controls .tc-tip:after,#layers-controls .tc-tip:after,.layer-tree-controls .tc-tip:after{content:"";position:absolute;top:100%;left:50%;transform:translate(-50%);border:5px solid transparent;border-top-color:var(--chip)}#tree-controls .tc-btn:hover .tc-tip,#layers-controls .tc-btn:hover .tc-tip,.layer-tree-controls .tc-btn:hover .tc-tip{opacity:1}#tree-list,#layers-list{flex:1;overflow-y:auto;overflow-x:hidden;font-size:12px}.layers-stub-row{display:grid;grid-template-columns:14px 1fr auto auto auto auto auto;align-items:center;gap:3px;padding:4px 10px;border-bottom:1px solid #f3f4f6;cursor:grab;border-top:2px solid transparent}.layers-stub-row:active{cursor:grabbing}.layers-stub-row:hover{background:#f9fafb}.layers-stub-row.active{background:#eff6ff}.layers-stub-row.active:hover{background:#e0edff}.layers-stub-row.sel{outline:2px solid #2563eb;outline-offset:-2px}.layers-stub-row.no-layer-row{cursor:pointer;color:var(--muted);font-style:italic}.layers-stub-row.no-layer-row .layers-stub-name{color:var(--muted);font-weight:400}.layers-stub-row.dnd-drop-target{background:#eff6ff!important;outline:2px solid #2563eb;outline-offset:-2px}.layers-stub-row.dnd-drop-before{border-top:2px solid #2563eb}.layers-stub-row.dnd-drop-after{border-bottom:2px solid #2563eb}.layers-stub-caret{cursor:pointer;color:#6b7280;text-align:center;font-size:10px;display:flex;align-items:center;justify-content:center}.layers-stub-nested{border-bottom:1px solid #f3f4f6}.layers-stub-name{color:var(--line);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layers-stub-name-input,.tree-group-name-input{width:100%;min-width:0;font:inherit;font-weight:600;color:var(--line);background:#fff;border:1px solid var(--accent);border-radius:3px;padding:0 4px;outline:none}.layers-stub-icon{padding:0 1px;color:#9ca3af;line-height:1;display:flex;align-items:center;justify-content:center}.layers-stub-row.locked .layers-stub-lock{color:#f59e0b}.layers-stub-gear{cursor:pointer}.layers-stub-gear:hover{color:var(--accent)}.layers-stub-del{color:#b91c1c;font-size:11px;padding:0 3px;border-radius:3px;line-height:1.6;visibility:hidden}.layers-stub-row:hover .layers-stub-del,.layers-stub-row.active .layers-stub-del,.layers-stub-row.sel .layers-stub-del{visibility:visible}.layers-stub-color{width:14px;height:14px;border-radius:2px;border:1px solid var(--border);padding:0;cursor:pointer}.hud-color-swatch{width:26px;height:26px;border:1px solid var(--border);border-radius:5px;cursor:pointer;background:#fff;flex-shrink:0;box-sizing:border-box}.color-swatch-bylayer{position:relative;overflow:hidden}.color-swatch-bylayer:before,.color-swatch-bylayer:after{content:"";position:absolute;left:50%;top:50%;width:150%;height:1px;background:#9ca3af}.color-swatch-bylayer:before{transform:translate(-50%,-50%) rotate(45deg)}.color-swatch-bylayer:after{transform:translate(-50%,-50%) rotate(-45deg)}.color-swatch-mixed{display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;color:#9ca3af;line-height:1}.lcp-pop{position:fixed;z-index:10000;width:184px;background:var(--panel);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 32px #00000029;padding:12px}.lcp-label{font-size:11px;color:var(--muted);margin-bottom:8px}.lcp-label:not(:first-child){margin-top:14px}.lcp-grid{display:grid;grid-template-columns:repeat(6,22px);gap:4px}.lcp-swatch{width:22px;height:22px;border-radius:4px;border:1px solid var(--border);padding:0;cursor:pointer}.lcp-swatch:hover{outline:2px solid var(--accent);outline-offset:1px}.lcp-bylayer{margin-top:10px}.lcp-more{display:block;width:100%;text-align:left;margin-top:14px;padding:0;border:none;background:transparent;color:var(--accent);font-size:12px;cursor:pointer}.lcp-more:hover{text-decoration:underline}.lpp-pop{position:fixed;z-index:10000;width:200px;background:var(--panel);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 32px #00000029;padding:12px}.lpp-title{font-size:12px;font-weight:600;color:var(--line);margin-bottom:10px}.lpp-field{display:block;margin-top:10px}.lpp-field:first-of-type{margin-top:0}.lpp-field-label{display:block;font-size:11px;color:var(--muted);margin-bottom:4px}.lpp-field select{width:100%;font:inherit;font-size:12px;padding:3px 4px;border:1px solid var(--border);border-radius:4px;background:#fff;color:var(--line)}.gpp-pop{position:fixed;z-index:10000;width:240px;background:var(--panel);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 32px #00000029;padding:12px}.gpp-title{font-size:12px;font-weight:600;color:var(--line);margin-bottom:10px}.gpp-section{margin-top:10px}.gpp-section:first-of-type{margin-top:0}.gpp-section-label{display:block;font-size:11px;color:var(--muted);margin-bottom:4px}.gpp-nom-bound{display:flex;align-items:center;gap:6px;margin-bottom:6px}.gpp-nom-name{flex:1;font-size:12px;color:var(--line);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gpp-nom-clear{border:none;background:transparent;cursor:pointer;color:var(--muted);font-size:14px;line-height:1;padding:0 2px}.gpp-nom-clear:hover{color:#b91c1c}.gpp-nom-empty{display:block;font-size:12px;color:var(--muted);margin-bottom:6px;font-style:italic}.gpp-nom-pick-btn{width:100%;font:inherit;font-size:12px;padding:5px 8px;border:1px solid var(--border);border-radius:5px;background:#fff;color:var(--line);cursor:pointer}.gpp-nom-pick-btn:hover{border-color:var(--accent);background:#eff6ff;color:var(--accent)}.gpp-linmeter-select{width:100%;font:inherit;font-size:12px;padding:5px 6px;border:1px solid var(--border);border-radius:5px;background:#fff;color:var(--line);cursor:pointer}.gpp-linmeter-select:focus{outline:none;border-color:var(--accent)}.scd-backdrop{position:fixed;inset:0;z-index:10001;display:flex;align-items:center;justify-content:center}.scd-dialog{width:480px;background:#ececec;border-radius:8px;box-shadow:0 16px 48px #00000059;overflow:hidden;font-size:12px;color:#1f2937}.scd-header{display:flex;align-items:center;gap:8px;padding:8px 8px 8px 14px;background:#dcdfe3;cursor:grab;user-select:none;touch-action:none}.scd-header:active{cursor:grabbing}.scd-title{flex:1;font-weight:600}.scd-close{width:22px;height:22px;border:none;background:transparent;border-radius:4px;cursor:pointer;font-size:15px;line-height:1;color:#4b5563}.scd-close:hover{background:#00000014;color:#1f2937}.scd-tabs{display:flex;gap:2px;padding:10px 10px 0}.scd-tab{padding:6px 14px;border:1px solid #c7ccd1;border-bottom:none;border-radius:6px 6px 0 0;background:#dfe2e5;color:#4b5563;cursor:default;font-size:12px}.scd-tab.active{background:#fff;color:#111827;font-weight:600}.scd-body{display:flex;gap:16px;background:#fff;margin:0 10px;padding:14px;border:1px solid #c7ccd1;border-top:none;min-height:352px}.scd-main{flex:1;min-width:0}.scd-label{font-size:11px;color:#6b7280;margin-bottom:6px}.scd-grid{display:grid;gap:1px;background:#c7ccd1;border:1px solid #c7ccd1;margin-bottom:4px}.scd-grid-2{margin-top:10px}.scd-quick-row{display:flex;align-items:flex-start;justify-content:space-between;margin-top:10px;gap:10px}.scd-quick-grid{display:grid;grid-template-columns:repeat(9,1fr);gap:1px;width:198px}.scd-cell{width:100%;aspect-ratio:1;padding:0;border:none;cursor:pointer}.scd-cell.white{border:1px solid #9ca3af}.scd-cell.sel{outline:2px solid #111827;outline-offset:-2px}.scd-byside{display:flex;flex-direction:column;gap:6px}.scd-by-lbl{display:flex;align-items:center;gap:5px;font-size:11px;color:#9ca3af;cursor:not-allowed}.scd-by-lbl input{cursor:not-allowed}.scd-by-lbl.active{color:#1f2937;cursor:pointer}.scd-by-lbl.active input{cursor:pointer}.scd-fields{margin-top:14px;display:flex;flex-direction:column;gap:6px}.scd-field{display:flex;align-items:center;gap:6px}.scd-field input{width:150px;padding:3px 6px;border:1px solid #c7ccd1;border-radius:4px;font-size:12px;color:#1f2937;background:#fff}.scd-readout{color:#374151}.scd-preview{width:90px;flex-shrink:0;position:relative;padding-top:10px}.scd-preview-old{width:46px;height:46px;border:1px solid #9ca3af;position:absolute;top:10px;right:0;z-index:1}.scd-preview-new{width:68px;height:68px;border:1px solid #9ca3af;position:absolute;top:28px;right:18px}.scd-footer{display:flex;align-items:center;justify-content:space-between;padding:12px 16px}.scd-help{width:22px;height:22px;border-radius:50%;border:1px solid #9ca3af;background:transparent;color:#6b7280;font-size:12px;cursor:default}.scd-footer-buttons{display:flex;gap:10px}.scd-cancel{padding:6px 16px;border:1px solid #c7ccd1;border-radius:5px;background:#f3f4f6;color:#1f2937;font-size:12px;cursor:pointer}.scd-cancel:hover{background:#e5e7eb}.scd-ok{padding:6px 18px;border:none;border-radius:5px;background:var(--accent);color:#fff;font-weight:600;font-size:12px;cursor:pointer}.scd-ok:hover{filter:brightness(1.08)}.tcp{display:flex;flex-direction:column}.tcp-top-row{display:flex;justify-content:space-between;gap:20px}.tcp-hsl-fields{display:flex;flex-direction:column;gap:6px}.tcp-hsl-field{display:flex;align-items:center;gap:6px}.tcp-hsl-field input{width:56px;padding:3px 6px;border:1px solid #c7ccd1;border-radius:4px;font-size:12px;color:#1f2937;background:#fff}.tcp-mode-rgb{min-width:140px}.tcp-mode-row{display:flex;align-items:center;gap:8px;color:#374151}.tcp-mode-row select{padding:3px 6px;border:1px solid #c7ccd1;border-radius:4px;font-size:12px;background:#fff;color:#1f2937}.tcp-picker-row{display:flex;gap:14px;margin:14px 0}.tcp-square{position:relative;width:220px;height:160px;flex-shrink:0;cursor:crosshair;touch-action:none;background-image:linear-gradient(to bottom,#fff,#fff0 50%,#0000 50%,#000),linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red);border:1px solid #9ca3af}.tcp-square-cursor{position:absolute;width:10px;height:10px;border-radius:50%;border:1px solid #fff;box-shadow:0 0 0 1px #000;transform:translate(-50%,-50%);pointer-events:none}.tcp-slider{position:relative;width:18px;height:160px;flex-shrink:0;cursor:ns-resize;touch-action:none;border:1px solid #9ca3af}.tcp-slider-handle{position:absolute;left:-2px;right:-2px;height:6px;border:1px solid #1f2937;background:#fff;transform:translateY(-50%);pointer-events:none}.tcp-rgb-row{display:flex;gap:20px;align-items:flex-start}.tcp-rgb-channels{flex:1;min-width:0;display:flex;flex-direction:column;gap:14px}.tcp-rgb-channel{display:flex;flex-direction:column;gap:6px}.tcp-rgb-label-row{display:flex;align-items:center;gap:8px;color:#374151}.tcp-rgb-label-row input{width:60px;padding:3px 6px;border:1px solid #c7ccd1;border-radius:4px;font-size:12px;color:#1f2937;background:#fff}.tcp-rgb-slider{-webkit-appearance:none;appearance:none;width:100%;height:10px;border-radius:4px;outline:none;cursor:pointer;background:#c7ccd1}.tcp-rgb-slider::-webkit-slider-runnable-track{height:10px;border-radius:4px;background:inherit}.tcp-rgb-slider::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:18px;border-radius:2px;background:#fff;border:1px solid #1f2937;margin-top:-4px;cursor:pointer}.tcp-rgb-slider::-moz-range-track{height:10px;border-radius:4px;background:inherit}.tcp-rgb-slider::-moz-range-thumb{width:12px;height:18px;border-radius:2px;background:#fff;border:1px solid #1f2937;cursor:pointer}.cb{display:flex;flex-direction:column}.cb-book-select{margin-top:6px;width:260px;max-width:100%;padding:4px 6px;border:1px solid #c7ccd1;border-radius:4px;font-size:12px;color:#1f2937;background:#fff}.cb-body{display:flex;gap:8px;margin-top:14px}.cb-list{width:190px;height:222px;overflow-y:auto;scrollbar-width:none;border:1px solid #9ca3af;display:flex;flex-direction:column;gap:2px;padding:3px;box-sizing:border-box}.cb-list::-webkit-scrollbar{display:none}.cb-row{padding:3px 8px;font-size:12px;color:#1f2937;border:2px solid transparent;border-radius:3px;box-sizing:border-box;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0}.cb-row.sel{border-color:#1a56db}.cb-group-header{padding:3px 8px 1px;font-size:11px;font-weight:700;text-align:center;color:#6b7280;flex-shrink:0}.cb-strip{position:relative;width:14px;height:222px;display:flex;flex-direction:column;border:1px solid #9ca3af;cursor:pointer;touch-action:none}.cb-strip-cell{flex:1;pointer-events:none}.cb-strip-group-start{border-top:1px solid #1f2937}.cb-scrollbar-thumb{position:absolute;left:-1px;right:-1px;border:1px solid #1f2937;background:#fff;pointer-events:none}.cb-rgb{flex:1;min-width:90px}.tree-row{display:grid;grid-template-columns:14px 1fr auto auto auto auto;align-items:center;gap:3px;padding:4px 3px 4px 10px;cursor:pointer;background:#f3f4f6;border-bottom:1px solid #e5e7eb;border-top:2px solid transparent}.tree-row[draggable]{cursor:grab}.tree-row[draggable]:active{cursor:grabbing}.tree-row.dnd-drop-before{border-top:2px solid #2563eb}.tree-row.dnd-drop-after{border-bottom:2px solid #2563eb}.tree-row.dnd-drop-into{background:#eff6ff!important;outline:2px solid #2563eb;outline-offset:-2px}.tree-row:hover{background:#e5e7eb}.tree-row.sel{background:#93c5fd}.tree-row .dot{width:8px;height:8px;border-radius:2px}.tree-row .name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tree-row .meta{color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}.tree-row .eye{padding:0 1px;cursor:pointer;color:#9ca3af;line-height:1;display:flex;align-items:center;opacity:1}.tree-row.hidden-ent .eye{opacity:.3;color:#9ca3af}.tree-row.hidden-ent:hover .eye{opacity:.55}.tree-row.hidden-ent .name{color:var(--muted);opacity:.5}.tree-row .lock{padding:0 1px;cursor:pointer;line-height:1;display:flex;align-items:center;color:#9ca3af;opacity:1}.tree-row.locked-ent .lock{color:#f59e0b}.tree-row.locked-ent .name{color:var(--muted)}.tree-row.locked-ent .del{pointer-events:none;opacity:.2}.tree-row .del{color:#b91c1c;font-size:11px;padding:0 3px;border-radius:3px;cursor:pointer;visibility:hidden}.tree-row:hover .del,.tree-row.sel .del{visibility:visible}.tree-row .del:hover{background:#fee2e2}.tree-row .gear{padding:0 1px;cursor:pointer;color:#9ca3af;line-height:1;display:flex;align-items:center;opacity:1}.tree-row .gear:hover{color:var(--accent)}.tree-empty{padding:10px 12px;color:var(--muted);font-size:12px;font-style:italic;background:#f3f4f6}.tree-empty.dnd-drop-into{background:#eff6ff!important;outline:2px solid #2563eb;outline-offset:-2px;color:#2563eb}.tree-standalone-drop{margin:4px 8px;padding:6px 10px;border:1.5px dashed #d1d5db;border-radius:6px;font-size:11px;color:#9ca3af;text-align:center;cursor:default}.tree-standalone-drop.active{border-color:#2563eb;background:#eff6ff;color:#2563eb}#cmdline{display:none}#cmdprompt{color:#93c5fd}#cmdinput{flex:1;background:transparent;border:none;outline:none;color:#f9fafb;font-family:inherit;font-size:inherit}.draw-toast{position:absolute;right:16px;bottom:48px;z-index:60;display:flex;align-items:flex-start;gap:10px;width:min(360px,calc(100% - 32px));padding:12px 14px;background:#fff;border:1px solid #d4e0e8;border-radius:12px;box-shadow:0 8px 24px #1118271f;color:var(--line);font-size:13px;line-height:1.35}.draw-toast-ico{width:18px;height:18px;flex:0 0 18px;margin-top:1px}.draw-toast--err .draw-toast-ico{color:#e5484d}.draw-toast--info .draw-toast-ico{color:#3498db}.draw-toast-text{min-width:0}.msg-log{position:relative;flex-shrink:0}.msg-log .iconbtn.active{background:var(--chip)}.msg-log-panel{position:absolute;top:calc(100% + 8px);right:0;z-index:80;width:min(360px,70vw);max-height:min(480px,70vh);overflow:auto;padding:14px 14px 12px;background:#f4f7f9;border:1px solid #d4e0e8;border-radius:12px;box-shadow:0 12px 32px #11182729}.msg-log-title{font-size:16px;font-weight:600;color:var(--line)}.msg-log-hint,.msg-log-empty{margin:8px 0 0;font-size:12px;line-height:1.35;color:var(--muted)}.msg-log-list{display:flex;flex-direction:column;gap:8px;margin:12px 0 0;padding:0;list-style:none}.msg-log-item{display:flex;gap:10px;padding:10px 12px;background:#fff;border:1px solid #d4e0e8;border-radius:12px}.msg-log-ico{width:18px;height:18px;flex:0 0 18px;margin-top:1px}.msg-log-item--err .msg-log-ico{color:#e5484d}.msg-log-item--info .msg-log-ico{color:#1fa35b}.msg-log-body{display:flex;min-width:0;flex-direction:column;gap:4px}.msg-log-text{font-size:13px;line-height:1.35;color:var(--line)}.msg-log-time{font-size:12px;color:var(--muted)}#status{grid-area:statusbar;display:flex;align-items:center;padding:0 8px;background:var(--panel);border-top:1px solid var(--border)}#status .sb-group{display:inline-flex;align-items:center;gap:4px;margin-left:auto}#status .sb-sep{width:1px;height:20px;background:var(--border);margin-right:8px;flex-shrink:0}#status .sb-btn{display:inline-flex;flex-direction:row;align-items:center;gap:6px;border:none;background:transparent;border-radius:6px;cursor:pointer;padding:0 8px;font-size:12px;color:var(--line);height:28px;white-space:nowrap}#status .sb-btn:hover,#status .sb-btn.active{background:var(--chip)}#status .sb-btn svg{width:16px;height:16px;flex-shrink:0}#status .sb-btn .lbl{line-height:1.4;white-space:nowrap}#status .sb-btn-group{display:inline-flex;align-items:center;gap:1px}#status .sb-chevron{display:inline-flex;align-items:center;justify-content:center;width:18px;height:28px;border:none;background:transparent;border-radius:6px;cursor:pointer;color:var(--muted);padding:0}#status .sb-chevron:hover{background:var(--chip);color:var(--line)}#status .sb-arr{width:10px;height:10px;flex-shrink:0;transition:transform .15s}#status .sb-arr--up{transform:rotate(180deg)}#rechud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px 14px;display:none;align-items:center;gap:12px;font-size:13px;box-shadow:0 2px 8px #0000000f;z-index:30}#rechud.show{display:flex}#rechud .rh-title{font-weight:700;color:var(--line);white-space:nowrap;margin-right:2px}#rechud .rh-grp{display:flex;align-items:center;gap:6px}#rechud .rh-grp label{color:#374151;white-space:nowrap}#rechud .rh-grp input[type=number]{width:72px;padding:5px 8px;border:1px solid var(--border);border-radius:5px;background:#fff;font:inherit;font-size:13px;text-align:right;color:var(--line);-moz-appearance:textfield}#rechud .rh-grp input[type=number]:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}#rechud .rh-grp input::-webkit-outer-spin-button,#rechud .rh-grp input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#rechud .rh-cut-lbl{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--line);cursor:pointer;white-space:nowrap}#rechud .rh-cut-lbl input{width:14px;height:14px;cursor:pointer;margin:0;accent-color:var(--accent)}.bylayer-lbl{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--line);cursor:pointer;white-space:nowrap}.bylayer-lbl input{width:14px;height:14px;cursor:pointer;margin:0;accent-color:var(--accent)}input[type=color]:disabled{opacity:.5;cursor:not-allowed}#rechud .rh-metric{font-size:12px;color:var(--muted);white-space:nowrap}#rechud .rh-unit{font-size:11px;color:var(--muted);white-space:nowrap}#rechud button{font:inherit;font-size:12px;padding:5px 12px;border:1px solid var(--border);background:#fff;border-radius:5px;cursor:pointer;color:var(--line);white-space:nowrap}#rechud button:hover{background:#f3f4f6}#rechud .rh-ok{background:#fff;color:var(--accent);border-color:var(--accent);font-weight:600}#rechud .rh-ok:hover{background:#eff6ff}#rechud .rh-del{color:#b91c1c;border-color:#fca5a5}#rechud .rh-del:hover{background:#fee2e2}#rechud .rh-close{width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:18px;border:none;background:transparent;border-radius:50%}#rechud .rh-close:hover{background:var(--chip);color:var(--line)}#rechud:not(.edit) .rh-edit-only{display:none!important}#rechud.edit .rh-draw-only{display:none!important}#scalehud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px 14px;display:none;align-items:center;gap:10px;font-size:13px;box-shadow:0 2px 8px #0000000f;z-index:30;white-space:nowrap;flex-wrap:wrap}#scalehud.show{display:flex}#scalehud .sh-title{font-weight:600;color:#374151;margin-right:2px}#scalehud .sh-lbl{color:#6b7280;font-size:12px}#scalehud input[type=number]{width:64px;height:26px;border:1px solid var(--border);border-radius:5px;padding:0 6px;font:inherit;font-size:12px;color:#374151;text-align:right}#scalehud .sh-chk-lbl{display:flex;align-items:center;gap:5px;font-size:12px;color:#374151;cursor:pointer}#scalehud #sh-ok{background:#2563eb;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:12px;padding:4px 12px}#scalehud #sh-ok:hover{background:#1d4ed8}#scalehud #sh-x{background:none;border:none;cursor:pointer;font-size:16px;color:#9ca3af;line-height:1;padding:0 0 0 2px}#scalehud #sh-x:hover{color:#374151}#joinhud,#breakhud,#trimhud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px 16px;display:none;align-items:center;gap:12px;font-size:13px;box-shadow:0 2px 8px #0000000f;z-index:30;white-space:nowrap}#joinhud.show,#breakhud.show,#trimhud.show{display:flex}#joinhud span,#breakhud span,#trimhud span{color:#374151}#joinhud #jh-ok{background:#2563eb;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:12px;padding:4px 12px;line-height:1.4}#joinhud #jh-ok:hover{background:#1d4ed8}#joinhud #jh-x,#breakhud #bh-x,#trimhud #th-x{background:none;border:none;cursor:pointer;font-size:16px;color:#9ca3af;line-height:1;padding:0 0 0 4px}#joinhud #jh-x:hover,#breakhud #bh-x:hover,#trimhud #th-x:hover{color:#374151}#linehud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px 14px;display:none;align-items:center;gap:12px;font-size:13px;box-shadow:0 2px 8px #0000000f;z-index:30}#linehud.show{display:flex}#linehud .lh-title{font-weight:700;color:var(--line);white-space:nowrap;margin-right:2px}#linehud .lh-grp{display:flex;align-items:center;gap:6px}#linehud .lh-grp label{color:#374151;white-space:nowrap}#linehud .lh-grp input[type=number]{width:72px;padding:5px 8px;border:1px solid var(--border);border-radius:5px;background:#fff;font:inherit;font-size:13px;text-align:right;color:var(--line);-moz-appearance:textfield}#linehud .lh-grp input[type=number]:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}#linehud .lh-grp input::-webkit-outer-spin-button,#linehud .lh-grp input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#linehud .lh-cut-lbl{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--line);cursor:pointer;white-space:nowrap}#linehud .lh-cut-lbl input{width:14px;height:14px;cursor:pointer;margin:0;accent-color:var(--accent)}#linehud .lh-metric{font-size:12px;color:var(--muted);white-space:nowrap}#linehud .lh-unit{font-size:11px;color:var(--muted);white-space:nowrap}#linehud button{font:inherit;font-size:12px;padding:5px 12px;border:1px solid var(--border);background:#fff;border-radius:5px;cursor:pointer;color:var(--line);white-space:nowrap}#linehud button:hover{background:#f3f4f6}#linehud .lh-del{color:#b91c1c;border-color:#fca5a5}#linehud .lh-del:hover{background:#fee2e2}#linehud .lh-ok{font:inherit;font-size:12px;padding:5px 14px;border:1px solid var(--accent);background:#fff;color:var(--accent);border-radius:5px;cursor:pointer;font-weight:600;white-space:nowrap}#linehud .lh-ok:hover{background:#eff6ff}#linehud.edit .lh-ok{display:none!important}#linehud .lh-close{width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:18px;border:none;background:transparent;border-radius:50%}#linehud .lh-close:hover{background:var(--chip);color:var(--line)}#linehud:not(.edit) .lh-edit-only{display:none!important}#linehud .lh-sep{width:1px;height:22px;background:var(--border);flex-shrink:0}#linehud input[type=color]{width:26px;height:26px;border:1px solid var(--border);border-radius:5px;cursor:pointer;padding:2px;background:#fff;flex-shrink:0}#linehud input[type=color]::-webkit-color-swatch-wrapper{padding:0;border-radius:3px}#linehud input[type=color]::-webkit-color-swatch{border:none;border-radius:3px}#linehud select{border:1px solid var(--border);border-radius:5px;background:#fff;font:inherit;font-size:12px;color:var(--line);padding:4px 6px;cursor:pointer;outline:none}#linehud select:focus{border-color:var(--accent)}#arc-width,#lh-width,#rh-width,#spl-width,#al-width,#mh-width{width:96px;flex-shrink:0}#linehud #lh-type{width:130px}#movehud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px 14px;display:none;align-items:center;gap:12px;font-size:13px;box-shadow:0 2px 8px #0000000f;z-index:30}#movehud.show{display:flex}#movehud .mv-title{font-weight:700;color:var(--line);white-space:nowrap;margin-right:2px}#movehud .mv-status{color:var(--muted);font-size:12px;white-space:nowrap}#movehud .mv-apply{font:inherit;font-size:12px;padding:5px 14px;border:1px solid var(--accent);background:#fff;color:var(--accent);border-radius:5px;cursor:pointer;font-weight:600;white-space:nowrap}#movehud .mv-apply:hover:not(:disabled){background:#eff6ff}#movehud .mv-apply:disabled{opacity:.4;cursor:default}#movehud .mv-grp{display:flex;align-items:center;gap:6px}#movehud .mv-grp label{color:#374151;white-space:nowrap}#movehud .mv-grp input[type=number]{width:80px;padding:5px 8px;border:1px solid var(--border);border-radius:5px;background:#fff;font:inherit;font-size:13px;text-align:right;color:var(--line);-moz-appearance:textfield}#movehud .mv-grp input[type=number]:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}#movehud .mv-grp input::-webkit-outer-spin-button,#movehud .mv-grp input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#movehud .mv-unit{font-size:11px;color:var(--muted);white-space:nowrap}#movehud .mv-ok{font:inherit;font-size:12px;padding:5px 14px;border:1px solid var(--accent);background:#fff;color:var(--accent);border-radius:5px;cursor:pointer;font-weight:600;white-space:nowrap}#movehud .mv-ok:hover{background:#eff6ff}#movehud .mv-close{width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:18px;border:none;background:transparent;border-radius:50%;cursor:pointer}#movehud .mv-close:hover{background:var(--chip);color:var(--line)}#ptchud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px 14px;display:none;align-items:center;gap:12px;font-size:13px;box-shadow:0 2px 8px #0000000f;z-index:30}#ptchud.show{display:flex}#ptchud .pt-title{font-weight:700;color:var(--line);white-space:nowrap;margin-right:2px}#ptchud .pt-grp{display:flex;align-items:center;gap:6px}#ptchud .pt-grp label{color:#374151;white-space:nowrap}#ptchud .pt-grp input[type=number]{width:72px;padding:5px 8px;border:1px solid var(--border);border-radius:5px;background:#fff;font:inherit;font-size:13px;text-align:right;color:var(--line);-moz-appearance:textfield}#ptchud .pt-grp input[type=number]:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}#ptchud .pt-grp input::-webkit-outer-spin-button,#ptchud .pt-grp input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#ptchud .pt-metric{font-size:12px;color:var(--muted);white-space:nowrap}#ptchud button{font:inherit;font-size:12px;padding:5px 12px;border:1px solid var(--border);background:#fff;border-radius:5px;cursor:pointer;color:var(--line);white-space:nowrap}#ptchud button:hover{background:#f3f4f6}#ptchud .pt-del{color:#b91c1c;border-color:#fca5a5}#ptchud .pt-del:hover{background:#fee2e2}#ptchud .pt-close{width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:18px;border:none;background:transparent;border-radius:50%}#ptchud .pt-close:hover{background:var(--chip);color:var(--line)}#text-edit-overlay{position:absolute;min-width:2px;min-height:1em;outline:1.5px dashed #2563eb;outline-offset:2px;background:transparent;border:none;padding:0;margin:0;line-height:1.2;white-space:pre;cursor:text;z-index:50;caret-color:#2563eb}#texthud{position:fixed;bottom:20px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:2px;background:#fff;border:1px solid var(--border);border-radius:10px;padding:6px 10px;box-shadow:0 4px 20px #0000001f,0 1px 4px #0000000f;z-index:60;user-select:none;font-size:13px;color:var(--line)}#texthud .th-sep{width:1px;height:20px;background:var(--border);margin:0 4px;flex-shrink:0}#texthud .th-font{display:flex;align-items:center;gap:4px;padding:4px 8px;border-radius:6px;cursor:pointer;position:relative;min-width:110px;justify-content:space-between}#texthud .th-font:hover{background:var(--chip)}#texthud .th-font-name{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100px}#texthud .th-chevron{color:var(--muted);flex-shrink:0}#texthud .th-size{display:flex;align-items:center;gap:0}#texthud .th-size-input{width:40px;padding:4px;border:1px solid var(--border);border-radius:5px 0 0 5px;font:inherit;font-size:13px;text-align:center;color:var(--line);-moz-appearance:textfield;outline:none}#texthud .th-size-input:focus{border-color:var(--accent);outline:2px solid var(--accent);outline-offset:-1px}#texthud .th-size-input::-webkit-outer-spin-button,#texthud .th-size-input::-webkit-inner-spin-button{-webkit-appearance:none}#texthud .th-size-arrows{display:flex;flex-direction:column}#texthud .th-size-arrows button{all:unset;cursor:pointer;display:flex;align-items:center;justify-content:center;width:18px;height:12px;font-size:7px;color:var(--muted);background:#f8fafc;border:1px solid var(--border);border-left:none;line-height:1}#texthud .th-size-arrows button:first-child{border-radius:0 4px 0 0;border-bottom:none}#texthud .th-size-arrows button:last-child{border-radius:0 0 4px}#texthud .th-size-arrows button:hover{background:#e2e8f0;color:var(--line)}#texthud .th-btn{display:flex;align-items:center;justify-content:center;padding:5px 7px;border-radius:6px;cursor:pointer;position:relative}#texthud .th-btn:hover{background:var(--chip)}#texthud .th-icon-btn{all:unset;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:6px;cursor:pointer;font-size:15px;font-weight:700;color:var(--line)}#texthud .th-icon-btn:hover{background:var(--chip)}#texthud .th-icon-btn.on{background:#eff6ff;color:var(--accent)}#texthud .th-color-dot{width:18px;height:18px;border-radius:50%;border:2px solid rgba(0,0,0,.15);flex-shrink:0}#texthud .th-more{font-size:16px;font-weight:700;letter-spacing:1px;padding:4px 6px}#texthud .th-popup{position:absolute;bottom:calc(100% + 10px);left:50%;transform:translate(-50%);background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 32px #00000024,0 2px 8px #0000000f;z-index:100;min-width:160px}#texthud .th-font-popup{padding:8px;min-width:200px}#texthud .th-font-search{width:100%;box-sizing:border-box;padding:6px 10px;border:1px solid var(--border);border-radius:6px;font:inherit;font-size:12px;outline:none;margin-bottom:6px}#texthud .th-font-search:focus{border-color:var(--accent)}#texthud .th-font-list{max-height:220px;overflow-y:auto;display:flex;flex-direction:column;gap:1px}#texthud .th-font-item{padding:7px 10px;border-radius:5px;cursor:pointer;font-size:14px;color:var(--line);white-space:nowrap}#texthud .th-font-item:hover{background:var(--chip)}#texthud .th-font-item.active{background:#eff6ff;color:var(--accent);font-weight:600}#texthud .th-font-empty{padding:8px 10px;color:var(--muted);font-size:12px;text-align:center}#texthud .th-align-popup{display:flex;gap:4px;padding:6px;min-width:auto}#texthud .th-align-opt{all:unset;cursor:pointer;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;color:var(--line)}#texthud .th-align-opt:hover{background:var(--chip)}#texthud .th-align-opt.on{background:#eff6ff;color:var(--accent)}#texthud .th-color-popup{padding:10px;min-width:auto}#texthud .th-color-grid{display:grid;grid-template-columns:repeat(8,20px);gap:4px}#texthud .th-swatch{width:20px;height:20px;border-radius:4px;cursor:pointer;border:1px solid rgba(0,0,0,.1);transition:transform .1s}#texthud .th-swatch:hover{transform:scale(1.2);border-color:#0000004d}#texthud .th-swatch.active{outline:2px solid var(--accent);outline-offset:1px}#texthud .th-bylayer,#hatchhud .hh-bylayer{display:block;width:100%;margin-bottom:8px;padding:4px 8px;border:1px solid var(--border);border-radius:4px;background:transparent;color:var(--line);font-size:12px;cursor:pointer;text-align:left}#texthud .th-bylayer.active,#hatchhud .hh-bylayer.active{border-color:var(--accent);color:var(--accent)}#texthud .th-style-wrap{font-size:15px;font-weight:700;min-width:28px;justify-content:center}#texthud .th-b-label{color:var(--line);pointer-events:none}#texthud .th-b-label.on{color:var(--accent)}#texthud .th-style-wrap.has-active{background:#eff6ff;border-radius:6px}#texthud .th-style-popup{display:flex;gap:4px;padding:6px;min-width:auto}#texthud .th-style-btn{all:unset;cursor:pointer;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;font-size:14px;color:var(--line)}#texthud .th-style-btn:hover{background:var(--chip)}#texthud .th-style-btn.on{background:#eff6ff;color:var(--accent)}#texthud .th-menu-wrap{position:relative}#texthud .th-dots{font-size:16px;font-weight:700;letter-spacing:2px;line-height:1;color:var(--line);pointer-events:none}#texthud .th-menu-popup{position:absolute;bottom:calc(100% + 8px);right:0;background:var(--white);border:1px solid var(--rule);border-radius:8px;box-shadow:0 4px 16px #0000001f;min-width:160px;padding:4px;display:flex;flex-direction:column;z-index:200}#texthud .th-menu-item{display:block;width:100%;text-align:left;background:none;border:none;padding:7px 12px;font-size:13px;color:var(--line);border-radius:6px;cursor:pointer;white-space:nowrap}#texthud .th-menu-item:hover:not(:disabled){background:var(--chip)}#texthud .th-menu-item:disabled{color:var(--muted);cursor:default}#texthud .th-menu-item--danger{color:#dc2626}#texthud .th-menu-item--danger:hover{background:#fee2e2}#texthud .th-menu-sep{height:1px;background:var(--rule);margin:4px 0}#hatchhud{position:absolute;left:12px;top:12px;display:flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:0 2px 8px #0000000f;padding:8px 14px;z-index:30;user-select:none;font-size:13px;color:var(--line)}#hatchhud .hh-label{font-size:11px;color:var(--muted);white-space:nowrap}#hatchhud .hh-sep{width:1px;height:24px;background:var(--rule);margin:0 2px}#hatchhud .hh-field{display:flex;align-items:center;gap:2px}#hatchhud .hh-input{width:52px;height:28px;border:1px solid var(--rule);border-radius:6px;text-align:center;font-size:13px;color:var(--line);background:var(--white);outline:none;padding:0 4px}#hatchhud .hh-input:focus{border-color:var(--accent)}#hatchhud .hh-input::-webkit-outer-spin-button,#hatchhud .hh-input::-webkit-inner-spin-button{-webkit-appearance:none}#hatchhud .hh-unit{font-size:11px;color:var(--muted)}#hatchhud .hh-arrows{display:flex;flex-direction:column;gap:1px}#hatchhud .hh-arrows button{background:none;border:none;padding:0 2px;font-size:8px;line-height:1;color:var(--muted);cursor:pointer;border-radius:3px;display:flex;align-items:center}#hatchhud .hh-arrows button:hover{background:var(--chip);color:var(--accent)}#hatchhud .hh-btn{display:flex;align-items:center;justify-content:center;height:32px;padding:0 6px;border-radius:6px;cursor:pointer;position:relative}#hatchhud .hh-btn:hover{background:var(--chip)}#hatchhud .hh-color-dot{width:20px;height:20px;border-radius:4px;border:1.5px solid rgba(0,0,0,.15)}#hatchhud .hh-popup{position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%);background:var(--white);border:1px solid var(--rule);border-radius:10px;box-shadow:0 4px 16px #0000001f;z-index:200}#hatchhud .hh-color-popup{padding:10px;min-width:auto}#hatchhud .hh-color-grid{display:grid;grid-template-columns:repeat(6,22px);gap:4px}#hatchhud .hh-swatch{width:22px;height:22px;border-radius:4px;border:1.5px solid rgba(0,0,0,.12);cursor:pointer;transition:transform .1s}#hatchhud .hh-swatch:hover{transform:scale(1.2);border-color:#0000004d}#hatchhud .hh-swatch.active{outline:2px solid var(--accent);outline-offset:1px}#hatchhud .hh-patterns{display:flex;align-items:center;gap:3px}#hatchhud .hh-pat-btn{background:none;border:1px solid transparent;border-radius:6px;padding:3px 7px;font-size:12px;color:var(--muted);cursor:pointer;white-space:nowrap;line-height:1.4}#hatchhud .hh-pat-btn:hover{background:var(--chip);color:var(--line)}#hatchhud .hh-pat-btn.active{background:var(--accent);color:#fff;border-color:var(--accent)}#hatchhud .hh-close{width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:18px;border:none;background:transparent;border-radius:50%;cursor:pointer;flex-shrink:0}#hatchhud .hh-close:hover{background:var(--chip);color:var(--line)}#ptchud:not(.edit) .pt-edit-only{display:none!important}.settings-panel{position:absolute;top:calc(100% + 6px);right:0;width:210px;background:#f0f3f7;border-radius:12px;box-shadow:0 4px 20px #00000021,0 1px 4px #0000000f;padding:14px 16px 16px;z-index:500;display:flex;flex-direction:column;gap:0}.settings-title{font-size:14px;font-weight:700;color:var(--line);margin-bottom:12px}.settings-row{display:flex;align-items:center;justify-content:space-between;padding:5px 0}.settings-label{font-size:13px;font-weight:400;color:var(--line)}.settings-divider{height:1px;background:#00000017;margin:8px 0 10px}.settings-field-group{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}.settings-field-group:last-child{margin-bottom:0}.settings-field-label{font-size:12px;color:var(--line);font-weight:500}.settings-select-wrap{position:relative;display:flex;align-items:center;background:#fff;border:1px solid rgba(0,0,0,.1);border-radius:8px;padding:0 10px;height:32px}.settings-select{flex:1;border:none;background:transparent;font-size:12px;color:var(--line);outline:none;appearance:none;-webkit-appearance:none;cursor:pointer;padding-right:6px}.settings-select--lang{padding-left:4px}.settings-select:disabled{color:var(--muted);cursor:not-allowed}.settings-select-wrap:has(.settings-select:disabled){background:#f3f4f6}.settings-chevron{width:12px;height:12px;color:#9ca3af;flex-shrink:0;pointer-events:none}.settings-flag{font-size:14px;margin-right:6px;line-height:1;flex-shrink:0}.settings-toggle{position:relative;width:36px;height:20px;flex-shrink:0;cursor:pointer}.settings-toggle input{opacity:0;width:0;height:0;position:absolute}.settings-slider{position:absolute;inset:0;background:#d1d5db;border-radius:10px;transition:background .2s}.settings-slider:before{content:"";position:absolute;width:16px;height:16px;left:2px;top:2px;background:#fff;border-radius:50%;transition:transform .2s;box-shadow:0 1px 3px #00000038}.settings-toggle input:checked+.settings-slider{background:#2563eb}.settings-toggle input:checked+.settings-slider:before{transform:translate(16px)}#imagehud{position:absolute;top:16px;right:16px;background:#fff;border:1px solid var(--border);border-radius:10px;padding:10px 12px 12px;display:flex;flex-direction:column;gap:6px;min-width:210px;z-index:60;box-shadow:0 4px 16px #0000001a}#imagehud .ih-title{font-size:12px;font-weight:700;color:var(--line);padding-right:20px}#imagehud .ih-close{position:absolute;top:6px;right:8px}#imagehud .ih-label{font-size:11px;color:var(--muted);min-width:24px}#imagehud .ih-sep{height:1px;background:var(--border);margin:2px 0}#imagehud .ih-opacity-row{display:flex;align-items:center;gap:6px}#imagehud .ih-slider{flex:1;height:4px;accent-color:var(--accent);cursor:pointer}#imagehud .ih-opacity-num{width:42px;text-align:right;font-size:12px;border:1px solid var(--border);border-radius:5px;padding:3px 5px}#imagehud .ih-pct{font-size:11px;color:var(--muted)}#imagehud .ih-row{display:flex;align-items:center;gap:6px}#imagehud .ih-dim-input{width:72px;font-size:12px;border:1px solid var(--border);border-radius:5px;padding:3px 6px}#imagehud .ih-unit{font-size:11px;color:var(--muted)}#imagehud .ih-lock{align-self:center;margin-left:4px;background:none;border:1px solid var(--border);border-radius:5px;padding:2px 7px;font-size:13px;cursor:pointer;color:var(--muted);line-height:1}#imagehud .ih-lock.active{border-color:var(--accent);color:var(--accent)}#imagehud .ih-del{background:none;border:1px solid #ef4444;color:#ef4444;border-radius:6px;padding:4px 10px;font-size:12px;cursor:pointer;margin-top:2px}#imagehud .ih-del:hover{background:#fef2f2}#imagehud .ih-pin-row{display:flex;gap:6px}#imagehud .ih-pin{flex:1;background:none;border:1px solid var(--border);border-radius:6px;padding:6px 8px;font-size:12px;cursor:pointer;color:var(--line)}#imagehud .ih-pin:hover{background:var(--chip)}#imagehud .ih-pin--active{border-color:var(--accent);color:var(--accent)}.pinned-image{position:absolute;top:48px;border:1px solid var(--border);border-radius:8px;background:#fff;box-shadow:0 4px 16px #0000001a;padding:3px;cursor:pointer;z-index:50}.pinned-image:hover{border-color:var(--accent)}.pinned-image--tl{left:16px}.pinned-image--tr{right:16px}.pinned-image-crop{position:relative;overflow:hidden;border-radius:5px}.pinned-image-crop img{position:absolute;display:block;pointer-events:none}.pinned-image-handle{position:absolute;bottom:-5px;width:12px;height:12px;border-radius:50%;background:var(--accent);border:2px solid #fff;box-shadow:0 1px 3px #0000004d;opacity:0;transition:opacity .1s}.pinned-image:hover .pinned-image-handle{opacity:1}.pinned-image-handle--se{right:-5px;cursor:nwse-resize}.pinned-image-handle--sw{left:-5px;cursor:nesw-resize}.crop-editor-backdrop{position:fixed;inset:0;background:#0000008c;z-index:300;display:flex;align-items:center;justify-content:center}.crop-editor-panel{background:var(--panel, #fff);border-radius:10px;padding:16px;display:flex;flex-direction:column;align-items:center;gap:12px;box-shadow:0 8px 32px #0000004d}.crop-editor-frame{position:relative;user-select:none}.crop-editor-frame img{display:block;width:100%;height:100%;pointer-events:none}.crop-editor-dim{position:absolute;inset:0;background:#0000008c;pointer-events:none}.crop-editor-rect{position:absolute;border:2px solid #fff;box-shadow:0 0 0 1px #0006;cursor:move}.crop-editor-handle{position:absolute;width:12px;height:12px;margin:-6px;border-radius:50%;background:var(--accent);border:2px solid #fff;box-shadow:0 1px 3px #0000004d}.crop-editor-actions{display:flex;gap:8px;align-self:flex-end}.kb-overlay{position:fixed;inset:0;background:#00000073;z-index:2000;display:flex;align-items:flex-end;justify-content:center;padding-bottom:32px}.kb-panel{background:#f0f3f7;border-radius:16px;box-shadow:0 24px 80px #00000059,0 4px 16px #00000026;display:flex;flex-direction:column;gap:0;overflow:hidden;max-width:98vw;max-height:calc(100vh - 80px);overflow-y:auto}.kb-header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px 12px;border-bottom:1px solid #dce3ea;flex-shrink:0}.kb-title{font-size:15px;font-weight:600;color:#1e2a38;letter-spacing:-.2px}.kb-close{background:none;border:none;cursor:pointer;color:#6b7280;padding:4px;border-radius:6px;display:flex;align-items:center;justify-content:center;width:28px;height:28px}.kb-close:hover{background:#e0e7ee;color:#1e2a38}.kb-close svg{width:16px;height:16px}.kb-keyboard{display:flex;flex-direction:column;gap:6px;padding:16px 20px;background:#c0cdd8;border-radius:12px;margin:16px;flex-shrink:0}.kb-row{display:flex;flex-direction:row;align-items:center}.kb-row--fn{margin-bottom:-2px}.kb-row--fn .kb-key{height:30px!important;font-size:9px!important}.kb-key{background:#ccd9e5;border-radius:10px;border-bottom:3px solid #9aadba;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:6px 7px 5px;cursor:default;flex-shrink:0;position:relative;font-size:11px;font-weight:600;color:#4a5e70;transition:background .1s;box-shadow:0 1px 2px #0000001f}.kb-key--active{background:#fff;border-bottom-color:#b0bec5;color:#111827;cursor:default}.kb-key-label{font-size:11px;font-weight:600;line-height:1;letter-spacing:-.2px}.kb-key-icon{align-self:flex-end;width:18px;height:18px;display:flex;align-items:center;justify-content:center;color:#374151}.kb-key-icon svg{width:18px;height:18px}.kb-legend{display:flex;flex-direction:row;gap:0;padding:0 16px 16px;flex-shrink:0}.kb-legend-section{flex:1;min-width:0}.kb-legend-divider{width:1px;background:#dce3ea;margin:0 16px;align-self:stretch}.kb-legend-title{font-size:11px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.5px;margin-bottom:8px}.kb-legend-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px 8px}.kb-legend-row{display:flex;align-items:center;gap:5px;padding:3px 0}.kb-legend-icon{width:16px;height:16px;display:flex;align-items:center;justify-content:center;color:#374151;flex-shrink:0}.kb-legend-icon svg{width:16px;height:16px}.kb-legend-label{font-size:12px;color:#374151;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kb-badge{display:inline-flex;align-items:center;justify-content:center;background:#e8eff5;border:1px solid #c8d5e0;border-bottom-width:2px;border-radius:5px;padding:1px 5px;font-size:11px;font-weight:600;color:#374151;white-space:nowrap;line-height:1.4;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,monospace}.kb-legend-cmd-list{display:flex;flex-direction:column;gap:3px}.kb-legend-cmd{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:3px 0}.kb-legend-cmd-label{font-size:12px;color:#374151;flex:1;min-width:0}.kb-legend-cmd-keys{display:flex;align-items:center;gap:3px;flex-shrink:0}.export-menu{position:absolute;top:calc(100% + 4px);left:50%;transform:translate(-50%);background:#f0f3f7;border-radius:10px;box-shadow:0 4px 20px #00000021,0 1px 4px #0000000f;padding:6px;z-index:500;display:flex;flex-direction:column;gap:2px;min-width:100px}.export-item{background:none;border:none;border-radius:6px;padding:8px 16px;font-size:13px;font-weight:500;color:var(--line);cursor:pointer;text-align:center;white-space:nowrap}.export-item:hover{background:var(--chip)}.export-item--disabled{color:var(--muted);cursor:not-allowed;opacity:.5}.export-item--disabled:hover{background:none}#polyhud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px 14px;display:none;align-items:center;gap:10px;font-size:13px;box-shadow:0 2px 8px #0000000f;z-index:30;white-space:nowrap;flex-wrap:wrap}#polyhud.show{display:flex}.ph-title{font-weight:600;color:#374151}.ph-lbl{color:#6b7280;font-size:12px}.ph-inp{width:48px;height:26px;border:1px solid var(--border);border-radius:5px;padding:0 6px;font:inherit;font-size:12px;color:#374151;text-align:right;outline:none;-moz-appearance:textfield}.ph-inp::-webkit-outer-spin-button,.ph-inp::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.ph-inp:focus{border-color:var(--accent)}.ph-type{display:flex;align-items:center;gap:10px}.ph-radio{display:flex;align-items:center;gap:4px;font-size:12px;color:#374151;cursor:pointer}.ph-radio input[type=radio]{accent-color:var(--accent);cursor:pointer}.ph-sep{width:1px;height:20px;background:var(--border);flex-shrink:0}.ph-r-wrap{display:flex;align-items:center;gap:6px}.ph-inp-r{width:72px}.ph-inp-ang{width:60px}#ph-x{background:none;border:none;cursor:pointer;font-size:16px;color:#9ca3af;line-height:1;padding:0 0 0 2px}#ph-x:hover{color:#374151}.ph-draw-mode{display:flex;gap:3px}.ph-modeBtn{height:26px;padding:0 10px;font:inherit;font-size:12px;border:1px solid var(--border);border-radius:5px;background:#f9fafb;color:#374151;cursor:pointer;transition:background .1s,border-color .1s;white-space:nowrap}.ph-modeBtn:hover{background:#f3f4f6}.ph-modeBtn.active{background:var(--accent);border-color:var(--accent);color:#fff}#multihud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:6px 12px;display:none;align-items:center;gap:10px;font-size:13px;box-shadow:0 2px 8px #00000014;z-index:30;white-space:nowrap}#multihud.show{display:flex}#multihud input[type=color]{width:26px;height:26px;border:1px solid var(--border);border-radius:5px;cursor:pointer;padding:2px;background:#fff;flex-shrink:0}#multihud input[type=color]::-webkit-color-swatch-wrapper{padding:0;border-radius:3px}#multihud input[type=color]::-webkit-color-swatch{border:none;border-radius:3px}.mh-count{font-weight:600;color:#374151}.mh-sep{width:1px;height:22px;background:var(--border);margin:0 2px;flex-shrink:0}.mh-grp{display:flex;align-items:center;gap:4px}.mh-grp label{font-size:12px;color:#6b7280}.mh-x{border:none;background:transparent;cursor:pointer;font-size:18px;line-height:1;color:#9ca3af;padding:0 2px;margin-left:2px}.mh-x:hover{color:#374151}#copyhud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:6px 12px;display:none;align-items:center;gap:10px;font-size:13px;box-shadow:0 2px 8px #00000014;z-index:30;white-space:nowrap}#copyhud.show{display:flex}.cph-label{font-weight:600;color:#374151}.cph-status{color:#6b7280;font-size:12px}.cph-ok{height:26px;padding:0 10px;font:inherit;font-size:12px;border:1px solid var(--accent);border-radius:5px;background:var(--accent);color:#fff;cursor:pointer}.cph-ok:hover:not(:disabled){opacity:.9}.cph-ok:disabled{opacity:.4;cursor:default}.cph-x{background:none;border:none;cursor:pointer;font-size:16px;color:#9ca3af;line-height:1;padding:0 0 0 2px}.cph-x:hover{color:#374151}.cph-sep{width:1px;height:20px;background:var(--border);flex-shrink:0}.cph-lbl{color:#6b7280;font-size:12px}.cph-inp{width:72px;height:26px;border:1px solid var(--border);border-radius:5px;padding:0 6px;font:inherit;font-size:12px;color:#374151;text-align:right;outline:none;-moz-appearance:textfield}.cph-inp::-webkit-outer-spin-button,.cph-inp::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.cph-inp:focus{border-color:var(--accent)}.cph-inp-ang{width:60px}#ctx-menu{position:fixed;display:none;flex-direction:column;min-width:200px;background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:0 4px 16px #0000001f,0 1px 4px #0000000f;padding:4px;z-index:9999;user-select:none;font-size:13px}#ctx-menu[style*="display: block"]{display:flex!important}.ctx-item{display:flex;align-items:center;justify-content:space-between;gap:24px;width:100%;padding:7px 10px;background:none;border:none;border-radius:5px;cursor:pointer;color:#374151;font:inherit;font-size:13px;text-align:left;transition:background .08s}.ctx-item:hover:not(:disabled){background:#f3f4f6}.ctx-item:disabled{opacity:.4;cursor:default}.ctx-item--danger{color:#dc2626}.ctx-item--danger:hover:not(:disabled){background:#fef2f2}.ctx-label{flex:1}.ctx-kbd{font-size:11px;color:#9ca3af;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:4px;padding:1px 5px;white-space:nowrap;font-family:system-ui,sans-serif}.ctx-item--danger .ctx-kbd{color:#f87171;background:#fef2f2;border-color:#fecaca}.ctx-sep{height:1px;background:var(--border);margin:4px 0}#arrayhud{position:absolute;left:12px;top:12px;background:#fff;border:1px solid var(--border);border-radius:10px;padding:10px 14px;font-size:12px;box-shadow:0 4px 12px #00000014;z-index:25;display:none;flex-direction:column;gap:8px;max-width:calc(100% - 24px)}#arrayhud.show{display:flex}.arh-header{display:flex;align-items:center;gap:8px;justify-content:space-between}.arh-tabs{display:flex;gap:2px;flex-wrap:wrap}.arh-tab{border:1px solid var(--border);background:transparent;border-radius:6px;cursor:pointer;font:inherit;font-size:11px;padding:3px 9px;color:var(--muted);white-space:nowrap}.arh-tab:hover{background:var(--chip)}.arh-tab.active{background:var(--accent);color:#fff;border-color:var(--accent)}.arh-mode,.arh-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.arh-lbl{font-size:11px;color:var(--muted);white-space:nowrap}.arh-inp{width:64px;height:26px;border:1px solid var(--border);border-radius:5px;padding:0 6px;font:inherit;font-size:12px;color:#374151;text-align:right;outline:none;-moz-appearance:textfield}.arh-inp.arh-inp-sm{width:44px}.arh-inp:focus{border-color:var(--accent)}.arh-inp::-webkit-outer-spin-button,.arh-inp::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.arh-pick-btn{height:26px;padding:0 10px;border:1px solid var(--accent);border-radius:5px;background:transparent;color:var(--accent);cursor:pointer;font:inherit;font-size:11px;white-space:nowrap}.arh-pick-btn:hover{background:#eff6ff}.arh-info{font-size:11px;color:var(--muted)}.arh-chk-lbl{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--muted);cursor:pointer;white-space:nowrap}.arh-footer{display:flex;align-items:center;gap:8px}#arh-status{font-size:11px;color:var(--muted);flex:1;min-width:0}#arh-ok{height:28px;padding:0 14px;border:none;border-radius:6px;background:var(--accent);color:#fff;cursor:pointer;font:inherit;font-size:12px;white-space:nowrap;flex-shrink:0}#arh-ok:hover{background:var(--accent-hover)}#arh-x{width:26px;height:26px;border:1px solid var(--border);border-radius:5px;background:transparent;cursor:pointer;font:inherit;font-size:14px;color:var(--muted);padding:0;flex-shrink:0;display:flex;align-items:center;justify-content:center}#arh-x:hover{background:var(--chip);color:var(--line)}.pd-overlay{position:fixed;inset:0;z-index:2000;display:flex;align-items:flex-start;justify-content:flex-end;padding:56px 8px 8px;pointer-events:none}.pd-modal{pointer-events:all;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 32px #0000002e;min-width:360px;max-height:calc(100vh - 72px);display:flex;flex-direction:column;overflow:hidden}.pd-header{display:flex;align-items:center;justify-content:space-between;padding:10px 12px 10px 14px;border-bottom:1px solid var(--border);flex-shrink:0}.pd-title{font-size:13px;font-weight:600;color:var(--line)}.pd-json-open{border:1px solid var(--border);background:#fff;color:var(--accent);border-radius:5px;padding:3px 8px;font:inherit;font-size:10px;font-weight:700;cursor:pointer;letter-spacing:.03em}.pd-json-open:hover{border-color:var(--accent);background:#eff6ff}.pd-header-actions{display:flex;align-items:center;gap:8px}.pd-metric-toggle{display:inline-flex;align-items:center;gap:7px;margin-left:auto;margin-right:8px;color:var(--muted);font-size:11px;font-weight:600;cursor:pointer;white-space:nowrap}.pd-metric-toggle input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.pd-metric-slider{position:relative;width:30px;height:18px;border-radius:999px;background:#cbd5e1;transition:background .15s ease}.pd-metric-slider:before{content:"";position:absolute;width:14px;height:14px;top:2px;left:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0f172a40;transition:transform .15s ease}.pd-metric-toggle input:checked+.pd-metric-slider{background:var(--accent)}.pd-metric-toggle input:checked+.pd-metric-slider:before{transform:translate(12px)}.pd-metric-toggle input:focus-visible+.pd-metric-slider{outline:2px solid rgba(37,99,235,.35);outline-offset:2px}.pd-refresh{border:none;background:transparent;cursor:pointer;font-size:16px;color:var(--muted);padding:2px 6px;border-radius:4px;line-height:1}.pd-refresh:hover{background:var(--chip);color:var(--line)}.pd-close{border:none;background:transparent;cursor:pointer;font-size:14px;color:var(--muted);padding:2px 6px;border-radius:4px}.pd-close:hover{background:var(--chip);color:var(--line)}.pd-body{overflow-y:auto;padding:8px}.pd-table{width:100%;border-collapse:collapse;font-size:12px}.pd-table th{text-align:left;padding:5px 8px;font-size:11px;font-weight:600;color:var(--muted);border-bottom:1px solid var(--border);background:var(--chip)}.pd-table th:not(:first-child){text-align:right}.pd-table td{padding:4px 8px;border-bottom:1px solid #f0f0f0}.pd-var{font-size:11px;color:var(--muted);font-family:monospace;white-space:nowrap}.pd-row-name{font-size:11px;color:var(--muted);font-family:inherit;margin-left:8px}.pd-val{text-align:right;font-size:12px;font-weight:500;color:var(--line);font-variant-numeric:tabular-nums}.pd-unit{text-align:right;font-size:11px;color:var(--muted);white-space:nowrap}.pd-group td{background:#f8f8f8;font-size:11px;font-weight:700;color:var(--muted);padding:6px 8px 3px;text-transform:uppercase;letter-spacing:.04em}.pd-hint-wrap{position:relative;display:inline-flex;align-items:center;margin-left:4px}.pd-hint-btn{width:14px;height:14px;border-radius:50%;border:1px solid #b0bec5;background:#f0f4f8;color:#607d8b;font-size:9px;font-weight:700;cursor:pointer;padding:0;line-height:1;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.pd-hint-btn:hover{background:#e3eef6;border-color:#78909c;color:#37474f}.pd-hint-popup{position:absolute;left:20px;top:-4px;z-index:10;background:#1e293b;color:#f1f5f9;font-size:11px;line-height:1.4;border-radius:6px;padding:7px 28px 7px 10px;min-width:180px;max-width:240px;white-space:normal;box-shadow:0 4px 12px #00000040;pointer-events:all}.pd-hint-close{position:absolute;top:4px;right:6px;background:transparent;border:none;color:#94a3b8;cursor:pointer;font-size:11px;padding:0;line-height:1}.pd-json-overlay{position:fixed;inset:0;z-index:2100;display:flex;align-items:center;justify-content:center;padding:24px;background:#0f172a6b}.pd-json-modal{width:min(760px,calc(100vw - 48px));max-height:min(760px,calc(100vh - 48px));display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 20px 60px #0f172a4d}.pd-json-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 18px 14px;border-bottom:1px solid var(--border)}.pd-json-header h2{margin:0;color:var(--line);font-size:15px;line-height:1.3}.pd-json-header p{margin:4px 0 0;color:var(--muted);font-size:11px}.pd-json-close{border:none;background:transparent;color:var(--muted);border-radius:5px;padding:3px 6px;font:inherit;font-size:14px;cursor:pointer}.pd-json-close:hover{background:var(--chip);color:var(--line)}.pd-json-code{flex:1 1 auto;min-height:260px;margin:0;overflow:auto;padding:16px 18px;background:#0f172a;color:#e2e8f0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;line-height:1.55;tab-size:2;white-space:pre}.pd-json-code:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.pd-json-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid var(--border)}.pd-json-status{margin-right:auto;color:#15803d;font-size:11px}.pd-json-status--error{color:#b91c1c}.pd-json-action{min-width:92px;border:1px solid var(--border);background:#fff;color:var(--line);border-radius:6px;padding:7px 12px;font:inherit;font-size:11px;font-weight:600;cursor:pointer}.pd-json-action:hover{border-color:var(--accent);background:#eff6ff}.pd-json-action--primary{border-color:var(--accent);background:var(--accent);color:#fff}.pd-json-action--primary:hover{background:var(--accent-hover);color:#fff}.cnc-pd-overlay{position:fixed;inset:0;z-index:2000;display:flex;align-items:flex-start;justify-content:flex-end;padding:56px 8px 8px;pointer-events:none}.cnc-pd-modal{pointer-events:all;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 32px #0000002e;min-width:360px;max-height:calc(100vh - 72px);display:flex;flex-direction:column;overflow:hidden}.cnc-pd-header{display:flex;align-items:center;justify-content:space-between;padding:10px 12px 10px 14px;border-bottom:1px solid var(--border);flex-shrink:0}.cnc-pd-title{font-size:13px;font-weight:600;color:var(--line)}.cnc-pd-json-open{border:1px solid var(--border);background:#fff;color:var(--accent);border-radius:5px;padding:3px 8px;font:inherit;font-size:10px;font-weight:700;cursor:pointer;letter-spacing:.03em}.cnc-pd-json-open:hover{border-color:var(--accent);background:#eff6ff}.cnc-pd-header-actions{display:flex;align-items:center;gap:8px}.cnc-pd-refresh{border:none;background:transparent;cursor:pointer;font-size:16px;color:var(--muted);padding:2px 6px;border-radius:4px;line-height:1}.cnc-pd-refresh:hover{background:var(--chip);color:var(--line)}.cnc-pd-close{border:none;background:transparent;cursor:pointer;font-size:14px;color:var(--muted);padding:2px 6px;border-radius:4px}.cnc-pd-close:hover{background:var(--chip);color:var(--line)}.cnc-pd-body{overflow-y:auto;padding:8px}.cnc-pd-table{width:100%;border-collapse:collapse;font-size:12px}.cnc-pd-table th{text-align:left;padding:5px 8px;font-size:11px;font-weight:600;color:var(--muted);border-bottom:1px solid var(--border);background:var(--chip)}.cnc-pd-table th:nth-child(3),.cnc-pd-table th:nth-child(4){text-align:right}.cnc-pd-table td{padding:4px 8px;border-bottom:1px solid #f0f0f0}.cnc-pd-label{font-size:12px;color:var(--line);white-space:nowrap}.cnc-pd-var{font-size:11px;color:var(--muted);font-family:monospace;white-space:nowrap}.cnc-pd-val{text-align:right;font-size:12px;font-weight:500;color:var(--line);font-variant-numeric:tabular-nums}.cnc-pd-unit{text-align:right;font-size:11px;color:var(--muted);white-space:nowrap}.cnc-pd-group td{background:#f8f8f8;font-size:11px;font-weight:700;color:var(--muted);padding:6px 8px 3px;text-transform:uppercase;letter-spacing:.04em}.cnc-pd-hint-wrap{position:relative;display:inline-flex;align-items:center;margin-left:4px}.cnc-pd-hint-btn{width:14px;height:14px;border-radius:50%;border:1px solid #b0bec5;background:#f0f4f8;color:#607d8b;font-size:9px;font-weight:700;cursor:pointer;padding:0;line-height:1;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.cnc-pd-hint-btn:hover{background:#e3eef6;border-color:#78909c;color:#37474f}.cnc-pd-hint-popup{position:absolute;left:20px;top:-4px;z-index:10;background:#1e293b;color:#f1f5f9;font-size:11px;line-height:1.4;border-radius:6px;padding:7px 28px 7px 10px;min-width:180px;max-width:240px;white-space:normal;box-shadow:0 4px 12px #00000040;pointer-events:all}.cnc-pd-hint-close{position:absolute;top:4px;right:6px;background:transparent;border:none;color:#94a3b8;cursor:pointer;font-size:11px;padding:0;line-height:1}.cnc-pd-json-overlay{position:fixed;inset:0;z-index:2100;display:flex;align-items:center;justify-content:center;padding:24px;background:#0f172a6b}.cnc-pd-json-modal{width:min(760px,calc(100vw - 48px));max-height:min(760px,calc(100vh - 48px));display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 20px 60px #0f172a4d}.cnc-pd-json-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 18px 14px;border-bottom:1px solid var(--border)}.cnc-pd-json-header h2{margin:0;color:var(--line);font-size:15px;line-height:1.3}.cnc-pd-json-header p{margin:4px 0 0;color:var(--muted);font-size:11px}.cnc-pd-json-close{border:none;background:transparent;color:var(--muted);border-radius:5px;padding:3px 6px;font:inherit;font-size:14px;cursor:pointer}.cnc-pd-json-close:hover{background:var(--chip);color:var(--line)}.cnc-pd-json-code{flex:1 1 auto;min-height:260px;margin:0;overflow:auto;padding:16px 18px;background:#0f172a;color:#e2e8f0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;line-height:1.55;tab-size:2;white-space:pre}.cnc-pd-json-code:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.cnc-pd-json-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid var(--border)}.cnc-pd-json-status{margin-right:auto;color:#15803d;font-size:11px}.cnc-pd-json-status--error{color:#b91c1c}.cnc-pd-json-action{min-width:92px;border:1px solid var(--border);background:#fff;color:var(--line);border-radius:6px;padding:7px 12px;font:inherit;font-size:11px;font-weight:600;cursor:pointer}.cnc-pd-json-action:hover{border-color:var(--accent);background:#eff6ff}.cnc-pd-json-action--primary{border-color:var(--accent);background:var(--accent);color:#fff}.cnc-pd-json-action--primary:hover{background:var(--accent-hover);color:#fff}.op-overlay{position:fixed;inset:0;z-index:2000;display:flex;align-items:flex-start;justify-content:flex-end;padding:56px 8px 8px;pointer-events:none}.op-modal{pointer-events:all;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 32px #0000002e;min-width:360px;max-width:640px;max-height:calc(100vh - 72px);display:flex;flex-direction:column;overflow:hidden}.op-header{display:flex;align-items:center;justify-content:space-between;padding:10px 12px 10px 14px;border-bottom:1px solid var(--border);flex-shrink:0}.op-title{font-size:13px;font-weight:600;color:var(--line)}.op-header-actions{display:flex;align-items:center;gap:8px}.op-refresh{border:none;background:transparent;cursor:pointer;font-size:16px;color:var(--muted);padding:2px 6px;border-radius:4px;line-height:1}.op-refresh:hover{background:var(--chip);color:var(--line)}.op-close{border:none;background:transparent;cursor:pointer;font-size:14px;color:var(--muted);padding:2px 6px;border-radius:4px}.op-close:hover{background:var(--chip);color:var(--line)}.op-toolbar{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid var(--border);flex-shrink:0}.op-toolbar-label{font-size:12px;color:var(--muted)}.op-select{font:inherit;font-size:12px;color:var(--line);border:1px solid var(--border);border-radius:5px;padding:3px 6px;background:#fff;cursor:pointer}.op-select:focus{outline:none;border-color:var(--accent)}.op-body{overflow:auto;padding:8px}.op-table tfoot td{border-bottom:none;border-top:2px solid var(--border);padding-top:6px}.op-total-label{text-align:right;font-size:12px;font-weight:600;color:var(--line)}.op-total-val{font-weight:700}.op-empty{padding:16px 8px;text-align:center;font-size:12px;color:var(--muted)}.op-empty--error{color:#b91c1c}.op-table{border-collapse:collapse;font-size:12px}.op-table th{text-align:left;padding:5px 8px;font-size:11px;font-weight:600;color:var(--muted);border-bottom:1px solid var(--border);background:var(--chip)}.op-table th:not(:first-child){text-align:right;white-space:nowrap}.op-table td{padding:4px 8px;border-bottom:1px solid #f0f0f0}.op-name{font-size:12px;color:var(--line);white-space:nowrap}.op-val{text-align:right;font-size:12px;font-weight:500;color:var(--line);font-variant-numeric:tabular-nums;white-space:nowrap}.ap-overlay{position:fixed;inset:0;z-index:1900;display:flex;align-items:flex-start;justify-content:flex-end;padding:56px 8px 8px;pointer-events:none}.ap-panel{pointer-events:all;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 32px #0000002e;min-width:220px;max-width:360px}.ap-header{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid var(--border)}.ap-title{font-size:13px;font-weight:600;color:var(--line)}.ap-close{border:none;background:transparent;cursor:pointer;font-size:14px;color:var(--muted);padding:2px 6px;border-radius:4px}.ap-close:hover{background:var(--chip);color:var(--line)}.ap-body{padding:6px 8px;max-height:40vh;overflow:auto}.ap-empty{padding:10px 6px;text-align:center;font-size:12px;color:var(--muted)}.ap-colheads{display:flex;align-items:center;gap:14px;padding:2px 6px 4px;font-size:10px;font-weight:600;color:var(--muted);border-bottom:1px solid var(--border);margin-bottom:2px}.ap-colhead-name{width:44px;flex:0 0 auto;margin-right:-6px}.ap-colhead-val{flex:1;text-align:left}.ap-colhead-spacer{width:20px;flex:0 0 auto}.ap-row{display:flex;align-items:center;gap:14px;padding:4px 6px;font-size:12px}.ap-row-name{color:var(--line);font-weight:600;width:44px;flex:0 0 auto;margin-right:-6px}.ap-row-val{flex:1;text-align:left;font-variant-numeric:tabular-nums;color:var(--line)}.ap-row-remove{border:none;background:transparent;cursor:pointer;font-size:13px;color:var(--muted);padding:0;border-radius:4px;width:20px;flex:0 0 auto}.ap-row-remove:hover{background:var(--chip);color:#b91c1c}.ap-total{display:flex;align-items:center;gap:14px;padding:8px 14px;border-top:2px solid var(--border);font-size:12px;font-weight:700;color:var(--line)}.ap-total-name{width:44px;flex:0 0 auto;margin-right:-6px}.ap-total-val{flex:1;text-align:left;font-variant-numeric:tabular-nums}.ap-total-spacer{width:20px;flex:0 0 auto}.p24vm{background:var(--panel);border-radius:16px;box-shadow:0 8px 40px #0f172a29,0 2px 8px #0f172a14;width:440px;max-width:calc(100vw - 32px);overflow:hidden;display:flex;flex-direction:column}.p24vm-header{padding:32px 28px 16px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}.p24vm-icon-wrap{width:60px;height:60px;border-radius:50%;background:#fef2f2;border:1.5px solid #fecaca;display:flex;align-items:center;justify-content:center;flex-shrink:0}.p24vm-title{font-size:16px;font-weight:700;color:var(--line);margin:0}.p24vm-subtitle{font-size:13px;color:var(--muted);margin:0;line-height:1.5;max-width:300px}.p24vm-list{padding:4px 20px;display:flex;flex-direction:column;gap:8px;max-height:300px;overflow-y:auto}.p24vm-item{display:flex;align-items:flex-start;gap:12px;padding:13px 14px;border-radius:10px;background:var(--chip)}.p24vm-item-badge{width:34px;height:34px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.p24vm-item--error .p24vm-item-badge{background:#fee2e2}.p24vm-item--warning .p24vm-item-badge{background:#fef3c7}.p24vm-item-text{display:flex;flex-direction:column;gap:3px;min-width:0;padding-top:1px}.p24vm-item-title{font-size:13px;font-weight:600;color:var(--line)}.p24vm-item-desc{font-size:12px;color:var(--muted);line-height:1.45}.p24vm-footer{padding:20px 24px 24px;display:flex;justify-content:flex-end;border-top:1px solid var(--border);margin-top:16px}.p24-print-overlay{position:fixed;inset:0;z-index:100000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:var(--app-dark);color:#fff}.p24-print-overlay-spinner{width:36px;height:36px;border:3px solid rgba(255,255,255,.25);border-top-color:#fff;border-radius:50%;animation:p24-print-overlay-spin .8s linear infinite}.p24-print-overlay-text{font-size:14px;max-width:28rem;text-align:center;line-height:1.4}.p24-print-overlay-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:4px}.p24-print-overlay-btn{min-height:36px;padding:0 14px;border:1px solid rgba(255,255,255,.45);border-radius:7px;background:#fff;color:#111;font:inherit;font-size:13px;font-weight:600;cursor:pointer}.p24-print-overlay-btn:hover{background:#f3f4f6}.p24-print-overlay-btn-secondary{background:transparent;color:#fff;border-color:#ffffff73}.p24-print-overlay-btn-secondary:hover{background:#ffffff1a}@keyframes p24-print-overlay-spin{to{transform:rotate(360deg)}}.save-overlay{position:fixed;inset:0;z-index:5000;display:flex;align-items:center;justify-content:center;background:#0f172a47}.save-overlay-card{display:flex;flex-direction:column;align-items:center;gap:12px;padding:22px 28px;background:#fff;border-radius:12px;box-shadow:0 8px 24px #11182729;color:var(--line, #111827)}.save-overlay-spinner{width:36px;height:36px;border:3px solid rgba(15,23,42,.15);border-top-color:#2563eb;border-radius:50%;animation:p24-print-overlay-spin .8s linear infinite}.save-overlay-text{font-size:14px;font-weight:600}@media(prefers-reduced-motion:reduce){.save-overlay-spinner{animation:none}}.p24-onboarding-replay{width:100%;min-height:32px;border:1px solid var(--border);border-radius:7px;background:#fff;color:var(--accent);font:inherit;font-size:12px;font-weight:600;cursor:pointer}.p24-onboarding-replay:hover:not(:disabled){background:#eff6ff;border-color:var(--accent)}.p24-onboarding-replay:disabled{color:#94a3b8;background:#f8fafc;cursor:not-allowed}.p24-settings-action-btn{width:100%;min-height:32px;margin-bottom:8px;border:1px solid var(--border);border-radius:7px;background:#fff;color:var(--accent);font:inherit;font-size:12px;font-weight:600;cursor:pointer}.p24-settings-action-btn:hover{background:#eff6ff;border-color:var(--accent)}.p24-onboarding{position:fixed;inset:0;z-index:50000;pointer-events:none}.p24-onboarding-guard{position:fixed;inset:0;z-index:0;pointer-events:auto}.p24-onboarding-shade{position:fixed;z-index:1;background:#0f172aab;pointer-events:none}.p24-onboarding-shade-mask{position:fixed;left:0;top:0;z-index:1;pointer-events:none}.p24-onboarding-shade--full{inset:0}.p24-onboarding-highlight{position:fixed;z-index:2;border:2px solid #60a5fa;border-radius:12px;box-shadow:0 0 0 4px #fffffff2,0 0 0 8px #2563eb73,0 12px 36px #0f172a3d;pointer-events:none;animation:p24-onboarding-pulse 1.6s ease-in-out infinite}.p24-onboarding-card{position:fixed;z-index:3;max-width:calc(100vw - 32px);padding:20px;border:1px solid rgba(148,163,184,.35);border-radius:14px;background:#fff;color:#0f172a;box-shadow:0 22px 60px #0f172a4d;pointer-events:auto}.p24-onboarding-card h2{margin:4px 0 8px;font-size:19px;line-height:1.25}.p24-onboarding-card p{margin:0;color:#475569;font-size:13px;line-height:1.55}.p24-onboarding-kicker{color:var(--accent);font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.p24-onboarding-progress{height:5px;margin-top:16px;overflow:hidden;border-radius:999px;background:#e2e8f0}.p24-onboarding-progress span{display:block;height:100%;border-radius:inherit;background:var(--accent);transition:width .25s ease}.p24-onboarding-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.p24-onboarding-primary,.p24-onboarding-secondary{min-height:34px;padding:0 14px;border-radius:7px;font:inherit;font-size:12px;font-weight:600;cursor:pointer}.p24-onboarding-primary{border:1px solid var(--accent);background:var(--accent);color:#fff}.p24-onboarding-primary:hover{background:var(--accent-hover)}.p24-onboarding-primary:disabled{border-color:#93c5fd;background:#93c5fd;cursor:wait}.p24-onboarding-secondary{border:1px solid var(--border);background:#fff;color:#475569}.p24-onboarding-secondary:hover{border-color:#94a3b8;background:#f8fafc}.p24-onboarding-secondary:disabled{color:#94a3b8;background:#f8fafc;cursor:wait}.p24-onboarding--error .p24-onboarding-kicker{color:#b45309}@keyframes p24-onboarding-pulse{0%,to{box-shadow:0 0 0 4px #fffffff2,0 0 0 8px #2563eb61,0 12px 36px #0f172a3d}50%{box-shadow:0 0 0 4px #fffffff2,0 0 0 12px #2563eb2e,0 12px 36px #0f172a3d}}@media(prefers-reduced-motion:reduce){.p24-onboarding-highlight{animation:none}.p24-onboarding-progress span{transition:none}}#canvas-overlays{position:absolute;top:0;left:0;right:0;display:flex;flex-direction:column;align-items:flex-start;pointer-events:none}#canvas-overlays :is([id$=hud],#nest-panel,#pattern-panel,#gcode-panel,#calccard){pointer-events:auto}#canvas-overlays :is([id$=hud],#nest-panel,#pattern-panel,#gcode-panel){position:relative;inset:auto;margin:12px 0 0 12px}#canvas-overlays :is([id$=hud]:not(#imagehud)){order:1}#canvas-overlays :is(#nest-panel,#pattern-panel,#gcode-panel){order:2}#canvas-overlays #calccard{position:relative;inset:auto;align-self:stretch;flex:0 0 auto;margin:0}#canvas-overlays #imagehud{align-self:flex-end;margin:12px 16px 0 0;order:3}
