/* Configurazione: il risultato resta accanto agli strumenti, con scorrimenti separati. */
.mobile-model-navigation{display:none}
.editor-mode.phone-browse .mobile-model-navigation:not([hidden]){display:flex;align-items:center;justify-content:space-between;gap:12px;margin:6px 0;font-size:13px}
.phone-browse .mobile-model-navigation .button{min-width:44px;min-height:44px;padding:8px 14px}
.editor-mode.phone-browse .demo-introduction,.editor-mode.phone-browse .demo-open-action,.editor-mode.phone-browse .workspace-launch,.editor-mode.phone-browse .preview-controls,.editor-mode.phone-browse .preview-view-controls,.editor-mode.phone-browse .orientation-hint,.editor-mode.phone-browse .workspace-note{display:none!important}
.editor-mode.phone-browse .editor-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.editor-mode.phone-browse .preview-workspace{flex:1;min-height:0;width:100%;order:0}
.editor-mode.phone-browse .workspace-tools{flex-wrap:wrap;margin-bottom:6px;padding:6px}
.editor-mode.phone-browse .demo-page-controls{width:100%;flex-basis:100%;justify-content:center;gap:7px}
.editor-mode.phone-browse .demo-page-controls label{font-size:0;flex:1}
.editor-mode.phone-browse .demo-page-controls select{width:100%;max-width:none;font-size:14px;min-height:44px}
.editor-mode.phone-browse .demo-page-controls>button{min-width:44px;min-height:44px}
.editor-mode.phone-browse .workspace-actions{justify-content:space-between;gap:8px}
.editor-mode.phone-browse .workspace-actions .button{min-height:44px}
.continuous-picker{padding:12px}.picker-intro{font-size:12px;margin-bottom:8px}.picker-plane{height:88px;margin:10px 8px 14px}.continuous-picker input.picker-hue{height:18px;margin:7px 0 10px}.continuous-picker .picker-label{font-size:12px;margin:6px 0}.picker-exact{margin:8px 0;gap:6px}.picker-exact button{padding:8px;font-size:11px}.picker-exact label{min-width:85px}.continuous-picker .picker-exact input{padding:8px;margin-top:4px;font-size:14px}.picker-fine,.picker-harmonies{border:0!important;padding:0!important}.continuous-picker summary{font-size:12px!important;padding:8px 0!important;cursor:pointer;min-height:32px}.picker-palettes{gap:7px;margin:6px 0}.picker-palettes button{font-size:11px;min-height:56px;padding:6px}.picker-samples{height:16px;margin-bottom:5px}.picker-result{font-size:11px;margin-top:6px}.color-target-label{font-size:13px!important;font-weight:600}.color-target-label select{width:100%;display:block;margin:6px 0 10px;padding:9px;background:#101b14;color:#fff;border:1px solid #72846b;border-radius:6px;font-size:14px}.palette-roles{display:none}#reset-color,#fix-contrast{margin-top:8px;padding:7px 10px;background:#293b2d;border:1px solid #6e7f67;color:#eee6d7;border-radius:6px;font-size:12px}#fix-contrast[hidden]{display:none}#contrast-report{font-size:11px;line-height:1.5;margin:9px 0}/* La Home ha sezioni riconoscibili, non pagine sovrapposte. */
.home-section-nav{position:sticky;top:0;z-index:8;display:flex;justify-content:center;gap:6px;flex-wrap:wrap;padding:8px;background:#142219f5;border-bottom:1px solid #69715b}.home-section-nav a{padding:8px 12px;border-radius:5px;font-size:12px;color:#d9e1d4}.home-section-nav a[aria-current=true]{background:#d2b27c;color:#17221a}.home-sections{scroll-behavior:smooth;scroll-snap-type:y proximity;scroll-padding-top:58px}.home-sections main>section{scroll-snap-align:start;scroll-margin-top:58px;min-height:min(680px,calc(100svh - 58px));border-top:1px solid #56624c;padding-block:58px}.home-sections .hero{border-top:0}.home-color-dialog{width:min(1100px,96vw);max-width:96vw;height:min(660px,94dvh);max-height:94dvh;margin:auto;padding:16px;background:#17251d;color:#eee;border:1px solid #8a987d;border-radius:12px;overflow:hidden}.home-color-dialog::backdrop{background:#000b}.home-color-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:12px}.home-color-dialog>header h2{font-size:20px;letter-spacing:-.3px}.home-color-dialog>header button{border:1px solid #849079;background:#24382a;color:#eee;padding:8px 16px;border-radius:6px}.home-color-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:20px;height:calc(100% - 54px)}.home-color-stage,.home-color-tools{min-height:0;overflow:auto;overscroll-behavior:contain}.home-color-tools .continuous-picker{margin:0}.home-color-tools label{font-size:12px}.home-color-stage .preview-panel{height:373px}.home-color-stage .restaurant,.home-color-stage .appointments,.home-color-stage .workflow{background:var(--preview-soft);color:var(--preview-ink)}.home-color-stage .quiet,.home-color-stage .app-note,.home-color-stage .flow-list small,.home-color-stage #flow-status,.home-color-stage .slot-status{color:var(--preview-ink)}.home-color-stage .appointment-box{background:var(--preview-surface,var(--preview-soft))}.home-color-stage .restaurant-text{background:#000a;color:#fff}.home-color-stage .restaurant-text h2{color:white}.home-color-dialog .picker-intro{display:none}

/* Spazio di lavoro: comandi unificati, anteprima completa e richiesta sempre visibile. */
.editor-mode{height:100dvh;overflow:hidden}.editor-mode .masthead,.editor-mode .header{height:62px}.editor-mode .header{padding-block:6px;min-height:0;display:flex;flex-direction:row;flex-wrap:nowrap;gap:14px}.editor-mode .header .brand{flex:0 1 185px;margin:0}.editor-mode .header .brand img{width:185px;height:auto}.editor-mode .header nav{gap:20px!important}.editor-mode .header .compact{width:auto;flex:none;margin:0;font-size:12px;padding:10px 16px}.editor-mode .wrap{width:calc(100% - 28px);max-width:none}.editor-mode .inner-page{padding:0;min-height:0}.editor-mode .crumb,.editor-mode #editor-notice,.editor-mode .full-footer{display:none}.editor-mode .editor-top{padding:8px 0;margin:0;display:block}.editor-mode .editor-top .eyebrow{display:none}.editor-mode .editor-top h1{font-size:20px;line-height:1.25;letter-spacing:-.4px}.workspace-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:7px 10px;margin-bottom:10px;background:#223429;border:1px solid #687961;border-radius:8px}.demo-page-controls{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.demo-page-controls>button{border:1px solid #8b967e;background:#16231a;color:#eee4cf;border-radius:5px;min-width:34px;min-height:34px}.demo-page-controls label{display:flex;align-items:center;gap:8px;font-size:12px;min-width:0}.demo-page-controls select,.preview-view-controls select{background:#101c15;color:#eee;border:1px solid #6c7c64;border-radius:5px;padding:7px;font-size:13px;max-width:100%;min-width:0}.demo-page-controls>span{font-size:12px;white-space:nowrap}.editor-mode .preview-controls{display:flex;align-items:center;gap:8px;margin:0;flex-shrink:0}.editor-mode .preview-controls button{font-size:12px;min-height:34px;padding:5px 10px}.preview-view-controls{display:flex;align-items:center;gap:8px}.preview-view-controls label{font-size:12px;display:flex;align-items:center;gap:7px}#preview-scale{font-size:11px;color:#dbddcf;min-width:110px}.editor-mode .editor-grid{display:grid;grid-template-columns:250px minmax(0,1fr);gap:12px;align-items:stretch;min-height:0;margin:0}.editor-mode .editor-controls{overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;display:block;padding:10px;min-height:0}.editor-mode .editor-controls>details{margin:0;padding:5px 0}.editor-mode .editor-controls>details>summary{font-size:13px;padding:8px 0;min-height:36px}.editor-mode .editor-controls label{margin-top:10px}.editor-mode .editor-controls .continuous-picker label{margin-top:0}.editor-mode .editor-controls .toolbar{margin:0 0 6px}.editor-mode .editor-controls .toolbar button{font-size:12px;padding:6px 10px;min-height:34px}.editor-mode .continuous-picker input[type=range]{min-height:20px}.editor-mode .color-target-label select{margin:4px 0 8px;padding:8px;font-size:14px}.editor-mode .continuous-picker .picker-exact input{padding:7px;font-size:14px}.editor-mode .continuous-picker .picker-label{margin:4px 0}.editor-mode .editor-controls .color-target-label{margin:6px 0}.editor-mode .continuous-picker .picker-exact label{margin:0}.editor-mode .continuous-picker .picker-hue{margin-bottom:5px}.editor-mode .preview-workspace{display:flex;flex-direction:column;min-height:0;overflow:hidden}.editor-mode #live-preview{flex:1;min-height:0;width:100%;max-width:100%;overflow:auto;overscroll-behavior:contain;transition:none;background:#101a14;border:1px solid #64715e;display:flex;align-items:flex-start;justify-content:center}.demo-page-frame{position:relative;flex:none}.demo-paper{position:absolute;top:0;left:0;transform-origin:top left;container-type:inline-size}.editor-mode .preview-workspace>.small-copy{margin:4px 0 0;font-size:10px;flex:none}.editor-mode .demo-header{position:static}.editor-mode #live-preview:focus-visible{outline:3px solid #e3c58a;outline-offset:-3px}.workspace-actions{display:flex;gap:12px;align-items:center;padding:8px 0}.workspace-actions .workspace-note{font-size:12px;color:#c5d0bd;margin-right:auto}.workspace-actions .button{font-size:13px;padding:11px 15px;min-height:42px}.workspace-actions #back-catalog{border-color:#d1b37b;color:#edd4a5;background:#263b2a;box-shadow:0 0 14px #c6ad5d17}#toggle-editor-controls{display:none;border:1px solid #809373;background:#1c3022;color:#f1e8d8;border-radius:5px;padding:8px 10px;font-size:12px}
@media(max-width:1100px){.workspace-tools{gap:8px}.preview-view-controls{width:100%}.editor-mode .editor-grid{grid-template-columns:235px minmax(0,1fr)}}
@media(max-width:850px){.editor-mode .masthead,.editor-mode .header{height:54px}.editor-mode .header .brand{flex-basis:155px}.editor-mode .header .brand img{width:155px}.editor-mode .header nav{display:none}.editor-mode .header .compact{font-size:11px;padding:8px 10px}.editor-mode .wrap{width:calc(100% - 20px)}.editor-mode .editor-top h1{font-size:17px}.workspace-tools{padding:5px;gap:6px;margin-bottom:6px}.demo-page-controls{width:100%;flex-basis:100%}.demo-page-controls label{flex:1}.demo-page-controls select{max-width:70%}.preview-view-controls{width:auto;flex-wrap:wrap;gap:5px}.preview-view-controls label{font-size:11px}#preview-scale{min-width:0;font-size:10px}.editor-mode .preview-controls button{padding:5px 8px;font-size:11px}.editor-mode #expand-preview{display:none}#toggle-editor-controls{display:block}.editor-mode .editor-grid{display:flex;flex-direction:column;gap:8px}.editor-mode .preview-workspace{flex:1;order:0}.editor-mode .editor-controls{display:none}.editor-mode .show-controls .editor-controls{display:block;flex:1;order:1}.editor-mode .show-controls .preview-workspace{flex:0 0 45%;min-height:100px}.editor-mode .preview-workspace>.small-copy{display:none}.workspace-actions{gap:7px;justify-content:space-between}.workspace-actions .workspace-note{display:none}.workspace-actions .button{font-size:12px;padding:10px;min-height:44px}.home-color-layout{grid-template-columns:1fr;height:calc(100% - 50px);grid-template-rows:minmax(180px,45%) minmax(0,1fr);gap:12px}.home-color-dialog{height:94dvh;padding:12px}.home-color-dialog>header h2{font-size:16px}.home-color-stage .preview-panel{height:373px}.home-color-tools{border-top:1px solid #6b7961;padding-top:10px}.home-section-nav a{font-size:11px;padding:7px}.home-sections main>section{min-height:0;padding-block:40px}}
@media(max-width:850px) and (orientation:landscape){.editor-mode .masthead,.editor-mode .header{height:42px}.editor-mode .header .brand img{width:120px}.editor-mode .editor-top{display:none}.workspace-tools{flex-wrap:nowrap}.demo-page-controls{width:auto;flex-basis:auto}.demo-page-controls label{font-size:0}.demo-page-controls select{max-width:140px}.preview-view-controls label{font-size:0}.editor-mode .preview-controls{display:none}#preview-scale{display:none}.editor-mode .show-controls{display:grid;grid-template-columns:225px minmax(0,1fr)}.editor-mode .show-controls .editor-controls{order:0}.editor-mode .show-controls .preview-workspace{order:1}.workspace-actions{padding:5px 0}.workspace-actions .button{padding:6px 10px;min-height:36px}}
@media(prefers-reduced-motion:reduce){.home-sections{scroll-behavior:auto;scroll-snap-type:none}}
/* Avviso mobile non bloccante, chiudibile per la sessione della scheda. */
.orientation-hint{display:flex;align-items:center;gap:10px;margin:0 0 8px;padding:8px 10px;border:1px solid #a58b56;border-radius:8px;background:#24392c;color:#f3eddc;font-size:13px;line-height:1.4}
.orientation-hint[hidden]{display:none}
.orientation-hint span{flex:1;min-width:0}
.orientation-hint button{flex:none;min-width:44px;min-height:44px;padding:0;border:1px solid #a58b56;border-radius:6px;background:#17281d;color:#f3eddc;font-size:24px;cursor:pointer}
.orientation-hint button:focus-visible{outline:2px solid #f3eddc;outline-offset:2px}

/* Presentazione breve: i dettagli restano apribili, senza ripetere un secondo hero. */
.demo-about{border-top:1px solid color-mix(in srgb,var(--demo-ink) 20%,transparent)}.demo-about>summary{padding:12px 24px;font-size:15px;min-height:44px;cursor:pointer;color:var(--demo-ink)}.demo-about .demo-story{padding-top:20px;padding-bottom:24px}.editor-mode .demo-header{padding:14px 24px}.editor-mode .demo-footer{padding:12px 24px;min-height:46px}.editor-mode .demo-copy{padding:28px 30px}.editor-mode .demo-photo{min-height:280px;max-height:360px;object-fit:cover}.editor-mode .layout-editorial .demo-copy{padding-top:30px;padding-bottom:30px}
@container(max-width:650px){.editor-mode .demo-photo{min-height:0;max-height:220px}.editor-mode .demo-copy{padding:25px}.editor-mode .demo-header{padding:16px 20px}.editor-mode .demo-footer{padding:12px 20px}}
.demo-about>summary::after{content:"+";float:right;margin-left:16px;font-size:18px}.demo-about[open]>summary::after{content:"−"}.demo-about>summary:focus-visible{outline:2px solid var(--demo-ink);outline-offset:-3px}
/* Anteprima iniziale: maggiore area utile senza cambiare lo zoom del browser. */
@media(min-width:851px){
 .editor-mode .masthead,.editor-mode .header{height:50px}
 .editor-mode .header{padding-block:3px}
 .editor-mode .header .brand img{width:168px}
 .editor-mode .header .compact{padding:7px 13px}
 .editor-mode .wrap{width:calc(100% - 12px)}
 .editor-mode .editor-top{padding:4px 0}
 .editor-mode .editor-top h1{font-size:18px;line-height:1.2}
 .editor-mode .workspace-tools{padding:4px 8px;margin-bottom:5px;gap:8px}
 .editor-mode .editor-grid{grid-template-columns:230px minmax(0,1fr);gap:8px}
 .editor-mode .workspace-actions{padding:5px 0}
 .editor-mode .workspace-actions .button{min-height:36px;padding:8px 12px}
}

/* Ingresso alla demo: spiegazione breve al posto dei controlli di modifica. */
.editor-mode .editor-grid>.editor-controls{display:none}
.editor-mode .demo-introduction{display:flex;flex-direction:column;gap:12px;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 13px;border:1px solid #61715a;border-radius:8px;background:linear-gradient(145deg,#29382b,#1c2b21);color:#e8e7df}
.demo-introduction .eyebrow{font-size:10px;letter-spacing:1.3px;margin:0 0 6px;color:#d2b27c}
.demo-introduction h2{font-size:20px;line-height:1.15;letter-spacing:-.35px;margin:0}
.demo-introduction .intro-summary{font-size:13px;line-height:1.4;margin:8px 0 0;color:#c6d0c0}
.demo-intro-options{list-style:none;margin:0;padding:0;display:grid;gap:13px}
.demo-intro-options li{display:grid;grid-template-columns:27px 1fr;gap:8px;font-size:12px;line-height:1.4;color:#bdc9b7}
.demo-intro-options strong{display:block;font-size:13px;line-height:1.3;color:#eee8da;margin-bottom:3px}
.intro-icon{display:grid;place-items:center;align-self:start;width:27px;height:27px;color:#dfc18b;border:1px solid #647258;border-radius:5px;font-size:17px;line-height:1}
.intro-dots{display:flex;gap:0;justify-content:center}.intro-dots i{width:7px;height:12px;background:#d2b27c}.intro-dots i:first-child{background:#b5c5ad;border-radius:3px 0 0 3px}.intro-dots i:last-child{background:#507864;border-radius:0 3px 3px 0}
.demo-intro-action{margin-top:auto}
.editor-mode .demo-intro-action #expand-preview{display:flex;width:100%;justify-content:center;min-height:42px;font-size:13px;padding:9px 10px;gap:9px}
.demo-intro-action #expand-preview svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;flex:none}
.demo-intro-note{font-size:11px;line-height:1.4;color:#bac7b4;margin:0}
.editor-mode .editor-large .demo-introduction{display:none}
@media(min-width:851px){.editor-mode .editor-grid{grid-template-columns:250px minmax(0,1fr)}}
@media(min-width:851px) and (max-height:680px){.editor-mode .demo-introduction{gap:9px;padding:12px}.demo-intro-options{gap:10px}.demo-introduction .intro-summary{font-size:12px;margin-top:6px}.demo-intro-options li{font-size:11px}.demo-intro-options strong{font-size:12px}.demo-introduction h2{font-size:18px}.demo-introduction .eyebrow{margin-bottom:4px}}
@media(max-width:850px){.editor-mode .demo-introduction{flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:10px;order:0}.editor-mode .preview-workspace{order:1}.demo-introduction .eyebrow,.demo-intro-options,.demo-intro-note{display:none}.demo-introduction h2{font-size:16px}.demo-introduction .intro-summary{font-size:11px;margin-top:4px}.demo-intro-action{margin:0}.editor-mode .demo-intro-action #expand-preview{font-size:12px;min-height:42px;padding:8px}.demo-intro-action #expand-preview svg{width:17px;height:17px}.editor-mode .editor-large .preview-workspace{order:0}}

/* Entry from the home showcase: same centered frame, full available height. */
.editor-mode.wide-demo-entry>.masthead{display:none}
.editor-mode.wide-demo-entry>main.wrap{width:min(1100px,calc(100vw - 80px));height:100dvh;max-height:100dvh;margin:0 auto;padding:0 6px;display:flex;flex-direction:column;border:1px solid #d2b27c;border-radius:10px;overflow:hidden}
.wide-demo-entry main>.editor-top,.wide-demo-entry main>.orientation-hint{display:none}
.wide-demo-entry main>.workspace-tools{flex:none;margin:0;padding:5px;gap:6px;border:0;border-radius:0}
.editor-mode.wide-demo-entry main>.editor-grid{display:flex;flex-direction:column;flex:1;min-height:0;gap:0;margin:0}
.wide-demo-entry main>.editor-grid>.demo-introduction{display:none}
.wide-demo-entry main>.editor-grid>.preview-workspace{flex:1;min-height:0;width:100%}
.wide-demo-entry main>.workspace-actions{flex:none;margin:0;padding:5px 0}
.wide-demo-entry .workspace-note{display:none}
.wide-demo-entry main>.workspace-actions #back-catalog{margin-left:auto}
.wide-demo-entry main .demo-open-action{padding:5px}
.editor-mode.wide-demo-entry main .demo-open-action #expand-preview{min-height:40px;padding:7px;font-size:15px}
.wide-demo-entry main .preview-workspace>.small-copy{display:none}
@media(max-width:850px){.editor-mode.wide-demo-entry>main.wrap{width:calc(100vw - 28px)}}

/* Shared preview workspace: a single header for title and page controls. */
.editor-mode.compact-workspace>.masthead{display:none}
.editor-mode.compact-workspace>main.wrap{width:calc(100% - 16px);max-width:none;height:100dvh;max-height:100dvh;display:flex;flex-direction:column;margin:0 auto;padding:0;border:0;border-radius:0;overflow:hidden}
.compact-workspace main>.editor-top,.compact-workspace main>.orientation-hint,.compact-workspace main>.editor-grid>.demo-introduction,.compact-workspace main .demo-open-action,.compact-workspace main .preview-workspace>.small-copy{display:none!important}
.compact-workspace main>.workspace-tools{flex:none;margin:0 0 6px;padding:5px 8px;gap:8px}
.compact-workspace main .demo-page-controls{gap:8px;flex:1;min-width:0}
.compact-workspace main #workspace-title{font-size:14px;line-height:1.25;letter-spacing:0;margin:0;max-width:240px;flex:0 1 auto}
.compact-workspace main .demo-page-controls label{font-size:0;gap:0}
.compact-workspace main .demo-page-controls label select{font-size:13px;max-width:180px}
.editor-mode.compact-workspace main>.editor-grid{display:flex;flex-direction:column;flex:1;min-height:0;gap:0}
.compact-workspace main>.editor-grid>.preview-workspace{flex:1;min-height:0;width:100%}
.compact-workspace main>.workspace-actions{flex:none;gap:10px;padding:6px 0;margin:0;flex-wrap:wrap}
.compact-workspace main>.workspace-actions #back-catalog{margin:0}
.compact-workspace .workspace-home{font-size:12px;font-weight:750;letter-spacing:.5px;color:#e3c58a;margin-right:auto;min-height:40px;display:flex;align-items:center}
.compact-workspace main>.workspace-actions .workspace-note{font-size:11px;margin:0}
.editor-mode.compact-workspace main>.workspace-actions #expand-preview{display:flex;align-items:center;justify-content:center;gap:8px;width:auto;min-height:40px;padding:8px 15px;font-size:14px}
.compact-workspace #expand-preview svg{width:18px;height:18px;flex:none}
.compact-workspace main>.workspace-actions .button{min-height:40px;padding:8px 14px}
.editor-mode.compact-workspace.phone-browse main>.workspace-actions #expand-preview{display:none!important}
.compact-workspace .editor-large #workspace-title{display:none}
@media(max-width:1100px){.compact-workspace main>.workspace-tools .preview-view-controls{width:auto}.compact-workspace main>.workspace-actions .workspace-note{display:none}.compact-workspace main #workspace-title{max-width:190px}}
@media(max-width:850px){.compact-workspace main>.workspace-tools .demo-page-controls{width:100%;flex-basis:100%}.compact-workspace main .demo-page-controls label{margin-left:auto}.compact-workspace main #workspace-title{max-width:none;flex:1}.compact-workspace main>.workspace-actions{gap:6px}}
@media(max-width:599px){.compact-workspace main #workspace-title{font-size:12px}.compact-workspace main .demo-page-controls{flex-wrap:wrap}.compact-workspace main .demo-page-controls label{flex:1;min-width:120px}.compact-workspace main .demo-page-controls label select{width:100%;max-width:none}.compact-workspace main>.workspace-actions .button{font-size:12px;min-height:44px;padding:8px}.compact-workspace .workspace-home{font-size:10px}.compact-workspace main>.workspace-actions #back-catalog{margin-right:auto}}

/* Automation previews scroll within the current page; navigation stays explicit. */
.automation-workspace #live-preview{overscroll-behavior-y:contain}
.compact-workspace main #workspace-title .automation-return{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:4px 9px;border:1px solid #8b967e;border-radius:5px;color:#eed5a6;text-decoration:none;font-size:13px}
.compact-workspace main #workspace-title .automation-return:hover{background:#314335}
.compact-workspace main #workspace-title .automation-return:focus-visible{outline:2px solid #eed5a6;outline-offset:3px}

/* One compact automation toolbar; page selection has a single persistent control. */
body.editor-mode.automation-workspace.compact-workspace>.masthead.site-masthead{display:none}
body.editor-mode.automation-workspace.compact-workspace>main.wrap{height:100dvh;max-height:100dvh}
.automation-workspace.compact-workspace main>.workspace-tools{position:relative;gap:8px;justify-content:flex-start;z-index:45}
.automation-workspace.compact-workspace main .demo-page-controls{flex:0 1 auto;width:auto;flex-basis:auto}
.automation-workspace .automation-workspace-brand{display:flex;align-items:center;flex:0 0 140px;margin:0;padding:0;min-width:0}
.automation-workspace .automation-workspace-brand img{width:140px;height:40px;object-fit:contain}
.automation-workspace.compact-workspace main .demo-page-controls [hidden],.automation-workspace #back-catalog[hidden]{display:none!important}
.automation-navigation{position:relative;margin-left:auto;color:#eed5a6;font-size:13px}
.automation-navigation summary{cursor:pointer;padding:9px 12px;border:1px solid #8b967e;border-radius:5px;min-height:36px}
.automation-navigation nav{position:absolute;right:0;top:100%;min-width:170px;display:grid;padding:8px;background:#17271d;border:1px solid #87917d;border-radius:6px;box-shadow:0 8px 24px #0006}
.automation-navigation nav a{padding:12px;color:#f4ecdc}
.automation-workspace.compact-workspace main>.workspace-actions .workspace-note{margin-right:auto}
@media(max-width:850px){.automation-workspace.compact-workspace main .demo-page-controls label{margin-left:0}.automation-workspace .automation-workspace-brand{flex-basis:115px}.automation-workspace .automation-workspace-brand img{width:115px}.automation-workspace.compact-workspace main #workspace-title{flex:0 1 auto}}
@media(max-width:599px){.automation-workspace.compact-workspace main>.workspace-tools{gap:6px}.automation-workspace.compact-workspace main .demo-page-controls{display:contents}.automation-workspace.compact-workspace main .demo-page-controls label{flex:1;min-width:160px}.automation-workspace .automation-navigation{margin-left:auto}}

/* Keep the main entry action visually centered, independent of side labels. */
@media(min-width:600px){
 .editor-mode.compact-workspace main>.workspace-actions{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center}
 .editor-mode.compact-workspace main>.workspace-actions #back-catalog{grid-column:1;grid-row:1;justify-self:start}
 .editor-mode.compact-workspace main>.workspace-actions #expand-preview{grid-column:2;grid-row:1;justify-self:center}
 .editor-mode.compact-workspace main>.workspace-actions #review-project{grid-column:3;grid-row:1;justify-self:end}
 .editor-mode.compact-workspace main>.workspace-actions .workspace-note{display:none}
}
