.nc-account-settings { --ncas-bg:#fff; --ncas-panel:#f6f8fb; --ncas-text:#1c2b40; --ncas-muted:#68788d; --ncas-line:#e1e7ef; box-sizing:border-box; width:calc(100% - 48px); max-width:1600px; height:calc(100dvh - 48px); max-height:100%; margin:auto; padding:0; border:1px solid var(--ncas-line); border-radius:18px; background:var(--ncas-bg); color:var(--ncas-text); box-shadow:0 28px 100px #0006; font:14px/1.6 Inter,Arial,sans-serif; }
.nc-account-settings[open] { display:flex; flex-direction:column; }
.nc-account-settings::backdrop { background:#091322b8; }
.nc-account-settings * { box-sizing:border-box; }
.nc-account-settings button { font:inherit; cursor:pointer; }
.ncas-header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:24px 30px; border-bottom:1px solid var(--ncas-line); }
.ncas-eyebrow { color:#3484dc; font-size:12px; font-weight:700; letter-spacing:.07em; }
.ncas-header h2 { margin:2px 0 4px; font-size:25px; color:var(--ncas-text); }
.nc-account-settings p { margin:0; color:var(--ncas-muted); }
.ncas-close { width:38px; height:38px; flex-shrink:0; border:1px solid var(--ncas-line); border-radius:10px; background:var(--ncas-panel); color:var(--ncas-text); font-size:26px!important; line-height:1!important; }
.ncas-layout { display:flex; flex:1; min-height:0; }
.ncas-nav { flex:0 0 280px; padding:20px 14px; background:var(--ncas-panel); border-right:1px solid var(--ncas-line); overflow:auto; }
.ncas-nav button { display:block; width:100%; padding:14px 16px; margin:0 0 7px; text-align:left; border:1px solid transparent; border-radius:10px; color:var(--ncas-text); background:transparent; font-weight:600; }
.ncas-nav button span { display:block; margin-top:3px; font-size:12px; font-weight:400; color:var(--ncas-muted); }
.ncas-nav button:hover { background:var(--ncas-bg); }
.ncas-nav button[aria-selected="true"] { background:var(--ncas-bg); border-color:var(--ncas-line); box-shadow:0 3px 10px #142f5010; color:#287bd3; }
.ncas-content { flex:1; min-width:0; padding:32px 40px; overflow:auto; }
.ncas-content section { max-width:920px; }
.ncas-content [hidden] { display:none; }
.ncas-tag { color:#3484dc; font-size:12px; font-weight:600; }
.ncas-content h3 { margin:6px 0 10px; font-size:24px; line-height:1.35; color:var(--ncas-text); }
.ncas-placeholder { position:relative; margin-top:22px; padding:22px 88px 22px 22px; border:1px solid var(--ncas-line); border-radius:12px; background:var(--ncas-panel); }
.ncas-placeholder h4 { margin:0 0 6px; font-size:15px; color:var(--ncas-text); }
.ncas-placeholder > span { position:absolute; right:18px; top:22px; padding:2px 9px; border:1px solid var(--ncas-line); border-radius:20px; color:var(--ncas-muted); background:var(--ncas-bg); font-size:11px; }
.ncas-footer { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px 30px; border-top:1px solid var(--ncas-line); color:var(--ncas-muted); font-size:12px; }
.ncas-done { margin-left:auto; padding:9px 24px; border:1px solid #216bd1; border-radius:9px; background:#216bd1; color:#fff; }
.ncas-setting { margin-top:14px; padding:4px 0; }
.ncas-checkbox { display:flex; align-items:center; gap:7px; margin:0; color:var(--ncas-text); font-size:13px; font-weight:500; line-height:1.5; cursor:pointer; }
.ncas-checkbox input { width:15px; height:15px; margin:0; flex-shrink:0; accent-color:#216bd1; }
.ncas-setting > p { margin:2px 0 0 22px; font-size:12px; line-height:1.4; }
#ncasSaveStatus { margin-top:4px; font-size:12px; }
#ncasSaveStatus[hidden] { display:none; }
.ncas-select-label { display:block; margin:0 0 4px; color:var(--ncas-text); font-size:13px; font-weight:500; }
.ncas-select { width:220px; max-width:100%; padding:5px 8px; border:1px solid var(--ncas-line); border-radius:6px; background:var(--ncas-panel); color:var(--ncas-text); font:inherit; font-size:12px; }
.ncas-select:focus-visible { outline:2px solid #65a9f3; outline-offset:2px; }
.ncas-select ~ p { margin-left:0; }
#ncasLanguageStatus[hidden] { display:none; }
.nc-account-settings button:focus-visible, .ncas-content section:focus-visible { outline:3px solid #65a9f3; outline-offset:2px; }
[data-theme="dark"] .nc-account-settings { --ncas-bg:#1c2635; --ncas-panel:#17202d; --ncas-text:#e1eaf6; --ncas-muted:#9bacc3; --ncas-line:#344156; }
.nc-account-settings[dir="rtl"] { text-align:right; }
.nc-account-settings[dir="rtl"] .ncas-nav { border-right:0; border-left:1px solid var(--ncas-line); }
.nc-account-settings[dir="rtl"] .ncas-nav button { text-align:right; }
.nc-account-settings[dir="rtl"] .ncas-placeholder { padding:22px 22px 22px 88px; }
.nc-account-settings[dir="rtl"] .ncas-placeholder > span { right:auto; left:18px; }
.nc-account-settings[dir="rtl"] .ncas-setting > p { margin-left:0; margin-right:22px; }
.nc-account-settings[dir="rtl"] .ncas-select ~ p { margin-right:0; }
.nc-account-settings[dir="rtl"] .ncas-done { margin-left:0; margin-right:auto; }
@media(max-width:700px) {
 .nc-account-settings[dir="rtl"] .ncas-nav { border-left:0; }
 .nc-account-settings[dir="rtl"] .ncas-placeholder { padding:18px; }
 .nc-account-settings { width:calc(100% - 16px); height:calc(100dvh - 16px); border-radius:12px; }
 .ncas-header { padding:18px; } .ncas-header h2 { font-size:21px; }
 .ncas-layout { flex-direction:column; }
 .ncas-nav { display:flex; gap:8px; flex:0 0 auto; padding:12px; border-right:0; border-bottom:1px solid var(--ncas-line); }
 .ncas-nav button { width:auto; flex-shrink:0; padding:10px 12px; margin:0; white-space:nowrap; }
 .ncas-nav button span { display:none; }
 .ncas-content { padding:22px 18px; } .ncas-content h3 { font-size:21px; }
 .ncas-placeholder { padding:18px; } .ncas-placeholder > span { position:static; display:inline-block; margin-top:12px; }
 .ncas-footer { padding:12px 18px; } .ncas-footer span { max-width:70%; }
}

.ncas-material-defaults{margin-top:24px;padding:20px;border:1px solid var(--ncas-line);border-radius:12px;background:var(--ncas-panel)}
.ncas-material-defaults h4{margin:0 0 8px;font-size:16px}
.ncas-material-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.ncas-material-grid label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--ncas-text)}
.ncas-material-grid input{width:100%;padding:9px;border:1px solid var(--ncas-line);border-radius:6px;background:var(--ncas-bg);color:var(--ncas-text);font:inherit}
.ncas-material-defaults button{padding:8px 18px;border:0;border-radius:7px;background:#216bd1;color:#fff;margin-inline-end:10px}
.ncas-material-defaults [role=status]{font-size:12px}
@media(max-width:500px){.ncas-material-grid{grid-template-columns:1fr}}

.ncas-part-quality { max-width:660px; padding:16px 0; }
.ncas-part-quality output { display:block; margin:6px 0; font-size:14px; font-weight:600; color:var(--ncas-text); }
.ncas-part-quality input[type="range"] { display:block; width:100%; height:24px; margin:0; accent-color:#216bd1; cursor:pointer; }
.ncas-quality-ticks { display:flex; justify-content:space-between; gap:12px; margin:3px 0 10px; font-size:12px; color:var(--ncas-muted); }
.ncas-quality-ticks span { flex:1; text-align:center; }
.ncas-quality-ticks span:first-child { text-align:start; }
.ncas-quality-ticks span:last-child { text-align:end; }
.ncas-part-quality > p { margin:7px 0 0; }

.ncas-simulation-settings { margin:20px 0; padding:18px; border:1px solid var(--ncas-line); border-radius:10px; background:var(--ncas-panel); }
.ncas-simulation-settings h4 { margin:0 0 16px; font-size:15px; }
#ncasSimulationFields { min-width:0; padding:0; margin:0; border:0; }
.ncas-simulation-colors { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.ncas-simulation-colors label { display:flex; flex-direction:column; gap:8px; min-width:0; font-size:12px; }
.ncas-simulation-colors input { width:100%; height:38px; padding:3px; border:1px solid var(--ncas-line); border-radius:5px; background:var(--ncas-bg); cursor:pointer; }
.ncas-simulation-quality { margin:18px 0 0; padding:10px 0 0; border:0; border-top:1px solid var(--ncas-line); }
.ncas-simulation-quality legend { font-weight:600; font-size:13px; }
.ncas-simulation-quality label { margin:8px 0; }
.ncas-simulation-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; margin-top:16px; }
.ncas-simulation-actions button { padding:8px 14px; border:1px solid var(--ncas-line); border-radius:6px; }
.ncas-simulation-actions #simulationSettingsDefaults { background:var(--ncas-bg); color:var(--ncas-text); }
.ncas-simulation-actions #simulationSettingsApply { background:#216bd1; color:white; border-color:#216bd1; }
.ncas-simulation-settings > p { margin:10px 0 0; }
@media(max-width:600px){.ncas-simulation-colors{grid-template-columns:repeat(2,minmax(0,1fr))}.ncas-simulation-settings{padding:12px}}

.ncas-dxf-form { max-width:680px; margin-top:20px; }
#ncasDxfFields { display:grid; gap:16px; border:0; margin:0; padding:0; min-width:0; }
#ncasDxfFields > label { display:grid; gap:6px; color:var(--ncas-text); font-size:13px; }
#ncasDxfFields > label:has(input[type="checkbox"]) { display:flex; align-items:center; gap:9px; }
#ncasDxfFields input[type="checkbox"] { accent-color:#216bd1; }
#ncasDxfFields select { width:100%; max-width:none; }
#ncasDxfFields > div { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:10px; margin-top:6px; }
#ncasDxfFields button { padding:8px 14px; margin:0; width:auto; border:1px solid var(--ncas-line); border-radius:6px; background:var(--ncas-panel); color:var(--ncas-text); font:inherit; cursor:pointer; }
#ncasDxfFields button[type="submit"] { background:#216bd1; color:white; border-color:#216bd1; }
#ncasDxfStatus { margin-top:12px; font-size:12px; }

.ncas-toolbar-actions{display:flex;gap:8px;margin:12px 0 18px;flex-wrap:wrap}
.ncas-toolbar-actions .ncas-select{width:auto;cursor:pointer}
.ncas-toolbar-option{display:flex;margin:12px 0;gap:10px;align-items:center}
