@font-face{font-family:Unbounded;src:url(/fonts/unbounded-cyrillic.woff);unicode-range:U+0400-052f;font-display:swap}
@font-face{font-family:Unbounded;src:url(/fonts/unbounded-latin.woff);unicode-range:U+0000-024f;font-display:swap}
*{box-sizing:border-box}
html,body{height:auto;min-height:100%;margin:0}
body{background:#101612;font:14px var(--f-body);color:var(--fg)}
button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.42}
.topbar{height:65px;border-bottom:1px solid #29342c;display:flex;align-items:center;gap:26px;padding:0 32px;background:#151c17}
.brand{height:43px;width:132px;object-fit:contain;object-position:left}
.crumb,.topbar a{font-size:12px;color:#a6b6aa}.crumb b{font-weight:400;margin:0 8px;color:#5d7062}
.topbar a{margin-left:auto;text-decoration:none}.topbar a:hover{color:var(--accent)}
.shell{display:grid;grid-template-columns:175px minmax(0,1fr);max-width:1830px;margin:auto}
.navigation{padding:33px 10px 24px 16px;border-right:1px solid #253029;min-height:calc(100vh - 65px)}
.nav-label,.stage-caption small{font-weight:650;text-transform:uppercase;letter-spacing:.13em;font-size:10px;color:#93a69a}
.nav-label{margin:0 0 15px 10px}.library-label{border-top:1px solid var(--line);margin-top:24px;padding-top:24px}
.navigation nav{display:grid;gap:4px}.navigation button{display:flex;align-items:center;gap:10px;border:1px solid transparent;text-align:left;border-radius:8px;color:#b9c9bf;background:transparent;padding:10px;font:600 12.5px var(--f-body)}
.navigation svg{width:20px;height:20px;flex:none}.nav-icon{font-size:19px;width:20px;text-align:center}
.navigation button[aria-pressed=true]{background:#233e2e;color:#a1dbb8;border-color:#325541}.navigation button:hover{background:#1d2b22}
main{width:100%;padding:23px clamp(16px,2.1vw,36px) 40px;min-width:0}
.titlebar,.gallery-heading,.preview-foot,.actionbar{display:flex;align-items:center;gap:12px}
.titlebar{justify-content:space-between;margin-bottom:19px}
h1{font:600 clamp(24px,2.2vw,34px)/1.2 var(--f-display);letter-spacing:-.047em}
.history-tools{display:flex;gap:7px}.history-tools button,.view-actions button{border:1px solid var(--line);border-radius:8px;color:var(--fg);background:#1a231d;padding:7px 10px;font-size:12px}
.bench{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:16px;align-items:stretch}
.card{min-width:0;border:1px solid #324036;border-radius:15px;overflow:hidden;background:var(--panel)}
.preview,.inspector{height:clamp(455px,54vh,625px);display:flex;flex-direction:column}
.stage{position:relative;inset:auto;z-index:auto;box-shadow:none;background:var(--stage);flex:1;min-height:0;height:auto}
.stage:after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 42% 45%,transparent 42%,#04130944)}
#view{touch-action:none}.hud{inset:12px auto auto 12px;gap:5px;max-width:calc(100% - 24px);z-index:1}.pill{font-size:10px;padding:4px 7px;background:#18231cdd}.hud .pill:nth-child(2){display:none}
.view-actions{position:absolute;right:13px;top:48px;display:grid;gap:6px;z-index:1}.view-actions button{height:33px;width:33px;font-size:19px;padding:0;background:#17231cdd}
.view-actions button[aria-pressed=true]{color:var(--accent);border-color:var(--accent)}
.stage-caption{position:absolute;bottom:15px;left:19px;z-index:1;pointer-events:none;text-shadow:0 2px 6px #101611}
.stage-caption small{font-size:9px;color:#9eb0a4}.stage-caption h2{margin:4px 0 0;font:500 21px var(--f-display);letter-spacing:-.045em}
.toast{position:absolute;bottom:12px;right:12px;max-width:80%;z-index:4}
.preview-foot,.actionbar{min-height:59px;padding:10px 14px;border-top:1px solid var(--line)}.preview-foot{justify-content:space-between}
.seg button{padding:8px 11px}.seg button[aria-pressed=true]{background:#314b3b;color:#c5ecd3}
.preview-saves{display:flex;gap:6px;margin-left:auto}
.preview-foot .btn.save-tool{position:relative;display:inline-grid;place-items:center;min-width:44px;width:44px;height:44px;padding:0;font-size:0}
.save-tool svg,.save-heart::before{width:18px;height:18px}
.save-heart::before{position:absolute;inset:0;margin:auto}
.save-heart::before{content:"";background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20S3.5 15 3.5 9.8a4.6 4.6 0 0 1 8.5-2.4 4.6 4.6 0 0 1 8.5 2.4C20.5 15 12 20 12 20Z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.preview-foot .save-heart[aria-pressed=true],.preview-foot .save-bookmark.is-saved{color:var(--accent);border-color:var(--accent)}
.save-heart[aria-pressed=true]::before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20S3.5 15 3.5 9.8a4.6 4.6 0 0 1 8.5-2.4 4.6 4.6 0 0 1 8.5 2.4C20.5 15 12 20 12 20Z'/%3E%3C/svg%3E")}
.save-bookmark.is-saved path{fill:currentColor}
.preview-foot .mobile-preview-tool{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 10px;white-space:nowrap;font-size:12px}
.mobile-preview-tool svg{width:18px;height:18px;flex:none}
.mobile-preview-tool[aria-pressed=true]{color:var(--accent);border-color:var(--accent)}
@media(max-width:700px){.actionbar #publish+.btn{flex:1.05}.actionbar #publish:first-child{flex:1}}
@media(max-width:410px){.preview-foot .mobile-preview-tool{padding:0 7px}}
@media(max-width:380px){#mobile-random span{display:none}#mobile-random{min-width:44px}}
#saved-collections{width:min(420px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:18px;border:1px solid var(--line);border-radius:15px;background:var(--panel);color:var(--fg)}
#saved-collections::backdrop{background:#08100bcc}
#saved-collections header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
#saved-collections h2{margin:0;font:600 16px var(--f-display)}
#saved-collections header button{min-width:36px;font-size:19px;padding:4px}
.saved-collection-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid var(--line)}
.saved-collection-row label{display:flex;align-items:center;gap:7px;min-height:34px;overflow-wrap:anywhere;cursor:pointer}
.saved-collection-row input{accent-color:var(--accent)}
.saved-collection-row details{text-align:right}
.saved-collection-row summary{padding:8px;cursor:pointer;white-space:nowrap}
.saved-collection-models{display:grid;gap:5px;text-align:left}
#saved-collections .new-collection{margin-top:16px}
#saved-collections .new-collection div{display:flex;gap:6px;margin-top:6px}
#saved-collections .collection-status{margin:10px 0 0}
#saved-collections .collection-status:empty{display:none}
#tabs{display:flex;gap:3px;padding:10px 12px 0;border-bottom:1px solid var(--line);min-height:48px}
#tabs button{flex:1;color:#9fb0a4;background:transparent;border:0;border-bottom:2px solid transparent;padding:8px 3px 11px;font-size:13px;font-weight:650}
#tabs button[aria-pressed=true]{color:#a1dfb8;border-bottom-color:#70c498;background:linear-gradient(transparent,#233b2b)}
.inspector-scroll{overflow:auto;scrollbar-color:#405646 transparent;scrollbar-width:thin;padding:15px 20px;flex:1;min-height:0}
.group{margin:0 0 16px}.group>h2{font-size:11px;padding-top:10px}
.model-picker{display:grid;grid-template-columns:95px minmax(0,1fr);align-items:center;margin-bottom:12px;gap:10px}
.family-label,.row label{font-size:13px;font-weight:600}
select,input[type=text]{min-width:0;background:#111a14;color:#e3ebe5;border:1px solid #384b3e;border-radius:7px;padding:6px 9px;width:100%}
.studio-row,.tab-panel .row:not(.check){display:grid;grid-template-columns:minmax(128px,1.15fr) minmax(68px,1fr) minmax(53px,auto);align-items:center;gap:9px;min-height:35px}
.row input[type=range]{grid-column:2;grid-row:1;width:100%;height:4px;cursor:pointer}
.row output{grid-column:3;grid-row:1;text-align:right;font-size:11px;color:#d4be91}.row input[type=text],.row select{grid-row:1;grid-column:2/4}
.studio-row.boolean{display:flex;justify-content:space-between}.ctrls{gap:4px}
.quick-pattern:not(:empty){border-top:1px solid var(--line);margin-top:10px;padding-top:6px}
.inspector .color-row{margin-top:8px}.inspector .chips{gap:5px}.actionbar{margin-top:auto;gap:8px}
.actionbar button{flex:1;min-height:38px;padding:8px;font-size:13px}.actionbar button:first-child{flex:1.45}
.btn:hover,.view-actions button:hover,.history-tools button:hover{border-color:var(--accent)}
.gallery{margin-top:24px}.gallery-heading{margin-bottom:13px}.gallery-heading h2{margin:0;font:600 17px var(--f-display);letter-spacing:-.035em}
#gallery-count{font:11px var(--f-mono);color:#92a599}.gallery-heading button{margin-left:auto}
#shelf>.group>h2{display:none}#presets{display:grid;grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:10px}
#presets button{display:flex;align-items:stretch;flex-direction:column;padding:0;text-align:left;border-radius:11px;background:#19231c;border:1px solid #314035;overflow:hidden}
#presets button[aria-current=true],#presets button:hover{border-color:#77bd92}#presets img{display:block;width:100%;height:88px;object-fit:contain;background:radial-gradient(ellipse at center,#2b382f,#162019)}
.idea-title{font-size:11.5px;padding:7px 9px 9px}.thumbs{grid-template-columns:repeat(auto-fill,minmax(85px,110px))}
#hopts{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:12px}#hopts button{display:flex;align-items:center;gap:4px;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--muted);font-size:11px;padding:5px}
#hopts svg{width:16px;height:16px}#hopts button[aria-pressed=true]{color:var(--accent)}
.studio-hidden{display:none!important}.group[data-library=collection]{max-width:680px}
@media(min-width:1650px){.shell{grid-template-columns:205px minmax(0,1fr)}.inspector-scroll{padding:22px 26px}.studio-row,.tab-panel .row:not(.check){min-height:42px}#presets{grid-template-columns:repeat(auto-fill,minmax(143px,1fr))}}
@media(max-width:1120px){.shell{grid-template-columns:144px minmax(0,1fr)}.navigation{padding-left:6px}.navigation button{font-size:11px;gap:6px}.bench{gap:10px}.inspector-scroll{padding:12px}.studio-row,.tab-panel .row:not(.check){grid-template-columns:minmax(94px,1fr) minmax(53px,1fr) 44px;gap:5px}.hud .pill:last-child{max-width:140px}.preview-foot{padding:8px;gap:4px}}
@media(max-width:920px){.shell{display:block}.navigation{padding:8px 14px 0;border:0;min-height:0}.nav-label{display:none}.navigation #cats{display:flex;overflow:auto;scrollbar-width:none}.navigation button{white-space:nowrap}#library-links{display:flex;gap:3px;flex-wrap:wrap;margin-bottom:10px}#library-links button{border:1px solid var(--line);color:#b4c7b9;background:#1a251e;border-radius:8px;padding:5px 8px}.nav-icon{font-size:14px}.topbar{padding:0 16px;height:52px}.brand{height:36px}.crumb{display:none}main{padding-top:12px}}
@media(max-width:700px){.bench{grid-template-columns:1fr}.preview{height:340px}.inspector{height:auto;min-height:320px;max-height:550px}.inspector-scroll{max-height:365px}.stage{height:auto!important;position:relative;inset:auto}.titlebar{margin-bottom:11px}.titlebar h1{font-size:22px}.topbar a{font-size:10px}.navigation button{padding:7px 8px}.navigation svg{width:16px;height:16px}.navigation #cats{gap:2px}.hud{right:auto;top:10px}.stage-caption h2{font-size:17px}.preview-foot{min-height:46px}.gallery{margin-top:18px}#presets{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}#presets img{height:73px}.gallery-heading{gap:6px}.gallery-heading h2{font-size:15px}.gallery-heading button{font-size:11px;padding:5px}.row label{font-size:12px}.view-actions{top:43px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.quick-material{padding-top:13px;border-top:1px solid var(--line);margin-top:13px}.material-head{display:flex;align-items:center;justify-content:space-between;font-size:12px}.material-head span{font-size:11px;color:var(--muted)}.quick-colors{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}.quick-colors .swatch{width:24px;height:24px;border:2px solid #29382e}.quick-colors .swatch[aria-pressed=true]{border-color:#dbe7db;box-shadow:0 0 0 2px #4d7459}
@media(max-width:920px){#library-links{display:flex;gap:5px;flex-wrap:wrap}#library-links button{color:var(--muted);background:#19231e;border:1px solid var(--line);border-radius:8px;padding:5px 8px;display:inline-flex;align-items:center;gap:4px}#library-links button[aria-pressed=true]{color:var(--accent);border-color:#476651}}
@media(max-width:700px){.history-tools button{font-size:0;padding:4px 8px}.history-tools button:before{content:"↶";font-size:17px}.history-tools button+button:before{content:"↷"}.history-tools{gap:4px}.navigation{padding-bottom:4px}.titlebar h1{font-size:21px}}
.curve-editor{margin:12px 0;padding:10px 12px;border:1px solid var(--line,#324139);border-radius:8px;background:#141e19}
.curve-editor summary{cursor:pointer;font-size:13px;font-weight:650;color:#d9ece1}
.curve-editor svg{display:block;width:100%;height:155px;margin:12px 0 8px;touch-action:none;background:#101813;border-radius:6px}
.curve-editor svg .grid{stroke:#24342b;stroke-width:.7}.curve-editor svg .outline{fill:none;stroke:#80cfac;stroke-width:2}
.curve-editor svg circle{cursor:grab;fill:#d7e5d9;stroke:#132119;stroke-width:1.5}.curve-editor svg circle.active{fill:#f4bd6d}
.curve-buttons{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.curve-buttons button,.curve-buttons select{font:inherit;font-size:12px;padding:4px 8px}
.curve-editor small{display:block;margin-top:8px;color:#a8b8ac}
.studio-tool .tool-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.studio-tool .tool-head strong{font-size:13px;margin-right:auto;color:#d9ece1}
.studio-tool .tool-head button,.studio-tool .tool-x,.studio-tool .tool-link{font:inherit;font-size:12px;padding:4px 8px}
.studio-tool .tool-card{border-top:1px solid #24342b;padding-top:8px;margin-top:8px}
.studio-tool .tool-cap{display:flex;gap:8px;align-items:center;font-size:12px;font-weight:650;color:#cfe0d5}.studio-tool .tool-dim{color:#a8b8ac;font-weight:500;margin-right:auto}
.studio-tool .tool-break{margin:6px 0 2px 8px;padding-left:10px;border-left:2px solid #f2b33d}
.studio-tool .tool-break small{margin-top:2px}.curve-editor svg .lbl{fill:#7f9487;font-size:10px}
.studio-tool .tool-go{width:100%;margin-top:12px}.studio-tool .tool-link{margin-top:6px}
.studio-tool .tool-where{color:#a8b8ac;font-weight:500}
