.studio-shell{display:grid;grid-template-columns:minmax(380px,1fr) minmax(0,1.15fr);gap:24px;align-items:start}
.studio-controls{min-width:0}
.studio-controls .sm-bar{display:block;padding:16px}.sm-bar-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.sm-bar-state{font-size:11px;color:#a9b8ba;text-align:right;min-width:0}.sm-selector-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sm-field{display:flex;flex-direction:column;gap:6px;min-width:0}.sm-field>span{font-size:10px;color:#a9b8ba;text-transform:uppercase;letter-spacing:.08em;font-weight:700}.sm-field select{width:100%;min-width:0;max-width:none;overflow:hidden;text-overflow:ellipsis}.sm-actions{grid-column:1/-1;display:flex;gap:8px}.sm-actions button:first-child{flex:1}.studio-controls .sm-bar select{max-width:100%;min-width:0}
.studio-controls .mode-banner{flex-wrap:wrap}.studio-controls .tab-nav{position:sticky;top:0;z-index:8;background:#10191b}
.studio-preview{position:sticky;top:20px;min-width:0;margin:0!important;padding:20px!important;border-color:#7c3aed42!important}
.preview-toolbar{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:14px}.preview-toolbar h2{margin:0;font-size:19px}
.preview-toggle{display:flex;padding:4px;background:#0b0e17;border:1px solid #ffffff18;border-radius:8px;gap:4px}
.preview-toggle button{padding:9px 12px;font-size:12px;border:0;border-radius:5px;background:transparent;color:#a8a29e}
.preview-toggle button[aria-pressed=true]{background:#ff2d3f;color:#fafaf9;font-weight:800}
#preview-mount{position:relative;width:100%;height:auto!important;aspect-ratio:16/9;margin:0;overflow:hidden;border-radius:8px;background:linear-gradient(#07120aa0,#07120aa0),url('/assets/stadium-night.webp') center/cover}
#preview-mount .preview-canvas{position:absolute;left:0;top:0;width:1920px;height:1080px;transform-origin:top left}
#preview-mount .preview-canvas #overlay-root{position:absolute;width:1920px;height:1080px;inset:0;padding:22px 0 0}
#preview-mount .preview-canvas #overlay-root[data-layout=corner]{padding:16px 0 0 16px}
#preview-mount iframe{position:absolute;left:0;top:0;width:1920px;height:1080px;border:0;transform-origin:top left;pointer-events:none}
#preview-mount[data-mode=example] .preview-canvas{visibility:hidden}
#preview-mount[data-mode=live] iframe{visibility:hidden}
.preview-status{font-size:12px;color:#a8b7b9;margin:12px 0 20px;line-height:1.5}
.studio-header .studio-mark{width:174px;height:100px;background:none;border:none;box-shadow:none;flex:none;border-radius:0}
.studio-header .studio-mark img{width:100%;height:100%;object-fit:contain}
.studio-header .studio-wordmark .l1{font-size:22px}.studio-header .studio-wordmark .l2{font-size:10px}
.owner-badge{display:inline-flex;margin-left:8px;color:#e7e5e4;font-size:10px;font-weight:800;gap:5px;white-space:nowrap}
#current-user-pill{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.studio-controls .site-footer{margin-top:28px}
#preview-mount .preview-canvas #stats-panel{transform:translateY(-50%) scale(var(--ov-scale,1));transform-origin:top right}
@media(max-width:1050px){.studio-shell{grid-template-columns:minmax(300px,1fr) minmax(0,1fr);gap:16px}.preview-toolbar{flex-wrap:wrap}.studio-header{flex-wrap:wrap}}
@media(max-width:780px){.studio-shell{display:flex;flex-direction:column;gap:16px}.studio-controls{width:100%}.studio-preview{order:-1;top:0;width:100%;z-index:20;padding:10px!important;background:#141110!important}.studio-preview>.hint,.studio-preview>.field-row,.studio-preview>#widget-link-copied{display:none}.preview-status{margin:7px 0 0;font-size:10px}.preview-toolbar{margin-bottom:8px}.preview-toolbar h2{font-size:15px}.preview-toggle button{padding:7px 10px}.studio-header{padding:12px!important;margin-bottom:12px}.studio-header .studio-mark{width:145px;height:80px}.studio-header .studio-wordmark .l1{font-size:15px}.studio-header .studio-wordmark .l2{font-size:9px}.studio-controls .tab-nav{position:static}.mobile-widget-link{display:block!important}}
@media(max-width:520px){.sm-selector-grid{grid-template-columns:1fr}.sm-actions{grid-column:auto}.sm-bar-state{font-size:10px}.sm-actions button{min-height:42px}}
