@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root{--bg:#f3f7fb;--bg-2:#eef4f9;--card:#fff;--text:#182b3e;--text-dim:#60748a;--accent:#008ac4;--border:#dce5ed;--field-bg:#f5f8fc}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 90% 0%,#d9effb 0,transparent 43%),var(--bg);color:var(--text);font-family:Manrope,system-ui,sans-serif}a{color:inherit}.container{max-width:1240px;margin:auto;padding-left:28px;padding-right:28px}.top{max-width:1240px;margin:auto;padding:28px;display:flex;justify-content:space-between;align-items:center;gap:16px}.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-weight:800;font-size:23px}.brand-mark{display:grid;place-items:center;width:34px;height:36px;background:#182b3e;color:#fff;border-radius:10px;font-size:22px}.test-label{font-size:10px;color:var(--accent);letter-spacing:.15em;margin-left:3px}.back-link{font-size:13px;color:var(--text-dim);text-decoration:none}.back-link:hover{color:var(--accent)}.intro{padding-top:52px;padding-bottom:48px}.eyebrow{font-size:11px;letter-spacing:.13em;font-weight:800;color:var(--accent);display:flex;gap:9px;align-items:center}.eyebrow span{width:6px;height:6px;background:var(--accent);border-radius:50%}h1{font-size:clamp(34px,4.5vw,62px);line-height:1.13;letter-spacing:-.045em;margin:22px 0}h1 span{color:var(--accent)}.intro p{color:var(--text-dim);line-height:1.8;font-size:16px}.section-head{margin-bottom:22px}.section-head h2{font-size:22px;margin:0 0 8px;letter-spacing:-.025em}.section-head p{font-size:14px;color:var(--text-dim);line-height:1.7;margin:0}.calc-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:24px;align-items:start}.calc-panel{background:var(--card);border:1px solid var(--border);border-radius:22px;padding:26px;box-shadow:0 14px 38px #152c4210;min-width:0}h3{margin:0 0 25px;font-size:18px;display:flex;align-items:center;gap:10px}.num{display:grid;place-items:center;background:#e2f3fc;color:var(--accent);width:30px;height:30px;border-radius:9px;font-size:13px}.dropzone{display:block;border:1.5px dashed #bdcfdd;border-radius:15px;background:#f7faff;text-align:center;padding:30px 18px;cursor:pointer;transition:border-color .15s,background .15s}.dropzone:hover,.dropzone.drag{border-color:var(--accent);background:#eaf6fe}.dropzone p{font-size:14px;color:var(--text-dim);line-height:1.7;margin:10px 0 0}.dropzone strong{color:var(--text);font-size:14px}.up-icon{height:42px;width:42px;margin:auto;background:#e2f3fc;padding:10px;border-radius:12px;color:var(--accent)}.up-icon svg{width:100%;height:100%}#viewer{height:340px;margin-top:18px;border:1px solid var(--border);border-radius:15px;position:relative;overflow:hidden;background:#f5f8fc}#viewer canvas{display:block;width:100%;height:100%}#viewer .empty{position:absolute;left:12px;right:12px;top:50%;text-align:center;color:var(--text-dim);font-size:13px;pointer-events:none}.stat-row{display:flex;align-items:center;gap:8px}.stat-ico{color:var(--accent);height:20px;width:20px}.stat-ico svg{height:20px;width:20px}.model-list{display:grid;gap:8px;margin-top:16px}.model-list[hidden]{display:none}.model-row{display:flex;justify-content:space-between;gap:12px;align-items:center;background:var(--field-bg);border:1px solid var(--border);border-radius:12px;padding:13px;font-size:12px}.model-row strong{display:block;overflow-wrap:anywhere;margin-bottom:5px}.model-row span{color:var(--text-dim)}.model-row-actions{display:flex;gap:8px;align-items:center;flex-shrink:0}.model-state{font-size:10px;border:1px solid var(--border);padding:4px;border-radius:6px}.model-remove{border:0;background:#ffedf0;color:#ba334a;border-radius:7px;padding:7px 9px;font:inherit;cursor:pointer}.model-list-actions{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-top:14px;color:var(--text-dim);font-size:11px}.model-list-actions[hidden]{display:none}.model-list-actions button{border:1px solid var(--border);background:#fff;border-radius:8px;padding:9px;font:inherit;cursor:pointer}.field{margin-bottom:21px}.field>label{display:block;font-size:12px;color:var(--text-dim);margin-bottom:9px}select,input[type=number]{border:1px solid var(--border);background:var(--field-bg);color:var(--text);border-radius:10px;min-height:45px;padding:11px 12px;width:100%;font:inherit;font-size:13px}small{font-size:11px;line-height:1.6;color:var(--text-dim);display:block;margin-top:8px}.chips{display:flex;flex-wrap:wrap;gap:7px}.chip{display:flex;align-items:center;gap:6px;border:1px solid var(--border);border-radius:9px;padding:9px;font-size:12px;cursor:pointer;min-height:40px}.chip.active{border-color:var(--accent);background:#e9f6ff}.swatch{display:inline-block;width:13px;height:13px;border:1px solid #0001;border-radius:50%}.row-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}input[type=range]{width:100%;accent-color:var(--accent);margin-top:16px}.slider-val{color:var(--accent);font-weight:800}.price-box{border:1px solid #b5ddf1;background:linear-gradient(120deg,#e2f3fc,#f6fbff);border-radius:15px;padding:22px;margin-top:28px}.sum-row{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:14px;font-weight:750}.sum-row #pTotal{color:var(--accent);font-size:25px;white-space:nowrap}.result-note{font-size:12px;color:var(--text-dim);line-height:1.8;margin:15px 0 0}.min-warn{padding:14px;margin-top:15px;background:#fff2e5;color:#925209;border-radius:12px;line-height:1.6;font-size:12px}.svg-icon{width:18px;height:18px;vertical-align:middle}footer.container{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;padding-top:40px;padding-bottom:26px;color:var(--text-dim);font-size:11px}button:focus-visible,a:focus-visible,.chip:focus-visible,.dropzone:focus-within{outline:3px solid #54b7e4;outline-offset:3px}#addToCart[hidden]{display:none!important}
@media(max-width:760px){.top{padding:22px 20px}.container{padding-left:20px;padding-right:20px}.intro{padding-top:30px;padding-bottom:30px}.calc-grid{grid-template-columns:1fr;gap:18px}.calc-panel{padding:20px}.back-link{font-size:11px}.intro p{font-size:14px}.sum-row #pTotal{font-size:24px}#viewer{height:300px}footer.container{font-size:10px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Slicer controls: all heavy work runs in an isolated background worker. */
.slice-panel{margin-top:24px;padding:22px;border:1px solid #b9dcec;border-radius:18px;background:#f1f9fd}.slice-panel h3{margin:10px 0;font-size:21px}.slice-panel p{font-size:13px;line-height:1.65;color:#526779}.slice-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.slice-actions button{min-height:44px}.slice-panel details{border-top:1px solid #cddfe9;padding-top:14px;font-size:13px}.slice-panel summary{cursor:pointer;font-weight:700}.slice-panel #sliceDetails{background:#fff;padding:14px;border-radius:10px;color:#183c52}.slice-panel button:disabled{opacity:.55;cursor:wait}[hidden]{display:none!important}
.demo-button{border:0;background:transparent;color:#067ba8;text-align:left;padding:12px 0 18px;cursor:pointer;font:600 13px inherit;min-height:44px}.demo-button:hover{text-decoration:underline}
.slice-actions .btn{border:1px solid #b7d6e5;border-radius:12px;padding:12px 20px;font:600 14px/1.4 'Manrope',sans-serif;cursor:pointer;background:white;color:#15516e}.slice-actions .btn-primary{background:#0788b8;color:white;border-color:#0788b8;box-shadow:0 5px 15px #0788b820}.slice-actions .btn:hover{filter:brightness(.95)}.grid>*{min-width:0}.slice-panel{min-width:0;overflow-wrap:anywhere}
.weight-box{margin-top:24px;padding:20px 22px;border:1px solid var(--border);border-radius:15px;background:#f7faff}.weight-box>div{display:flex;align-items:center;justify-content:space-between;gap:16px}.weight-box span{font-size:14px;font-weight:700}.weight-box strong{font-size:26px;color:var(--accent);white-space:nowrap}.weight-box small{margin-top:8px}
.bambu-panel{background:#f5faf6;border-color:#c9e1d0}.bambu-panel .btn{padding:12px 18px;border:0;background:#187647;color:white;border-radius:12px;font:600 14px/1.4 Manrope,sans-serif;min-height:44px;cursor:pointer}
.auto-status{display:flex;align-items:center;gap:12px;margin-top:10px;min-height:20px}.auto-status p{margin:0;color:var(--text-dim);font-size:12px;line-height:1.5}.auto-cancel{border:1px solid var(--border);background:white;border-radius:8px;padding:8px 12px;color:var(--text-dim);cursor:pointer}.weight-box small:empty{display:none}
