:root{--bg:#f4f2ed;--panel:#fffefa;--line:#e4dfd5;--text:#292d29;--muted:#797d74;--accent:#365747;--accent2:#b47b47;--warn:#fbf1de;--shadow:0 8px 30px #343c2910}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:'Segoe UI',Arial,sans-serif;color:var(--text);background:var(--bg)}button,input,select,textarea{font:inherit}button{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:9px;padding:10px 13px;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}button:hover{background:#f0eee6;border-color:#bcbfb0}button:active{transform:translateY(1px)}button:disabled{opacity:.5;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b8cbb9;outline-offset:2px}.primary{background:var(--accent);border-color:var(--accent);color:white}.primary:hover{background:#294638;color:white}.topbar{height:82px;background:#fffefaf5;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;position:sticky;top:0;z-index:20;gap:16px}.brand{font-weight:650;font-size:25px;letter-spacing:-1px;display:flex;align-items:center;gap:7px}.brand-mark{color:#a97743;font-size:34px;margin-right:5px}.brand-light{font-weight:350;color:#7e8279}.edition{font-size:9px;letter-spacing:1.4px;border:1px solid var(--line);border-radius:5px;padding:5px;margin-left:9px;color:#74796b}.subtitle{font-size:11px;color:var(--muted);padding-left:41px;margin-top:-3px}.top-actions{display:flex;gap:7px;font-size:12px}.layout{display:grid;grid-template-columns:310px minmax(0,1fr);max-width:1920px;margin:auto}.sidebar{height:calc(100vh - 82px);overflow:auto;background:#fffefa;border-right:1px solid var(--line);padding:8px 22px 24px;position:sticky;top:82px;scrollbar-width:thin}.sidebar section{padding:22px 0;border-bottom:1px solid var(--line)}.sidebar h2{font-size:13px;font-weight:650;margin:0 0 17px;display:flex;gap:12px;align-items:center}.sidebar h2 span{font-size:10px;color:#a4a793;font-weight:400}.sidebar label{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#71766d;margin:12px 0}.sidebar input,.sidebar select,.sidebar textarea{width:100%;border:1px solid var(--line);background:#f8f7f2;border-radius:7px;padding:10px 11px;color:var(--text);font-size:13px;font-variant-numeric:tabular-nums}.sidebar input:invalid{border-color:#c57b61}.sidebar textarea{resize:vertical}.sidebar button{font-size:11px}.row2,.grid2{display:grid;grid-template-columns:1fr 1fr;gap:8px}.row2 select{min-width:0}.check{flex-direction:row!important;align-items:center}.check input{width:auto}.hint{font-size:11px;color:var(--muted);line-height:1.65}.warning{background:var(--warn);color:#8a6a3d;border-radius:8px;padding:12px;font-size:11px;line-height:1.65}.hidden{display:none!important}.workspace{min-width:0;padding:28px 32px 40px}.workspace-intro{display:flex;align-items:center;justify-content:space-between;gap:10px}.eyebrow{font-size:9px;letter-spacing:2.7px;color:#8c937f;font-weight:650}h1{font-family:Georgia,serif;font-size:33px;font-weight:400;letter-spacing:-.8px;margin:8px 0}.workspace-intro p{font-size:12px;color:var(--muted);margin:0}.local-badge{font-size:10px;color:#728368;background:#e9eddf;padding:8px 11px;border-radius:30px;white-space:nowrap}.preset-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:24px 0 18px}.preset{display:flex;align-items:center;gap:14px;text-align:left;padding:12px 16px;background:#faf9f5;min-width:0;font-size:12px}.preset.active{border-color:#9aa991;background:#eef1e7}.preset small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.silhouette{display:block;width:32px;height:43px;flex-shrink:0;background:repeating-linear-gradient(90deg,#a47b4e 0 2px,#e9d8b7 2px 5px);border-radius:45% 45% 40% 40%}.silhouette.drop{border-radius:65% 65% 45% 45%;width:30px}.silhouette.cylinder{border-radius:7px}.silhouette.bowl{height:31px;width:39px;border-radius:45% 45% 65% 65%}.preview-card,.panel{background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.preview-card{height:610px;position:relative;overflow:hidden;display:flex;flex-direction:column}.card-head{padding:17px 20px;display:flex;justify-content:space-between;gap:12px;align-items:center}.card-head strong{font-size:12px;font-weight:650}.card-head span{display:block;font-size:10px;color:#909486;margin-top:5px}.stats{font-size:10px;color:var(--muted);text-align:right}.viewer-toolbar{padding:7px 16px;display:flex;align-items:center;flex-wrap:wrap;gap:8px;border-bottom:1px solid var(--line);background:#faf9f4}.viewer-group{display:flex;align-items:center;gap:4px;white-space:nowrap}.viewer-group+.viewer-group{padding-left:8px;border-left:1px solid var(--line)}.viewer-toolbar button,.viewer-toolbar select{height:29px;border-radius:6px;padding:4px 7px;font-size:10px;background:transparent;border:1px solid transparent;color:#686f61}.viewer-toolbar select{max-width:155px;border-color:var(--line)}.viewer-toolbar button.active{background:#e5eadc;color:#3b5543}.viewer-toggles label{font-size:10px;color:#7b806f;display:inline-flex;align-items:center;gap:3px;cursor:pointer}input{accent-color:var(--accent)}#preview{display:block;width:100%;flex:1;min-height:230px;background:radial-gradient(ellipse at 48% 40%,#fffefb 0%,#f0ede3 70%,#e9e6da 100%);cursor:grab;touch-action:none}#preview:active{cursor:grabbing}.viewer-bottom{min-height:43px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:8px 16px;gap:12px;font-size:10px;color:#7a806f;background:#faf9f4}.viewer-material{display:flex;align-items:center;gap:7px;white-space:nowrap}.wood-swatch{width:19px;height:19px;border-radius:50%;background:repeating-linear-gradient(35deg,#d4b788 0 2px,#ba955e 2px 3px)}.explode-control{display:flex;align-items:center;gap:8px;white-space:nowrap}.explode-control input{width:110px}.explode-control span{width:29px;text-align:right;font-variant-numeric:tabular-nums}.axis-note{position:absolute;right:17px;bottom:59px;font-size:10px;color:#939985}.bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.panel{min-width:0;padding:20px}.panel-title{font-size:12px;font-weight:650;margin-bottom:14px}#profileMini{width:100%;height:220px;border-radius:8px;background:#f8f7f1}.export-info{font-size:11px;line-height:1.9;color:#777d70;margin:14px 0}.export-info b{font-size:13px;color:#333d32}.wide{width:100%;margin:5px 0 12px;font-size:12px}.validation{background:#eef2e8;padding:11px 13px;border-radius:7px;color:#4c694d;font-size:11px;line-height:1.65}.validation.error{background:#fcf0e3;color:#97683e}.validation.pending{background:#efeee8;color:#828675}.modal{position:fixed;inset:0;background:#222c2580;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;z-index:50;padding:24px}.modal-card{width:min(1050px,96vw);height:min(800px,92vh);background:var(--panel);border-radius:16px;box-shadow:0 30px 90px #17201940;display:flex;flex-direction:column;overflow:hidden}.modal-head{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.curve-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px 22px;font-size:11px;color:var(--muted);border-bottom:1px solid var(--line)}#curveEditor{flex:1;min-height:0;width:100%;background:#fbfaf5;touch-action:none}.dangerGhost{color:#ad685a}.node{fill:#365747;stroke:#fff;stroke-width:3;cursor:grab}.handle{fill:#bb935a;stroke:#fff;stroke-width:2;cursor:grab}.handle-line{stroke:#a7b19a;stroke-width:1.5}.curve-path{fill:none;stroke:#365747;stroke-width:3}.gridline{stroke:#e5e5da;stroke-width:1}.axis{stroke:#a4ad9d;stroke-width:1.3;stroke-dasharray:4 5}.ringline{stroke:#b48f53;stroke-width:2;stroke-dasharray:5 5}.profilefill{fill:#dfcfab55;stroke:#6e8061;stroke-width:2}.selected{stroke:#c69b56!important;stroke-width:4!important}.toast{position:fixed;right:22px;bottom:22px;max-width:calc(100vw - 44px);background:#365747;color:white;padding:15px 20px;border-radius:10px;z-index:99;font-size:13px;box-shadow:var(--shadow)}@media(min-width:1600px){.workspace{padding:35px 50px}.preview-card{height:680px}.layout{grid-template-columns:340px minmax(0,1fr)}}@media(max-width:1150px){.layout{grid-template-columns:275px minmax(0,1fr)}.workspace{padding:24px 20px}.topbar{padding:0 20px}.top-actions{flex-wrap:wrap;justify-content:flex-end}.top-actions button{padding:8px;font-size:11px}.preset{padding:10px;gap:8px}.preset small{display:none}.viewer-toggles{width:100%;border:0!important;padding:2px 0!important}.card-head span{max-width:220px}.local-badge{display:none}.bottom-grid{grid-template-columns:1fr}}@media(max-width:740px){.topbar{height:auto;min-height:110px;position:relative;flex-wrap:wrap;padding:14px 16px}.brand{font-size:23px}.top-actions{justify-content:flex-start;width:100%}.top-actions button{flex:1;font-size:10px}.layout{display:flex;flex-direction:column}.workspace{order:0;padding:22px 14px}.sidebar{order:1;height:auto;position:static;border:0;padding:0 20px 30px;display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.sidebar section{min-width:0}.preview-card{height:570px}.preset-strip{gap:6px}.preset{flex-direction:column;gap:7px;font-size:10px;padding:9px 4px}.silhouette{height:30px;width:23px}.silhouette.bowl{height:24px;width:30px}.silhouette.drop{width:23px}.card-head{padding:12px}.card-head span{font-size:9px}.stats{max-width:115px;font-size:9px}.viewer-toolbar{padding:7px 8px}.viewer-group+.viewer-group{border:0;padding:0}.viewer-bottom{padding:8px;font-size:9px;gap:6px}.explode-control{gap:4px}.explode-control input{width:70px}.modal{padding:8px}.curve-toolbar span{width:100%}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}@media(max-width:420px){.sidebar{grid-template-columns:1fr}.edition{display:none}h1{font-size:30px}}
.site-only{display:none}.site-mode .site-only{display:inline-flex}.site-mode #fitTest{display:none}.archive-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.archive-actions .wide{height:100%}@media(max-width:740px){.archive-actions{grid-template-columns:1fr}}
