.studio-body{--studio-panel:#12131b}.studio-shell{padding:24px 28px 12px;max-width:1800px;margin:auto}.studio-heading{display:flex;align-items:center;gap:25px;margin-bottom:20px}.studio-heading .eyebrow{font-size:.5rem}.studio-heading h1{font-size:2.3rem;line-height:1.1;letter-spacing:-.06em;margin-top:7px}.studio-heading>p{font-size:.78rem;color:var(--muted)}.studio-actions{display:flex;gap:7px;margin-left:auto;align-items:center}.studio-shell button,.studio-shell select,.studio-shell input,.studio-shell textarea{font:inherit}.studio-shell button{border:1px solid #ffffff29;border-radius:5px;color:var(--cream);background:#242630;padding:10px 12px;font-size:.72rem;min-height:40px}.studio-shell button:hover{border-color:var(--green)}.studio-shell button:disabled{opacity:.35;cursor:default}.studio-shell .export-button,.studio-shell .accent-button{background:var(--green);color:#08090d;border-color:var(--green);font-weight:800}.studio-workspace{display:grid;grid-template-columns:265px minmax(0,1fr) 260px;gap:16px;height:calc(100dvh - 240px);min-height:550px;max-height:900px}.library-panel{grid-column:1;grid-row:1;background:var(--studio-panel);border:1px solid var(--line);border-radius:7px;min-width:0;overflow:hidden;display:flex;flex-direction:column}.canvas-column{grid-column:2;grid-row:1;display:flex;flex-direction:column;min-width:0;min-height:0}.inspector{grid-column:3;grid-row:1;background:var(--studio-panel);border:1px solid var(--line);border-radius:7px;padding:18px;overflow:auto}.canvas-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:12px}.studio-shell .canvas-toolbar select{width:auto;max-width:70%;font-size:.68rem;padding:10px;background:#171820}.canvas-toolbar span{font-size:.6rem;color:var(--muted);margin-left:auto;white-space:nowrap}.studio-shell .canvas-toolbar button{font-size:.6rem;padding:8px;min-height:38px}.canvas-stage{flex:1;min-height:0;display:grid;place-items:center;padding:24px;background-color:#1a1b24;background-image:radial-gradient(#ffffff18 .7px,transparent .7px);background-size:12px 12px;border:1px solid var(--line);border-radius:7px;overflow:hidden}.canvas-stage canvas{display:block;width:auto;height:auto;max-width:100%;max-height:100%;box-shadow:0 12px 40px #0008;touch-action:none;cursor:default;outline-offset:4px}.canvas-stage.is-panning canvas{cursor:move}.canvas-hint{font-size:.58rem;line-height:1.5;color:var(--muted);text-align:center;margin:10px 0 0}.studio-shell #status{font-size:.62rem;text-align:center;color:var(--green);margin-top:6px;min-height:18px;line-height:1.4}.studio-tabs{display:flex;flex-wrap:wrap;gap:4px;padding:10px;border-bottom:1px solid var(--line)}.studio-shell .studio-tabs button{background:transparent;flex:1;padding:8px 4px;min-height:36px;font-size:.6rem;border-color:transparent}.studio-shell .studio-tabs button[aria-selected=true]{background:var(--green);color:var(--ink);font-weight:800}.tool-panel{padding:17px;overflow:auto;flex:1;scrollbar-width:thin}.tool-panel h2,.inspector h2{font-size:1.2rem;letter-spacing:-.04em;line-height:1.2;margin-bottom:12px}.tool-note{font-size:.68rem;line-height:1.6;color:var(--muted);margin:0 0 15px}.studio-shell label{display:block;font-size:.6rem;font-weight:800;color:#c5c2cb;margin:16px 0 8px;line-height:1.4}.studio-shell label output{float:right;color:var(--green)}.studio-shell input:not([type=range]),.studio-shell textarea,.studio-shell select{width:100%;min-width:0;background:#090a10;color:var(--cream);padding:10px;border:1px solid #ffffff38;border-radius:4px;font-size:.75rem;min-height:40px}.studio-shell textarea{resize:vertical;min-height:72px;line-height:1.45}.studio-shell input[type=range]{width:100%;accent-color:var(--green);min-height:30px;margin:0;cursor:pointer}.studio-shell input[type=color]{padding:4px;height:40px}.scene-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:15px 0}.studio-shell .scene-card{padding:5px;display:flex;flex-direction:column;gap:6px;min-width:0;background:#1d1e28;text-align:left;min-height:95px}.scene-card img{width:100%;height:65px;object-fit:contain;background:#090a10;display:block;border-radius:2px}.scene-card span{font-size:.56rem;line-height:1.4;padding:0 3px}.scene-card small{font-size:.43rem;color:var(--muted);padding:0 3px 3px;line-height:1.4}.studio-shell .scene-card[aria-pressed=true]{outline:2px solid var(--green);outline-offset:1px}.studio-shell .upload-button{background:var(--pink);color:var(--ink);padding:12px;border-radius:5px;cursor:pointer;text-align:center;font-size:.72rem;margin:15px 0 10px;min-height:44px}.file-input{position:absolute;width:1px!important;height:1px;opacity:0;overflow:hidden}.file-input:focus-visible+*{outline:2px solid var(--pink)}.tool-panel>button,.quick-text>button{width:100%;margin-bottom:10px}.sticker-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.studio-shell .sticker-card{padding:8px;background:repeating-conic-gradient(#292b36 0% 25%,#20222c 0% 50%) 50%/12px 12px;min-width:0}.sticker-card img{width:100%;height:94px;display:block;object-fit:contain}.sticker-card span{display:block;font-size:.52rem;line-height:1.4;margin-top:7px}.control-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}.control-pair>div{min-width:0}.studio-shell .control-pair button{font-size:.6rem;padding:8px;line-height:1.35}.inspector button{margin-top:12px}.inspector #centerOverlay{width:100%}.studio-shell .danger-button{color:#ffb3c6;background:#5c203133;border-color:#a34a5c88}.inspector-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.inspector-heading h2{margin:0 0 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.studio-shell #closeInspector{display:none}.layer-list{display:flex;flex-direction:column;gap:7px;margin-bottom:20px}.studio-shell .layer-row{width:100%;display:flex;align-items:center;gap:10px;text-align:left;background:#21222e;min-height:48px}.layer-row small{font-size:.5rem;color:var(--pink)}.layer-row span{min-width:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:.66rem}.studio-shell .layer-row[aria-pressed=true]{border-color:var(--green)}.studio-bottom{display:flex;justify-content:space-between;gap:15px;color:var(--muted);font-size:.57rem;margin-top:13px;padding-bottom:6px}.draft-notice{display:flex;align-items:center;justify-content:center;gap:14px;background:#ceff5710;border:1px solid #ceff5760;border-radius:5px;padding:8px 12px;font-size:.72rem;margin-bottom:15px}.draft-notice span{line-height:1.4}.studio-shell [hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.studio-body .site-footer{margin-top:20px;font-size:.6rem}
@media(max-width:1150px){.studio-shell{padding:20px}.studio-workspace{grid-template-columns:230px minmax(0,1fr) 230px;gap:12px}.studio-heading>p{display:none}.studio-heading h1{font-size:2rem}.inspector{padding:14px}.studio-actions button{font-size:.65rem;padding:9px}.canvas-toolbar span{display:none}.canvas-stage{padding:18px}}
@media(max-width:1000px){.studio-body .nav{position:relative;height:60px}.studio-body .nav nav{top:60px}.studio-shell{padding:14px 12px 8px}.studio-heading{gap:8px;flex-wrap:wrap;margin-bottom:12px;align-items:center}.studio-heading .eyebrow{display:none}.studio-heading h1{font-size:1.45rem;margin:0}.studio-actions{gap:4px;flex-wrap:nowrap}.studio-shell .studio-actions button{font-size:.59rem;min-height:38px;padding:8px}.studio-actions #undo span,.studio-actions #redo span{display:none}.studio-shell .studio-actions #undo,.studio-shell .studio-actions #redo{font-size:1rem;min-width:36px}.studio-actions #saveDraft{display:none}.studio-workspace{display:flex;flex-direction:column;gap:10px;height:auto;min-height:0;max-height:none}.canvas-column{position:sticky;top:0;z-index:4;background:var(--ink);padding-top:7px}.canvas-toolbar{margin-bottom:7px}.studio-shell .canvas-toolbar select{min-height:34px;padding:6px;font-size:.61rem}.studio-shell .canvas-toolbar button{min-height:34px}.canvas-stage{height:37svh;min-height:220px;max-height:390px;flex:none;padding:14px}.canvas-hint{font-size:.5rem;margin-top:6px}.studio-shell #status{font-size:.55rem;margin-top:4px;min-height:15px}.library-panel{min-height:270px;max-height:400px;position:relative}.studio-tabs{flex-wrap:nowrap;padding:7px;gap:2px;position:sticky;top:0;background:var(--studio-panel);z-index:1}.studio-shell .studio-tabs button{font-size:.65rem;min-height:42px;padding:7px}.tool-panel{padding:15px}.tool-panel h2{font-size:1.13rem}.tool-panel .tool-note{font-size:.7rem}.scene-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.scene-card img{height:62px}.scene-card span{font-size:.56rem}.scene-card small{font-size:.44rem}.sticker-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.sticker-card img{height:85px}.sticker-card span{font-size:.5rem}.studio-shell .inspector{display:none;position:fixed;inset:auto 0 0;z-index:12;max-height:49svh;border:1px solid #ceff5755;border-radius:15px 15px 0 0;padding:17px 20px 25px;box-shadow:0 -20px 70px #000b;overflow:auto;scrollbar-width:thin}.studio-shell .inspector.is-open{display:block}.inspector-heading{position:sticky;top:-17px;background:var(--studio-panel);z-index:1;padding:6px 0}.studio-shell #closeInspector{display:block;margin:0;font-size:1.2rem;width:38px;padding:4px;min-height:38px}.inspector label{margin-top:12px}.studio-shell .inspector input[type=range]{min-height:34px}.studio-shell .inspector textarea{min-height:65px}.studio-shell .inspector #layerControls{max-width:700px;margin:auto}.control-pair{gap:12px}.studio-bottom{font-size:.53rem;line-height:1.5}.studio-bottom>span:last-child{display:none}.studio-body .site-footer{margin-top:10px;padding-top:25px}.draft-notice{font-size:.64rem;gap:7px;padding:7px}.studio-shell .draft-notice button{font-size:.62rem;padding:8px}}
@media(max-width:360px){.studio-shell{padding-inline:9px}.studio-heading h1{font-size:1.2rem}.studio-shell .studio-actions button{font-size:.53rem;padding:7px}.studio-actions{gap:3px}.studio-shell .studio-actions #undo,.studio-shell .studio-actions #redo{min-width:29px}.scene-grid{grid-template-columns:1fr 1fr}.sticker-grid{grid-template-columns:1fr 1fr}.canvas-stage{height:33svh}.studio-shell .studio-tabs button{font-size:.6rem;padding-inline:5px}}

/* Catalogs scroll with the page; only the mobile layer sheet scrolls independently. */
@media(min-width:1001px){.studio-workspace{height:auto;max-height:none;min-height:600px;align-items:start;grid-template-columns:250px minmax(0,1fr) 245px}.canvas-column{position:sticky;top:98px;height:calc(100dvh - 140px);min-height:560px;max-height:1000px}.library-panel,.tool-panel,.inspector{overflow:visible;max-height:none}.tool-panel{flex:none}.inspector{padding:17px}}
.catalog-group{border:1px solid var(--line);border-radius:6px;margin:9px 0;background:#1a1c27;overflow:hidden}.catalog-group>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;cursor:pointer;font-weight:700;font-size:.75rem;padding:13px 11px;list-style:none}.catalog-group>summary:before{content:'+';color:var(--green);font-size:1rem}.catalog-group[open]>summary:before{content:'−'}.catalog-group>summary>span{flex:1}.catalog-group summary small{font-size:.65rem;color:var(--muted);border:1px solid var(--line);border-radius:4px;padding:2px 6px}.catalog-group[open]>summary{border-bottom:1px solid var(--line)}.scene-grid,.sticker-grid{margin:0;padding:10px;gap:9px;grid-template-columns:1fr 1fr}.scene-card img{height:auto;aspect-ratio:4/3;object-fit:contain}.scene-card span{font-size:.66rem;line-height:1.4}.scene-card small{font-size:.54rem}.studio-shell .scene-card{padding:6px;gap:7px;min-height:0}.sticker-card img{height:auto;aspect-ratio:1;object-fit:contain}.sticker-card span{font-size:.6rem}.scene-filters{margin-bottom:14px}.scene-filters>summary{font-size:.7rem;cursor:pointer;color:var(--green);padding:8px 0}.studio-shell .scene-filters label{margin-top:10px}.studio-shell .upload-button{font-size:.78rem;padding:14px}.tool-note{font-size:.73rem}.canvas-stage{background-size:18px 18px;background-color:#11131b;background-image:radial-gradient(#ffffff15 .65px,transparent .65px)}
@media(max-width:1000px){.studio-body .menu-toggle{display:flex;gap:10px;align-items:center;background:none;border:0;color:var(--cream);font-size:.6rem;font-weight:800;padding:12px 0;order:3}.studio-body .nav nav{display:none;position:absolute;left:0;right:0;top:60px;background:#101118;padding:20px;border-bottom:1px solid var(--line);z-index:10}.studio-body .nav.nav-open nav{display:flex;flex-direction:column;gap:0}.studio-body .nav nav a{font-size:1rem;padding:14px 8px;border-bottom:1px solid var(--line)}.studio-body .nav-join{margin-left:auto}.library-panel{max-height:none;min-height:0;overflow:visible}.tool-panel{overflow:visible;flex:none}.canvas-column{position:relative;top:auto;padding:0}.canvas-stage{min-height:220px;max-height:580px}.scene-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sticker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-group>summary{font-size:.85rem;padding:14px}.scene-card span{font-size:.7rem}.scene-card small{font-size:.58rem}.tool-panel .tool-note{font-size:.76rem}.canvas-hint{font-size:.6rem}.studio-shell #status{font-size:.62rem}.studio-bottom{font-size:.62rem}}
@media(max-width:400px){.scene-grid{grid-template-columns:1fr 1fr}.scene-card span{font-size:.71rem}.sticker-card span{font-size:.62rem}.canvas-stage{padding:12px}.studio-shell .studio-tabs button{font-size:.68rem}.studio-shell .canvas-toolbar select{max-width:60%;font-size:.65rem}.studio-shell .canvas-toolbar button{font-size:.65rem;padding:7px}.catalog-group>summary{font-size:.8rem}}
