.studio{--studio-bg:#151513;--studio-panel:#1d1d19;--studio-input:#10100e;--studio-line:#3c3c34;--studio-text:#f4f0e6;--studio-muted:#b4b3a5;color:var(--studio-text);max-width:1800px;margin:auto;padding:48px 24px 72px}
.studio [hidden]{display:none!important}.studio *{box-sizing:border-box}.studio-header{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:24px}.studio-eyebrow{color:#fb923c;font-size:12px;letter-spacing:.1em;text-transform:uppercase}.studio h1{font-size:clamp(26px,3vw,42px);font-weight:800;line-height:1.2;margin:12px 0}.studio-header p{max-width:780px;color:var(--studio-muted);font-size:14px;line-height:1.7}.studio h2{font-size:14px;font-weight:700;margin:8px 0 14px}.studio p{line-height:1.6}.studio a{color:#fdba74}.studio button,.studio-button{display:inline-flex;justify-content:center;align-items:center;border:1px solid var(--studio-line);border-radius:8px;padding:10px 13px;min-height:44px;cursor:pointer;background:var(--studio-panel);color:var(--studio-text);font:inherit;font-size:12px;line-height:1.4;text-decoration:none;transition:border-color .15s,background-color .15s}.studio button:hover,.studio-button:hover{border-color:#fb923c;background:#30271c}.studio button:disabled{opacity:.42;cursor:not-allowed}.studio button:focus-visible,.studio a:focus-visible,.studio input:focus-visible,.studio select:focus-visible,.studio textarea:focus-visible,.studio canvas:focus-visible,.studio summary:focus-visible{outline:3px solid #fb923c;outline-offset:3px}.studio .studio-primary{background:#c2410c;border-color:#ea580c;color:white}.studio .studio-primary:hover{background:#9a3412}.studio label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--studio-muted)}.studio input,.studio textarea,.studio select{width:100%;min-height:44px;border:1px solid var(--studio-line);border-radius:6px;background:var(--studio-input);color:var(--studio-text);padding:9px;font:inherit;font-size:13px}.studio textarea{resize:vertical}.studio input[type=color]{padding:4px;cursor:pointer}.studio input[type=checkbox]{width:18px;min-height:18px;accent-color:#ea580c}.studio-banner{background:#3b2814;border:1px solid #855319;border-radius:10px;padding:14px 18px;margin-bottom:16px;font-size:13px;line-height:1.7}.studio-banner a{font-weight:700;text-decoration:underline}.studio-status{min-height:42px;padding:10px 0;color:var(--studio-muted);font-size:12px;overflow-wrap:anywhere}.studio-status[data-error=true]{color:#fda4af}.studio-status a{margin-left:12px;text-decoration:underline}.studio-muted{color:var(--studio-muted);font-size:11px}.studio-toolbar{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;padding:16px;background:var(--studio-bg);border:1px solid var(--studio-line);border-radius:12px 12px 0 0}.studio-project-name{max-width:350px;flex:1;min-width:190px}.studio-toolbar #studio-saved{margin:auto 4px 12px}.studio-workspace{display:grid;grid-template-columns:240px minmax(320px,1fr) 252px;border:1px solid var(--studio-line);border-top:0;border-radius:0 0 12px 12px;overflow:hidden;background:var(--studio-bg)}.studio-panel{padding:16px;background:var(--studio-panel);min-width:0}.studio-assets{border-right:1px solid var(--studio-line)}.studio-inspector{border-left:1px solid var(--studio-line)}.studio details+details{border-top:1px solid var(--studio-line);margin-top:20px;padding-top:16px}.studio summary{font-weight:700;font-size:13px;cursor:pointer;margin-bottom:14px;min-height:30px}.studio summary span{color:#fb923c;margin-left:8px}.studio-templates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:780px;overflow:auto;padding:3px}.studio-templates button{display:flex;flex-direction:column;padding:5px;gap:7px;min-width:0;border-color:var(--studio-line)}.studio-templates button[aria-pressed=true]{border-color:#fb923c;box-shadow:0 0 0 1px #fb923c}.studio-templates canvas{width:100%;height:auto;aspect-ratio:1320/2868;display:block;border-radius:4px}.studio-templates span{font-size:10px;line-height:1.4;text-align:center;max-width:100%;overflow-wrap:anywhere}.studio-center{min-width:0}.studio-canvas-toolbar{padding:12px;display:flex;gap:8px;flex-wrap:wrap;align-items:flex-end;border-bottom:1px solid var(--studio-line)}.studio-canvas-toolbar label:first-child{flex:1;min-width:150px}.studio-canvas-toolbar label:has(input[type=color]){width:48px}.studio-stage{min-height:430px;padding:24px;display:flex;align-items:center;justify-content:center;overflow:hidden;background-color:#282822;background-image:radial-gradient(#414137 1px,transparent 1px);background-size:16px 16px}.studio-stage canvas{display:block;box-shadow:0 14px 45px #0006;touch-action:none;max-width:100%}.studio-help{font-size:11px;color:var(--studio-muted);padding:12px 20px;margin:0;border-bottom:1px solid var(--studio-line)}.studio-insert{display:flex;gap:8px;flex-wrap:wrap;padding:14px 18px}.studio-import{padding:0 18px 18px}.studio-import form{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap}.studio-import form label:first-child{flex:1;min-width:180px}.studio-import form select{max-width:210px}.studio-import p{margin:10px 0}.studio-file input{font-size:12px}.studio-check{flex-direction:row!important;align-items:center;margin-top:12px;line-height:1.6}.studio-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:12px}.studio-inspector fieldset{min-width:0}.studio-inspector fieldset>label,.studio-inspector #studio-text-properties>label{margin-bottom:12px}.studio-element-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:18px 0 24px}.studio-layers{display:flex;flex-direction:column;gap:6px;max-height:430px;overflow:auto;padding:3px;list-style:none}.studio-layers button{width:100%;justify-content:flex-start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.studio-layers button[aria-pressed=true]{border-color:#fb923c;background:#3b2814}.studio-list{display:flex;flex-direction:column;gap:12px;margin-bottom:12px}.studio-project{border:1px solid var(--studio-line);padding:9px;border-radius:8px;overflow-wrap:anywhere}.studio-project p{font-size:12px;margin:0 0 9px}.studio-project div{display:flex;gap:6px}.studio-project button{font-size:10px;padding:8px}.studio-recent{margin-top:32px}.studio-history{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;margin-top:15px}.studio-history article{background:var(--studio-panel);border:1px solid var(--studio-line);padding:12px;border-radius:10px}.studio-history p{font-size:11px;overflow-wrap:anywhere;margin-bottom:8px}.studio-history img{max-width:100%;height:140px;object-fit:contain;margin:auto}.studio-history a{font-size:12px;text-decoration:underline}
[data-theme=light] .studio{--studio-bg:#f7f5ef;--studio-panel:#fffdf8;--studio-input:#ffffff;--studio-line:#c8c5b7;--studio-text:#25251e;--studio-muted:#59594f}[data-theme=light] .studio button:hover{background:#ffedd5}[data-theme=light] .studio a,[data-theme=light] .studio-eyebrow{color:#9a3412}[data-theme=light] .studio-banner{background:#ffedd5}[data-theme=light] .studio-status[data-error=true]{color:#9f1239}[data-theme=light] .studio-layers button[aria-pressed=true]{background:#ffedd5}[data-theme=light] .studio .studio-primary{color:white;background:#c2410c}[data-theme=light] .studio-stage{background-color:#deddd5;background-image:radial-gradient(#b2b0a5 1px,transparent 1px)}
@media(min-width:1500px){.studio-workspace{grid-template-columns:280px minmax(320px,1fr) 270px}.studio-templates{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.studio-workspace{grid-template-columns:180px minmax(280px,1fr)}.studio-inspector{grid-column:1/-1;border-left:0;border-top:1px solid var(--studio-line);display:grid;grid-template-columns:1fr 1fr;gap:12px}.studio-inspector h2,.studio-inspector>p{grid-column:1/-1}.studio-inspector fieldset{grid-column:1/-1}.studio-fields{grid-template-columns:repeat(3,1fr)}.studio-layers{grid-column:1/-1;max-height:180px}.studio-element-actions{grid-template-columns:repeat(4,1fr)}.studio-templates{max-height:720px}}
@media(max-width:680px){.studio{padding:28px 12px 48px}.studio-header{flex-direction:column;gap:14px}.studio-workspace{display:flex;flex-direction:column}.studio-assets{border-right:0;border-bottom:1px solid var(--studio-line);order:0}.studio-center{order:1}.studio-inspector{order:2}.studio-templates{display:flex;overflow:auto;max-height:none;gap:10px;padding-bottom:8px}.studio-templates button{flex:0 0 88px}.studio-templates canvas{max-height:165px;object-fit:contain}.studio-stage{min-height:360px}.studio-toolbar{padding:12px}.studio input,.studio textarea,.studio select{font-size:16px}.studio-canvas-toolbar button{font-size:11px}.studio-element-actions{grid-template-columns:1fr 1fr}.studio-fields{grid-template-columns:1fr 1fr}.studio-import form{align-items:stretch}.studio-import form label{flex:1}.studio-import form select{max-width:none}.studio-import form button{width:100%}}
@media(prefers-reduced-motion:reduce){.studio *{transition:none!important;scroll-behavior:auto!important}}
.studio-asset-library{display:grid;gap:10px;max-height:420px;overflow:auto;font-size:12px}.studio-asset{border:1px solid var(--studio-line);padding:8px;border-radius:8px}.studio-asset img{height:100px;width:100%;object-fit:contain;background:var(--studio-input);border-radius:4px}.studio-asset>div{display:flex;gap:5px;margin-top:8px}.studio-asset button{padding:7px;font-size:10px;flex:1}
.studio-view-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 14px;background:var(--studio-panel);border-bottom:1px solid var(--studio-line)}.studio-view-toolbar button[aria-pressed=true]{background:#c2410c;color:#fff;border-color:#ea580c}.studio-view-toolbar label{margin-left:auto;flex-direction:row;align-items:center;gap:10px}.studio-view-toolbar input[type=range]{width:95px;min-height:30px;padding:0;accent-color:#ea580c}.studio-view-toolbar output{font-size:11px;min-width:40px}.studio-slide-rail{display:flex;justify-content:center;gap:10px;overflow-x:auto;padding:14px;background:var(--studio-input)}.studio-slide-rail button{flex:0 0 66px;flex-direction:column;gap:5px;padding:5px;border-radius:6px;font-size:10px;line-height:1.3}.studio-slide-rail canvas{width:54px;height:auto;display:block;border-radius:3px}.studio-slide-rail button[aria-pressed=true]{border-color:#f97316;box-shadow:0 0 0 1px #f97316}.studio-slide-position{padding:7px 16px;font-size:11px;color:var(--studio-muted);border-top:1px solid var(--studio-line);margin:0}.studio-templates{grid-template-columns:1fr!important}.studio-templates button{padding:8px;align-items:stretch}.studio-templates canvas{aspect-ratio:auto!important;max-height:none;width:100%;height:auto;border-radius:4px}.studio-template-label{display:flex;justify-content:space-between;align-items:center;gap:8px}.studio-template-label span{text-align:left;font-size:11px}.studio-template-label small{color:#fb923c;white-space:nowrap;font-size:10px}.studio-stage{min-height:250px}.studio-center{overflow:hidden}.studio-status a{display:inline-block}.studio-inspector input[type=number]{font-variant-numeric:tabular-nums}
@media(max-width:680px){.studio-templates button{flex:0 0 245px}.studio-slide-rail{justify-content:flex-start}.studio-slide-rail button{flex-basis:54px}.studio-slide-rail canvas{width:42px}.studio-view-toolbar label{margin-left:0}.studio-view-toolbar{gap:6px}.studio-view-toolbar button{padding:8px;font-size:11px}.studio-stage{min-height:190px}}
/* Editing controls stay beside the canvas while libraries scroll independently. */
.studio{max-width:none}.studio-page-actions{display:flex;align-items:center;gap:12px;padding:8px 14px;background:var(--studio-panel);border-bottom:1px solid var(--studio-line)}.studio-page-actions button{min-height:36px;padding:7px 12px}.studio-creation-tools{align-items:center;border-bottom:1px solid var(--studio-line);padding:10px 14px;background:var(--studio-panel)}.studio-creation-tools label{margin-left:auto;flex-direction:row;align-items:center}.studio-creation-tools input[type=color]{width:48px;min-height:36px;height:36px}.studio-alignment{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:8px 0 16px}.studio-alignment button{padding:8px 4px;font-size:10px}.studio-inspector #studio-shape-properties label{margin-bottom:12px}.studio-assets .studio-import{padding:0}.studio-assets .studio-import form{display:grid;grid-template-columns:1fr}.studio-assets .studio-import form label:first-child{min-width:0}.studio-assets .studio-import select{max-width:none}.studio-slide-rail{justify-content:flex-start;flex-shrink:0;min-width:0}.studio-slide-rail button{flex-basis:48px}.studio-slide-rail canvas{width:34px;max-height:74px;object-fit:contain}.studio-templates{max-height:none}.studio-view-toolbar{flex-shrink:0}.studio-canvas-toolbar{flex-shrink:0}.studio-page-actions{flex-shrink:0}.studio-slide-position{flex-shrink:0}
[data-theme=light] .studio .studio-view-toolbar button[aria-pressed=true],[data-theme=light] .studio .studio-view-toolbar button[aria-pressed=true]:hover,[data-theme=light] .studio .studio-view-toolbar button[aria-pressed=true]:focus-visible{background:#9a3412;color:#ffffff;border-color:#9a3412}
@media(min-width:1101px){.studio-workspace{height:max(760px,calc(100dvh - 170px));grid-template-columns:240px minmax(360px,1fr) 252px}.studio-panel{overflow-y:auto;overscroll-behavior:contain}.studio-center{display:flex;flex-direction:column;min-height:0}.studio-stage{flex:1;min-height:200px;height:0;padding:20px}.studio-help{flex-shrink:0}.studio-slide-rail{max-height:112px;padding:8px 14px}.studio-inspector{display:block}.studio-layers{max-height:none}.studio-templates{overflow:visible}}
.studio:fullscreen,.studio.studio-expanded{position:fixed;inset:0;z-index:1000;width:100%;height:100dvh;margin:0;padding:12px;background:var(--studio-bg);overflow:auto}.studio:fullscreen .studio-header,.studio:fullscreen .studio-banner,.studio:fullscreen .studio-recent,.studio.studio-expanded .studio-header,.studio.studio-expanded .studio-banner,.studio.studio-expanded .studio-recent{display:none}.studio:fullscreen .studio-status,.studio.studio-expanded .studio-status{min-height:30px;padding:5px 0}.studio:fullscreen .studio-workspace,.studio.studio-expanded .studio-workspace{height:calc(100dvh - 144px)}
@media(max-width:1100px){.studio-stage{height:440px;padding:20px;min-height:220px}.studio:fullscreen .studio-workspace,.studio.studio-expanded .studio-workspace{height:auto}.studio:fullscreen .studio-stage,.studio.studio-expanded .studio-stage{height:60dvh;min-height:280px}.studio-templates{max-height:400px}}
@media(max-width:680px){.studio-page-actions{flex-wrap:wrap;gap:6px}.studio-creation-tools{gap:6px;padding:10px}.studio-creation-tools button{font-size:11px;padding:8px}.studio-creation-tools label{margin-left:0}.studio-stage{height:390px;padding:16px}.studio-assets .studio-import form{display:flex}.studio-templates{max-height:none}.studio-slide-rail{padding:8px}.studio-slide-rail canvas{width:30px}.studio-view-toolbar label{flex:1}.studio-alignment button{font-size:12px}.studio:fullscreen,.studio.studio-expanded{padding:6px}}
.studio-creation-tools .studio-device-platform{margin-left:0;gap:6px;font-size:11px}.studio-device-platform select{width:auto;min-width:90px}.studio-device-controls{border-top:1px solid var(--studio-line);margin-top:14px;padding-top:14px}.studio-device-controls h3{font-size:12px;font-weight:700;margin:0 0 12px}.studio-device-controls>label{margin-bottom:12px}.studio-device-controls .studio-fields{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.studio-device-controls .studio-fields label{min-width:0;line-height:1.5}.studio-device-source-actions{display:grid;grid-template-columns:1fr;gap:6px}.studio-device-source-actions button{white-space:normal;line-height:1.4}.studio-device-controls .studio-muted{font-size:11px;line-height:1.6;margin-bottom:10px}
@media(max-width:680px){.studio-device-controls .studio-fields{gap:10px}.studio-device-source-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-creation-tools .studio-device-platform{flex-direction:row;flex-wrap:wrap}}
/* Catalogue previews remain readable when their editable scene needs another plan. */
.studio-templates img{display:block;width:100%;height:auto;aspect-ratio:840/365;object-fit:contain;background:var(--studio-input);border-radius:4px}.studio-template-label .studio-plan-badge{border:1px solid var(--studio-line);border-radius:5px;padding:3px 6px;color:var(--studio-text);background:var(--studio-input)}.studio-templates button[data-locked=true]{border-style:dashed}.studio-templates button[data-locked=true] .studio-plan-badge{color:#fdba74;border-color:#a16207}.studio-template-sequence{color:var(--studio-muted);font-size:10px;text-align:left}.studio-templates button[aria-busy=true]{border-color:#fb923c}.studio-view-toolbar .studio-tilt-snap{margin-left:0;flex:0 0 auto;font-size:11px;gap:6px}.studio-tilt-snap input[type=checkbox]{width:18px;min-height:18px}.studio #studio-catalog-tiers,.studio #studio-catalog-access{margin:8px 0;line-height:1.7}.studio #studio-tilt-help{color:var(--studio-text);background:var(--studio-panel)}
[data-theme=light] .studio-templates button[data-locked=true] .studio-plan-badge{color:#854d0e;border-color:#a16207}
@media(max-width:680px){.studio-view-toolbar .studio-tilt-snap{flex:0 0 auto}.studio-template-label .studio-plan-badge{font-size:10px}.studio #studio-catalog-tiers{font-size:12px}}
/* Guests browse raster previews; the editor and its controls remain separate. */
.studio-preview-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(360px,1fr);align-items:start;gap:24px;margin:24px 0}
.studio-preview-stage{position:sticky;top:88px;min-width:0;margin:0;padding:16px;background:var(--studio-panel);border:1px solid var(--studio-line);border-radius:16px}
.studio-preview-stage>img{display:block;width:100%;height:auto;aspect-ratio:840/365;object-fit:contain;border-radius:8px;background:var(--studio-input)}
.studio-preview-stage figcaption{padding:16px 4px 2px;font-size:16px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
.studio-preview-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:12px;min-width:0;max-height:clamp(360px,72dvh,900px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:5px}
.studio-preview-gallery>button{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:10px;min-width:0;padding:10px;text-align:left}
.studio-preview-gallery>button>img{display:block;width:100%;height:auto;aspect-ratio:840/365;object-fit:contain;border-radius:5px;background:var(--studio-input)}
.studio-preview-gallery>button[aria-pressed=true]{border-color:#fb923c;box-shadow:0 0 0 1px #fb923c}
.studio-preview-gallery .studio-template-label{align-items:flex-start;flex-wrap:wrap}
.studio-preview-gallery .studio-template-label>span{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.studio-preview .studio-banner a{display:inline-flex;align-items:center;min-height:44px;padding:6px 10px}
.studio button.studio-blank-template{display:grid;grid-template-columns:42px minmax(0,1fr);column-gap:14px;row-gap:5px;width:100%;min-height:104px;margin:18px 0;padding:14px;border-style:dashed;text-align:left;align-items:center;justify-content:stretch}
.studio-blank-template::before{content:"";grid-row:1/3;display:block;width:40px;height:56px;border:1px solid var(--studio-line);border-radius:4px;background:var(--studio-input);box-shadow:4px 4px 0 var(--studio-bg)}
.studio-blank-template>span{font-size:13px;font-weight:700;align-self:end;overflow-wrap:anywhere}
.studio-blank-template>small{font-size:11px;line-height:1.6;color:var(--studio-muted);align-self:start;overflow-wrap:anywhere}
@media(max-width:1000px){.studio-preview-layout{grid-template-columns:1fr;gap:18px}.studio-preview-stage{position:static}.studio-preview-gallery{grid-template-columns:repeat(2,minmax(0,1fr));max-height:60dvh;min-height:300px}}
@media(max-width:560px){.studio-preview-stage{padding:10px;border-radius:12px}.studio-preview-stage figcaption{font-size:14px;padding:12px 2px 2px}.studio-preview-gallery{grid-template-columns:1fr;gap:12px;max-height:65dvh}.studio-preview-gallery>button{padding:12px}.studio-preview-gallery .studio-template-label>span{font-size:13px}.studio-preview .studio-banner{padding:12px}.studio-preview .studio-banner a{padding-left:0;padding-right:14px}}
