
:root{--ink:#203347;--muted:#708092;--teal:#087f82;--teal-deep:#05696c;--teal-soft:#e8f5f3;--line:#dce4e9;--soft:#f5f8fa;--orange:#e48b40;--shadow:0 8px 24px #1536470b;--radius:10px;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:#edf2f5;font-size:13px}button,input,select,textarea{font:inherit}button,select{cursor:pointer}button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:35px;padding:8px 11px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);font-weight:600;transition:background .15s,border-color .15s,box-shadow .15s}button:hover{border-color:#b4c9cd;background:#f7fafb}button:active{transform:translateY(1px)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #5ac9c777;outline-offset:2px}button:disabled{opacity:.4;cursor:not-allowed;transform:none}button svg{width:16px;height:16px;flex:none;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}button.primary{color:#fff;background:var(--teal);border-color:var(--teal);box-shadow:0 2px 3px #06484c16}button.primary:hover{background:var(--teal-deep);border-color:var(--teal-deep)}button.secondary{background:var(--teal-soft);color:var(--teal-deep);border-color:#bfddd9}button.ghost{border-color:transparent;background:transparent}button.icon-button{width:34px;padding:7px}button.active,button.selected,button[aria-pressed="true"]{background:var(--teal-soft);color:var(--teal-deep);border-color:#80bcb8}input,select,textarea{width:100%;background:#fff;border:1px solid #d4dfe5;border-radius:6px;min-height:35px;padding:7px 9px;color:var(--ink)}input[type=number]{font-variant-numeric:tabular-nums}input[type=range]{padding:0;border:0;min-height:20px;accent-color:var(--teal)}input[type=checkbox]{width:15px;min-height:15px;height:15px;accent-color:var(--teal);margin:0}input[type=color]{padding:3px;width:48px}textarea{resize:vertical;line-height:1.55}select{padding-right:25px}label{font-size:12px;font-weight:600}label small,.unit{color:var(--muted);font-weight:400}h1,h2,h3,p{margin:0}h2{font-size:14px;letter-spacing:-.15px}h3{font-size:12px}p{line-height:1.6}a{color:var(--teal)}[hidden]{display:none!important}.muted{color:var(--muted)}.mono{font-family:Consolas,"Liberation Mono",monospace}.eyebrow{color:var(--muted);font-size:9px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase}.primary-text{color:var(--teal)}
.app-header{height:77px;display:flex;align-items:center;gap:23px;padding:0 23px;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;flex:none}.brand-mark{width:38px;height:42px;color:var(--teal)}.brand h1{font-size:23px;font-weight:750;letter-spacing:-1px;line-height:1.1}.brand .eyebrow{margin-top:5px;font-size:7.5px;letter-spacing:1.25px}.header-divider{height:31px;width:1px;background:var(--line)}.project-control{width:250px;min-width:130px}.project-control label{display:block;font-size:9px;color:var(--muted);letter-spacing:1px;text-transform:uppercase;margin-bottom:2px}.project-control input{height:27px;min-height:27px;border:0;padding:2px 0;background:transparent;font-weight:600;font-size:13px;text-overflow:ellipsis}.header-actions{display:flex;align-items:center;gap:6px;margin-left:auto}.history-group{display:flex;margin-right:4px}.history-group button{border:0;background:transparent}.header-actions .primary{margin-left:5px;min-height:38px;padding-left:16px;padding-right:16px}.workspace{display:grid;grid-template-columns:330px minmax(340px,1fr) 265px;height:calc(100dvh - 109px);min-height:610px;overflow:hidden}.left-panel,.right-panel{background:#fff;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#c4d3da transparent}.left-panel{border-right:1px solid var(--line)}.right-panel{border-left:1px solid var(--line)}.panel-block{padding:21px 21px 20px;border-bottom:1px solid var(--line)}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.step-dot{font-size:10px;color:var(--teal);background:var(--teal-soft);font-weight:700;display:inline-grid;place-items:center;width:23px;height:23px;border-radius:50%;margin-right:7px}.subtle-label{font-size:10px;color:var(--muted)}.mode-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin-top:14px}.mode-grid button{flex-direction:column;gap:8px;padding:11px 1px 8px;border:1px solid transparent;background:#f4f7f9;font-size:9px;min-width:0;min-height:65px;font-weight:600}.mode-grid button svg{width:23px;height:23px;stroke-width:1.3}.mode-grid button.active,.mode-grid button[aria-pressed="true"]{border-color:#86bebb;background:var(--teal-soft);color:var(--teal-deep)}.preset-label{display:flex;justify-content:space-between;margin-bottom:8px}.preset-label span:last-child{font-size:9px;letter-spacing:1px;color:var(--muted);text-transform:uppercase}.parameter-block{padding-top:18px}.section-title{font-size:10px;font-weight:750;letter-spacing:1.05px;text-transform:uppercase;margin:19px 0 12px;color:#536b7b}.section-title:first-child{margin-top:0}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:13px}.field>label{display:flex;justify-content:space-between;gap:6px}.field label small{font-size:10px}.row2{display:grid;grid-template-columns:1fr 1fr;gap:11px}.row3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.hint{font-size:11px;line-height:1.55;color:var(--muted);margin-top:7px}.check{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.4;margin:11px 0;font-weight:500}.check input{flex:none}.range-line{display:flex;gap:10px;align-items:center}.range-line output{font-variant-numeric:tabular-nums;min-width:28px;text-align:right}.build-area{position:sticky;bottom:0;background:#fff;padding:16px 21px 14px;border-top:1px solid var(--line);box-shadow:0 -8px 18px #fff}.build-area button{width:100%;min-height:39px;font-size:12px}.build-area .hint{font-size:10px;text-align:center;min-height:16px}.sketch-block{background:#fbfdfd}.sketch-block .panel-heading{margin-bottom:8px}#sketchCanvas{width:100%;height:auto;display:block;border:1px solid #d6e2e6;border-radius:8px;background-color:#f5fafb;background-image:linear-gradient(#dae7eb80 1px,transparent 1px),linear-gradient(90deg,#dae7eb80 1px,transparent 1px);background-size:20px 20px;touch-action:none;margin:11px 0}#sketchCanvas circle{cursor:grab}#sketchCanvas circle:active{cursor:grabbing}.sketch-actions{display:flex;gap:5px;flex-wrap:wrap}.sketch-actions button{font-size:10px;min-height:29px;padding:5px 8px}#pointFields{margin-top:13px}#pointFields:empty{display:none}#profileText{font-family:Consolas,"Liberation Mono",monospace;font-size:11px;min-height:125px;margin:10px 0}.profile-block button{width:100%}
.viewer-column{position:relative;min-width:0;display:flex;flex-direction:column;background:#eff4f6}#viewport{position:relative;isolation:isolate;flex:1;min-height:450px;overflow:hidden;background:radial-gradient(ellipse at 45% 37%,#fcfefe 0,#f0f5f7 52%,#e5edf1 100%)}#viewport>canvas{display:block;position:absolute;inset:0;outline:0;width:100%;height:100%;z-index:0}.viewer-heading{position:absolute;top:25px;left:27px;z-index:2;pointer-events:none;max-width:calc(100% - 225px)}.viewer-heading .eyebrow{font-size:9px;margin-bottom:7px;color:#718e99}.viewer-heading h2{font-size:21px;font-weight:650;letter-spacing:-.6px;line-height:1.22}.viewer-heading p{color:#7c8d98;font-size:11px;margin-top:5px;line-height:1.5}.solid-badge{display:inline-flex;align-items:center;gap:6px;margin-top:13px;padding:5px 8px;background:#ffffffbe;border:1px solid #d4e4e5;border-radius:5px;color:#4a7776;font-size:9px;font-weight:650;letter-spacing:.35px}.solid-badge:before{content:"";width:5px;height:5px;border-radius:50%;background:#27968a}.viewport-toolbar{position:absolute;z-index:3;right:18px;top:24px;display:flex;gap:5px;flex-direction:column;align-items:flex-end}.view-presets,.view-options{display:flex;gap:3px;background:#ffffffdf;padding:4px;border:1px solid #d9e3e7;border-radius:8px;box-shadow:0 2px 5px #233d4e04}.viewport-toolbar button{background:transparent;min-height:28px;border-color:transparent;font-size:10px;padding:5px 8px;border-radius:4px;font-weight:650}.viewport-toolbar button:hover{background:#f0f6f6}.viewport-toolbar button.active,.viewport-toolbar button[aria-pressed="true"]{background:var(--teal-soft);color:var(--teal-deep)}.viewport-toolbar .view-options{margin-top:3px}.viewport-toolbar .view-options button{padding:5px 6px}.viewport-toolbar .view-options button svg{width:14px;height:14px}.viewer-bottom{position:absolute;bottom:18px;left:25px;right:20px;display:flex;align-items:flex-end;justify-content:space-between;z-index:2;gap:15px;pointer-events:none}.viewer-hints{display:flex;flex-wrap:wrap;gap:9px;font-size:10px;color:#7c8d98}.viewer-hints span{display:flex;align-items:center;gap:5px}.viewer-hints svg{width:13px;height:13px;stroke:#8b9eaa;fill:none;stroke-width:1.5}.axis-note{font-size:9px;letter-spacing:1px;color:#91a0aa;text-transform:uppercase;text-align:right}.viewer-note{display:flex;gap:9px;align-items:center;padding:11px 22px;font-size:10px;color:#6e838f;border-top:1px solid #dce5e9;background:#f8fafbcc;line-height:1.5}.viewer-note svg{width:14px;height:14px;flex:none;stroke:var(--teal);fill:none;stroke-width:1.5}.inspector-title{display:flex;align-items:center;gap:8px;margin-bottom:17px}.inspector-title svg{width:16px;height:16px;fill:none;stroke:var(--teal);stroke-width:1.5}.inspector-title h2{font-size:12px}.report-kicker{font-size:9px;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin-bottom:6px}.size-display{font-size:16px;letter-spacing:-.4px;font-weight:600;line-height:1.5;font-variant-numeric:tabular-nums}.size-unit{font-size:10px;color:var(--muted);margin-top:2px}.model-stats{display:grid;grid-template-columns:1fr 1fr;gap:17px 12px;margin:20px 0 0;padding-top:17px;border-top:1px solid var(--line)}.model-stats dt{font-size:10px;color:var(--muted);margin-bottom:6px}.model-stats dd{margin:0;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}.report-caption{margin-top:16px;font-size:9px;line-height:1.6;color:#82919c}.warning,.error,.success{padding:10px 11px;font-size:10px;line-height:1.55;border-radius:6px;margin-top:10px}.warning{color:#8b622e;background:#fff6e9;border:1px solid #f0dcbb}.error{color:#a94445;background:#fff0f0;border:1px solid #ebcccc}.success{color:#397c68;background:#edf8f3;border:1px solid #cfe8dc}#modelWarnings:empty{display:none}.export-block{background:linear-gradient(140deg,#f1f8f6,#f8fbfc)}.export-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.export-heading h2{font-size:12px}.export-heading span{font-size:8px;letter-spacing:.7px;color:var(--teal);background:#dfefea;border-radius:4px;padding:4px 6px;font-weight:700}.export-block label{font-size:10px;display:block;margin-bottom:6px}.export-block select{background:#ffffffbd}.export-block button{width:100%;margin-top:11px;font-size:12px;min-height:37px}.export-block .hint{font-size:10px}.feature-block .panel-heading{margin-bottom:6px}.feature-block h2{font-size:12px}.feature-count{font-size:9px;color:var(--muted)}.feature-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:13px}.feature-actions button{font-size:10px;min-height:30px;padding:6px}.feature-row{padding:10px 0;border-bottom:1px solid var(--line);display:flex;gap:7px;align-items:center;font-size:11px}.feature-row>span,.feature-row>.feature-label{flex:1}.feature-row button{font-size:10px;min-height:25px;padding:4px 6px}.feature-row.active{color:var(--teal)}.feature-row input[type=checkbox]{margin-right:4px}#featureList:empty:before{content:"No cutouts added";display:block;color:#93a1ab;font-size:10px;margin:14px 0 1px}#featureEditor:not(:empty){margin-top:15px;padding-top:12px;border-top:1px solid var(--line)}#featureEditor .field{margin-bottom:10px}#featureEditor label{font-size:10px}#featureEditor input,#featureEditor select{min-height:30px;font-size:11px}#featureEditor .section-title{font-size:9px}.tip-card{padding:20px 21px;color:#8c9aa4;font-size:10px;line-height:1.65}.tip-card strong{color:#718592;font-weight:650;display:block;margin-bottom:4px}.status-bar{height:32px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 22px;background:#fff;color:#7b8b96;font-size:9px;letter-spacing:.15px}.status-left{display:flex;align-items:center;gap:7px;min-width:0}.status-dot{height:5px;width:5px;border-radius:50%;background:var(--teal);flex:none}#statusText{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-right{white-space:nowrap;color:#8b9aa4}.status-right strong{color:#617e8b;font-weight:500}.key{font-size:8px;border:1px solid #d8e1e6;background:#f7fafb;padding:2px 4px;border-radius:3px;margin-left:4px}.help-dialog{width:min(680px,calc(100% - 32px));max-height:85dvh;border:1px solid var(--line);border-radius:15px;padding:0;color:var(--ink);box-shadow:0 30px 100px #102b4a40}.help-dialog::backdrop{background:#1a344266;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:21px 25px;background:#f9fcfc}.dialog-head h2{font-size:19px}.dialog-body{padding:23px 26px 27px}.dialog-body p,.dialog-body li{color:#647888;font-size:12px;line-height:1.7}.dialog-body h3{font-size:13px;margin:22px 0 7px;color:#355868}.dialog-body h3:first-child{margin-top:0}.dialog-body ol{padding-left:20px;margin:10px 0}.dialog-body li{padding-left:3px;margin-bottom:8px}.dialog-body .note{padding:13px 16px;border:1px solid #e7ddc9;border-radius:7px;background:#fff9ee;margin-top:20px;color:#8a6c42}.dialog-body code{font-size:11px;background:#f0f5f7;padding:2px 4px;border-radius:3px}.dialog-body .row2{gap:24px}.dialog-body .row2 h3{margin-top:0}.help-subtitle{color:var(--muted);font-size:11px;margin-top:4px}#fatalOverlay{position:absolute;z-index:8;inset:130px 28px auto;background:#fff5f0;border:1px solid #e3c6b8;padding:20px;border-radius:10px;color:#9b5935;font-size:12px;line-height:1.6}#toast{position:fixed;bottom:48px;left:50%;transform:translateX(-50%);z-index:1000;background:#203f4a;color:white;padding:12px 19px;border-radius:8px;box-shadow:0 10px 30px #142e4730;font-size:12px;max-width:calc(100% - 32px);opacity:0;pointer-events:none;transition:opacity .2s}#toast.show,#toast.visible{opacity:1}#toast:empty{display:none}.empty-state{color:#879aa5;font-size:11px;padding:10px 0}.divider{border:0;border-top:1px solid var(--line);margin:17px 0}.compact-note{font-size:10px;color:var(--muted);line-height:1.6}.flex{display:flex;align-items:center;gap:8px}.full-width{width:100%}
@media(min-width:1700px){.workspace{grid-template-columns:350px minmax(500px,1fr) 290px}.panel-block{padding-left:25px;padding-right:25px}.viewer-heading{left:34px;top:30px}.viewer-heading h2{font-size:24px}.viewport-toolbar{right:28px;top:29px}}
@media(max-width:1250px){.workspace{grid-template-columns:300px minmax(330px,1fr) 240px}.app-header{gap:15px;padding:0 17px}.brand h1{font-size:21px}.brand .eyebrow{font-size:6.8px}.project-control{width:210px}.header-actions button{padding:7px 9px}.header-actions .label-optional{display:none}.panel-block{padding:18px 17px}.build-area{padding:13px 17px}.viewer-heading{left:20px;top:23px;max-width:calc(100% - 20px)}.viewer-heading h2{font-size:19px}.viewport-toolbar{top:117px;right:15px}.viewer-bottom{left:19px;right:16px}.viewer-hints{max-width:200px;gap:6px 9px}.viewer-note{padding-left:18px}.tip-card{padding:18px 17px}}
@media(max-width:1050px) and (min-width:901px){.workspace{grid-template-columns:285px minmax(330px,1fr) 220px}.brand .eyebrow{font-size:6.4px}.brand-mark{width:31px}.header-divider{display:none}.project-control{width:170px}.app-header{gap:13px}.header-actions{gap:3px}.header-actions .primary{padding:8px 10px}.header-actions #newDesign{padding:7px 5px}.model-stats{gap:15px 8px}.size-display{font-size:14px}.viewer-heading h2{font-size:17px}}
@media(max-width:900px){.app-header{height:auto;min-height:75px;flex-wrap:wrap;padding:15px 18px;gap:13px}.brand{margin-right:auto}.brand-mark{width:32px;height:35px}.brand h1{font-size:22px}.brand .eyebrow{font-size:7px}.project-control{width:230px;max-width:42%}.header-divider{display:none}.header-actions{width:100%;padding-top:10px;border-top:1px solid #edf1f4;margin-left:0;gap:6px}.header-actions .primary{margin-left:auto}.header-actions .label-optional{display:inline}.workspace{height:auto;min-height:0;display:grid;grid-template-columns:310px minmax(0,1fr);overflow:visible}.left-panel{grid-column:1;grid-row:1/3;overflow:visible}.viewer-column{grid-column:2;grid-row:1;min-height:500px}.right-panel{grid-column:2;grid-row:2;border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr;overflow:visible}.right-panel .panel-block{padding:19px 23px}.tip-card{display:none}.viewer-note{padding:10px 17px}#viewport{height:450px;flex:auto;min-height:450px}.viewer-heading{max-width:calc(100% - 40px);left:21px;top:24px}.viewer-heading h2{font-size:19px}.viewport-toolbar{top:113px;right:17px}.viewer-bottom{bottom:14px}.viewer-hints{font-size:9px;max-width:180px}.axis-note{display:none}.build-area{position:static;box-shadow:none}.status-bar{position:static;padding:0 16px;font-size:8px}.status-right{font-size:8px}.export-block{order:2}.feature-block{order:3}}
@media(max-width:640px){.app-header{padding:13px 13px;gap:9px}.brand{gap:8px}.brand h1{font-size:21px}.brand .eyebrow{font-size:6px;letter-spacing:1px}.project-control{max-width:43%;width:190px}.project-control input{font-size:11px}.project-control label{font-size:8px}.header-actions{gap:3px;padding-top:9px;justify-content:space-between}.header-actions button{font-size:10px;min-height:33px;padding:6px 7px;gap:4px}.header-actions button svg{width:14px;height:14px}.header-actions .primary{padding:7px 9px;margin-left:3px}.header-actions .label-optional{display:none}.history-group{margin-right:0}.history-group button{width:25px;padding:4px}.header-actions #helpBtn{width:28px}.workspace{display:flex;flex-direction:column}.left-panel{border-right:0;order:2;display:block}.viewer-column{order:1;min-height:480px;border-bottom:1px solid var(--line)}#viewport{height:440px;min-height:440px}.right-panel{order:3;display:grid;grid-template-columns:1fr}.left-panel .panel-block{padding:20px 22px}.mode-grid{gap:8px}.mode-grid button{font-size:10px;min-height:65px}.viewer-heading h2{font-size:20px}.viewer-heading{top:23px;left:22px}.viewport-toolbar{top:112px;right:18px}.build-area{padding:17px 22px}.viewer-hints{font-size:9px;max-width:none}.viewer-hints span:last-child{display:none}.status-bar{font-size:8px;gap:8px;height:36px}.status-right{font-size:7px}.status-left{max-width:58%}.dialog-body{padding:20px}.dialog-body .row2{grid-template-columns:1fr;gap:20px}.dialog-head{padding:19px 20px}.help-dialog{max-height:90dvh}.dialog-head h2{font-size:17px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{.app-header,.left-panel,.right-panel,.status-bar,.viewport-toolbar,.viewer-note{display:none}.workspace{display:block;height:auto}.viewer-column,#viewport{height:90vh}.viewer-bottom{display:none}}

/* Dynamic parameter and feature controls */
.field>span{display:flex;align-items:baseline;justify-content:space-between;gap:6px;font-size:11px;font-weight:600;line-height:1.4}.field>span small{font-size:10px;font-weight:400;color:var(--muted)}.param-section{padding:15px 0 6px;border-bottom:1px solid #e8eef1}.param-section:first-child{padding-top:0}.param-section:last-child{border-bottom:0;padding-bottom:0}.param-section .section-title{margin-top:0;margin-bottom:12px}.param-section>.hint{margin:0 0 10px}.feature-row{display:block;padding:14px 0 4px}.feature-head{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:10px}.feature-head strong{font-size:10px;color:#426672;font-weight:650}.feature-head .icon-btn{width:24px;min-height:24px;padding:0;font-size:16px;font-weight:400;border-color:#e3e9ed;color:#8799a3}.feature-head .icon-btn:hover{background:#fff1f0;border-color:#e0c3c0;color:#a4524e}.feature-row .field{margin-bottom:9px}.feature-row .field>span{font-size:10px}.feature-row .field input,.feature-row .field select{font-size:11px;min-height:30px;padding:5px 7px}.feature-row .row2{gap:8px}.subtle{color:var(--teal-deep);background:#f3f8f8;border-color:#d3e4e2;font-size:10px}.check-note{margin-top:13px;padding:10px 11px;border-radius:6px;border:1px solid #d8e8e0;background:#f1f8f4;color:#547967;font-size:10px;line-height:1.6}.solid-badge.good{color:#387b69;border-color:#b5d8c9;background:#edf8f2e6}.solid-badge.good:before{background:#27855f}.solid-badge.warn{color:#956636;border-color:#e8c994;background:#fff5e4e6}.solid-badge.warn:before{background:#d88b32}#profileCanvas{display:block;width:100%;max-height:200px;aspect-ratio:320/200;background:#f4f9fa;border:1px solid #d5e3e8;border-radius:7px;margin:12px 0 9px}#profileText{margin-top:0}.build-area .success,.build-area .error{margin-top:8px;padding:7px 8px;text-align:center;font-size:10px}.empty-cuts{margin-top:12px}

/* Part Studio Pro / visual template library */
.app-header{height:85px;gap:17px;padding-left:20px;padding-right:20px}.brand{gap:14px}.brand-logo{height:42px;width:auto;max-width:140px;object-fit:contain;flex:none}.brand h1{font-size:22px;letter-spacing:-.8px;white-space:nowrap;display:flex;align-items:center;gap:8px}.brand .eyebrow{font-size:7px;letter-spacing:1.1px}.pro-badge{font-size:8px;letter-spacing:1px;font-weight:750;color:var(--teal);padding:4px 5px;border:1px solid #c5dfdb;border-radius:4px;background:#f0f8f5}.project-control{width:205px;flex:1 1 165px;max-width:285px;min-width:135px}.header-actions{flex:none;gap:5px}.header-actions .primary{white-space:nowrap}.workspace{height:calc(100dvh - 117px)}.browse-templates{display:flex;text-align:left;justify-content:flex-start;gap:11px;padding:12px;width:100%;min-height:65px;border-color:#b9d9d6;background:linear-gradient(120deg,#e8f5f1,#f5fafb);box-shadow:0 3px 7px #174c4e05}.browse-templates:hover{background:#e3f2ef;border-color:#7ebbb4}.browse-icon{height:34px;width:34px;display:grid;place-items:center;flex:none;background:#fff;border-radius:7px;border:1px solid #d7e9e5;color:var(--teal)}.browse-icon svg{width:20px;height:20px}.browse-copy{flex:1;min-width:0}.browse-copy strong{font-size:11px;font-weight:650;display:block;line-height:1.4;color:#24575b}.browse-copy small{display:block;font-size:9px;font-weight:400;margin-top:4px;color:#6d9191}.browse-arrow{width:12px!important;height:12px!important;color:#5c9691}.mode-select-field{margin-top:17px;margin-bottom:0}.mode-grid{margin-top:10px}.mode-grid button{min-height:55px;font-size:8px;padding-top:8px;padding-bottom:7px;gap:6px}.mode-grid button svg{height:19px;width:19px}.template-note{font-size:10px;color:#7a919c;line-height:1.6;margin-top:9px}.advanced-features-block{background:#fcfefe}.feature-intro{margin-top:-3px;font-size:10px}.advanced-add-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:13px 0 16px}.advanced-add-actions button{font-size:10px;min-height:34px;padding:6px 7px;justify-content:flex-start;gap:7px}.advanced-add-actions button svg{width:14px;height:14px;color:#628c92}.advanced-add-actions .add-symbol,.advanced-add-actions .cut-symbol{width:15px;height:15px;display:inline-grid;place-items:center;border-radius:4px;line-height:1;font-size:14px;font-weight:500;color:#168576;background:#e6f3ed}.advanced-add-actions .cut-symbol{background:#fff0df;color:#b87b30}.adv-feature-row{border:1px solid #dce6e9;border-radius:7px;margin-bottom:7px;background:#fff;overflow:hidden;transition:border-color .15s,background .15s}.adv-feature-row.is-selected{border-color:#87bfb8;background:#f0f8f5;box-shadow:0 0 0 1px #b4dcd240}.adv-feature-row.is-disabled{opacity:.6}.adv-feature-select{display:grid;grid-template-columns:9px 1fr;column-gap:8px;row-gap:3px;align-items:center;justify-content:start;width:100%;border:0!important;border-radius:0;min-height:47px;background:transparent!important;text-align:left;padding:10px 10px 8px;box-shadow:none!important}.adv-feature-select strong{font-size:10px;font-weight:650;line-height:1.3;color:#3f626c}.adv-feature-select small{grid-column:2;font-size:9px;line-height:1.4;font-weight:400;color:#84969c}.feature-dot{width:6px;height:6px;border-radius:50%;background:#7995a0;flex:none}.feature-dot.add{background:#249d89}.feature-dot.cut{background:#dc9444}.adv-feature-actions{display:flex;justify-content:flex-end;gap:2px;padding:0 6px 6px;border-top:0}.adv-feature-actions button{min-height:23px;min-width:23px;padding:3px 5px;border-color:transparent;background:transparent;color:#7b969e;font-size:10px;border-radius:4px}.adv-feature-actions button:hover{color:#346a6d;border-color:#c5dcd9;background:#fff}.adv-feature-actions button:last-child:hover{color:#a65b52;border-color:#e3c8c1;background:#fff5f2}.adv-feature-actions button:disabled{opacity:.25}.adv-feature-actions button svg{width:12px;height:12px}.adv-feature-actions input[type=checkbox]{width:13px;height:13px;min-height:13px}#advancedFeaturesList:empty:before{content:"No extra features. Start with a solid or cut above.";display:block;font-size:10px;line-height:1.6;color:#8a9da5;border:1px dashed #d9e5e8;border-radius:6px;padding:13px 12px}#advancedFeatureEditor:not(:empty){border-top:1px solid #dce7e9;margin-top:17px;padding-top:16px}.feature-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;font-weight:650;margin-bottom:14px;color:#3c6670}.feature-editor-heading h3{font-size:11px}.feature-editor-heading .feature-count{font-size:8px;color:#73939a}.advanced-features-block .field{margin-bottom:10px}.advanced-features-block .field>span{font-size:10px}.advanced-features-block input,.advanced-features-block select{font-size:11px;min-height:31px;padding:5px 7px}.advanced-features-block .row2,.advanced-features-block .row3{gap:8px}.advanced-features-block .row3{grid-template-columns:repeat(3,minmax(0,1fr))}.advanced-features-block .row3 .field{min-width:0}.advanced-features-block .row3 input{min-width:0;width:100%}.advanced-features-block .row3 .field>span small{font-size:8px}.advanced-features-block .section-title{font-size:9px;letter-spacing:.8px}.advanced-features-block .hint{font-size:10px}.advanced-features-block .check{font-size:10px;line-height:1.5}.advanced-features-block .check input{min-height:14px;height:14px;width:14px}.catalogue-dialog{width:min(1120px,95vw);height:min(860px,91dvh);max-width:95vw;max-height:91dvh;border:1px solid #d2e0e4;border-radius:15px;padding:0;color:var(--ink);box-shadow:0 28px 100px #18364840;background:#f7fafb;overflow:hidden}.catalogue-dialog[open]{display:flex;flex-direction:column}.catalogue-dialog::backdrop{background:#1938426b;backdrop-filter:blur(4px)}.catalogue-header{display:flex;justify-content:space-between;align-items:flex-start;padding:27px 29px 21px;gap:25px;background:#fff;border-bottom:1px solid #e1e9ec;flex:none}.catalogue-header .eyebrow{font-size:8px;color:#77919a;letter-spacing:1.5px;margin-bottom:10px}.catalogue-header h2{font-size:29px;font-weight:650;letter-spacing:-1px}.catalogue-header p{font-size:11px;color:#7b909b;margin-top:7px}.catalogue-header .icon-button{margin-top:5px;color:#78909b}.catalogue-filters{padding:20px 29px 10px;display:flex;gap:13px;flex:none;align-items:flex-end;background:#fff}.catalogue-search{position:relative;display:flex;align-items:center;flex:1}.catalogue-search svg{position:absolute;left:13px;width:17px;height:17px;stroke:#869ca6;fill:none;stroke-width:1.6}.catalogue-search input{padding-left:40px;height:41px;border-color:#d7e2e7;background:#f9fbfc;font-size:12px;font-weight:400}.catalogue-category{display:flex;align-items:center;gap:10px;width:270px;flex:none}.catalogue-category>span{font-size:10px;color:#7c919a;font-weight:500}.catalogue-category select{height:41px;font-size:11px}.catalogue-results-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 29px 12px;background:#fff;border-bottom:1px solid #e2e9ed;flex:none}.catalogue-results-bar>span{font-size:10px;color:#85969e}.catalogue-results-bar button{font-size:9px;font-weight:500;min-height:29px;padding:5px 0;color:#65918f;white-space:nowrap}.catalogue-results-bar button svg{height:12px;width:12px}.catalogue-grid{padding:23px 27px 27px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-content:start;gap:17px;overflow-y:auto;min-height:150px;flex:1;scrollbar-width:thin;scrollbar-color:#c5d6dd transparent}.catalogue-card,.catalogue-grid>button{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;text-align:left;min-width:0;padding:0;gap:0;border:1px solid #dce6eb;border-radius:10px;overflow:hidden;background:#fff;box-shadow:0 3px 8px #24475b05;transition:transform .15s,box-shadow .15s,border-color .15s}.catalogue-card:hover,.catalogue-grid>button:hover{border-color:#92c1ba;box-shadow:0 7px 19px #204f5910;transform:translateY(-2px);background:#fff}.catalogue-card.is-selected,.catalogue-card.selected,.catalogue-grid>button[aria-pressed=true]{border-color:#479f94;box-shadow:0 0 0 2px #a3d2c955}.catalogue-card img,.catalogue-grid>button img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;background:radial-gradient(ellipse at 50% 36%,#fff,#eaf1f3);border-bottom:1px solid #e6edf0}.catalogue-card-body,.catalogue-copy,.template-card-body{padding:13px 14px 15px;flex:1;display:flex;flex-direction:column}.catalogue-card h3,.catalogue-grid>button h3{font-size:12px;line-height:1.4;letter-spacing:-.1px;color:#305562;margin:0 0 7px}.catalogue-card p,.catalogue-grid>button p{font-size:10px;font-weight:400;line-height:1.6;color:#7b919b;margin:0 0 12px}.catalogue-card>h3,.catalogue-grid>button>h3{padding:13px 14px 0}.catalogue-card>p,.catalogue-grid>button>p{padding:0 14px}.catalogue-card>strong,.catalogue-grid>button>strong{padding:13px 14px 7px;color:#305562;font-size:12px;line-height:1.4}.catalogue-card>small,.catalogue-grid>button>small{padding:0 14px 13px;font-size:10px;line-height:1.6;font-weight:400;color:#7b919b}.catalogue-card .catalogue-tag,.catalogue-card .template-tag,.catalogue-tag,.template-tag{display:inline-flex;align-items:center;align-self:flex-start;color:#63978d;background:#edf6f2;border:1px solid #dbeae3;padding:3px 6px;border-radius:4px;font-size:8px;letter-spacing:.2px;font-weight:600;line-height:1.4;margin-top:auto}.catalogue-card>.catalogue-tag,.catalogue-card>.template-tag{margin:0 14px 14px}.catalogue-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:auto}.catalogue-empty,.catalogue-grid>.empty-state{grid-column:1/-1;text-align:center;padding:60px 25px;font-size:12px;color:#7f949d;border:1px dashed #d4e1e6;border-radius:9px;background:#fff}.catalogue-footer{flex:none;display:flex;align-items:center;gap:8px;padding:15px 29px;background:#fff;border-top:1px solid #e0e9ec}.catalogue-footer p{font-size:9px;color:#8c9da5;line-height:1.5}.catalogue-footer-dot{height:5px;width:5px;border-radius:50%;background:#d3a36a;flex:none}.catalogue-units{margin-left:auto;font-size:8px;font-weight:650;color:#779e9e;letter-spacing:1px;white-space:nowrap}
@media(min-width:901px) and (max-width:1180px){.app-header{height:129px;flex-wrap:wrap;gap:9px 18px;padding-top:14px;padding-bottom:12px}.brand{margin-right:auto}.project-control{flex:0 1 290px;max-width:40%}.header-divider{display:none}.header-actions{flex:0 0 100%;width:100%;padding-top:8px;border-top:1px solid #edf2f4;gap:6px}.header-actions .primary{margin-left:auto}.header-actions .label-optional{display:inline}.workspace{height:calc(100dvh - 161px)}}
@media(max-width:1000px){.catalogue-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;padding:21px}.catalogue-header{padding:24px}.catalogue-filters{padding:18px 24px 10px}.catalogue-results-bar{padding-left:24px;padding-right:24px}.catalogue-footer{padding:13px 24px}}
@media(max-width:900px){.app-header{height:auto;gap:12px;padding:16px 18px}.brand{gap:12px}.brand-logo{height:40px;max-width:130px;width:auto}.brand h1{font-size:22px}.brand .eyebrow{font-size:7px}.project-control{flex:1 1 175px;max-width:36%;width:auto;min-width:135px}.header-actions{flex:0 0 100%;gap:6px}.workspace{height:auto}.catalogue-category{width:230px}.catalogue-header h2{font-size:27px}.catalogue-footer .catalogue-units{display:none}}
@media(max-width:720px){.catalogue-dialog{height:92dvh;max-height:92dvh;width:95vw;border-radius:12px}.catalogue-header{padding:22px 20px 18px}.catalogue-header .eyebrow{font-size:7px}.catalogue-header h2{font-size:26px}.catalogue-header p{font-size:10px;max-width:300px}.catalogue-filters{padding:16px 20px 9px;flex-wrap:wrap;gap:10px}.catalogue-search{flex:1 1 100%}.catalogue-category{width:100%;display:flex}.catalogue-category>span{width:60px;flex:none;font-size:10px}.catalogue-category select{height:34px}.catalogue-results-bar{padding:0 20px 10px}.catalogue-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:17px}.catalogue-card h3,.catalogue-grid>button h3{font-size:11px}.catalogue-card p,.catalogue-grid>button p{font-size:9px}.catalogue-card-body,.catalogue-copy,.template-card-body{padding:11px}.catalogue-footer{padding:12px 20px}.catalogue-footer p{font-size:8px}}
@media(max-width:640px){.app-header{padding:14px 13px;gap:12px}.brand{margin-right:0;gap:11px}.brand-logo{height:38px;max-width:120px;width:auto}.brand h1{font-size:21px;gap:6px}.brand .eyebrow{font-size:6px;letter-spacing:1px}.pro-badge{font-size:7px;padding:3px 4px}.project-control{flex:1 1 100%;width:100%;max-width:none;min-width:0;padding-top:8px;border-top:1px solid #eff3f4;display:flex;align-items:center;gap:12px}.project-control label{font-size:8px;margin-bottom:0;flex:none}.project-control input{font-size:12px;font-weight:550;min-width:0;flex:1}.header-actions{gap:4px;flex-wrap:wrap;padding-top:0;border-top:0}.header-actions .primary{margin-left:auto}.header-actions .label-optional{display:none}.mode-grid button{font-size:9px;min-height:56px}.mode-grid button svg{width:20px;height:20px}.advanced-add-actions{gap:9px}.advanced-add-actions button{min-height:36px;font-size:11px}.browse-copy strong{font-size:12px}.browse-copy small{font-size:10px}.mode-select-field>span{font-size:11px}}
@media(max-width:390px){.catalogue-grid{grid-template-columns:1fr;padding:15px 21px}.catalogue-card img,.catalogue-grid>button img{aspect-ratio:16/10}.catalogue-header p{max-width:220px}.catalogue-results-bar{gap:6px}.catalogue-results-bar button{font-size:8px}.brand-logo{max-width:108px;height:36px}.brand h1{font-size:20px}.header-actions button{padding-left:5px;padding-right:5px}.header-actions .primary{padding-left:7px;padding-right:7px}}

/* Catalogue cards and feature controls: integrated module markup */
article.catalogue-card{cursor:default;min-height:0}.catalogue-preview{display:block;width:100%;min-height:0;aspect-ratio:320/220;padding:0;border:0!important;border-radius:0;background:#edf4f6;overflow:hidden;box-shadow:none;line-height:0}.catalogue-preview:hover{background:#edf4f6}.catalogue-preview:active{transform:none}.catalogue-preview img{display:block;width:100%;height:100%;aspect-ratio:320/220;object-fit:contain;border-bottom:1px solid #e6edf0}.catalogue-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:-3px 0 9px;min-height:26px}.catalogue-meta .catalogue-tag{margin:0;font-size:7px;letter-spacing:.15px;max-width:calc(100% - 29px);overflow-wrap:anywhere;line-height:1.5}.catalogue-favourite{height:25px;min-height:25px;width:25px;flex:none;padding:1px;border:1px solid transparent;border-radius:5px;background:transparent;color:#8ca6ad;font-size:21px;font-family:"Segoe UI Symbol","Arial",sans-serif;font-weight:400;line-height:1}.catalogue-favourite:hover{background:#fff7e9;color:#cc9235;border-color:#ebdfc6}.catalogue-favourite[aria-pressed=true]{color:#cb9337;background:#fff7e7;border-color:#eddbb7}.catalogue-card-actions{display:flex;align-items:center;gap:7px;margin-top:auto;padding-top:3px}.catalogue-card-actions button{min-width:0;min-height:30px;padding:6px 9px;font-size:9px;line-height:1.2;white-space:nowrap;flex:1}.catalogue-card-actions button:last-child{flex:0 0 61px;color:#78929a;font-size:9px;padding:6px}.catalogue-card-actions button.secondary{color:#2b867c;background:#edf7f2;border-color:#cce2da}.catalogue-card-actions button.secondary:hover{background:#dff1e9;border-color:#a5cec2}.catalogue-card-body>p{font-weight:400}.adv-feature-select{grid-template-columns:18px minmax(0,1fr);gap:8px}.adv-feature-select>.feature-dot{display:grid;place-items:center;width:18px;height:18px;border-radius:5px;font-size:12px;font-weight:600;line-height:1;background:#e8f0f2;color:#648995}.adv-feature-select>.feature-dot.add{background:#dcefe6;color:#288875}.adv-feature-select>.feature-dot.cut{background:#fff0db;color:#b58339}.adv-feature-select>span:last-child{display:block;min-width:0}.adv-feature-select strong{display:block;overflow-wrap:anywhere}.adv-feature-select small{display:block;margin-top:4px}.feature-editor-heading .hint{margin-top:0;font-weight:400;font-size:9px}.advanced-features-block input:invalid{border-color:#dca094;background:#fff7f4}.advanced-features-block input:invalid:focus{outline-color:#e8b29d66}.adv-feature-actions button[aria-pressed=true]{color:#40947e;background:transparent;border-color:transparent}
@media(max-width:720px){.catalogue-card-actions{gap:5px}.catalogue-card-actions button{font-size:8px;padding:6px}.catalogue-card-actions button:last-child{flex-basis:51px;font-size:8px}.catalogue-meta .catalogue-tag{font-size:6.5px;padding:3px 5px}.catalogue-card-body{padding:11px}.catalogue-meta{margin-bottom:7px}}

/* Modular mobile robot kit */
.robot-kit-entry{display:flex;align-items:center;gap:12px;width:100%;padding:13px 14px;background:linear-gradient(125deg,#edf8f4,#f6fbfa);border:1px solid #bed9d2;border-radius:9px;text-align:left;margin-bottom:10px}.robot-kit-entry>svg{width:37px;height:30px;stroke:#39796f;flex:none}.robot-kit-entry span{flex:1}.robot-kit-entry strong{display:block;font-size:13px;color:#265d55}.robot-kit-entry small{display:block;font-size:10px;font-weight:400;color:#6d8882;margin-top:4px}.robot-kit-entry.active{box-shadow:inset 3px 0 #087f82}.robot-kit-links{display:flex;gap:12px;align-items:center;margin:7px 0 16px;font-size:10px}.robot-kit-links button{padding:0;min-height:20px;font-size:10px;color:#087f82;border:0;background:transparent}.robot-kit-links a{text-decoration:none}.robot-kit-links a:hover{text-decoration:underline}.robot-interface{background:#f7fbfa}.robot-interface h2{font-size:12px;margin-bottom:9px}.robot-plan{width:100%;max-height:158px;display:block;margin:5px auto 8px}.robot-interface-facts{margin:8px 0 0}.robot-interface-facts>div{padding:8px 0;border-bottom:1px solid #dfebe6}.robot-interface-facts dt{font-size:9px;color:#738b83;margin-bottom:4px}.robot-interface-facts dd{margin:0;font-size:11px;font-weight:600;line-height:1.45}.robot-interface .check{font-size:10px;align-items:flex-start}.robot-interface .check input{margin-top:1px}.robot-guide-link{display:inline-flex;margin-top:13px;font-size:11px;font-weight:600;text-decoration:none}.robot-guide-link:hover{text-decoration:underline}.robot-print-panel h2{font-size:12px;margin-bottom:12px}.robot-print-panel .field{margin-bottom:0}.robot-print-panel .field span{font-size:10px}.robot-print-panel .row3{gap:6px}.robot-print-panel input{font-size:11px;padding:7px}.robot-print-panel .hint{font-size:10px}.robot-interface-note{font-size:10px;color:#758a81;line-height:1.65;margin-top:9px}

.assembly-nav-link{display:inline-flex;align-items:center;text-decoration:none;color:#087f82;font-size:12px;font-weight:700;padding:8px;border:1px solid #c9e0dc;border-radius:7px;white-space:nowrap}
