/* go-live 91: SigmaNEST-style Forge Draw (Xeronest dark theme, own icons) */
.forge-quote-draw-overlay{padding:0!important;background:#05090c!important;backdrop-filter:none!important}
.forge-quote-draw-window{width:100vw!important;height:100vh!important;max-width:none!important;max-height:none!important;min-height:0!important;border-radius:0!important;border:0!important}
.forge-quote-draw-modal-body .forge-workstation-head,.forge-quote-draw-modal-body .forge-flowbar{display:none!important}
.forge-quote-draw-modal-body .draw-workstation{display:flex!important;flex-direction:column;height:100%;min-height:0;background:#0b1116}
.draw-workstation .sn-tabbar{display:flex;align-items:center;gap:14px;height:28px;padding:0 10px;background:#0a1015;border-bottom:1px solid #26333c;flex:0 0 auto}
.draw-workstation .sn-tab{padding:5px 12px 4px;font:700 11px/1 system-ui,sans-serif;color:#e8f3f8;background:#17232c;border:1px solid #34454f;border-bottom:0;border-radius:5px 5px 0 0;position:relative;top:1px}
.draw-workstation .sn-part{font-size:11px;color:#8ba3b1}
.draw-workstation .sn-ribbon{display:flex;align-items:stretch;padding:4px 6px 0;background:linear-gradient(180deg,#1b2831,#121b22);border-bottom:1px solid #3a4e59;overflow-x:auto;overflow-y:hidden;flex:0 0 auto;min-height:96px;scrollbar-width:thin}
.draw-workstation .sn-group{display:flex;flex-direction:column;flex:0 0 auto;padding:0 6px;border-right:1px solid #2c3a44}
.draw-workstation .sn-group-body{display:flex;align-items:flex-start;gap:2px;flex:1}
.draw-workstation .sn-group-label{text-align:center;font-size:10px;color:#8ba3b1;padding:3px 0 4px;letter-spacing:.05em}
.draw-workstation .sn-xero{background:rgba(99,199,232,.05)}
.draw-workstation .sn-xero .sn-group-label{color:#63c7e8;font-weight:700}
.draw-workstation .sn-btn{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;width:58px;min-height:60px;padding:5px 2px 3px;background:none;border:1px solid transparent;border-radius:4px;color:#e4edf2;cursor:pointer;font:600 10.5px/1.1 system-ui,sans-serif;text-align:center;box-sizing:border-box}
.draw-workstation .sn-btn span{display:block;max-width:100%;overflow-wrap:normal;word-break:normal;white-space:normal}
.draw-workstation .sn-btn{width:62px;font-size:10px}
.draw-workstation .sn-btn:hover,.draw-workstation .sn-sm:hover,.sn-mi:hover,.draw-workstation .sn-lt:hover{background:#21323d;border-color:#4a6a7a}
.draw-workstation .sn-btn.active,.sn-mi.active,.draw-workstation .sn-lt.on,.draw-workstation .sn-sm.active{background:#173a49;border-color:#63c7e8}
.sn-ic{width:26px;height:26px;flex:0 0 auto;fill:none;stroke:#7fd6f0;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.draw-workstation .sn-dd{position:relative;display:flex;flex-direction:column;align-items:stretch}
.draw-workstation .sn-dd>.sn-btn{min-height:48px;border-bottom-left-radius:0;border-bottom-right-radius:0}
.draw-workstation .sn-caret{height:12px;line-height:10px;font-size:9px;color:#9fb8c5;background:none;border:1px solid transparent;border-top:0;cursor:pointer;padding:0;border-radius:0 0 4px 4px}
.draw-workstation .sn-caret:hover{background:#21323d;color:#fff}
.draw-workstation .sn-menu,.sn-menu{display:none;position:fixed;z-index:13050;min-width:200px;padding:4px;background:#111b22;border:1px solid #4a6a7a;border-radius:6px;box-shadow:0 12px 30px rgba(0,0,0,.55)}
.sn-dd.open>.sn-menu{display:block!important}
.sn-mi{display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;padding:6px 10px;background:none;border:1px solid transparent;border-radius:4px;color:#e4edf2;font:500 12px/1.2 system-ui,sans-serif;text-align:left;cursor:pointer;box-sizing:border-box}
.sn-mi kbd{font-size:9px;color:#9fb8c5;background:#071016;border:1px solid #34454f;border-radius:3px;padding:1px 4px}
.draw-workstation .sn-col{display:flex;flex-direction:column;gap:1px;padding-left:4px}
.draw-workstation .sn-sm{display:flex;align-items:center;gap:6px;height:22px;padding:0 7px;background:none;border:1px solid transparent;border-radius:4px;color:#e4edf2;font:600 11px/1 system-ui,sans-serif;cursor:pointer;white-space:nowrap}
.draw-workstation .sn-sm .sn-ic{width:16px;height:16px}
.draw-workstation .sn-import input{display:none}
/* layout: left icon toolbar + black drawing area + optional side panel */
.draw-workstation .forge-workspace-grid.sn-grid{display:grid!important;grid-template-columns:216px minmax(0,1fr) 300px!important;height:calc(100vh - 250px)!important;min-height:480px!important;max-height:none!important;flex:1 1 auto}
.forge-quote-draw-modal-body .draw-workstation .forge-workspace-grid.sn-grid{height:auto!important;min-height:0!important;flex:1 1 0}
.draw-workstation .forge-workspace-grid.sn-grid.sn-nopanel{grid-template-columns:216px minmax(0,1fr)!important}
.draw-workstation .sn-grid.sn-nopanel .forge-inspector{display:none!important}
.draw-workstation .sn-grid .forge-canvas-panel{display:flex!important;flex-direction:column;min-height:0;min-width:0}
.draw-workstation .sn-grid .forge-draw-canvas{flex:1 1 auto;min-height:0;background:#000!important}
.draw-workstation .sn-grid .forge-draw-svg{background:#000}
.draw-workstation .sn-grid .forge-draw-svg .draw-overlay{stroke:#ffe14d}
.draw-workstation .sn-grid .forge-tool-rail.draw-command-panel{padding:0!important;overflow-y:auto;overflow-x:hidden;min-width:0}
.draw-workstation .sn-lefttools{display:grid;grid-template-columns:repeat(4,1fr);gap:3px;padding:6px;background:#0f161c;border-bottom:1px solid #2c3a44}
.draw-workstation .sn-lt{display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 0 3px;min-width:0;background:#16212a;border:1px solid #2c3a44;border-radius:4px;color:#cfe0e8;font:600 8.5px/1.05 system-ui,sans-serif;cursor:pointer}
.draw-workstation .sn-lt .sn-ic{width:22px;height:22px}
.draw-workstation .sn-grid #drawactivepanel{padding:8px;overflow:hidden;word-break:normal;overflow-wrap:anywhere}
/* live readout + prompt */
.draw-workstation .sn-readout{display:flex;gap:6px;flex-wrap:wrap;padding:5px 8px;background:#0c1319;border-top:1px solid #26333c;flex:0 0 auto}
.draw-workstation .sn-chip{display:flex;flex-direction:column;padding:2px 9px;border:1px solid #2c3a44;border-radius:4px;background:#111b22;min-width:72px}
.draw-workstation .sn-chip small{font-size:8.5px;color:#7f97a5;text-transform:uppercase;letter-spacing:.06em}
.draw-workstation .sn-chip b{font-size:13px;color:#e8f3f8;white-space:nowrap}
.draw-workstation .sn-chip.bad{border-color:#d95757;background:#2a1215}.draw-workstation .sn-chip.bad b{color:#ff8a8a}
.draw-workstation .sn-chip.ok b{color:#6fe39a}.draw-workstation .sn-chip.warn{border-color:#c79a2c}.draw-workstation .sn-chip.warn b{color:#ffd35c}
.draw-workstation .sn-chip.cmp{border-color:#6b7e8a}
.draw-workstation .sn-prompt{color:#ffe14d;font-weight:700;margin-right:auto;flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sn-open-ring{fill:none;stroke:#ff4d4d;stroke-width:2;animation:snpulse 1.2s ease-in-out infinite}.sn-open-dot{fill:#ff4d4d}
@keyframes snpulse{50%{opacity:.3}}
.sn-ghost polyline{fill:none;stroke:#8a98a3;stroke-width:1.2;stroke-dasharray:5 4;opacity:.6}
/* go-live 92: extra commands */
.sn-sep{height:1px;margin:4px 6px;background:#2c3a44}
.sn-cmd-on,.sn-cmd-on svg{cursor:crosshair!important}
.sn-rubber polyline{fill:none;stroke:#63c7e8;stroke-width:1.5;stroke-dasharray:4 3}
.sn-pick polyline{fill:none;stroke:#63c7e8;stroke-width:3.5;opacity:.75}

/* go-live 103: engraving lines / circles / line-text must be visible (only a text fill existed before, so lines on ENGRAVE had no stroke) */
.forge-draw-svg polyline.draw-engrave,.forge-draw-svg circle.draw-engrave{fill:none!important;stroke:#3ddc84;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;opacity:1}
.draw-entity-hit.selected polyline.draw-engrave,.draw-entity-hit.selected circle.draw-engrave{fill:none!important;stroke:#f4fbff!important;stroke-width:2.2;filter:drop-shadow(0 0 3px rgba(141,224,255,.55))}
/* go-live 105: hide selection grips until they are sized in screen pixels (no big flash) */
.forge-draw-svg .draw-grip:not([data-fit]){opacity:0}
