:root{font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#343b32;background:#f5f5f0;font-synthesis:none;--green:#58684b;--line:#e4e5de}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:#fff;color:inherit;border-radius:8px;padding:9px 12px;transition:.18s}button:hover{background:#edf0e7;border-color:#aeb8a0}button:focus-visible,input:focus-visible{outline:2px solid #78886b;outline-offset:3px}header{height:78px;display:flex;align-items:center;padding:0 28px;gap:12px;border-bottom:1px solid var(--line);background:#fdfdf9}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--green);font:800 42px 'Manrope',-apple-system,BlinkMacSystemFont,sans-serif}.brand>span{font:700 19px 'Manrope',-apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:-.7px}.atelier{display:block;font:500 8px 'DM Sans';letter-spacing:4.7px;margin-top:4px}.project{margin:auto;font-size:13px}.pill{font-size:8px;letter-spacing:1px;background:#ecefe5;padding:6px 8px;margin-left:15px;border-radius:4px;color:#69745b}.avatar{border-radius:50%;background:#dedfce;padding:10px 14px;font-size:12px;margin-left:12px}main{display:grid;grid-template-columns:292px minmax(420px,1fr) 260px;height:calc(100vh - 78px)}aside{background:#fbfcf8;padding:26px 22px;overflow:auto}.library{border-right:1px solid var(--line);display:flex;flex-direction:column}.eyebrow{font-size:9px;letter-spacing:1.65px;font-weight:650;color:#8a9182}h1{font:600 27px 'Manrope',-apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:-1px;margin:12px 0 8px}h2{font:600 18px 'Manrope',-apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:-.5px;margin:10px 0}.muted{color:#92988c;font-size:11px;line-height:1.6}.search{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:8px;padding:10px;margin:18px 0 16px;color:#87917e}.search input{width:100%;border:0;background:transparent;outline:none;font-size:11px}kbd{font-size:9px;color:#9da394;border:1px solid #e5e7df;border-radius:3px;padding:2px 4px}#categories{display:flex;gap:5px;flex-wrap:wrap}#categories button{border:0;background:transparent;font-size:10px;padding:7px 9px}#categories button.active{background:#e9edde;color:#4c6140}.catalog-heading{display:flex;justify-content:space-between;font-size:11px;margin:25px 0 13px}#count{color:#929a8c}#catalog{display:grid;grid-template-columns:1fr 1fr;gap:10px;overflow:auto;min-height:180px;padding:1px 3px 12px 1px}.card{padding:0;overflow:hidden;text-align:left;border:1px solid #e6e8df;border-radius:9px;background:#fff;min-height:130px}.swatch{height:85px;background:#f0f1e9;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.sample{width:78px;height:23px;transform:rotate(-28deg) skewX(18deg);box-shadow:5px 8px 5px #0002;background:var(--material);border-top:3px solid #fff3;border-bottom:6px solid #0002}.sample.wood,.sample.panel{background:repeating-linear-gradient(0deg,#ffffff12 0 1px,transparent 1px 4px),linear-gradient(90deg,transparent,#0001,transparent),var(--material)}.sample.stone{height:45px;width:60px}.sample.metal{background:linear-gradient(0deg,#0003,transparent,#fff9),var(--material)}.sample.tool{transform:rotate(-25deg);width:44px;height:36px;border-radius:8px 12px 5px 5px;background:#657458;box-shadow:12px -4px 0 -5px #929995,0 25px 0 -9px #323b36}.sample.hardware{width:53px;height:10px;background:repeating-linear-gradient(90deg,#aaa 0 3px,#ddd 3px 5px);border:0;box-shadow:16px 0 0 -2px #555}.card strong{display:block;font-size:10px;line-height:1.4;margin:9px 9px 3px;font-weight:500}.card small{display:block;font-size:8px;color:#91978b;margin:0 9px 9px}footer{margin-top:auto;padding-top:16px;font-size:9px;color:#8e9788;line-height:1.9}.dot{display:inline-block;width:5px;height:5px;background:#8c9d70;border-radius:50%;margin-right:6px}.workspace{position:relative;display:flex;flex-direction:column;min-width:0;background:#e9ece4}.scene-bar{position:absolute;left:28px;right:28px;top:25px;z-index:2;display:flex;justify-content:space-between;pointer-events:none}.scene-bar>div{pointer-events:auto}.segmented{display:flex;background:#f8f9f3c9;border:1px solid #fff9;border-radius:8px;padding:3px;height:35px}.segmented button{border:0;background:transparent;font-size:10px;padding:5px 10px}.segmented button.active{background:#fff;box-shadow:0 1px 4px #0001}#viewport{position:relative;flex:1;min-height:0}canvas{display:block;width:100%;height:100%;touch-action:none}.scene-label{position:absolute;top:102px;left:29px;font-size:8px;letter-spacing:1.2px;color:#8b9482;pointer-events:none}.scene-label span:nth-child(2){margin:0 10px;color:#b8beb2}#hint{position:absolute;bottom:92px;width:100%;text-align:center;font-size:10px;color:#86917e;pointer-events:none}.view-buttons{position:absolute;right:22px;bottom:92px;display:flex;flex-direction:column;gap:7px}.view-buttons button{background:#fafbf6b8}.toolbar{position:absolute;bottom:51px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:3px;padding:6px;background:#fffffff0;border:1px solid #fff;border-radius:12px;box-shadow:0 8px 30px #434c3512;white-space:nowrap}.toolbar button{border:0;background:transparent;font-size:17px;padding:9px 10px;display:flex;gap:6px;align-items:center}.toolbar button span{font-size:10px}.toolbar button.active{background:#5b6d4e;color:#fff}.toolbar kbd{border:0;font-size:8px}.toolbar i{height:20px;border-left:1px solid var(--line);margin:0 4px}.status{height:34px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-top:1px solid #dde1d5;font-size:9px;color:#858f7c;background:#f4f6ee}.inspector{border-left:1px solid var(--line);padding:26px 20px}#preview{height:120px;margin:17px 0;background:radial-gradient(ellipse,#e0e2d6,#f2f3eb);border-radius:10px;display:flex;align-items:center;justify-content:center}#preview .sample{width:130px;height:32px}.detail-row{display:flex;justify-content:space-between;font-size:10px;margin:13px 0;color:#8b9484}.detail-row span:last-child{color:#46533f}.inspector input[type=number]{width:61px;border:1px solid var(--line);padding:7px;border-radius:5px;font-size:10px}.axes{display:flex;gap:5px;margin:9px 0 14px}.axes label{font-size:9px;color:#939b8a}.actions{display:flex;gap:6px;flex-wrap:wrap}.actions button{font-size:10px}.divider{border-top:1px solid var(--line);margin:23px 0}#objects{max-height:200px;overflow:auto;margin-top:13px}.object{display:flex;width:100%;border:0;background:transparent;font-size:10px;text-align:left;padding:9px 4px;gap:8px}.object.active{background:#eaf0e1;color:#526545}.object span{margin-left:auto;color:#92998b}.tip{margin-top:27px;border-radius:9px;padding:16px;background:#edf0e6;color:#6d795f}.tip>span{display:block;font-size:23px;margin-bottom:10px}.tip strong{font-size:11px;font-weight:500}.tip p{font-size:10px;line-height:1.8}.tip small{font-size:8px;line-height:1.6;display:block;color:#929b86}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#34482e;color:white;border-radius:10px;padding:12px 20px;font-size:12px;opacity:0;pointer-events:none;transition:.2s}#toast.show{opacity:1}@media(max-width:1150px){main{grid-template-columns:240px minmax(350px,1fr) 220px}aside{padding:20px 15px}.toolbar button{padding:9px 7px}.toolbar kbd{display:none}}@media(max-width:900px){main{grid-template-columns:210px 1fr}.inspector{display:none}.project{display:none}header{gap:8px}.brand{margin-right:auto}.toolbar button span{display:none}.scene-bar{left:18px;right:18px}}@media(max-width:600px){main{grid-template-columns:145px 1fr}aside{padding:18px 10px}h1{font-size:20px}.library>.muted{display:none}#catalog{grid-template-columns:1fr}.scene-bar{flex-direction:column;gap:8px}.scene-label{top:140px}.toolbar{gap:0;padding:3px}.toolbar button{padding:8px 5px}.toolbar i{margin:0 2px}header{padding:0 14px}header button{font-size:10px;padding:8px}.avatar{display:none}.status{padding:0 10px}#status{max-width:150px;overflow:hidden;white-space:nowrap}#hint{font-size:8px}}
/* Atelier 2: shared 3D catalog and complete editing panels */
header .project{border:0;background:transparent;display:flex;align-items:center;gap:10px;flex:1;margin-left:40px;text-align:left;font-size:12px}#save-state{color:#8a9582;font-size:9px;white-space:nowrap}.brand{flex-shrink:0}#help{border-radius:50%;width:32px;padding:7px;font-size:12px}.pill{margin:0}.library{overflow:hidden}#catalog{align-content:start;flex:1}footer{flex-shrink:0}footer button{border:0;background:transparent;padding:0;font-size:9px;text-decoration:underline;text-underline-offset:3px;display:block;color:#7c8872}footer small{display:block}.card{position:relative;min-height:139px;transition:transform .2s,box-shadow .2s}.card:hover{transform:translateY(-2px);box-shadow:0 5px 15px #3c493315}.card img{width:100%;height:95px;object-fit:contain;background:radial-gradient(ellipse,#e8ebdf,#f4f5ed);display:block}.card .inspect-asset{position:absolute;top:6px;right:6px;padding:4px 5px;border:0;background:#ffffffa8;font-size:10px;opacity:0}.card:hover .inspect-asset,.card:focus-within .inspect-asset{opacity:1}.card button.add-asset{padding:0;border:0;border-radius:0;background:transparent;text-align:left;width:100%}.card small{font-size:8px}.card-placeholder{height:95px;background:#edf0e7;color:#abb49c;display:flex;align-items:center;justify-content:center;font-size:30px}.empty{font-size:12px;color:#89937f;grid-column:1/-1;padding:20px 0}#preview{border:0;width:100%;padding:0;position:relative;overflow:hidden;height:138px;margin:15px 0}#preview img{width:100%;height:100%;object-fit:contain}#preview::after{content:'Inspect in 3D ↗';position:absolute;bottom:8px;right:10px;font-size:8px;color:#829075}#details .eyebrow{margin-top:17px}.axes{margin:8px 0;gap:6px}.axes label{flex:1;min-width:0}.inspector input[type=number]{width:100%;margin-top:5px}.inspector select{width:100%;border:1px solid var(--line);background:#fff;border-radius:6px;padding:8px;color:#5d6a53;font:10px inherit}#objects{max-height:240px}.connection{font-size:10px;padding:12px 0;border-bottom:1px solid var(--line)}.connection>div{display:flex;justify-content:space-between;gap:5px}.connection small{color:#8a9480;display:block;margin:5px 0}.connection button{padding:3px 5px;font-size:9px}.connection input[type=range]{width:100%;accent-color:var(--green);margin:10px 0}.connection label{font-size:9px}.selected-marker{background:#5d704d}.object i{display:inline-block;height:8px;width:8px;background:var(--material);border-radius:2px}.object{align-items:center;border-radius:6px;line-height:1.5}.scene-label select{background:transparent;border:0;color:inherit;font:inherit;letter-spacing:inherit}.status label{display:flex;align-items:center;gap:4px;font-size:8px}.status input{accent-color:var(--green);width:10px;height:10px}.view-buttons{bottom:99px}#tool-options{position:absolute;top:104px;right:22px;z-index:3;width:185px;background:#fffffff2;border:1px solid #e0e5d8;border-radius:12px;box-shadow:0 6px 30px #35412a12;padding:14px}.tool-name{font-size:11px;font-weight:600;margin-bottom:9px}.tool-setting{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#8b9680;margin:10px 0}.tool-setting input{width:64px;padding:5px;border:1px solid var(--line);border-radius:4px;font-size:10px}.tool-options-actions{display:flex;gap:4px;flex-wrap:wrap}#tool-options button{font-size:9px;padding:6px 8px}#tool-options p{font-size:9px;line-height:1.65;color:#8a9680}#measure-label{position:absolute;top:90px;left:30px;background:#faffef;padding:9px 12px;border-radius:7px;font-size:12px;color:#506b3d;box-shadow:0 2px 10px #0001}.mobile-panels{display:none}dialog{border:1px solid #e3e8da;border-radius:18px;background:#fbfcf7;color:#35432e;padding:26px;box-shadow:0 30px 100px #18260d33;max-height:90vh;overflow:auto;width:min(900px,94vw)}dialog::backdrop{background:#28322266;backdrop-filter:blur(6px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.dialog-head h2{font-size:24px;margin-bottom:0}.dialog-head>button{font-size:22px;padding:3px 12px;border:0;background:transparent}.primary{background:#5b6d4e;color:white;border:1px solid #5b6d4e}.primary:hover{background:#495b3d;color:white}#asset-viewport{height:420px;background:#e9ece3;border-radius:12px;overflow:hidden}.asset-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:12px;margin-top:15px}.asset-footer p{line-height:1.6;margin:5px 0;color:#718065}.asset-footer small,.dialog-caption{font-size:10px;color:#99a18e}.dialog-caption{margin:13px 0 0}.rename{font-size:11px;color:#88947b;display:flex;align-items:center;gap:20px}.rename input{padding:10px;border-radius:7px;border:1px solid var(--line);background:white;flex:1;color:#4d5d42}.project-templates{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:24px 0}.project-templates button{text-align:left;font-size:30px;background:#eef1e7;padding:20px}.project-templates strong{display:block;font-size:12px;margin-top:18px;font-weight:600}.project-templates small{display:block;font-size:10px;line-height:1.6;margin-top:8px;color:#8e9a82}.saved-project{display:flex;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);gap:10px}.saved-project span{flex:1;font-size:12px}.saved-project small{color:#96a18a;font-size:10px}.saved-project button{font-size:10px}#info-content{font-size:13px;line-height:1.9;color:#708065}#info-content a{color:#586f43}#info-content table{border-collapse:collapse;width:100%;font-size:11px}#info-content th,#info-content td{text-align:left;border-bottom:1px solid #e1e6d9;padding:9px}#info-content td:last-child{white-space:nowrap}.facts{display:flex;gap:15px;margin:20px 0}.facts>div{flex:1;background:#edf1e4;border-radius:9px;padding:15px}.facts strong{display:block;font-size:20px}.facts small{font-size:9px}.error-panel{position:absolute;inset:130px 20px 110px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f5f6ec;border-radius:12px;font-size:12px;padding:20px;text-align:center}
@media(min-width:1500px){main{grid-template-columns:310px 1fr 280px}.card img,.card-placeholder{height:115px}aside{padding:28px 23px}}@media(max-width:1150px){#save-state{display:none}header .project{margin-left:15px}.axes{gap:4px}.scene-bar{left:20px;right:20px}#tool-options{right:13px}}
@media(max-width:900px){header .project{display:block;font-size:10px}.project .pill{display:none}header #bom{display:none}.mobile-panels{display:flex;justify-content:center;background:#f9fbf2;border-bottom:1px solid var(--line);padding:5px;gap:5px}.mobile-panels button{border:0;background:transparent;font-size:11px;flex:1}.mobile-panels button.active{background:#e7edde}main{height:calc(100dvh - 120px);display:block}.library,.inspector{display:none;height:100%;width:100%;border:0}.workspace{height:100%;display:flex}body[data-panel=library] .library,body[data-panel=inspector] .inspector{display:flex;flex-direction:column}body[data-panel=library] .workspace,body[data-panel=inspector] .workspace{display:none}body[data-panel=inspector] .library{display:none}#catalog{grid-template-columns:repeat(3,1fr)}.card img{height:125px}.inspector #preview{height:180px}.inspector #objects{max-height:none}.axes input{max-width:200px}.toolbar button span{display:block}.scene-bar{flex-direction:row}.scene-label{top:104px}.status #status{max-width:40vw;white-space:nowrap;overflow:hidden}.project-templates{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){header{height:64px;padding:0 12px;gap:5px}.brand{font-size:32px}.brand>span{font-size:14px}.atelier{font-size:6px;letter-spacing:3px}header .project{margin-left:5px;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header button{padding:7px;font-size:9px}#help{width:27px}.mobile-panels{height:38px}main{height:calc(100dvh - 102px)}#catalog{grid-template-columns:repeat(2,1fr)}.toolbar button span{display:none}.toolbar button{padding:9px 8px}.scene-bar h2{font-size:15px}.scene-bar .eyebrow{font-size:7px}.segmented button{font-size:9px;padding:5px 7px}.scene-bar{left:16px;right:16px}.scene-label{left:16px;font-size:7px}#tool-options{top:143px;width:150px;padding:10px}#asset-viewport{height:300px}dialog{padding:18px}.asset-footer{flex-direction:column;align-items:stretch}.view-buttons{right:14px}.status label{display:none}.facts{flex-direction:column;gap:6px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.card img[src=""]{visibility:hidden}.card:has(img[src=""]){background:linear-gradient(120deg,#eff1e8,#e4e8da)}.inspector #preview img[src=""]{visibility:hidden}#connections{max-height:260px;overflow:auto}.inspector .tip{margin-top:20px}.tool-name{line-height:1.5}header .project .pill{white-space:nowrap}.inspector select{font-size:11px}
.show-archived{display:flex;gap:7px;align-items:center;font-size:11px;color:#89947d;margin-top:17px}.show-archived input{accent-color:var(--green)}.saved-project button:last-child{color:#8c9780}.saved-project button:only-of-type{color:#4f643f}
.physical-properties{border-top:1px solid var(--line);padding-top:14px;margin-top:18px}.physical-properties small{color:#86927b;font-size:9px;line-height:1.6;display:block}.physical-properties .actions{margin:12px 0}#physics.active{background:#58684b;color:white}#physics-panel,#motor-hud{position:absolute;left:22px;bottom:115px;z-index:4;width:310px;background:#fcfdf7f2;border:1px solid #d7decf;border-radius:12px;padding:16px;box-shadow:0 8px 35px #20331218}#physics-panel p{font-size:10px;line-height:1.7;color:#7d8d71;margin:10px 0}#physics-panel label{display:flex;align-items:center;justify-content:space-between;font-size:10px;margin-top:12px}#physics-panel input{border:1px solid var(--line);border-radius:5px;padding:6px;width:70px}.physics-controls{display:flex;gap:6px}.physics-controls button{font-size:10px;padding:7px 10px}#motor-hud{width:290px}#motor-rpm{display:block;font-size:20px;font-weight:500;margin:12px 0}#motor-data{display:block;font-size:10px;line-height:1.8;margin:10px 0;color:#809175}#motor-hud button{padding:6px 10px;font-size:10px}#motor-progress{height:4px;border-radius:4px;background:#e5ebdd;overflow:hidden}#motor-progress i{display:block;background:#7a9365;height:100%;width:0}.beam-layout{display:grid;grid-template-columns:230px 1fr;gap:30px}.beam-settings label{display:flex;flex-direction:column;font-size:10px;gap:6px;margin-bottom:14px;color:#7a8a6b}.beam-settings input,.beam-settings select{width:100%;background:white;padding:9px;border:1px solid var(--line);border-radius:6px;color:#435b35;font:11px inherit}.beam-settings .check-label{flex-direction:row;align-items:center}.check-label input{width:14px;accent-color:var(--green)}#strength-reference{font-size:10px;color:#94a087;line-height:1.7;display:block}#strength-piece{font-size:12px;color:#819174}.beam-view{padding-top:20px}#beam-chart svg{width:100%;height:auto}#beam-results{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}#beam-results>div{padding:16px;background:#eef2e5;border-radius:9px}#beam-results strong{font-size:21px;font-weight:500;display:block}#beam-results strong small{font-size:11px;color:#93a084}#beam-results span{display:block;font-size:8px;letter-spacing:1px;margin-top:8px;color:#889976}.lab-note{font-size:11px;line-height:1.8;background:#f0f2e9;padding:15px;border-radius:8px;color:#839176;margin-top:20px}.lab-error{font-size:12px;line-height:1.8;padding:20px;border:1px solid #dbcdaf;border-radius:10px;color:#987344}#beam-sources a{color:#7b9168;text-underline-offset:3px}#beam-caption{line-height:1.7}[hidden]{display:none!important}
.workspace{min-height:0;overflow:hidden}#viewport>canvas{position:absolute;inset:0;display:block}.status{flex-shrink:0}
@media(max-width:1150px){header{gap:7px;padding:0 18px}header .pill{display:none}header button{font-size:11px;padding:8px 9px}header #help{padding:8px}header .project{margin-right:auto;margin-left:6px}}
@media(max-width:600px){header{height:102px;flex-wrap:wrap;gap:5px;padding:8px 12px}.brand{margin-right:8px}header .project{max-width:160px;margin-right:0;flex:1}header #save,header #import,header #help,header #strength,header #physics{font-size:10px;flex:1}header #strength{white-space:nowrap}header #help{flex:0 0 26px}.mobile-panels{height:38px}main{height:calc(100dvh - 140px)}.beam-layout{grid-template-columns:1fr;gap:8px}.beam-settings{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.beam-settings small{grid-column:1/-1}.beam-settings select{max-width:100%;font-size:10px}.beam-view{padding-top:0}#beam-results{margin-top:10px}.dialog-head h2{font-size:20px}#physics-panel,#motor-hud{left:14px;bottom:115px;width:min(310px,calc(100% - 28px))}#physics-panel p{margin:7px 0}.lab-note{font-size:10px}#beam-results strong{font-size:20px}}
