:root{color:#24364a;--line:#d7dfe7;--muted:#65768a;--accent:#315f8c;--surface:#fff;--green:#32785e;background:#eef2f5;font-family:Segoe UI,system-ui,sans-serif;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{color:#344c64;cursor:pointer;background:#fff;border:1px solid #c9d3dd;border-radius:6px;min-height:35px;padding:7px 12px;font-weight:600;line-height:1.2}button:hover{background:#edf3f8;border-color:#92a9bd}button:disabled{opacity:.45;cursor:not-allowed}button.active{color:#214e78;background:#e9f1f8;border-color:#799bb9}.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.primary:hover{color:#fff;background:#244f79}.export{background:var(--green);color:#fff;border-color:var(--green)}.export:hover{color:#fff;background:#245e48}.danger{color:#9d413b}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,canvas:focus-visible{outline-offset:2px;outline:3px solid #85b3de}input,select{color:#273e53;background:#fff;border:1px solid #c9d3dd;border-radius:5px;width:100%;min-height:34px;padding:6px 8px}input[type=range]{accent-color:var(--accent);padding:0}label{color:#51657a;margin:10px 0 7px;font-size:12px;line-height:1.4;display:block}label>input,label>select{margin-top:4px}h1,h2,p{margin:0}h1{letter-spacing:-.6px;font-size:21px;font-weight:650}h2{margin:0 0 10px;font-size:14px;font-weight:650}.hint{color:var(--muted);margin-top:9px;font-size:12px;line-height:1.55}.row{flex-wrap:wrap;align-items:center;gap:7px;display:flex}.two{grid-template-columns:1fr 1fr;gap:0 10px;display:grid}.two label{min-width:0}.wide{width:100%;margin-top:10px}.app-header{background:var(--surface);border-bottom:1px solid var(--line);align-items:center;gap:26px;height:72px;padding:12px 24px;display:flex}.brand{align-items:center;gap:10px;min-width:175px;display:flex}.brand span{color:var(--muted);font-size:11px}.project-title{flex:1;max-width:330px;margin:0}.project-title input{background:#f6f8fa;border-color:#0000;margin:0;font-size:15px}.header-actions{gap:8px;margin-left:auto;display:flex}.header-actions #help{width:35px;padding:0}.workflow{border-bottom:1px solid var(--line);background:#f8fafb;justify-content:space-between;align-items:center;gap:20px;height:56px;padding:0 24px;display:flex}.tabs{gap:4px;display:flex}.tabs button{background:0 0;border-color:#0000;padding:9px 15px;font-size:13px}.tabs button.active{color:#255a89;background:#e4edf5;border-color:#c4d5e4}.library{white-space:nowrap;align-items:center;gap:10px;margin:0;display:flex}.library select{width:170px;margin:0;font-size:12px}.editor{grid-template-columns:310px minmax(0,1fr);height:calc(100dvh - 160px);display:grid}.sidebar{border-right:1px solid var(--line);background:#fff;padding:18px 20px;overflow-y:auto}.sidebar section+section{border-top:1px solid var(--line);margin-top:20px;padding-top:17px}details{border-top:1px solid #e1e7ed;margin-top:16px;padding-top:13px}summary{cursor:pointer;padding:0 0 4px;font-size:13px;font-weight:600}summary span{color:#64768a;float:right;margin-right:3px;font-size:10px;font-weight:400}.section-heading{justify-content:space-between;display:flex}.section-heading span{color:var(--muted);font-size:12px}.pocket-list{flex-direction:column;gap:5px;max-height:210px;display:flex;overflow:auto}.pocket-item{text-align:left;justify-content:space-between;gap:8px;font-weight:500;display:flex}.pocket-item span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.pocket-item small{color:var(--muted);white-space:nowrap;font-size:11px}.work-area{background:#edf1f4;flex-direction:column;min-width:0;min-height:0;display:flex}.canvas-toolbar{border-bottom:1px solid var(--line);background:#f9fbfc;justify-content:space-between;align-items:center;gap:10px;padding:12px 18px;display:flex}.canvas-toolbar button{min-height:32px;padding:6px 10px;font-size:12px}.workspace-hint{color:#5d7285;min-height:38px;padding:10px 20px;font-size:12px}.canvas-host{background:#e5ebf0;border:1px solid #d2dbe4;border-radius:8px;flex:1;min-height:240px;margin:0 18px 12px;position:relative;overflow:hidden;box-shadow:inset 0 1px 6px #253a5210}#canvas,#overlay,#preview3d{touch-action:none;width:100%;height:100%;position:absolute;inset:0}#overlay{pointer-events:none}#preview3d canvas{width:100%;height:100%;display:block}#emptyState{text-align:center;background:#f5f8fa;flex-direction:column;justify-content:center;align-items:center;gap:13px;padding:25px;display:flex;position:absolute;inset:0}#emptyState h2{letter-spacing:-.3px;margin:0;font-size:20px;font-weight:550}#emptyState p{color:var(--muted);max-width:310px;font-size:13px;line-height:1.5}.empty-outline{background:#edf3f7;border:2px solid #becbd7;border-radius:9px;width:110px;height:82px;margin-bottom:7px;position:relative;transform:rotate(-5deg)}.empty-outline span{background:#c7d8e5;border:2px solid #6c8fae;border-radius:8px 8px 4px 4px;width:17px;height:57px;margin:10px auto;display:block;transform:rotate(28deg)}.workspace-footer{color:var(--muted);justify-content:space-between;gap:10px;padding:3px 20px 14px;font-size:11px;display:flex}.status-bar{border-top:1px solid var(--line);color:#566b7e;background:#f8fafb;justify-content:space-between;align-items:center;gap:20px;height:32px;padding:0 20px;font-size:11px;display:flex}.status-bar #status{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.notice,#validation{color:#825722;background:#fff6e7;border:1px solid #ead7b7;border-radius:5px;margin:10px 0;padding:9px 11px;font-size:12px;line-height:1.5}#validation{white-space:pre-line;max-height:130px;margin:0 18px 10px;overflow:auto}dialog{color:#24364a;border:1px solid #c9d7e2;border-radius:10px;padding:25px;box-shadow:0 15px 70px #1b30422a}dialog::backdrop{background:#20354a40}#busy{text-align:center;min-width:240px}#busy p{margin-top:15px}.loading-dot{border:3px solid #cbd9e5;border-top-color:#315f8c;border-radius:50%;width:20px;height:20px;margin:auto;animation:.8s linear infinite turn}@keyframes turn{to{transform:rotate(360deg)}}#helpDialog{max-width:600px;max-height:85dvh;overflow:auto}#helpDialog h2{font-size:20px}#helpDialog li,#helpDialog p{margin-bottom:10px;line-height:1.6}#helpDialog ol{padding-left:22px}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}[hidden]{display:none!important}@media (max-width:1050px){.app-header{gap:15px;padding:12px 16px}.brand{min-width:120px}.brand span{display:none}.workflow{padding:0 12px}.tabs button{padding:9px 10px}.library span{display:none}.library select{width:135px}.editor{grid-template-columns:285px minmax(0,1fr)}.sidebar{padding:16px}.canvas-toolbar{flex-wrap:wrap;padding:8px 12px}.canvas-host{margin:0 12px 10px}}@media (max-width:760px){.app-header{flex-wrap:wrap;gap:8px 14px;height:auto;min-height:94px;padding:10px 12px}.brand{min-width:90px}.project-title{flex:1;max-width:none}.header-actions{justify-content:flex-end;width:100%}.header-actions button{min-height:30px;font-size:12px}.workflow{flex-wrap:wrap;gap:6px;height:auto;min-height:52px;padding:7px 10px}.tabs{justify-content:space-between;width:100%}.tabs button{flex:1;padding:8px 7px;font-size:11px}.library{display:none}.editor{flex-direction:column-reverse;height:auto;display:flex}.work-area{height:61dvh;min-height:380px}.sidebar{border-right:0;border-top:1px solid var(--line);overflow:visible}.sidebar section{max-width:600px;margin-left:auto;margin-right:auto}.canvas-toolbar{gap:5px}.canvas-toolbar button{padding:5px 8px;font-size:11px}.workspace-hint{padding:8px 13px;font-size:11px}.workspace-footer{font-size:10px}.workspace-footer span:last-child{display:none}.status-bar{padding:0 12px;position:sticky;bottom:0}#saveStatus{display:none}#emptyState h2{font-size:17px}.canvas-host{min-height:220px}.two{gap:0 12px}}@media (prefers-reduced-motion:reduce){.loading-dot{animation:none}}
