/* Shared CUT-PATH control language, based on the owner's CUTWORX Neon GUI Kit. */
:root{--neon-void:#060a12;--neon-carbon:#0c111b;--neon-panel:#101824;--neon-edge:#293d55;--neon-text:#e6ebf0;--neon-muted:#adbdcf;--neon-red:#ff1a3c;--neon-blue:#1a8cff;color-scheme:dark}
body.neon-studio{background:var(--neon-void);color:var(--neon-text);font-family:"Segoe UI",Arial,sans-serif}
.neon-studio :focus-visible{outline:2px solid #63caff!important;outline-offset:3px!important}
.neon-studio.workspace-shell .app-header{height:66px;min-height:66px;flex-basis:66px;background:linear-gradient(110deg,#0c1320,#080d16);border-bottom:1px solid #315579;gap:16px;position:relative}
.neon-studio .app-header::after{content:"";height:1px;position:absolute;bottom:0;left:0;right:0;background:linear-gradient(90deg,#ff1a3c,transparent 45%,#1a8cff);pointer-events:none}
.neon-studio.workspace-shell .identity img{width:48px;height:48px;object-fit:contain}
.neon-studio.workspace-shell .brand{font-size:20px;color:#d4e8f8;letter-spacing:.08em}.neon-studio.workspace-shell .brand>span{font-size:7px;letter-spacing:.12em;color:#a3b9ca}
.neon-studio .product-heading{display:none}.neon-studio .header-actions{margin-left:auto;gap:7px}
.neural-activity{display:flex;align-items:center;gap:6px;min-width:185px;height:64px;overflow:hidden;flex:0 0 auto}
.neural-activity canvas{width:76px;height:76px;flex:none;pointer-events:none}
.neural-activity>div{display:flex;flex-direction:column;gap:4px;max-width:210px;min-width:0}
.neural-caption{font:9px/1.2 ui-monospace,Consolas,monospace;letter-spacing:.12em;color:#a3b4ca}
#neuralActivityText{font:11px/1.3 ui-monospace,Consolas,monospace;color:#b7cce1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.neural-activity[data-state=processing] #neuralActivityText{color:#ff9fb1}.neural-activity[data-motion=off] canvas{opacity:.65}
.neon-studio.workspace-shell .module-nav{background:#090f19;border-color:#293d55}
.neon-studio.workspace-shell .module-tabs>button{color:#b5c7d9;border-radius:0;background:transparent;border-color:transparent;font-weight:600}
.neon-studio.workspace-shell .module-tabs>button[aria-selected=true]{color:#eff8ff;background:linear-gradient(180deg,#1a2638,#101925);box-shadow:inset 0 -2px #ff1a3c}
.neon-studio.workspace-shell .module-tabs>button:enabled:hover{background:#16263c;color:white}
.neon-studio.workspace-shell .module-tabs .icon{color:#53b7ff}.neon-studio.workspace-shell .module-tabs [aria-selected=true] .icon{color:#ff4561}
.neon-studio.workspace-shell :is(.session-strip,.cad-source-bar,.ml-preview-bar,.opt-heading,.cad-heading){background:#0b1320;color:#b5c8dc;border-color:var(--neon-edge)}
.neon-studio.workspace-shell :is(.controls,.cad-sidebar,.opt-controls,.ml-controls,.ml-preview,.work-export-bar,.cad-inspector){background:linear-gradient(135deg,#131e2c,#0c131f);border:1px solid #2d425a;border-radius:8px;box-shadow:inset 0 1px #5680a521,0 5px 16px #0003}
.neon-studio.workspace-shell :is(.controls-heading,.work-panel-tabs,.work-step-actions,.cut-action-dock,.opt-action-dock,.cad-export-actions){background:#101b2a;border-color:#2d425a}
.neon-studio.workspace-shell :is(.control-section,.cad-side-section,.ml-control-card){border-color:#263a51}
.neon-studio.workspace-shell :is(h2,h3,.section-heading,.inspector-heading){color:#e2edf8}
.neon-studio.workspace-shell :is(label,.hint,.simple-note,.source-info,.opt-note,.ml-note,.cad-hint,.supported,.file-limit){color:var(--neon-muted)}
.neon-studio.workspace-shell :is(.work-panel-tab){background:transparent;color:#b9cadd;box-shadow:none;border-radius:0}
.neon-studio.workspace-shell .work-panel-tab[aria-selected=true]{background:#1a293d;color:#fff;box-shadow:inset 0 -2px #ff3151}
.neon-studio .work-step-number{color:#82c4ff}.neon-studio .work-panel-body{scrollbar-color:#3f668c #0c1421}
/* Keep the original native controls and labels, with a shared physical control skin. */
.neon-studio.workspace-shell input:not([type=file],[type=checkbox],[type=radio],[type=range],[type=color]),.neon-studio.workspace-shell select,.neon-studio.workspace-shell textarea{color:#e2f1ff;background:linear-gradient(180deg,#08101c,#101c2b);border:1px solid #36516e;border-radius:4px;box-shadow:inset 0 2px 5px #0005;font-variant-numeric:tabular-nums}
.neon-studio.workspace-shell input:disabled,.neon-studio.workspace-shell select:disabled{color:#92a5b8;opacity:.65}
.neon-studio.workspace-shell input[type=number]{font-family:ui-monospace,Consolas,monospace}
.neon-studio.workspace-shell input[type=checkbox]{appearance:none!important;display:inline-block!important;flex:0 0 30px;width:30px!important;height:18px!important;min-height:18px!important;min-width:30px!important;padding:0!important;position:relative;vertical-align:middle;margin:0 7px 0 0;border:1px solid #527193!important;border-radius:20px!important;background:#101a28!important;box-shadow:inset 0 2px 4px #0008!important;cursor:pointer}
.neon-studio.workspace-shell input[type=checkbox]::after{content:"";position:absolute;width:10px;height:10px;left:3px;top:3px;border-radius:50%;background:#9aacc1;box-shadow:0 1px 3px #0009}
.neon-studio.workspace-shell input[type=checkbox]:checked{border-color:#ff4865!important;background:#431426!important}
.neon-studio.workspace-shell input[type=checkbox]:checked::after{left:15px;background:#ff3e5c;box-shadow:0 0 7px #ff1a3c99}
.neon-studio.workspace-shell input[type=checkbox]:disabled{opacity:.45;cursor:not-allowed}
.neon-studio.workspace-shell input[type=radio]{accent-color:#48b8ff}
.neon-studio.workspace-shell input[type=range]{appearance:none!important;height:30px!important;min-height:30px!important;background:transparent!important;border:0!important;padding:0!important;cursor:pointer;min-width:0}
.neon-studio input[type=range]::-webkit-slider-runnable-track{height:7px;background:linear-gradient(90deg,#681329,#ea2447,#257ed6);border:1px solid #546580;border-radius:2px;box-shadow:inset 0 1px 3px #000}
.neon-studio input[type=range]::-webkit-slider-thumb{appearance:none;width:12px;height:22px;margin-top:-8px;border:1px solid #6bd5ff;border-radius:3px;background:linear-gradient(90deg,#133651,#b4eeff,#2875a5);box-shadow:0 0 7px #259dff88}
.neon-studio input[type=range]::-moz-range-track{height:6px;background:linear-gradient(90deg,#681329,#ea2447,#257ed6);border:1px solid #546580;border-radius:2px}
.neon-studio input[type=range]::-moz-range-thumb{width:11px;height:20px;border:1px solid #6bd5ff;border-radius:3px;background:#9adfff;box-shadow:0 0 7px #259dff88}
.neon-studio input[type=range]:disabled{opacity:.45;cursor:not-allowed}
.neon-range-control{display:flex;align-items:center;gap:12px;margin-block:4px;min-height:54px}.neon-range-control input{flex:1;width:0!important}
.neon-dial{display:block;flex:none;width:52px;height:52px;border-radius:50%;position:relative;background:conic-gradient(from 225deg,#ff3152 0deg,#ff3152 var(--dial-fill,0deg),#293e59 var(--dial-fill,0deg),#293e59 270deg,transparent 270deg);box-shadow:0 0 9px #0008;touch-action:none;cursor:ns-resize}
.neon-dial::before{content:"";position:absolute;inset:5px;border:2px solid #47688a;border-radius:50%;background:radial-gradient(circle at 40% 25%,#314460,#111a2a 75%);box-shadow:inset 0 0 0 2px #0b1320,0 2px 4px #000}
.neon-dial::after{content:"";position:absolute;left:24px;top:9px;width:3px;height:12px;border-radius:2px;background:#6ee3ff;box-shadow:0 0 6px #41cfff;transform-origin:1.5px 17px;transform:rotate(var(--dial-angle,-135deg))}
.neon-dial[data-disabled=true]{opacity:.4;cursor:not-allowed}
/* Supplied blank SVG plates preserve readable, accessible text as real HTML. */
.neon-studio.workspace-shell :is(button,.asset-catalog-link){color:#d8edff;border:1px solid #38516e;border-radius:5px;background:linear-gradient(165deg,#1b2b40,#0d1725);box-shadow:inset 0 1px #86b5df14;font-weight:550;text-shadow:none}
.neon-studio.workspace-shell button:enabled:hover,.neon-studio.workspace-shell .asset-catalog-link:hover{color:#fff;border-color:#4ebaff;box-shadow:0 0 9px #1a8cff30,inset 0 1px #a7ddff22}
.neon-studio.workspace-shell button:disabled{opacity:.48;cursor:not-allowed;filter:saturate(.5)}
.neon-studio.workspace-shell :is(#generate,#mlExport,#cadExportDXF,#cadExportPDF,#optPreview,#optDownload){background:linear-gradient(180deg,#3e1224,#210d1b);border-color:#c33151;color:#fff;box-shadow:inset 0 1px #ff5d7929,0 0 8px #ff1a3c14}
.neon-studio.workspace-shell :is(#generate,#mlExport,#optPreview,#optDownload):enabled:hover{background:#45162a;border-color:#ff4e6b;box-shadow:0 0 13px #ff1a3c44}
.neon-studio.workspace-shell :is(#pdf,#dxf,#optDownloadPdf,#mlToCutPath,#cadReviewOutlines){background:#0b2037;color:#e4f6ff;border-color:#327bc3}
.neon-studio.workspace-shell .work-panel-tab{border:0;background:transparent}.neon-studio.workspace-shell .work-panel-tab[aria-selected=true]{background:#1a293d;box-shadow:inset 0 -2px #ff3151}
.neon-studio.workspace-shell .module-tabs>button{border:0;box-shadow:none;background:transparent}.neon-studio.workspace-shell .module-tabs>button[aria-selected=true]{box-shadow:inset 0 -2px #ff3151;background:#152238}
.neon-studio.workspace-shell :is(.micro-badge,.cad-pill){color:#bde3ff;background:#0d2742;border-color:#3a709e}.neon-studio.workspace-shell output{color:#8cdcff}
.neon-studio.workspace-shell :is(.canvas-wrap,.cad-stage,.ml-stage-wrap,.opt-frame){background-color:#0a111d;border-color:#304a68}
.neon-studio.workspace-shell :is(.workspace-toolbar,.cad-toolbar,.cad-view-actions,.ml-preview-bar){background:#101c2b;border-color:#29415c;color:#d5e9fa}
.neon-studio.workspace-shell :is(.canvas-caption,.canvas-unit,.view-badge){background:#0c1829;color:#a9d9ff;border-color:#2c5279}
.neon-studio.workspace-shell :is(.opt-compare>div,.work-stage,.ml-empty,.empty-state){border-color:#355574}.neon-studio .workspace-art img{object-fit:contain;max-height:150px}.neon-studio .workspace-art{height:160px}
.neon-studio.workspace-shell :is(.cad-entity-row,.cad-layer-row){color:#c3d8ea;border-color:#203b55;background:#0d1724}
.neon-studio.workspace-shell :is(.cad-entity-row[aria-selected=true],.cad-entity-row.selected){background:#112e4b;border-color:#4da7ed}
.neon-studio.workspace-shell :is(.opt-compare h3,.opt-status,.opt-result,.ml-preview>p[role=status]){background:#0e1928;color:#c4d9ed;border-color:#2c435e}
.neon-studio.workspace-shell .processing-log{color:#a8c5df;background:#09121e;border-color:#29435e}
.neon-studio.workspace-shell #marklockPanel{background:#080f1b}.neon-studio .ml-heading h2{font-size:18px}.neon-studio .ml-heading p{color:#b2c6dc}.neon-studio .ml-steps{display:none}
.neon-studio .ml-eyebrow{color:#72bdff!important}.neon-studio .ml-control-card{padding:12px}.neon-studio .ml-empty{background:#101b2a url('/assets/neon/illustrations/registration-crosshairs.svg') no-repeat center 18px/140px 105px;padding-top:130px}
@media(min-width:1024px){.neon-studio .ml-grid{grid-template-columns:minmax(0,1fr) 306px}.neon-studio .ml-heading{gap:12px}.neon-studio .ml-heading .ml-privacy{font-size:10px}.neon-studio .ml-heading>div>p:last-child{max-width:700px}}
@media(max-width:959px){.neon-studio.workspace-shell .app-header{gap:8px;height:60px;min-height:60px;flex-basis:60px}.neural-activity{min-width:0;width:58px;height:58px;margin-left:auto}.neural-activity canvas{width:58px;height:58px}.neural-activity>div{display:none}.neon-studio .header-actions{margin-left:0}.neon-studio.workspace-shell .identity img{width:36px;height:36px}.neon-studio.workspace-shell .brand{font-size:15px}.neon-studio .brand>span{font-size:6px!important}.neon-studio .header-actions .asset-catalog-link{display:none}.neon-studio .ml-heading .ml-privacy{display:none}}
@media(max-width:500px){.neon-studio.workspace-shell .app-header{padding-inline:8px;gap:5px;height:56px;min-height:56px;flex-basis:56px}.neon-studio.workspace-shell .identity img{width:30px;height:30px}.neon-studio.workspace-shell .brand{font-size:13px}.neural-activity{width:44px;height:48px}.neural-activity canvas{width:44px;height:44px}.neon-studio .header-actions{gap:3px}.neon-studio.workspace-shell .header-actions button{width:27px;padding:5px;min-height:28px}.neon-studio .ml-heading h2{font-size:17px}.neon-studio .ml-heading>div>p:last-child{font-size:11px}.neon-dial{width:46px;height:46px}.neon-dial::after{left:21px;top:7px;transform-origin:1.5px 16px}.neon-range-control{min-height:48px}}
@media(prefers-reduced-motion:reduce){.neon-studio *{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:500px) and (min-height:680px) and (max-height:800px){
 .neon-studio.workspace-shell #cutpathPanel .studio-layout{margin-bottom:65px;padding-bottom:8px}
 .neon-studio.workspace-shell #cutpathPanel .cut-action-dock{position:fixed;left:10px;right:10px;bottom:30px;z-index:45;width:auto;border:1px solid #36516e;border-radius:6px;box-shadow:0 -6px 18px #060a12cc;background:#101b2a}
 .neon-studio.workspace-shell .opt-layout{grid-template-rows:minmax(310px,1fr) minmax(320px,.85fr)}
 .neon-studio.workspace-shell .opt-compare{min-height:150px}
}
@media(max-width:959px){
 .neon-studio.workspace-shell .module-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;width:100%;min-width:0;flex-wrap:nowrap}
 .neon-studio.workspace-shell .module-tabs>button{height:42px;min-height:42px;min-width:0;max-width:100%;padding:3px 3px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:9.5px;line-height:1.05;white-space:normal}
 .neon-studio.workspace-shell .module-tabs>button>span{white-space:normal;max-width:100%;text-align:center;line-height:1.05}
 .neon-studio.workspace-shell .module-tabs .icon{width:12px;height:12px;flex:0 0 12px}
}
.neon-studio.workspace-shell .cad-layer-row{grid-template-columns:30px 9px minmax(0,1fr) auto}
@media(max-width:850px) and (min-height:740px){
 .neon-studio .ml-grid{grid-template-rows:minmax(240px,.48fr) minmax(280px,.52fr)!important}
}
.neon-studio.workspace-shell :is(#status.error,#cadStatusWrap[data-error=true],#mlStatus[data-error=true],#optStatus.error,#optStatus[data-error=true]){color:#ffb3c0;background-color:#321223;border-color:#e34464}
@media(max-width:850px) and (min-height:680px){
 .neon-studio.workspace-shell #marklockPanel{padding:8px 10px;overflow:hidden}
 .neon-studio .ml-shell{height:100%;gap:8px}
 .neon-studio .ml-heading{flex:none;min-height:32px}
 .neon-studio .ml-heading>div>p:last-child{display:none}
 .neon-studio .ml-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(160px,.48fr) minmax(280px,.52fr);gap:8px;overflow:hidden}
 .neon-studio .ml-stage-wrap{min-height:0;padding:8px}
 .neon-studio .ml-controls .work-panel-body{flex:1 1 0;min-height:140px}
 .neon-studio .ml-preview-bar{padding:6px 9px;min-height:34px}
 .neon-studio .ml-preview>p[role=status]{font-size:10px;padding:5px 9px;max-height:42px;overflow:auto}
 .neon-studio .ml-empty{padding:12px;background:#101b2a}.neon-studio .ml-empty h3{font-size:16px}.neon-studio .ml-empty p{display:none}
}

/* Native popup menus must retain readable foreground and background together. */
.neon-studio.workspace-shell select{color:#e2f1ff;background:#101c2b;color-scheme:dark}
.neon-studio.workspace-shell select :is(option,optgroup){color:#e2f1ff;background:#101c2b}
.neon-studio.workspace-shell #mlHaloSpot{color:#f2f7ff;background:#101c2b;border-color:#7093b4}
.neon-studio.workspace-shell #mlHaloSpot option:checked{color:#fff;background:#25496d}

.neural-activity[data-feedback=active] .neural-caption{color:#91d9ff}
.neural-activity[data-feedback=active] canvas{filter:brightness(1.25)}

/* Give the full orb room above and below; motion is a visible switch. */
.neon-studio.workspace-shell .app-header{height:88px;min-height:88px;flex-basis:88px}
.neural-activity{height:84px}
.neon-studio.workspace-shell .header-actions .motion-toggle{display:flex;align-items:center;gap:7px;width:auto;min-height:34px;padding:6px 9px}
.motion-track{position:relative;display:block;width:30px;height:17px;border:1px solid #527193;border-radius:20px;background:#101a28;flex:none}
.motion-track::after{content:'';position:absolute;left:3px;top:3px;width:9px;height:9px;border-radius:50%;background:#91a3b9}
[aria-checked=true]>.motion-track{border-color:#ff4865;background:#431426}
[aria-checked=true]>.motion-track::after{left:16px;background:#ff4564;box-shadow:0 0 6px #ff1a3c99}
.motion-label{font-size:10px}
@media(max-width:959px){.neon-studio.workspace-shell .app-header{height:72px;min-height:72px;flex-basis:72px}.neural-activity{height:68px}.motion-label{display:none}.neon-studio.workspace-shell .header-actions .motion-toggle{padding:4px;width:40px}}
@media(max-width:500px){.neon-studio.workspace-shell .app-header{height:66px;min-height:66px;flex-basis:66px}.neural-activity{height:60px}.neon-studio.workspace-shell .header-actions .motion-toggle{width:32px;padding:0;border:0;background:transparent}.motion-track{width:28px}[aria-checked=true]>.motion-track::after{left:14px}}

.neon-studio.workspace-shell .header-actions .motion-toggle .motion-track{display:block!important}
