.cs-studio{max-width:1600px;width:100%;margin:auto;--cs-bg:#181320;--cs-panel:#241b30;--cs-line:#554065;--cs-muted:#bfb0cf}.cs-studio .cs-hero{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:14px 0 30px}.cs-studio .cs-hero h1{font-size:clamp(30px,3.4vw,49px);margin:12px 0 16px;line-height:1.1}.cs-studio .cs-hero p{max-width:780px;font-size:15px;line-height:1.8;margin:0}.cs-hero>img{width:240px;max-width:25%;height:auto;border:1px solid #78608e;border-radius:18px;transform:rotate(3deg);box-shadow:0 15px 45px #10061955}.cs-workspace{border:1px solid #75538f;border-radius:17px;background:var(--cs-bg);overflow:hidden;box-shadow:0 16px 55px #08041030}.cs-studio button,.cs-studio .cs-file-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 11px;border:1px solid #634a78;border-radius:8px;background:#352541;color:#eee3fa;font:600 12px/1.4 system-ui,sans-serif;cursor:pointer;white-space:nowrap}.cs-studio button:hover:not(:disabled),.cs-file-button:hover{background:#513563;border-color:#b68cdb}.cs-studio button.cs-primary{background:#8d57cc;border-color:#b382e9;color:#fff}.cs-studio button:disabled{opacity:.4;cursor:not-allowed}.cs-studio .cs-wide{width:100%;margin-bottom:10px;white-space:normal}.cs-studio label{display:grid;gap:7px;font-size:12px;line-height:1.5;color:#d9c9e6;min-width:0;margin:0 0 14px}.cs-studio input,.cs-studio select{display:block;width:100%;min-width:0;max-width:100%;border:1px solid #5c446e;background:#160f20;color:#f3ebfb;border-radius:7px;padding:8px 10px;font:13px/1.5 system-ui,sans-serif}.cs-studio input[type=checkbox]{width:15px;height:15px;accent-color:#b489e2;margin:0}.cs-studio input[type=range]{padding:0;accent-color:#b489e2}.cs-studio input[type=color]{height:36px;padding:3px}.cs-studio .cs-check{display:flex;align-items:center;gap:8px}.cs-studio .cs-file-button{position:relative;margin:0;overflow:hidden}.cs-file-button input{position:absolute;inset:0;opacity:0;width:100%;height:100%;padding:0;cursor:pointer}.cs-file-button:focus-within{outline:3px solid #e3c8ff;outline-offset:3px}.cs-command{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:14px 16px;background:#2c2039;border-bottom:1px solid var(--cs-line)}.cs-brand{display:flex;align-items:center;gap:10px;min-width:150px}.cs-brand>span{display:grid;place-items:center;background:#593477;border-radius:10px;width:35px;height:35px;color:#dfc3ff;font-size:25px}.cs-brand strong{display:block;font-size:13px}.cs-brand small{display:block;font-size:11px;color:var(--cs-muted);max-width:180px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.cs-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.cs-editor{display:grid;grid-template-columns:255px minmax(0,1fr) 245px;min-height:660px;height:min(760px,calc(100dvh - 120px))}.cs-sidebar,.cs-palette-panel{background:var(--cs-panel);padding:17px;min-width:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#76548f transparent}.cs-sidebar{border-right:1px solid var(--cs-line)}.cs-palette-panel{border-left:1px solid var(--cs-line)}.cs-studio .cs-sidebar h2,.cs-studio .cs-palette-panel h2{font-size:13px;letter-spacing:.02em;margin:20px 0 13px}.cs-tabs{display:flex;gap:4px;background:#170f20;border-radius:8px;padding:4px;margin-bottom:20px}.cs-tabs button{flex:1;border:0;background:transparent}.cs-tabs button[aria-selected=true]{background:#58406e}.cs-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cs-studio .cs-help{font-size:11px;line-height:1.65;color:#bcaacb;margin:7px 0 16px}.cs-source{display:flex;align-items:center;gap:10px;background:#ffffff04;border:1px dashed #574064;border-radius:9px;padding:10px;margin:12px 0}.cs-source img{width:44px;height:44px;object-fit:contain}.cs-studio .cs-source p{font-size:11px;line-height:1.6;margin:0;word-break:break-word}.cs-studio .cs-size{font-size:12px;line-height:1.7;background:#392745;padding:10px;border-radius:8px;color:#e8d6f5}.cs-studio details{border-top:1px solid #543c65;margin:16px 0 0;padding:9px 0}.cs-studio summary{font-size:12px;cursor:pointer;padding:7px 0;color:#d9bdf3}.cs-export-note{padding:12px;border:1px dashed #655071;border-radius:8px;font-size:11px;line-height:1.7;color:var(--cs-muted)}.cs-center{display:flex;flex-direction:column;min-width:0;min-height:0}.cs-canvas-bar,.cs-view-bar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:11px 14px;border-bottom:1px solid var(--cs-line);background:#241a2f}.cs-tools{display:flex;gap:5px;flex-wrap:wrap}.cs-tools button{flex-direction:column;gap:2px;min-width:46px;font-size:19px;padding:6px 9px;border-color:transparent;background:transparent}.cs-tools small{font:500 10px/1.3 system-ui}.cs-tools button[aria-pressed=true]{background:#664086;border-color:#ba8ee6;color:#fff}.cs-studio .cs-brush{margin:0 0 0 auto;font-size:10px;width:64px;gap:3px}.cs-brush select{padding:5px}.cs-view-bar{gap:12px;padding:9px 12px}.cs-view-bar label{margin:0;font-size:10px;gap:4px}.cs-view-bar select{padding:5px;font-size:11px}.cs-zoom{display:flex;align-items:center;gap:5px;margin-left:auto}.cs-zoom label{width:64px}.cs-zoom output{font-size:10px;min-width:30px;color:#c5b4d3}.cs-zoom button{min-height:28px;padding:4px 7px}.cs-viewport{flex:1;overflow:auto;position:relative;min-height:250px;overscroll-behavior:contain;background:radial-gradient(#5c44603b 1px,transparent 1px) 0 0/16px 16px,#15111b;padding:28px;scrollbar-color:#78578e #191020;touch-action:pan-x pan-y}.cs-viewport canvas{display:block;max-width:none;max-height:none;background:#f8f1e5;box-shadow:0 4px 28px #0006;touch-action:none;cursor:crosshair;image-rendering:pixelated}.cs-viewport[data-mode=pan] canvas{cursor:grab}.cs-viewport[data-mode=pan] canvas:active{cursor:grabbing}.cs-viewport[data-mode=pick] canvas{cursor:copy}.cs-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100%;text-align:center;padding:30px 12px}.cs-empty>span{display:grid;place-items:center;width:75px;height:75px;border:1px dashed #8a629c;border-radius:20px;font-size:50px;color:#c09add;margin-bottom:18px;background:#2c1c3a}.cs-studio .cs-empty h2{text-align:center;font-size:21px;line-height:1.4;max-width:380px;margin:0 0 12px}.cs-studio .cs-empty p{font-size:13px;line-height:1.8;text-align:center;max-width:360px}.cs-empty small{font-size:11px;color:#ad98bc;margin-top:18px}.cs-canvas-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:9px 12px;border-top:1px solid var(--cs-line);font-size:10px;background:#22182d;color:#c2afd2}.cs-palette-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.cs-studio .cs-palette-heading h2{margin:0}.cs-palette-heading>span{font-size:10px;color:#bfa3d5}.cs-palette{display:grid;gap:5px;max-height:330px;overflow:auto;scrollbar-width:thin;margin-bottom:15px}.cs-palette button{display:flex;justify-content:start;gap:9px;padding:7px 8px;text-align:left;border:1px solid transparent;background:#2c2038;min-width:0;white-space:normal}.cs-palette button[aria-pressed=true]{border-color:#cba0f5;background:#4c315e}.cs-color-chip{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border:1px solid #ffffff40;border-radius:5px;font:700 14px monospace}.cs-color-label{min-width:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cs-color-label small{display:block;font-size:10px;color:#bda9cf;font-weight:400;margin-top:2px}.cs-color-edit{display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px}.cs-bottom{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:10px 16px;border-top:1px solid var(--cs-line);background:#2d2039}.cs-studio .cs-bottom p{margin:0;font-size:12px;line-height:1.6;color:#dbcae9}.cs-studio .cs-bottom p[data-error=true]{color:#ffadb9}.cs-bottom>span{font-size:10px;white-space:nowrap;color:#baa2cc}.cs-guide{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin:30px 0}.cs-guide article{padding:24px;border:1px solid #543e64;border-radius:14px;background:#22192d}.cs-guide article>span{font-size:10px;letter-spacing:.1em;color:#c7a0e5;font-weight:700}.cs-studio .cs-guide h2{font-size:18px;margin:14px 0 10px}.cs-studio .cs-guide p{font-size:13px;line-height:1.8;margin:0}.cs-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.cs-workspace:fullscreen,.cs-workspace.cs-expanded{position:fixed;inset:0;z-index:10000;width:100%;height:100dvh;border-radius:0;border:0;display:flex;flex-direction:column;background:#181320}.cs-expanded .cs-editor,:fullscreen>.cs-editor{flex:1;min-height:0;height:auto}.cs-expanded .cs-command,:fullscreen>.cs-command,.cs-expanded .cs-bottom,:fullscreen>.cs-bottom{flex-shrink:0}body.cs-lock{overflow:hidden}
@media(max-width:1200px){.cs-editor{grid-template-columns:220px minmax(0,1fr) 205px}.cs-sidebar,.cs-palette-panel{padding:13px}.cs-bottom>span{display:none}.cs-tools button{min-width:40px;padding:6px}.cs-zoom{margin-left:0}}
@media(max-width:950px){.cs-editor{grid-template-columns:220px minmax(0,1fr);height:auto;min-height:0}.cs-palette-panel{grid-column:1/-1;border-left:0;border-top:1px solid var(--cs-line);display:grid;grid-template-columns:1fr 1fr;gap:10px 24px;max-height:none}.cs-palette-heading,.cs-palette-panel>.cs-help{grid-column:1/-1}.cs-palette{max-height:230px}.cs-center{min-height:580px}.cs-sidebar{max-height:720px}.cs-guide{gap:14px}.cs-guide article{padding:18px}.cs-expanded .cs-editor{overflow:auto;flex:1;display:grid}.cs-expanded .cs-center{min-height:530px}.cs-expanded .cs-sidebar{max-height:620px}.cs-hero>img{display:none}}
@media(max-width:650px){.cs-studio .cs-hero{padding:5px 0 24px}.cs-studio .cs-hero h1{font-size:33px;letter-spacing:-.7px}.cs-editor{display:flex;flex-direction:column}.cs-center{order:0;min-height:510px;height:65dvh;max-height:700px}.cs-sidebar{order:1;border-right:0;border-top:1px solid var(--cs-line);max-height:none}.cs-palette-panel{order:2;display:block}.cs-palette{grid-template-columns:1fr 1fr;max-height:250px}.cs-command{padding:12px;gap:10px}.cs-actions{gap:7px}.cs-command .cs-actions{width:100%}.cs-command .cs-actions button,.cs-command .cs-file-button{flex:1;padding:8px}.cs-brand{width:100%}.cs-view-bar{gap:9px}.cs-tools{gap:3px}.cs-tools button{min-width:40px}.cs-canvas-bar{padding:9px}.cs-viewport{padding:16px}.cs-guide{grid-template-columns:1fr}.cs-studio .cs-hero p{font-size:14px}.cs-bottom{padding:10px 12px}.cs-expanded .cs-editor{display:flex}.cs-expanded .cs-command .cs-brand{display:none}.cs-expanded .cs-center{flex:0 0 60dvh;min-height:420px}.cs-expanded .cs-sidebar{overflow:visible;max-height:none}.cs-expanded .cs-palette-panel{overflow:visible;flex-shrink:0}.cs-expanded .cs-sidebar{flex-shrink:0}}

.cs-viewport canvas{margin-inline:auto}

