/* Scoped workspace layer: existing media, controls and brand tokens are retained. */
body.studio-workspace #v-make.workspace-ready .make-header{margin:20px 0 22px}
body.studio-workspace #v-make.workspace-ready .make-header h1{font-size:30px;margin:6px 0}
body.studio-workspace #v-make.workspace-ready .make-workspace{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,1fr);gap:28px;align-items:start}
body.studio-workspace #v-make.workspace-ready .make-controls{display:block;min-width:0}
body.studio-workspace #v-make.workspace-ready .workspace-preview-column{position:sticky;top:20px;min-width:0}
body.studio-workspace #v-make.workspace-ready .source-preview.design-preview-desktop{display:block!important;position:static;width:100%;margin:0}
body.studio-workspace #v-make.workspace-ready #make-stage{min-height:0;max-height:62vh;max-height:62dvh;width:auto;max-width:100%;margin:auto;border-radius:10px}
body.studio-workspace #v-make.workspace-ready .design-preview-inline{display:none!important}
body.studio-workspace #v-make.workspace-ready .source-preview figcaption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:12px 0}
body.studio-workspace #v-make.workspace-ready .source-preview figcaption span{font:12px/1.5 'DejaVu Sans',sans-serif;letter-spacing:0;text-transform:none;white-space:normal}
body.studio-workspace #v-make.workspace-ready .workspace-stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;border-bottom:1px solid var(--studio-line);padding-bottom:8px;margin-bottom:20px}
body.studio-workspace #v-make.workspace-ready .workspace-stages button{min-height:46px;border:0;border-radius:6px;background:transparent;color:var(--studio-muted);font:500 14px 'DejaVu Sans',sans-serif;cursor:pointer}
body.studio-workspace #v-make.workspace-ready .workspace-stages button[aria-selected=true]{background:var(--studio-gold-wash);color:var(--studio-ink);box-shadow:inset 0 -2px var(--studio-gold)}
body.studio-workspace #v-make.workspace-ready .make-step{padding:0;border:0}
body.studio-workspace #v-make.workspace-ready .make-step[hidden]{display:none!important}
body.studio-workspace #v-make.workspace-ready .step-head{margin-bottom:16px}
body.studio-workspace #v-make.workspace-ready .step-no{display:none}
body.studio-workspace #v-make.workspace-ready .step-head{grid-template-columns:1fr}
body.studio-workspace #v-make.workspace-ready .step-head p{grid-column:1;font-size:13px;line-height:1.5}
body.studio-workspace #v-make.workspace-ready .source-row{grid-template-columns:1fr}
body.studio-workspace #v-make.workspace-ready .source-row .browse-templates{display:none}
body.studio-workspace #v-make.workspace-ready .nite-tiles{grid-template-columns:1fr}
body.studio-workspace #v-make.workspace-ready .source-state,body.studio-workspace #v-make.workspace-ready .available-label{font:12px/1.4 'DejaVu Sans',sans-serif;letter-spacing:0;text-transform:none}
body.studio-workspace #v-make.workspace-ready .workspace-transcript{border-top:1px solid var(--studio-line);padding-top:12px}
body.studio-workspace #v-make.workspace-ready .workspace-transcript #moment{margin:0 0 12px;padding:0;background:none;border:0}
body.studio-workspace #v-make.workspace-ready .workspace-transcript .mquote{max-height:110px;overflow:auto;font-size:14px;line-height:1.6}
body.studio-workspace #v-make.workspace-ready .workspace-transcript .mk{display:flex;justify-content:space-between;align-items:center;gap:8px}
body.studio-workspace #v-make.workspace-ready .workspace-timing{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
body.studio-workspace #v-make.workspace-ready .design-controls{border:0;padding:0;margin-top:18px;background:none}
body.studio-workspace #v-make.workspace-ready .workspace-category{border-top:1px solid var(--studio-line);margin:0;padding:0 0 6px}
body.studio-workspace #v-make.workspace-ready .workspace-category>summary{min-height:48px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font:600 15px 'DejaVu Sans',sans-serif;color:var(--studio-ink);list-style:none}
body.studio-workspace #v-make.workspace-ready .workspace-category>summary::-webkit-details-marker{display:none}
body.studio-workspace #v-make.workspace-ready .workspace-category>summary::after{content:'+';font-size:21px;font-weight:400;color:var(--studio-muted)}
body.studio-workspace #v-make.workspace-ready .workspace-category[open]>summary::after{content:'−'}
body.studio-workspace #v-make.workspace-ready .workspace-category .design-section-title{font-family:'DejaVu Sans',sans-serif;letter-spacing:0;text-transform:none}
body.studio-workspace #v-make.workspace-ready .workspace-category .look-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
body.studio-workspace #v-make.workspace-ready .workspace-category .design-note{font-size:12px;line-height:1.5}
body.studio-workspace #v-make.workspace-ready .workspace-category .adv{margin:8px 0}
body.studio-workspace #v-make.workspace-ready .makebar{position:sticky;bottom:0;z-index:25;display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:24px 0 0;padding:12px 0;background:var(--studio-bg);border-top:1px solid var(--studio-line);box-shadow:0 -10px 20px var(--studio-bg);width:auto;left:auto;right:auto;transform:none}
body.studio-workspace #v-make.workspace-ready .makebar .btn{min-height:46px;width:auto;flex:0 0 auto;padding:10px 16px;font-size:13px}
body.studio-workspace #v-make.workspace-ready .workspace-output-summary{margin-right:auto;color:var(--studio-muted);font-size:12px}
body.studio-workspace #v-make.workspace-ready .makebar .workspace-action-note{display:block;flex-basis:100%;font-size:12px;margin:0;min-width:0}
body.studio-workspace #v-make.workspace-ready .makebar #atomizeBtn{font-size:13px}
body.studio-workspace #v-make.workspace-ready #moment-chip{margin:12px 0}
body.studio-workspace #v-templates.night #tpl-deck.workspace-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;overflow:visible;scroll-snap-type:none;padding:16px 0;margin:0;width:100%;max-width:none}
body.studio-workspace #v-templates.night #tpl-deck.workspace-template-grid .nite-card{display:flex;flex-direction:column;width:100%;height:auto;min-width:0;flex:none;transform:none;opacity:1;padding:0;overflow:hidden;border:2px solid transparent;border-radius:8px;background:var(--studio-panel);box-shadow:none}
body.studio-workspace #v-templates.night #tpl-deck.workspace-template-grid .nite-card.mid{border-color:var(--studio-gold)}
body.studio-workspace #v-templates.night #tpl-deck.workspace-template-grid .nite-card img,body.studio-workspace #v-templates.night #tpl-deck.workspace-template-grid .nite-card .ph{height:auto;aspect-ratio:4/5;width:100%;object-fit:cover}
body.studio-workspace #v-templates.night .workspace-template-name{display:block;text-align:left;padding:12px 10px;font:500 13px/1.4 'DejaVu Sans',sans-serif;color:var(--studio-ink);width:100%;box-sizing:border-box}
body.studio-workspace #v-templates.night #tpl-dots{display:none}
body.studio-workspace #v-templates.night .tpl-x{width:44px;height:44px}
body.workspace-shared #v-conn .world[hidden]{display:none!important}
body.workspace-shared #v-conn button[onclick^="delAccount"],body.workspace-shared #v-conn button[onclick^="delConn"],body.workspace-shared #v-sched button[onclick="runDue()"]{display:none!important}
@media(max-width:1050px){
 body.studio-workspace #v-make.workspace-ready .make-workspace{grid-template-columns:minmax(0,1fr) minmax(310px,1fr);gap:20px}
}
@media(max-width:900px){
 body.studio-workspace #v-make.workspace-ready .make-workspace{display:flex;flex-direction:column;gap:20px}
 body.studio-workspace #v-make.workspace-ready .workspace-preview-column{position:static;order:0;width:100%}
 body.studio-workspace #v-make.workspace-ready .make-controls{order:1;width:100%}
 body.studio-workspace #v-make.workspace-ready #make-stage{max-height:38dvh;max-width:100%;min-height:0}
 body.studio-workspace #v-make.workspace-ready .workspace-transcript .mquote{max-height:90px}
 body.studio-workspace #v-make.workspace-ready .workspace-stages{position:sticky;top:0;z-index:18;background:var(--studio-bg);padding-top:8px}
}
@media(max-width:767px){
 body.studio-workspace #v-make.workspace-ready{padding-bottom:190px}
 body.studio-workspace #v-make.workspace-ready .make-header{margin:14px 0 18px;padding-right:0}
 body.studio-workspace #v-make.workspace-ready .make-header h1{font-size:28px!important}
 body.studio-workspace #v-make.workspace-ready .make-header p{font-size:13px}
 body.studio-workspace #v-make.workspace-ready .makebar{position:fixed;bottom:calc(62px + env(safe-area-inset-bottom));left:0;right:0;margin:0;padding:10px 16px;gap:8px;background:var(--studio-bg);box-sizing:border-box;border-top:1px solid var(--studio-line);box-shadow:0 -5px 16px var(--studio-bg)}
 body.studio-workspace #v-make.workspace-ready:not(.on) .makebar{display:none}
 body.studio-workspace #v-make.workspace-ready .makebar .workspace-output-summary{flex-basis:100%;font-size:11px}
 body.studio-workspace #v-make.workspace-ready .makebar .btn{flex:1 1 auto;min-width:0;min-height:44px;padding:8px;font-size:12px}
 body.studio-workspace #v-make.workspace-ready .makebar #renderBtn{flex:1 1 auto}
 body.studio-workspace #v-make.workspace-ready .makebar .workspace-action-note{display:none}
 body.studio-workspace #v-make.workspace-ready input:not([type=checkbox]):not([type=range]),body.studio-workspace #v-make.workspace-ready select,body.studio-workspace #v-make.workspace-ready textarea{font-size:16px}
 body.studio-workspace #v-make.workspace-ready button{min-height:44px}
 body.studio-workspace #v-make.workspace-ready #make-stage{max-height:32dvh}
 body.studio-workspace #v-make.workspace-ready .workspace-category .look-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.studio-workspace #v-templates.night #tpl-deck.workspace-template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}
body.studio-workspace #v-make.workspace-ready #make-stage{width:min(100%,calc(62dvh * var(--workspace-aspect,.5625)));height:auto}
@media(max-width:900px){body.studio-workspace #v-make.workspace-ready #make-stage{width:min(100%,calc(38dvh * var(--workspace-aspect,.5625)))}}
@media(max-width:767px){body.studio-workspace #v-make.workspace-ready #make-stage{width:min(100%,calc(32dvh * var(--workspace-aspect,.5625)))}}
/* Fixed actions stay in reach even when an editing category is tall. */
body.studio-workspace #v-make.workspace-ready:not(.on) .makebar{display:none}
@media(min-width:768px){
 body.studio-workspace #v-make.workspace-ready{padding-bottom:130px}
 body.studio-workspace #v-make.workspace-ready .makebar{position:fixed;bottom:0;left:32px;right:32px;max-width:1250px;margin:0 auto;padding:12px 0}
}
@media(min-width:1100px){body.studio-workspace #v-make.workspace-ready .makebar{left:248px;right:32px}}
/* Selected templates stay in the Clip workspace, using the original template nodes. */
body.studio-workspace #v-make.workspace-template-active .source-preview.design-preview-desktop,
body.studio-workspace #v-make.workspace-template-active .step-own>.make-fields,
body.studio-workspace #v-make.workspace-template-active #design-preset,
body.studio-workspace #v-make.workspace-template-active .workspace-category:not([data-workspace-category=template]),
body.studio-workspace #v-make.workspace-template-active #atomizeBtn{display:none!important}
body.studio-workspace #v-make.workspace-template-active .workspace-category[data-workspace-category=template]{display:block!important}
body.studio-workspace #v-make.workspace-ready .workspace-basic-design{margin:8px 0 14px}
body.studio-workspace #v-make.workspace-ready .workspace-basic-design[hidden],
body.studio-workspace #v-make.workspace-ready .workspace-template-caption[hidden],
body.studio-workspace #v-make.workspace-ready .workspace-template-settings[hidden],
body.studio-workspace #v-make.workspace-ready .workspace-template-options[hidden]{display:none!important}
body.studio-workspace #v-make.workspace-ready #mk-tpl-row.workspace-template-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;overflow:visible;max-height:420px;overflow-y:auto;margin:12px 0;padding:3px}
body.studio-workspace #v-make.workspace-ready #mk-tpl-row.workspace-template-gallery .mk-tpl{width:100%;min-width:0;flex:none}
body.studio-workspace #v-make.workspace-ready #mk-tpl-row .mk-tpl.on{outline:2px solid var(--studio-gold);outline-offset:1px}
body.studio-workspace #v-make.workspace-template-active #tpl-stage{display:block;position:relative;inset:auto;width:min(100%,calc(62dvh * var(--inline-template-ratio,.5625)));height:auto;min-height:0;max-height:62dvh;aspect-ratio:var(--inline-template-ratio,.5625);margin:0 auto;overflow:hidden;border:1px solid var(--studio-line);border-radius:10px;background-color:var(--studio-panel);background-size:cover;background-position:center}
body.studio-workspace #v-make.workspace-template-active #tpl-stage::before,body.studio-workspace #v-make.workspace-template-active #tpl-stage::after{display:none}
body.studio-workspace #v-make.workspace-template-active #tpl-stage .tpl-stage-frame{position:absolute;top:0;left:0;border:0;transform-origin:top left;background:transparent;pointer-events:none}
body.studio-workspace #v-make.workspace-template-active #tpl-sheet{display:block;position:static;inset:auto;transform:none;max-height:none;width:100%;box-sizing:border-box;margin:16px 0 0;padding:16px 0;background:transparent;border:0;border-top:1px solid var(--studio-line);box-shadow:none}
body.studio-workspace #v-make.workspace-template-active #tpl-sheet .nite-grab,body.studio-workspace #v-make.workspace-template-active #tpl-render{display:none}
body.studio-workspace #v-make.workspace-template-active #tpl-sheet input,body.studio-workspace #v-make.workspace-template-active #tpl-sheet select{box-sizing:border-box;max-width:100%;min-width:0}
body.studio-workspace #v-make.workspace-template-active #tpl-sheet .edf-tog{display:flex;align-items:center;gap:8px}
body.studio-workspace #v-make.workspace-template-active #tpl-sheet input[type=checkbox]{width:20px;min-height:20px;flex:none}
body.studio-workspace #v-make.workspace-template-active #tpl-chips{display:flex;flex-wrap:wrap;overflow:visible;gap:8px;margin:16px 0 0;padding:0}
body.studio-workspace #v-make.workspace-template-active #tpl-chips .nite-chip{min-height:44px;padding:8px 12px;white-space:normal}
body.studio-workspace #v-make.workspace-template-active .workspace-template-caption{margin:12px 0;font-size:12px;line-height:1.5;color:var(--studio-muted)}
body.studio-workspace #v-make.workspace-template-active .workspace-template-options{border-top:1px solid var(--studio-line);margin-top:14px;padding:0 0 12px}
body.studio-workspace #v-make.workspace-template-active .workspace-template-options>summary{min-height:44px;display:flex;align-items:center;font-size:14px;font-weight:600;cursor:pointer}
body.studio-workspace #v-make.workspace-template-active .workspace-template-options>summary::after{content:'+';margin-left:auto}
body.studio-workspace #v-make.workspace-template-active .workspace-template-options[open]>summary::after{content:'−'}
body.studio-workspace #v-make.workspace-template-active #tpl-sheet .nite-need{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:44px;font-size:12px;border-bottom:1px solid var(--studio-line)}
body.studio-workspace #v-make.workspace-template-active #tpl-sheet .nite-note{font-size:12px;line-height:1.5;color:var(--studio-muted)}
@media(max-width:900px){body.studio-workspace #v-make.workspace-template-active #tpl-stage{width:min(100%,calc(38dvh * var(--inline-template-ratio,.5625)));max-height:38dvh}}
@media(max-width:767px){body.studio-workspace #v-make.workspace-template-active #tpl-stage{width:min(100%,calc(32dvh * var(--inline-template-ratio,.5625)));max-height:32dvh}body.studio-workspace #v-make.workspace-ready #mk-tpl-row.workspace-template-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Inline templates have their own authoritative heading and field instructions. */
body.studio-workspace #v-make.workspace-template-active .workspace-category[data-workspace-category=template]>.design-section-title:first-of-type,
body.studio-workspace #v-make.workspace-template-active .workspace-category[data-workspace-category=template]>.design-note:first-of-type{display:none!important}
body.workspace-shared #layout-save{display:none!important}
