.preview-footer{justify-content:flex-end}
body:not(.preview-expanded) .live-section{padding-top:24px;padding-bottom:28px}
body:not(.preview-expanded) .live-section .section-heading{margin-bottom:14px;gap:24px}
body:not(.preview-expanded) .live-section .section-heading h2{font-size:36px;line-height:1.15}
body:not(.preview-expanded) .live-section .section-heading p{margin:0;font-size:15px;line-height:1.6;max-width:420px}
body:not(.preview-expanded) .preview-toolbar{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:6px 0 12px}
body:not(.preview-expanded) .product-toolbar,body:not(.preview-expanded) .real-preview-controls{display:contents}
body:not(.preview-expanded) .preview-toolbar .live-indicator{margin-right:auto;font-size:11px;white-space:nowrap}
body:not(.preview-expanded) .preview-toolbar .toolbar-actions{gap:6px;margin:0;flex:none}
body:not(.preview-expanded) .preview-toolbar .personalise{min-height:40px;padding:8px 12px;font-size:11px;gap:7px}
body:not(.preview-expanded) .preview-toolbar .template-select{width:200px;min-width:0;flex:none}
body:not(.preview-expanded) .preview-toolbar .template-select-label{display:none}
body:not(.preview-expanded) .preview-toolbar .template-select select{margin:0;min-height:40px;padding:8px 30px 8px 12px;font-size:12px}
@media(max-width:800px){body:not(.preview-expanded) .live-section .section-heading{display:block}body:not(.preview-expanded) .live-section .section-heading p{margin-top:8px}body:not(.preview-expanded) .preview-toolbar{flex-wrap:wrap;gap:8px}body:not(.preview-expanded) .preview-toolbar .template-select{flex-basis:100%;width:100%}}
@media(max-width:600px){body:not(.preview-expanded) .live-section{padding-top:20px;padding-bottom:24px}body:not(.preview-expanded) .live-section .section-heading h2{font-size:30px;max-width:none}body:not(.preview-expanded) .live-section .section-heading p{font-size:14px}body:not(.preview-expanded) .preview-toolbar .personalise{min-height:44px;padding:8px 10px;font-size:10px}body:not(.preview-expanded) .preview-toolbar .template-select select{min-height:44px}}
/* Give the popup one compact toolbar and devote the rest to the real website. */
.preview-expanded .hero-product{inset:8px;padding:10px 12px;gap:8px;max-width:none;max-height:none;display:flex;flex-direction:column}
.preview-expanded .preview-toolbar{display:flex;align-items:center;gap:10px;flex:none;min-width:0}
.preview-expanded .product-toolbar,.preview-expanded .real-preview-controls{display:contents}
.preview-expanded .live-indicator{order:0;margin-right:auto;white-space:nowrap;font-size:11px}
.preview-expanded .template-select{order:1;flex:none;width:200px;min-width:0;font-size:11px}
.preview-expanded .template-select-label{display:none}
.preview-expanded .template-select select{margin:0;min-height:36px;height:36px;padding:7px 30px 7px 10px;font-size:12px}
.preview-expanded .device-controls{order:2;gap:4px;flex:none}
.preview-expanded .device-controls button{min-height:36px;padding:7px 10px;font-size:11px}
.preview-expanded .toolbar-actions{order:3;display:flex;gap:6px;margin:0;flex:none;align-items:center}
.preview-expanded .personalise,.preview-expanded #expand-preview,.preview-expanded #use-template{min-height:36px;padding:7px 10px;gap:7px;font:500 11px/1.4 var(--heading-font);margin:0;white-space:normal}
.preview-expanded .toolbar-actions svg{width:13px;height:13px}
.preview-expanded .preview-footer{display:none}
.preview-expanded .real-stage{flex:1;min-height:0;height:auto;margin:0;border-radius:6px}
.preview-expanded .personalisation{padding:0;margin:0;gap:12px;flex:none}
.preview-expanded .personalisation label{font-size:10px}
.preview-expanded .personalisation input{min-height:36px;height:36px;padding:7px 10px;font-size:12px}
@media(max-width:900px){.preview-expanded .live-indicator{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.preview-expanded .template-select{flex:1;width:auto}.preview-expanded .preview-toolbar{gap:8px}}
@media(max-width:650px){.preview-expanded .hero-product{inset:4px;padding:8px;gap:6px;border-radius:8px}.preview-expanded .preview-toolbar{flex-wrap:wrap;gap:6px}.preview-expanded .template-select{flex:1;min-width:100px}.preview-expanded .template-select select{min-height:44px;height:44px;font-size:12px}.preview-expanded .device-controls button{min-height:44px;padding:8px 9px;font-size:11px}.preview-expanded .toolbar-actions{flex-basis:100%;gap:6px;width:100%}.preview-expanded .personalise,.preview-expanded #expand-preview,.preview-expanded #use-template{flex:1;min-width:0;min-height:44px;padding:7px 8px;gap:5px;font-size:11px}.preview-expanded .personalisation{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.preview-expanded .personalisation input{min-width:0;width:100%;min-height:44px;height:44px}.preview-expanded .real-stage{min-height:0}}

/* A single, ordered header for the live preview. */
.v2-home #live-design{border-top:0}
.v2-home #live-design .section-heading{display:block;margin-bottom:12px}
.v2-home #live-design .section-heading h2{padding-bottom:0}
.v2-home #live-design .section-heading h2:after{display:none}
.v2-home #live-design .section-heading p{margin:6px 0 0;max-width:none;font-size:15px;line-height:1.6}
.v2-home:not(.preview-expanded) .preview-toolbar{padding:0 0 14px;gap:12px}
.v2-home:not(.preview-expanded) .preview-toolbar .live-indicator{margin-right:4px}
.v2-home:not(.preview-expanded) .preview-toolbar .toolbar-actions{margin-left:auto}
@media(max-width:900px){
 .v2-home:not(.preview-expanded) .preview-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 8px}
 .v2-home:not(.preview-expanded) .preview-toolbar .live-indicator{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}
 .v2-home:not(.preview-expanded) .preview-toolbar .template-select{grid-row:1;grid-column:1;width:100%;min-width:0}
 .v2-home:not(.preview-expanded) .preview-toolbar .device-controls{grid-row:1;grid-column:2;justify-self:end}
 .v2-home:not(.preview-expanded) .preview-toolbar .template-select select{min-height:44px;font-size:14px}
 .v2-home:not(.preview-expanded) .preview-toolbar .device-controls button{min-height:44px}
 .v2-home:not(.preview-expanded) .preview-toolbar .toolbar-actions{grid-row:2;grid-column:1/-1;display:flex;width:100%;margin:0;gap:8px}
 .v2-home:not(.preview-expanded) .preview-toolbar .personalise{flex:1;justify-content:center;min-height:44px;font-size:12px}
}

/* Keep the inline chooser minimal; device switching belongs to the full-size viewer. */
.v2-home #preview-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.v2-home:not(.preview-expanded) #live-preview .device-controls{display:none}
@media(max-width:900px){.v2-home:not(.preview-expanded) #live-preview .template-select{grid-column:1/-1}}
