:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#202636;background:#f5f7fb;font-synthesis:none;font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:0;transition:background .15s,transform .15s}button:disabled{opacity:.42;cursor:not-allowed}button:not(:disabled):hover{filter:brightness(.96)}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #64d8df;outline-offset:3px}button.primary{background:#3c4bdc;color:white;padding:13px 20px;border-radius:9px;font-weight:600;box-shadow:0 4px 12px #3c4bdc20}.secondary{padding:12px 17px;border-radius:9px;border:1px solid #d9deea;background:white;color:#303a50;font-weight:600}.quiet{color:#4a56cb;background:transparent;padding:10px 5px;font-weight:600}.danger{background:#fff0f0;color:#ad3030;padding:10px 15px;border-radius:8px}.icon{background:transparent;color:#69768c;padding:7px 10px;border-radius:5px;font-size:19px}h1,h2,h3,p{margin:0}h1{font-size:36px;line-height:1.18;letter-spacing:-1.3px;font-weight:650}h2{font-size:20px;letter-spacing:-.4px}h3{font-size:15px}.muted{color:#7a8497;line-height:1.65}.small{font-size:12px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:2.1px;color:#7a86a0;margin-bottom:12px}.brand{font-size:25px;letter-spacing:-1px;font-weight:750;color:#fff}.studio-mark{font-size:9px;letter-spacing:4px;color:#9ba6c3;margin:7px 0 0 3px}.shell{display:flex;min-height:100vh}.sidebar{width:240px;flex-shrink:0;background:#171e34;color:#aab3cb;padding:35px 24px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0}.nav-label{font-size:9px;letter-spacing:1.8px;color:#6f7c9d;margin-top:45px;margin-bottom:11px}.sidebar select{color:#dfe5f4;border:1px solid #35405c;background:#222b45;border-radius:8px;padding:11px;width:100%;font-size:12px}.sidebar nav{display:grid;gap:9px;margin:28px -10px}.nav-item{width:100%;padding:14px 17px;background:transparent;text-align:left;color:#9ba9c9;font-size:13px;border-radius:8px;white-space:pre}.nav-item.active{background:#333e65;color:#fff;box-shadow:inset 3px 0 #6be0d3}.sidebar-bottom{margin-top:auto;padding-top:30px;border-top:1px solid #303951}.user-name{font-size:13px;color:#e5eaf6;margin-bottom:6px}.sidebar-bottom .quiet{color:#93a2c7;font-size:11px;margin-top:10px}.workspace{margin-left:240px;width:calc(100% - 240px)}.topbar{height:80px;border-bottom:1px solid #e5e9f1;padding:0 45px;display:flex;align-items:center;justify-content:space-between;background:#fff}.breadcrumb{font-size:12px;color:#8993a7}.environment{border:1px solid #e1e6f0;padding:7px 10px;font-size:9px;color:#8793aa;letter-spacing:1.6px;border-radius:20px}.page{max-width:1550px;margin:auto;padding:48px 45px 60px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:35px}.page-heading p{margin-top:13px;font-size:13px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-bottom:43px}.stat{padding:26px;border-radius:13px;border:1px solid #e5e9f1;background:#fff;position:relative;overflow:hidden}.stat:after{content:'';position:absolute;right:-30px;top:-30px;width:100px;height:100px;border-radius:50%;background:#d9f3f2;opacity:.6}.stat.purple:after{background:#e4dffc}.stat.orange:after{background:#ffead3}.stat>div{font-size:12px}.stat strong{display:block;font-size:38px;font-weight:600;margin:15px 0 9px;color:#27304b;letter-spacing:-1px}.stat p{font-size:11px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.section-heading h2{font-size:18px}.section-heading button{font-size:11px}.media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.media-card{background:white;border:1px solid #e1e6ef;border-radius:12px;overflow:hidden;min-width:0}.media-preview{display:flex;align-items:center;justify-content:center;width:100%;height:162px;background:#e9edf4;overflow:hidden;padding:0}.media-preview img{height:100%;width:100%;object-fit:cover}.media-preview:hover img{transform:scale(1.03);transition:transform .2s}.media-pending{font-size:38px;color:#9ca7bf}.media-info{padding:17px 16px 12px}.media-info h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:650}.media-meta{display:flex;justify-content:space-between;color:#9aa4b5;font-size:9px;letter-spacing:.7px;margin-top:9px}.media-foot{border-top:1px solid #edf0f5;display:flex;justify-content:space-between;gap:8px;align-items:center;padding:11px 16px}.media-foot .small{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status{font-size:9px;color:#8a6a30;background:#fff5dc;padding:4px 7px;border-radius:4px}.status.ready{background:#e8f7f0;color:#298360}.status.failed{background:#ffebeb;color:#ad4545}.toolbar{background:white;border:1px solid #e3e8f0;border-radius:10px;padding:13px 16px;display:flex;align-items:center;gap:15px;margin-bottom:25px}.toolbar input{flex:1}.toolbar input,.toolbar select{border:0;background:#fff;font-size:12px;padding:6px;min-width:0}.toolbar select{border-left:1px solid #e1e6ef;padding-left:17px}.toolbar span{white-space:nowrap}.empty{border:1px dashed #d6deed;border-radius:12px;text-align:center;padding:42px;background:#fafbfe}.empty-symbol{font-size:36px;color:#97a1cb;margin-bottom:12px}.empty h2{font-size:20px}.empty p{font-size:13px;margin:12px 0 22px}.callout{margin-top:35px;padding:32px;background:#e9edf9;border:1px solid #e0e5f6;border-radius:13px;display:flex;justify-content:space-between;align-items:center;gap:20px}.callout h2{font-size:22px}.callout p{font-size:12px;margin-top:10px}.callout .eyebrow{color:#6977b7}.playlist-list{display:grid;gap:14px}.playlist-card{padding:25px;display:flex;align-items:center;gap:20px;background:white;border:1px solid #e1e6ef;border-radius:12px}.playlist-symbol{background:#ebedff;color:#6570cc;padding:12px 17px;border-radius:10px;font-size:30px}.playlist-description{flex:1}.playlist-description h2{font-size:17px}.playlist-description p{margin-top:7px}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.login-story{background:#18203b;color:white;padding:65px 13%;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.login-story:after{content:'';position:absolute;width:400px;height:400px;border:70px solid #415284;border-radius:50%;right:-210px;bottom:-100px;opacity:.35}.login-story .eyebrow{color:#6cdbcf;margin-top:10px}.login-story h1{font-size:57px;white-space:pre-line;margin:65px 0 25px;line-height:1.12;letter-spacing:-2px}.login-story p{color:#a2afcf;font-size:15px;line-height:1.8;max-width:330px}.login-footer{margin-top:70px;font-size:9px;letter-spacing:2px;color:#8191b8}.login-panel{align-self:center;padding:65px 15%;max-width:670px;width:100%;margin:auto}.login-panel h2{font-size:30px;margin-bottom:14px}.login-panel>p{font-size:13px}.login-panel form{margin-top:35px}.login-panel button.primary{width:100%;margin-top:5px}.login-panel .small{margin-top:22px;text-align:center}label{display:grid;gap:9px;font-size:12px;font-weight:600;color:#4d5870;margin-bottom:20px}input:not([type=checkbox]),select{border:1px solid #dce2ed;border-radius:7px;background:#fff;color:#28334b;padding:12px;width:100%}input[type=checkbox]{accent-color:#4b59d9}.form-error{color:#b93b45;font-size:12px;min-height:16px;margin:12px 0}.loading{padding:50px;color:#8893a9}dialog{border:0;border-radius:16px;padding:0;width:min(600px,92vw);box-shadow:0 30px 100px #10172b55;color:#253049;max-height:90vh}dialog.wide{width:min(1000px,94vw)}dialog::backdrop{background:#11182c85;backdrop-filter:blur(3px)}.dialog-head{padding:23px 26px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8edf4}.dialog-body{padding:26px}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:25px}.upload-zone{background:#f6f8fd;border:1px dashed #c6d0e4;border-radius:10px;padding:30px;text-align:center;margin-bottom:20px}.upload-symbol{font-size:40px;color:#7885c3}.upload-zone h3{margin:10px 0 23px}.upload-zone input{font-size:11px}.detail-preview,.preview-stage{background:#141b2d;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center;aspect-ratio:16/9}.detail-preview img,.detail-preview video,.preview-stage img,.preview-stage video{width:100%;height:100%;object-fit:contain}.detail-preview+p,.preview-stage+p{margin-top:15px}.sequence-row{display:flex;align-items:center;gap:10px;padding:15px 0;border-bottom:1px solid #e8edf4}.sequence-number{font-size:11px;color:#9aa5b8}.sequence-row strong{flex:1;min-width:100px;overflow:hidden;text-overflow:ellipsis;font-size:12px}.sequence-row label{margin:0;font-size:10px}.sequence-row .duration{display:flex;align-items:center;gap:5px}.duration input{width:75px;padding:7px;font-size:12px}.inline{display:flex;align-items:center;white-space:nowrap}.empty-line{padding:25px;color:#8b96a9;font-size:13px}.sequence+.small{margin-top:15px}#toast{position:fixed;bottom:25px;right:25px;background:#25334a;color:white;border-radius:9px;padding:16px 23px;font-size:13px;box-shadow:0 10px 30px #0002;display:none;z-index:10;max-width:550px}#toast.show{display:block}#toast.error{background:#9a3540}
@media(min-width:1600px){.media-preview{height:200px}}@media(max-width:1150px){.media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sidebar{width:205px;padding:30px 20px}.workspace{margin-left:205px;width:calc(100% - 205px)}.page{padding:35px 28px}.topbar{padding:0 28px}.stat{padding:20px}.stat p{min-height:34px}.page-heading h1{font-size:30px}.sequence-row{flex-wrap:wrap}.login-story h1{font-size:45px}}@media(max-width:800px){.sidebar{position:static;width:100%;padding:20px;display:grid;grid-template-columns:1fr 1fr;gap:15px}.sidebar .nav-label,.studio-mark,.sidebar-bottom{display:none}.sidebar select{align-self:center}.sidebar nav{grid-column:1/-1;display:flex;margin:0}.nav-item{font-size:12px;padding:11px}.shell{display:block}.workspace{margin:0;width:100%}.topbar{height:60px}.page{padding:30px 20px}.page-heading{align-items:flex-start;flex-direction:column;gap:20px}.page-heading h1{font-size:30px}.stats{gap:12px}.stat{padding:18px 13px}.stat strong{font-size:30px}.stat p{display:none}.media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.media-preview{height:140px}.callout{padding:25px;align-items:flex-start;flex-direction:column}.playlist-card{flex-wrap:wrap;padding:18px}.playlist-description{min-width:130px}.playlist-card button{font-size:12px}.login{grid-template-columns:1fr}.login-story{padding:35px 30px}.login-story h1{font-size:35px;margin:25px 0 15px;white-space:normal}.login-story p,.login-footer{display:none}.login-panel{padding:40px 30px}.toolbar{flex-wrap:wrap}.toolbar input{min-width:140px}.dialog-body{padding:20px}.sequence-row strong{flex-basis:60%}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.editor{padding:20px}.editor-header{display:flex;gap:15px;align-items:center;margin-bottom:15px}.editor-header input{max-width:350px}.editor-header span{flex:1}.editor-tools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.editor-layout{display:grid;grid-template-columns:220px minmax(240px,1fr) 250px;gap:15px;min-height:650px}.editor-layers,.editor-props{background:white;border:1px solid #e1e6ef;border-radius:10px;padding:15px;overflow:auto;max-height:80vh}.editor-layers h3,.editor-props h3{margin-bottom:20px}.editor-props label{margin-top:12px;margin-bottom:12px}.editor-props textarea{width:100%;min-height:120px}.editor-props button{font-size:11px;padding:9px;margin:4px 0}.layer-row{display:flex;flex-wrap:wrap;gap:4px;margin-top:10px}.layer-row button{font-size:11px;padding:8px}.layer-row button:first-child{width:100%;text-align:left}.editor-canvas-wrap{background:#e2e6ef;padding:18px;display:flex;align-items:center;min-height:450px}.editor-canvas{width:100%;touch-action:none;box-shadow:0 8px 40px #0003}.design-preview{width:100%;min-height:200px}.zone-item{border-top:1px solid #e5e9f1;padding:10px 0}.scene-element img,.scene-element video{display:block}.page>h2{margin:25px 0 15px}@media(max-width:1200px){.editor-layout{grid-template-columns:150px minmax(200px,1fr) 210px}.editor-header{flex-wrap:wrap}}@media(max-width:850px){.editor-layout{grid-template-columns:1fr}.editor-layers,.editor-props{max-height:400px}.sidebar nav{overflow:auto}.editor-canvas-wrap{min-height:250px}}
.schedule-rule{padding:20px;border:1px solid #dce2ed;border-radius:10px;margin:20px 0}.schedule-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.schedule-days{display:flex;gap:12px;flex-wrap:wrap}.audit-list{font-size:11px;line-height:2;overflow-wrap:anywhere}.activation{max-width:600px}.activation label{margin-top:20px}.sidebar nav{max-height:55vh;overflow:auto}.sidebar-bottom{margin-top:20px}.design-preview{min-height:0}@media(max-width:800px){.schedule-fields{grid-template-columns:1fr 1fr}}

@font-face{font-family:TrouDigitalSans;src:url('/fonts/DejaVuSans.ttf') format('truetype');font-weight:400 700;font-display:swap}

/* Compact controls and a consistent content rhythm; navigation keeps its existing styling. */
.workspace{color:#273047;background:#f7f8fb}
.workspace .topbar{height:64px;padding:0 32px}
.workspace .page{padding:32px 32px 48px}
.workspace h1{font-size:28px;letter-spacing:-.8px;line-height:1.25}
.workspace .page-heading{gap:20px;margin-bottom:26px}
.workspace .page-heading p{margin-top:8px;line-height:1.6}
.workspace .eyebrow{margin-bottom:8px;letter-spacing:1.7px}
.workspace button.primary,dialog button.primary{padding:9px 14px;border-radius:7px;font-size:13px;font-weight:600;box-shadow:0 1px 2px #24317018}
.workspace button.secondary,dialog button.secondary{padding:8px 12px;border-radius:7px;font-size:13px;font-weight:500;border-color:#dfe3ec;box-shadow:0 1px 2px #19244005}
.workspace button.quiet,dialog button.quiet{padding:8px;font-size:12px;font-weight:500;border-radius:6px}
.workspace button.danger,dialog button.danger{padding:8px 12px;font-size:12px;border-radius:7px}
.workspace button.icon,dialog button.icon{padding:6px 8px;font-size:17px}
.workspace button:focus-visible,dialog button:focus-visible{outline-width:2px;outline-offset:2px}
.workspace .playlist-card{padding:18px 20px;gap:14px;border-radius:10px;flex-wrap:wrap}
.workspace .playlist-description{min-width:160px}
.workspace .playlist-description h2{font-size:15px}
.workspace .playlist-description p{margin-top:5px}
.workspace .playlist-symbol{font-size:22px;padding:9px 12px;border-radius:8px}
.workspace .stats{gap:16px;margin-bottom:30px}
.workspace .stat{padding:20px;border-radius:10px}
.workspace .stat strong{font-size:30px;margin:10px 0 6px}
.workspace .toolbar{padding:8px 12px;gap:10px;margin-bottom:20px;flex-wrap:wrap}
.workspace .callout{padding:22px;margin-top:26px;border-radius:10px}
.workspace .callout h2{font-size:19px}
.workspace .media-grid{gap:16px}
.workspace .media-card{border-radius:10px;box-shadow:0 1px 3px #24314b04}
dialog{border-radius:12px;box-shadow:0 24px 80px #14203b26}
dialog .dialog-body{gap:16px;padding:24px}
dialog input:not([type=checkbox]),dialog select,.workspace .editor input,.workspace .editor select{padding:8px 10px;border:1px solid #dce2ec;border-radius:6px;font-size:13px;background:#fff;color:#273047;min-width:0}
dialog .dialog-actions{gap:8px;padding-top:8px}
.target-option{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid #e5e9f0;border-radius:7px;font-size:13px;cursor:pointer}
.target-option:has(input:checked){background:#f2f4ff;border-color:#a3adeb}
.target-option input{accent-color:#3c4bdc;width:16px;height:16px;margin:0}
.revision-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 0;border-bottom:1px solid #edf0f5}
.revision-row>div{flex:1;min-width:130px}
.revision-row p{margin-top:4px}
.template-preview{display:grid;place-items:center;width:100%;height:190px;background:#e9edf4;padding:10px;overflow:hidden}
.template-scene{width:100%;max-height:170px;pointer-events:none}
.template-scene [data-resize]{display:none}
.template-card .media-info h3{font-size:13px}
.template-card .media-info p{margin-top:5px}
.template-card .media-foot{padding:9px 12px}
.workspace .editor-header{padding:12px 18px;gap:10px}
.workspace .editor-tools{padding:9px 18px;gap:7px}
.workspace .editor-header input{flex:1;max-width:360px}
@media(max-width:1000px){.workspace .page{padding:24px}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.workspace .page{padding:20px 16px}.workspace h1{font-size:24px}.workspace .page-heading{align-items:flex-start;flex-wrap:wrap}.workspace .topbar{padding:0 16px}.template-grid{grid-template-columns:1fr}dialog .dialog-body{padding:18px}.workspace .editor-header{flex-wrap:wrap}}
.content-card{display:flex;flex-direction:column}
.content-card .media-info{flex:1}
.content-card .media-info h3{white-space:normal;overflow-wrap:anywhere}
.content-card .content-actions{justify-content:flex-start;flex-wrap:wrap;gap:5px}
.content-card .content-actions button{white-space:nowrap}
.content-preview{height:190px;grid-template-columns:minmax(0,1fr)}
.content-scene{width:100%;max-height:170px;justify-self:center}
.tile-placeholder{color:#77839b;font-size:12px;text-align:center;padding:20px}
.preview-caption{font-size:10px;line-height:1.5;color:#8993a5;margin-top:7px}
.screen-preview-wrap{position:relative}
.screen-state{position:absolute;right:10px;top:10px;border:1px solid #dce2ec;border-radius:20px;padding:4px 8px;background:#fffffff2;color:#67738c;font-size:10px;pointer-events:none;box-shadow:0 1px 3px #17223b08}
.screen-state.is-online{color:#237255;border-color:#cbe8dc;background:#effaf5f5}
.content-grid{margin:18px 0 28px}
@media(max-width:1000px){.media-grid.content-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.media-grid.content-grid{grid-template-columns:1fr}}

/* Editor workspace: compact controls, generous stage, contextual inspector. */
.workspace .editor{padding:0;background:#f3f5f8;min-height:calc(100vh - 64px)}
.workspace .editor-header{background:white;margin:0;border-bottom:1px solid #e4e8ef;padding:12px 20px}
.workspace .editor-header input{border-color:transparent;font-weight:600;font-size:15px}
.workspace .editor-tools{background:#fff;margin:0;border-bottom:1px solid #e4e8ef;padding:8px 20px;align-items:center}
.workspace .editor button{border-radius:6px;font-size:12px;padding:7px 10px;min-height:30px}
.workspace .editor-layout{grid-template-columns:240px minmax(280px,1fr) 260px;gap:0;min-height:calc(100vh - 180px)}
.editor-rail{background:#fff;border-right:1px solid #e1e6ef;min-width:0;overflow:auto;max-height:calc(100vh - 180px)}
.editor-tabs{display:flex;padding:12px 10px;gap:4px;border-bottom:1px solid #edf0f5}
.workspace .editor-tabs button{flex:1;border:0;background:transparent;color:#69758b;padding:7px}
.workspace .editor-tabs button[aria-pressed=true]{background:#e9f5f3;color:#146e67}
.editor-library{padding:18px 14px}.editor-library h3,.editor-props h3{font-size:14px;margin:0 0 14px}.editor-library p{font-size:12px;line-height:1.5}
.element-tiles,.editor-media-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}
.element-groups{margin-top:20px}.element-group+.element-group{margin-top:22px}.element-group h4{margin:0 0 9px;font-size:11px;font-weight:600;letter-spacing:.04em;color:#66758b}.element-group .element-tiles{margin-top:0;gap:7px}
.workspace .element-tiles .element-tile{--element-tile-bg:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:82px;padding:11px 5px 10px;border:1px solid transparent;border-radius:9px;background:var(--element-tile-bg);color:#23364f;font-size:11px;line-height:1.3;text-align:center;transition:background .14s,border-color .14s}
.element-tile svg{width:36px;height:36px;color:#397c80;flex-shrink:0}.element-tile span{max-width:100%;overflow-wrap:anywhere}
.workspace .element-tiles .element-tile:hover{--element-tile-bg:#edf6f5;border-color:#c9e6e2;color:#175e62}.workspace .element-tiles .element-tile:focus-visible{outline:2px solid #177a7b;outline-offset:2px;--element-tile-bg:#edf6f5}
.editor-media-grid button{display:flex;flex-direction:column;overflow:hidden;text-align:left;gap:6px;min-width:0}.editor-media-grid img{width:100%;height:75px;object-fit:cover}.editor-media-grid span{font-size:11px;overflow:hidden;text-overflow:ellipsis;max-width:100%}.media-symbol{height:75px;display:grid;place-items:center;background:#edf4f4;width:100%}
.workspace .editor-layers{border:0;padding:14px;max-height:none;border-radius:0}.layer-row.is-selected{background:#edf7f5;border-radius:6px;padding:4px}.workspace .layer-row button:first-child{font-weight:500}
.workspace .editor-props{border:0;border-left:1px solid #e1e6ef;border-radius:0;max-height:calc(100vh - 180px);padding:18px;background:#fff}
.workspace .editor-props label{font-size:12px;margin:12px 0;display:block}.workspace .editor-props input{display:block;width:100%;margin-top:5px}.workspace .editor-props textarea{border:1px solid #dce2ec;border-radius:6px;padding:9px;font:inherit;font-size:13px;min-height:90px}
.editor-advanced{margin:16px 0;border-block:1px solid #e7ebf1;padding:12px 0}.editor-advanced summary,.editor-presets summary{font-size:12px;cursor:pointer;font-weight:600}.editor-advanced[open]{display:block}.editor-presets{margin-left:auto}.editor-presets[open]{display:flex;gap:6px;flex-wrap:wrap}
.workspace .editor-canvas-wrap{padding:40px 28px;align-items:center;justify-content:center;background:radial-gradient(#d6dce5 .7px,transparent .7px) 0 0/12px 12px;min-width:0;position:relative;overflow:auto}.workspace .editor-canvas{flex:none;box-shadow:0 5px 24px #24334c22}
.editor-guides{position:absolute;inset:0;pointer-events:none;z-index:99}.alignment-guide{position:absolute;border-color:#087f83}.alignment-guide.x{top:0;bottom:0;border-left:1px dashed #087f83}.alignment-guide.y{left:0;right:0;border-top:1px dashed #087f83}.alignment-guide.canvas-centre{border-color:#8657d5}.alignment-target{position:absolute;outline:2px dashed #087f83;outline-offset:2px}.alignment-label{position:absolute;background:#fff;color:#075d62;box-shadow:0 1px 5px #0002;border:1px solid #087f83;border-radius:4px;padding:3px 5px;font-size:11px;white-space:nowrap}.alignment-label.canvas-centre{color:#6840ae;border-color:#8657d5}
@media(max-width:1100px){.workspace .editor-layout{grid-template-columns:190px minmax(220px,1fr) 220px}.workspace .editor-canvas-wrap{padding:22px 15px}}
@media(max-width:800px){.workspace .editor-layout{grid-template-columns:1fr}.editor-rail,.workspace .editor-props{max-height:350px}.workspace .editor-canvas-wrap{min-height:300px}.editor-tabs{position:sticky;top:0;background:white;z-index:1}}

.editor-library>input{width:100%;box-sizing:border-box}
/* Focused editor: main navigation becomes a drawer; library and inspector share one panel. */
.shell.is-editing{--editor-nav-width:64px;--editor-panel-width:480px}
.shell.is-editing>.workspace{margin-left:var(--editor-nav-width);width:calc(100% - var(--editor-nav-width));transition:margin-left .28s ease,width .28s ease;min-width:0}
.shell.is-editing .editor-layout{grid-template-columns:var(--editor-panel-width) minmax(0,1fr);height:calc(100dvh - 176px);min-height:440px;position:relative;transition:grid-template-columns .28s cubic-bezier(.2,.7,.2,1)}
.shell.is-editing .editor-rail{position:relative;max-height:none;min-height:0;overflow:hidden;transition:opacity .22s ease,transform .28s cubic-bezier(.2,.7,.2,1);transform:translateX(0);opacity:1}
.editor-browser{height:100%;overflow:auto;transition:transform .24s ease,opacity .24s ease;overscroll-behavior:contain}
.shell.is-editing .editor-props{position:absolute;inset:0;max-height:none;border:0;padding:20px 24px;background:#fff;z-index:3;opacity:0;visibility:hidden;transform:translateX(-28px);pointer-events:none;transition:transform .26s cubic-bezier(.2,.7,.2,1),opacity .22s ease,visibility .26s;overscroll-behavior:contain}
.editor-rail.has-properties>.editor-props{opacity:1;visibility:visible;transform:translateX(0);pointer-events:auto}
.editor-rail.has-properties>.editor-browser{transform:translateX(24px);opacity:0;pointer-events:none}
.editor-inspector-heading{position:sticky;top:-20px;margin:-20px -24px 16px;padding:12px 24px 15px;background:#fff;z-index:2;border-bottom:1px solid #edf0f5}
.workspace .editor-inspector-heading button{display:block;margin:0 0 14px;border:0;background:#edf6f4;color:#176e68;padding:7px 10px}.editor-inspector-heading h3{margin:0;font-size:15px}
.shell.is-editing .editor-library{padding:18px 24px}.shell.is-editing .element-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}.shell.is-editing .editor-media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.shell.is-editing .editor-tabs{padding:12px 20px;position:sticky;top:0;background:#fff;z-index:1}
.shell.is-editing .editor-canvas-wrap{min-height:0;padding:28px;overflow:hidden}.shell.is-editing .editor-canvas{max-height:100%;width:100%;aspect-ratio:auto}
.shell.is-editing .is-panel-hidden .editor-layout{grid-template-columns:0 minmax(0,1fr)}
.shell.is-editing .is-panel-hidden .editor-rail{transform:translateX(-100%);opacity:0;pointer-events:none}
@media(max-width:1250px){.shell.is-editing{--editor-panel-width:400px}.shell.is-editing .element-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.shell.is-editing{--editor-panel-width:340px}.shell.is-editing .editor-canvas-wrap{padding:20px}}
@media(max-width:800px){.shell.is-editing>.sidebar .studio-mark,.shell.is-editing>.sidebar .nav-label,.shell.is-editing>.sidebar .sidebar-bottom{display:block}.shell.is-editing>.sidebar nav{display:grid;max-height:55vh;overflow:auto;margin:28px -10px}.shell.is-editing .editor-layout,.shell.is-editing .is-panel-hidden .editor-layout{grid-template-columns:minmax(0,1fr);height:calc(100dvh - 210px);min-height:380px}.shell.is-editing .editor-rail{position:absolute;inset:0 auto 0 0;width:min(440px,100%);z-index:110;box-shadow:12px 0 30px #14223825}.shell.is-editing .element-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.shell.is-editing .editor-canvas-wrap{grid-column:1;padding:20px}.shell.is-editing .editor-header{padding:10px 14px}.shell.is-editing .editor-tools{padding:8px 14px}}
@media(prefers-reduced-motion:reduce){.shell.is-editing *{transition:none!important;animation:none!important}}
@keyframes editor-workspace-in{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.shell.is-editing .editor{animation:editor-workspace-in .24s ease}
/* Shared inspector rhythm and a visual layer stack. */
.editor-property-content{display:grid;gap:18px;min-width:0;padding-bottom:12px}
.workspace .editor-property-content>label,.workspace .editor-property-content .editor-advanced label{margin:0}
.workspace .editor-property-content>button{justify-self:start;margin:0}
.editor-action-group{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.workspace .editor-action-group button{margin:0;min-height:34px;padding:8px 12px}
.editor-property-content .editor-advanced{margin:0;padding:16px 0}.editor-property-content .editor-advanced[open]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.editor-property-content .editor-advanced summary{grid-column:1/-1}
.editor-arrange{border-top:1px solid #e8edf2;padding-top:18px}.editor-arrange h4{font-size:11px;color:#758298;margin:0 0 12px;font-weight:600}
.workspace .editor-action-group .delete-layer{color:#a13e4b;border-color:#ead5da;background:#fffafb}.workspace .editor-action-group .delete-layer:hover{background:#fbeff2}
.editor-property-content .zone-item{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:center;padding:16px 0}.editor-property-content .zone-item>span{grid-column:1/-1;font-size:12px}.editor-property-content .zone-item button{margin:0;justify-self:start}
.shell.is-editing .editor-layers{padding:20px 24px;background:#f8fafc}
.editor-layer-heading{display:flex;align-items:center;gap:9px}.editor-layer-heading h3{margin:0!important;font-size:14px}.layer-count{display:grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border-radius:7px;background:#e8eef3;font-size:11px;color:#627287}
.workspace .editor-layer-heading button{margin:0 0 0 auto;padding:6px 9px;font-size:11px;background:#fff}
.layer-help{font-size:11px;color:#8290a2;line-height:1.6;margin:12px 0 18px}.layer-list{display:grid;gap:12px}.layer-empty{font-size:12px;color:#77869a;line-height:1.7;border:1px dashed #dce5ed;border-radius:10px;padding:24px 18px}
.layer-card{background:#fff;border:1px solid #e1e8ef;border-radius:11px;padding:12px;box-shadow:0 2px 6px #23364f04;transition:border-color .18s,box-shadow .18s}
.layer-card.is-selected{border-color:#76bfb5;box-shadow:0 0 0 2px #e6f4f0}.layer-card:hover{border-color:#b9d3d1}
.workspace .editor .layer-select{display:flex;align-items:center;gap:12px;width:100%;padding:0;border:0;background:transparent;box-shadow:none;text-align:left;color:#263950;min-width:0}
.layer-thumbnail{display:grid;place-items:center;width:48px;height:48px;border-radius:8px;background:#eef5f5;flex-shrink:0;overflow:hidden}.layer-thumbnail svg{width:30px;height:30px;color:#508589}.layer-thumbnail img{width:100%;height:100%;object-fit:cover}.layer-shape{width:30px;height:30px}.is-hidden .layer-thumbnail{opacity:.45}
.layer-description{display:grid;gap:5px;min-width:0;flex:1}.layer-description strong{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layer-type{font-size:10px;color:#8592a3}
.layer-states{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 0 60px}.layer-states span{font-size:9px;letter-spacing:.02em;padding:3px 6px;background:#eef2f6;border-radius:4px;color:#748397}
.layer-controls{display:flex;align-items:center;gap:7px;border-top:1px solid #f0f3f6;margin-top:12px;padding-top:10px}.layer-control-spacer{flex:1}
.workspace .editor .layer-control{width:30px;height:30px;min-height:30px;display:grid;place-items:center;padding:5px;margin:0;border:1px solid #e4eaf0;border-radius:6px;background:#fff;color:#738499;box-shadow:none}.layer-control svg{width:17px;height:17px}.workspace .editor .layer-control:hover{background:#eef6f5;color:#2c7e78;border-color:#c5e1dd}.workspace .editor .layer-control[aria-pressed=true]{background:#edf4f4;color:#317a77}.workspace .editor .layer-control:disabled{opacity:.3;cursor:default;background:#fff}
.widget-controls{display:grid;gap:12px;min-width:0}.widget-controls>.widget-section{border:1px solid #e4eaf0;border-radius:9px;background:#fff;min-width:0}.widget-section summary{font-size:12px;font-weight:600;padding:12px;cursor:pointer;color:#42566d}.widget-section-body{display:grid;gap:16px;padding:4px 12px 16px;min-width:0}.widget-section .widget-section{border-top:1px solid #edf0f5}.widget-section-body>label{margin:0!important}.widget-help{font-size:11px;color:#8390a2;line-height:1.6;margin:0}.widget-colour>span{display:block;font-size:11px;font-weight:600;color:#65758b;margin-bottom:7px}.widget-colour>div{display:grid;grid-template-columns:38px minmax(70px,1fr) 65px;gap:8px;align-items:center}.workspace .editor-props .widget-colour input{margin:0;height:34px;min-width:0}.workspace .editor-props .widget-colour input[type=color]{padding:4px}.widget-numeric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.workspace .editor-props .widget-check{display:flex;align-items:center;gap:9px;font-weight:500;font-size:12px;margin:0}.workspace .editor-props .widget-check input[type=checkbox]{width:16px;height:16px;margin:0;flex-shrink:0;accent-color:#268d83}.widget-formatting{display:flex;gap:14px;flex-wrap:wrap}.widget-duration-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.widget-controls>button{justify-self:start;margin:6px 0!important}.widget-controls [hidden]{display:none!important}
.editor-alignment-row{display:flex;align-items:center;gap:8px;margin-top:10px}.editor-alignment-row>span{font-size:11px;color:#75849a;flex:1}.workspace .editor .editor-alignment-button{width:38px;height:36px;display:grid;place-items:center;margin:0;padding:8px;border:1px solid #dfe7ee;background:#fff;color:#61758a;border-radius:7px}.editor-alignment-button svg{width:21px;height:21px}.workspace .editor .editor-alignment-button[aria-pressed=true]{background:#e8f6f2;border-color:#8ccdc0;color:#157f70}.workspace .editor .editor-alignment-button:hover{background:#eff8f6;border-color:#abd6ce}
/* Compact property rows and one colour control across the inspector. */
.editor-property-content{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 14px}.editor-property-content>*{grid-column:1/-1}.editor-property-content>label:not([data-field="Layer name"]){grid-column:auto}.editor-property-content>.editor-colour-field{grid-column:auto;align-self:start}
.editor-settings-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px;align-items:start}.editor-text-style-row{display:grid;grid-template-columns:64px minmax(145px,1fr) 105px;gap:12px;align-items:start}.workspace .editor-props .editor-settings-row label,.workspace .editor-props .editor-text-style-row label{margin:0}
.editor-colour-field{min-width:0;align-self:start}.editor-colour-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:6px;min-height:16px}.editor-colour-heading>span{font-size:11px;font-weight:600;color:#65758b}.workspace .editor .editor-colour-heading button{font-size:9px;min-height:16px;padding:1px 4px;border:0;box-shadow:none;background:#f1f5f7;color:#7b8a9b;margin:0;line-height:1.4}.workspace .editor .editor-colour-heading button[aria-pressed=true]{color:#177d70;background:#e7f5f0}
.editor-colour-inputs{display:flex;gap:5px;align-items:center;max-width:164px}.workspace .editor-props .editor-colour-inputs input{margin:0;min-width:0;height:32px;font-size:10px;line-height:1;padding:6px 5px}.workspace .editor-props .editor-colour-inputs input[type=color]{width:27px;flex:0 0 27px;padding:3px;background:repeating-conic-gradient(#dde4e9 0 25%,white 0 50%) 0/8px 8px}.workspace .editor-props .editor-colour-inputs input[type=text]{width:72px;flex:0 1 72px;font-family:monospace}.workspace .editor-props .editor-colour-inputs input[type=number]{width:40px;flex:0 0 40px;padding-right:0}
.widget-section-body{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}.widget-section-body>.widget-section,.widget-section-body>.widget-help,.widget-section-body>.widget-numeric-grid,.widget-section-body>.widget-duration-fields,.widget-section-body>.editor-action-group,.widget-section-body>.widget-formatting{grid-column:1/-1}.widget-section-body>.widget-check{align-self:center;min-height:30px}.widget-section-body>label:has(select[aria-label$="Font"]){grid-column:1/-1}.widget-section-body>.widget-section .widget-section-body{grid-template-columns:repeat(2,minmax(0,1fr))}.widget-section-body>label{min-width:0}
@media(max-width:1000px){.editor-text-style-row{grid-template-columns:64px minmax(145px,1fr)}.editor-text-style-row>label:last-child{grid-column:1/-1}.widget-section-body,.widget-section-body>.widget-section .widget-section-body{grid-template-columns:1fr}.widget-section-body>*{grid-column:1!important}.editor-settings-row{grid-template-columns:1fr}}
.widget-section-body>.editor-text-style-row{grid-column:1/-1}.widget-section-body>.editor-text-style-row label{margin:0!important}
/* Prevent focus during a panel transition from horizontally scrolling its container. */
.shell.is-editing .editor-rail{overflow:clip}
.workspace .editor-props .editor-text-style-row>label{display:grid;grid-template-rows:16px auto;gap:6px;align-self:start}.workspace .editor-props .editor-text-style-row>label input,.workspace .editor-props .editor-text-style-row>label select{margin-top:0}

.catalogue-source-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px;border:1px solid var(--border,#dce3e7);border-radius:8px;min-width:0}.catalogue-source-row span{overflow-wrap:anywhere;flex:1}.catalogue-trim{grid-column:1/-1;display:grid;gap:10px}.catalogue-trim-row{display:grid;grid-template-columns:65px minmax(85px,1fr) 32px 32px;gap:8px;align-items:center}.catalogue-trim-row button{padding:5px;min-height:32px}.catalogue-trim-range{display:grid;gap:8px}.widget-section-body>p,.widget-section-body>.catalogue-source-row{grid-column:1/-1}

/* Shared, collapsible page navigation. Editor expansion overlays its 64px rail. */
.shell{--navigation-space:64px;--navigation-width:64px;display:flex}
.shell>.sidebar{position:fixed;inset:0 auto 0 0;z-index:230;width:var(--navigation-width);height:100dvh;padding:18px 10px 12px;display:flex;flex-direction:column;gap:0;background:#171e34;border-right:1px solid #ffffff0d;transform:none;visibility:visible;overflow:visible;transition:width .25s cubic-bezier(.2,.7,.2,1),box-shadow .25s}
.shell>.workspace,.shell.is-editing>.workspace{margin-left:var(--navigation-space);width:calc(100% - var(--navigation-space));min-width:0;transition:margin-left .25s cubic-bezier(.2,.7,.2,1),width .25s cubic-bezier(.2,.7,.2,1)}
.sidebar-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;height:60px;flex-shrink:0;margin-bottom:18px}
.sidebar-brand{min-width:0;overflow:hidden}.sidebar-brand .brand{font-size:22px;letter-spacing:-.8px}.sidebar-brand .studio-mark{font-size:8px;margin:5px 0 0 2px;letter-spacing:3px}
.brand-details{white-space:nowrap;padding-left:8px}.brand-monogram{display:none;width:32px;height:32px;place-items:center;border:1px solid #ffffff18;border-radius:9px;background:#ffffff05;color:#8ee0d7;font-size:11px;font-weight:700;letter-spacing:.5px}
.sidebar-toggle{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border:1px solid #ffffff16;border-radius:8px;background:#ffffff06;color:#b8c4db;padding:7px}.sidebar-toggle:hover{background:#ffffff13;color:#fff}.sidebar-toggle svg{width:18px;height:18px}
.sidebar-workspace{margin:0 0 20px;flex-shrink:0;min-height:40px}.workspace-details{padding:0 8px}.shell>.sidebar .nav-label{margin:0 0 9px;font-size:9px;letter-spacing:1.6px}.shell>.sidebar select{padding:10px;font-size:11px;border-color:#34405b;background:#202940}
.workspace-short{display:grid;place-items:center;width:40px;height:40px;margin:0 auto;padding:10px;border:1px solid #ffffff12;border-radius:9px;color:#a8b8d3;background:#ffffff04}.workspace-short svg{width:20px;height:20px}.workspace-short:hover{background:#ffffff0d;color:#fff}
.shell>.sidebar nav,.shell.is-editing>.sidebar nav{display:flex;flex-direction:column;gap:5px;flex:1;min-height:0;max-height:none;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;margin:0;padding:0;scrollbar-width:thin;scrollbar-color:#46506b transparent}
.shell>.sidebar .nav-item{display:flex;align-items:center;gap:12px;flex-shrink:0;width:100%;min-height:44px;margin:0;padding:11px 12px;border-radius:9px;color:#9eacc8;background:transparent;white-space:nowrap;text-align:left;font-size:12px;line-height:20px;box-shadow:none;position:relative}
.shell>.sidebar .nav-item:hover{color:#eef4ff;background:#ffffff08}.shell>.sidebar .nav-item.active{color:#edfdfa;background:#74d8cc13;box-shadow:inset 2px 0 #6be0d3}.shell>.sidebar .nav-item.active .nav-icon{color:#8ee0d7}
.nav-icon{display:grid;place-items:center;flex:0 0 20px;width:20px;height:20px}.nav-icon svg{display:block;width:20px;height:20px}.nav-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shell>.sidebar .sidebar-bottom{display:block;margin-top:16px;padding:14px 0 0;border-top:1px solid #ffffff10;flex-shrink:0}.profile-details{padding:0 12px 12px;overflow:hidden;white-space:nowrap}.profile-details .user-name{font-size:12px;overflow:hidden;text-overflow:ellipsis}.profile-details .small{font-size:10px;color:#7d8ca9}
.sidebar-avatar{display:grid;place-items:center;width:28px;height:28px;margin:0 auto 10px;border-radius:50%;background:#ffffff09;color:#c1cce0;font-size:9px;font-weight:600}
.is-nav-collapsed>.sidebar .sidebar-heading{height:80px;flex-direction:column;gap:12px;justify-content:flex-start;margin-bottom:14px}.is-nav-collapsed>.sidebar .brand-monogram{display:grid}.is-nav-collapsed>.sidebar .brand-details{display:none}
.is-nav-collapsed>.sidebar .sidebar-details{visibility:hidden;opacity:0;height:0;max-height:0;margin:0;padding:0;overflow:hidden;pointer-events:none}.is-nav-collapsed>.sidebar .nav-text{display:none}.is-nav-collapsed>.sidebar .nav-item{justify-content:center;padding:11px 12px;gap:0}
.is-nav-collapsed>.sidebar .sidebar-bottom{padding-top:12px;margin-top:12px}.is-nav-collapsed>.sidebar .sidebar-workspace{margin-bottom:18px}
.sidebar [hidden]{display:none!important}.shell>.sidebar button:focus-visible,.shell>.sidebar select:focus-visible{outline:2px solid #83ded3;outline-offset:-3px}
.navigation-backdrop{position:fixed;inset:0;z-index:220;border:0;border-radius:0;background:#111a2a40;backdrop-filter:blur(2px);cursor:default;animation:navigation-shade-in .2s ease}
.nav-overlay-open>.sidebar{box-shadow:12px 0 40px #10203530}
.navigation-tooltip{position:fixed;z-index:260;max-width:min(260px,calc(100vw - 84px));padding:8px 11px;background:#202a40;border:1px solid #ffffff16;border-radius:7px;color:#f3f6fc;box-shadow:0 6px 18px #101b3026;font-size:11px;font-weight:500;line-height:1.5;pointer-events:none;overflow-wrap:anywhere}
.navigation-tooltip[hidden],.navigation-backdrop[hidden]{display:none}
@keyframes navigation-shade-in{from{opacity:0}to{opacity:1}}
@media(max-height:650px){.shell>.sidebar{padding-top:12px}.sidebar-heading{margin-bottom:10px}.is-nav-collapsed>.sidebar .sidebar-heading{height:72px;margin-bottom:10px}.shell>.sidebar .sidebar-workspace{margin-bottom:12px}.shell>.sidebar .nav-item{min-height:40px;padding-top:9px;padding-bottom:9px}.shell>.sidebar .sidebar-bottom{margin-top:8px;padding-top:8px}}
@media(prefers-reduced-motion:reduce){.shell>.sidebar,.shell>.workspace,.navigation-backdrop{transition:none!important;animation:none!important}}
