:root{--ink:#1b2629;--muted:#687578;--line:#e3e8e7;--paper:#fff;--ground:#f2f5f4;--nav:#182629;--accent:#dbe8ca;--accent-dark:#243927;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--ground)}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button,.button{border:1px solid #d7dfdd;background:#fff;border-radius:9px;padding:10px 15px;color:var(--ink);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:9px;text-decoration:none;font-weight:600;line-height:1.3}button:hover,.button:hover{background:#eff3f1}button:disabled{opacity:.48;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #91ac85;outline-offset:3px}.primary{background:var(--nav);border-color:var(--nav);color:white}.primary:hover{background:#2d4043}.subtle{background:transparent;border-color:transparent}.wide{width:100%;margin-top:18px;justify-content:space-between}.icon-button{padding:7px 10px;min-width:34px}.text-button{border:0;background:transparent;color:#526b51;font-size:12px;padding:12px 0;text-align:left}.studio-header{height:74px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:28px;padding:0 22px;position:relative;z-index:4}.studio-brand{color:var(--ink);display:flex;gap:10px;text-decoration:none;align-items:center;font-size:16px;font-weight:760;min-width:165px}.studio-brand small{display:block;font-size:9px;letter-spacing:2.5px;color:#8d9994;margin-top:4px}.brand-star{font-size:32px;color:#56704b}.header-project{border-left:1px solid var(--line);padding-left:26px;display:flex;flex-direction:column;gap:4px;min-width:0}.header-project strong{font-size:13px;max-width:340px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#save-status{font-size:11px;color:#728273}.header-actions{margin-left:auto;display:flex;align-items:center;gap:8px}.studio-notice{padding:12px 24px;background:#fff5df;border-bottom:1px solid #e9d6aa;position:relative;z-index:5;line-height:1.6}.studio-notice.error{background:#fff0ed;color:#913829}.studio-notice button,.studio-notice a{margin-left:10px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;color:#658063}.wizard{max-width:1230px;padding:68px 36px;margin:0 auto;display:grid;grid-template-columns:.85fr 1.25fr;gap:78px}.wizard-intro{padding-top:30px}.wizard-intro h1{font-size:clamp(38px,4vw,55px);font-weight:550;letter-spacing:-2.7px;line-height:1.13;margin:23px 0}.wizard-intro>p{line-height:1.85;color:var(--muted);font-size:16px}.wizard-progress{padding:25px 0 0;list-style:none;counter-reset:step;display:grid;gap:18px}.wizard-progress li{counter-increment:step;display:flex;align-items:center;gap:14px;font-size:12px;color:#7c8c84}.wizard-progress li:before{content:counter(step);display:grid;place-items:center;width:27px;height:27px;background:#e4eae5;border-radius:50%;font-size:11px}.wizard-progress li.active{color:#1f3725;font-weight:700}.wizard-progress li.active:before{background:var(--nav);color:#fff}.wizard-note{display:flex;gap:15px;margin-top:45px;max-width:315px;line-height:1.8;font-size:12px;color:var(--muted)}.wizard-note>span{font-size:29px;color:#90a886}.wizard-note p{margin:0}.wizard-card{background:white;border:1px solid var(--line);border-radius:20px;padding:34px;box-shadow:0 12px 42px #23372a05}.wizard-card h2{font-size:25px;letter-spacing:-.8px;font-weight:620;margin:12px 0 25px}.wizard-card p{line-height:1.7;color:var(--muted)}label{display:block;font-weight:600;font-size:12px;margin:19px 0 8px}label small{color:var(--muted);font-weight:400}input:not([type=checkbox]):not([type=radio]):not([type=color]),textarea,select{border:1px solid #d8e0dc;border-radius:9px;padding:12px 13px;background:#fff;width:100%;color:var(--ink);line-height:1.5}input::placeholder,textarea::placeholder{color:#9ba69f}textarea{resize:vertical}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field-hint{font-size:11px;line-height:1.7;color:var(--muted);margin:8px 0 16px}.wizard-buttons{display:flex;justify-content:space-between;gap:10px;margin-top:26px}.check{display:flex;align-items:flex-start;gap:9px;line-height:1.65;font-size:12px;font-weight:400}.check input{margin:4px 0;flex:0 0 16px;width:16px;height:16px;accent-color:#37533c}.role-options{display:grid;gap:9px}.role-option{display:flex;align-items:center;gap:14px;border:1px solid var(--line);border-radius:12px;padding:15px;margin:0;cursor:pointer}.role-option:has(input:checked){border-color:#aabfa0;background:#f5f8f1}.role-option input{width:17px;height:17px;accent-color:#37533c}.role-option strong{display:block}.role-option small{display:block;margin-top:5px;font-size:11px;line-height:1.5}.design-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.design-choice{text-align:left;display:block;border:1px solid var(--line);padding:9px;border-radius:12px;background:#fafbf9}.design-choice.selected{border:2px solid #607957;padding:8px;background:#f2f7ec}.design-choice strong{font-size:12px;display:block;margin-top:9px}.design-choice small{display:block;font-size:10px;font-weight:400;line-height:1.5;color:var(--muted);margin:5px 0}.design-sketch{height:107px;border-radius:5px;background:#e9e8df;overflow:hidden;position:relative;display:block}.design-sketch:before{content:"La tua attività.";position:absolute;left:12px;top:13px;font:16px/1.2 Georgia,serif;width:75px}.design-sketch:after{content:"";position:absolute;background:linear-gradient(135deg,#a1ad9d,#d4d8cb);border-radius:3px;bottom:8px;left:8px;right:8px;height:43px}.design-sketch.immersivo{background:linear-gradient(145deg,#3b5046,#92987a)}.design-sketch.immersivo:before{color:white;top:45px;font-size:22px;z-index:1}.design-sketch.immersivo:after{display:none}.design-sketch.studio:after,.design-sketch.essenziale:after{height:75px;left:55%;top:16px}.design-sketch.studio:before{top:17px;left:12px;right:12px;max-width:none;text-align:center;font-family:Arial,sans-serif;font-weight:700;font-size:16px;content:'Il tuo studio.'}.design-sketch.studio:after{top:auto;bottom:15px;left:11px;right:11px;width:auto;height:38%;border-radius:4px;background:linear-gradient(90deg,#b5c0aa 0 29%,transparent 29% 35%,#d1d8c8 35% 64%,transparent 64% 70%,#9eae92 70% 100%);box-shadow:none}.design-sketch.studio{background:#eeefe8}
/* Workspace layout and restored manual controls. Kept separate from the client portal. */
.design-sketch.deciso{background:#25312d;color:#f4f2e9}.design-sketch.deciso:before{font-family:Arial,sans-serif;font-weight:bold;color:#fff}.design-sketch.deciso:after{left:55%;top:0;bottom:0;right:0;height:auto;border-radius:0;background:linear-gradient(160deg,#778170,#bbc5a6)}
.design-sketch.boutique{background:#f0e5da}.design-sketch.boutique:before{font-style:italic;color:#715c4b}.design-sketch.boutique:after{left:56%;right:9px;top:14px;height:85px;border-radius:50% 50% 0 0;background:#c2aa8e}
.design-sketch.essenziale:before{width:48%;font-size:13px;top:32px;font-family:Arial,sans-serif}
.suggested-label{display:inline-block;font-size:9px;color:#58724a;margin-top:3px;font-weight:500}
.control-heading{font-size:13px;letter-spacing:-.1px;margin:26px 0 12px}.color-control{display:flex;align-items:center;gap:12px;margin:13px 0}.color-control label{margin:0;font-size:12px;font-weight:500}.color-control span{font-size:11px;color:var(--muted)}input[type=color]{width:54px;height:36px;background:#fff;border:1px solid var(--line);border-radius:7px;padding:3px;cursor:pointer}
.palette-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.palette-choice{display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:7px;font-size:10px;font-weight:500;text-align:left;background:#fff}.palette-choice.selected{border:2px solid #607957;padding:6px;background:#f5f8f0}.palette-sample{display:block;position:relative;height:45px;border-radius:5px;background:var(--sample-paper);color:var(--sample-ink);overflow:hidden;padding:7px 9px}.palette-sample span{font:19px Georgia,serif}.palette-sample i{height:5px;background:var(--sample-ink);display:block;width:30%;opacity:.4;margin-top:3px}.palette-sample i:last-child{position:absolute;right:6px;top:6px;width:27%;height:33px;margin:0;background:var(--sample-surface);opacity:1}
.accent-options{display:flex;gap:12px;flex-wrap:wrap}.accent-choice{width:32px;height:32px;min-width:32px;padding:0;border-radius:50%;border:3px solid white;background:var(--swatch);outline:1px solid #d8dfd9}.accent-choice:hover{background:var(--swatch);outline:2px solid #889c80}.accent-choice[aria-pressed=true]{outline:2px solid #3d5b38;box-shadow:0 0 0 3px #eff4eb}.accent-choice:focus-visible{outline:3px solid #385634;outline-offset:3px}
.wizard-appearance{margin-top:22px;border-top:1px solid var(--line);padding-top:18px}.wizard-appearance summary{font-size:12px;font-weight:600;cursor:pointer}.wizard-appearance>div{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.free-draft-note{margin-top:24px;padding:17px 18px;background:#f3f7ee;border-radius:12px}.free-draft-note strong{font-size:12px;color:#344b31}.free-draft-note p{font-size:11px;margin:7px 0 0;line-height:1.7}.auth-card{border:1px solid var(--line);border-radius:12px;margin-top:18px;padding:18px;background:#fafbf9}.auth-card p{font-size:12px}.auth-card a,.auth-card button{font-size:11px;margin:4px 4px 0 0}
.studio-body:has(#workspace:not([hidden])){height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}.studio-header{flex:0 0 74px}.studio-notice{flex:0 0 auto;font-size:12px;max-height:130px;overflow-y:auto}.workspace{flex:1;min-height:0;display:grid;grid-template-columns:210px minmax(0,1fr) 345px;position:relative}
.pages-sidebar{background:var(--nav);color:#cad4cf;padding:24px 14px 18px;display:flex;flex-direction:column;min-height:0;overflow:auto}.sidebar-title{display:flex;align-items:center;justify-content:space-between;padding:0 10px 22px;font-size:9px;font-weight:700;letter-spacing:1.8px;color:#9caf9f}.pages-sidebar .icon-button{background:transparent;color:#a3b5a8;border-color:#364947;font-size:12px}.page-link{border:0;background:transparent;color:#cedad4;display:flex;width:100%;text-align:left;justify-content:flex-start;border-radius:9px;margin-bottom:6px;gap:10px;padding:13px 12px;font-weight:500;font-size:12px}.page-link>span:nth-child(2){min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-link small{margin-left:auto;font-size:10px}.page-link:hover,.sidebar-item:hover{background:#263c3d;color:#fff}.page-link.active{background:#dce8ca;color:#263c27;font-weight:650}.sidebar-item{border:0;background:transparent;color:#c9d6cd;justify-content:flex-start;text-align:left;font-size:11px;font-weight:500;padding:16px 10px;line-height:1.6;margin:3px 0;gap:9px}.sidebar-item span{min-width:0}#design-settings{border-top:1px solid #344745;border-radius:0;margin-top:17px;padding-top:21px}.sidebar-bottom{margin-top:auto;padding:25px 10px 0;color:#9aada1;font-size:10px;line-height:1.7}.sidebar-bottom p{margin:14px 0}.sidebar-download{background:transparent;border-color:#42564d;font-size:10px;color:#cbd8cd;padding:10px 12px}.sidebar-download:hover{background:#2b413b;color:#fff}
.main-canvas{min-width:0;min-height:0;display:flex;flex-direction:column;background:#f1f5f3}.canvas-toolbar{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;gap:12px;border-bottom:1px solid #dee6e1;min-height:60px;background:#f8faf9;flex:0 0 auto}.canvas-toolbar>div:first-child{display:flex;align-items:center;gap:10px;min-width:0}.canvas-toolbar strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.draft-dot{width:6px;height:6px;background:#829f74;border-radius:50%;flex:0 0 6px}.canvas-badge{font-size:8px;letter-spacing:1px;color:#819087}.device-switch{display:flex;background:#f6f8f6;border:1px solid #dbe3df;border-radius:9px;padding:3px;margin-left:auto}.device-switch button{border:0;background:transparent;font-size:10px;font-weight:500;color:#718078;padding:7px 10px;border-radius:6px}.device-switch button[aria-pressed=true]{background:white;color:#294131;box-shadow:0 1px 4px #1d332915}.canvas-scroll{flex:1;min-height:0;display:flex;padding:27px 26px 15px;overflow:auto}.canvas-browser{width:100%;min-width:0;height:100%;border:1px solid #d4dfd8;box-shadow:0 8px 25px #1f332207;border-radius:12px;overflow:hidden;background:white;display:flex;flex-direction:column;margin:0 auto;transition:max-width .2s}.canvas-browser.mobile{max-width:390px}.browser-chrome{height:32px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;background:#fff;color:#a0ada5;font-size:8px;flex:0 0 32px}.browser-chrome>span:first-child{letter-spacing:3px}.canvas-browser iframe{display:block;flex:1;border:0;width:100%;min-height:200px;background:white}.canvas-bottom{display:flex;justify-content:space-between;gap:10px;padding:12px 21px 17px;font-size:10px;color:#8a998d}.canvas-bottom span:last-child{text-align:right}
.inspector{border-left:1px solid var(--line);background:#fff;overflow:auto;min-height:0;position:relative}.inspector-tabs{position:sticky;top:0;z-index:2;display:flex;gap:3px;background:#fff;padding:10px 8px;border-bottom:1px solid var(--line);overflow-x:auto}.inspector-tabs button{border:0;background:transparent;border-radius:8px;font-size:10px;color:#7a8c7e;padding:9px 8px;white-space:nowrap;font-weight:500}.inspector-tabs .active{background:#edf4e7;color:#365133;font-weight:650}#inspector-content{padding:24px 20px 45px}#inspector-content h2{font-size:18px;letter-spacing:-.5px;margin:0 0 9px}#inspector-content .intro{font-size:11px;line-height:1.8;color:#88988c;margin:0 0 25px}#inspector-content details{border-bottom:1px solid var(--line);padding:15px 0}#inspector-content summary{cursor:pointer;font-size:12px;font-weight:650}#inspector-content details[open] summary{margin-bottom:13px}#inspector-content input,#inspector-content textarea,#inspector-content select{font-size:12px}#inspector-content label{font-size:11px}#inspector-content .design-options{grid-template-columns:repeat(2,minmax(0,1fr))}#inspector-content .design-sketch{height:80px}#inspector-content .design-choice small{font-size:9px}#inspector-content .design-sketch:after{height:32px}#inspector-content .design-sketch.essenziale:after{height:59px}#inspector-content .design-sketch.boutique:after{height:62px}#inspector-content .design-sketch.deciso:after{height:auto}#inspector-content .design-sketch.immersivo:before{top:32px;font-size:19px}#inspector-content .design-sketch.studio:before{font-size:13px}.review-row{background:#f5f8f0;padding:10px 13px;border-radius:10px;margin-top:22px}.review-row label{margin:3px 0}.section-row{display:flex;gap:7px;align-items:center;margin:12px 0}.section-row label{display:flex;gap:8px;align-items:center;margin:0;flex:1}.section-row button{padding:4px 8px}.photo-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.photo-tile{padding:7px;display:block;min-width:0;text-align:left;font-size:10px;overflow:hidden}.photo-tile img{width:100%;height:94px;object-fit:cover;border-radius:5px;display:block}.photo-tile span{display:block;overflow-wrap:anywhere;margin-top:7px}.photo-tile.selected{border:2px solid #6b885c;padding:6px}.generation-progress{font-size:13px;line-height:1.8;padding:20px;background:#f3f7ee;border-radius:12px}.premium-panel{background:#f5f8f1;border:1px solid #e1e9db;border-radius:14px;padding:20px}.premium-panel h3{font-size:19px;line-height:1.35;letter-spacing:-.5px}.premium-panel p{font-size:12px;line-height:1.8;color:#69786b}.premium-panel .primary{font-size:11px;justify-content:center;text-align:center}.premium-panel .eyebrow{font-size:8px;letter-spacing:1.3px}.close-inspector{display:none}
.studio-dialog{width:min(760px,calc(100vw - 32px));max-height:90vh;border:1px solid #d9e3da;border-radius:18px;padding:26px;color:var(--ink);box-shadow:0 20px 90px #18302022}.studio-dialog::backdrop{background:#12251d70;backdrop-filter:blur(3px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.dialog-top h2{font-size:24px;letter-spacing:-.6px;margin:0}.dialog-top button{flex-shrink:0}#dialog-content{margin-top:22px}#dialog-content>p{line-height:1.8;font-size:13px;color:var(--muted)}.dialog-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.diff-card{border:1px solid var(--line);border-radius:12px;margin:15px 0;padding:15px}.diff-card h4{font-size:12px;margin:0 0 13px}.diff-card small{font-size:9px;letter-spacing:1px;color:#7e917c}.diff-card p{font-size:13px;line-height:1.7;overflow-wrap:anywhere}.checklist-item{display:flex;gap:13px;line-height:1.6;padding:13px;border-bottom:1px solid var(--line);font-size:12px}.checklist-item .mark{color:#527a42}.checklist-item.block .mark{color:#ac774b}.motion-frame{width:100%;height:65vh;border:1px solid var(--line);border-radius:10px}.local-warning{color:#a35237!important}
@media(min-width:1500px){.workspace{grid-template-columns:210px minmax(0,1fr) 345px}}
@media(max-width:1190px){.workspace{grid-template-columns:180px minmax(0,1fr) 310px}.canvas-scroll{padding:18px 14px}.studio-header{gap:15px}.header-project{padding-left:15px}}
@media(max-width:1050px){.workspace{grid-template-columns:180px minmax(0,1fr)}.inspector{display:none;position:absolute;right:0;top:0;bottom:0;width:345px;max-width:100%;z-index:10;box-shadow:-10px 0 35px #182b281c}.inspector.mobile-open{display:block}.close-inspector{display:flex;margin:10px 12px 0 auto;font-size:11px}.inspector-tabs{top:0}.header-project strong{max-width:210px}.header-project #save-status{max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wizard{gap:30px;padding:35px 25px;grid-template-columns:.8fr 1.2fr}.wizard-card{padding:25px}.wizard-intro h1{font-size:41px}}
@media(max-width:720px){.studio-header{height:64px;flex-basis:64px;padding:0 12px;gap:12px}.studio-brand{min-width:0;font-size:12px;gap:5px}.studio-brand small{font-size:8px;letter-spacing:1.4px}.brand-star{font-size:25px}.header-project{border:0;padding:0;flex:1}.header-project strong{font-size:11px;max-width:180px}.header-project #save-status{font-size:9px;max-width:150px}.header-actions{gap:5px}.header-actions>.subtle{display:none}.header-actions button{padding:8px;font-size:10px}.header-actions #undo,.header-actions #redo{display:none}.workspace{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.pages-sidebar{display:flex;flex-direction:row;align-items:center;padding:8px;gap:8px;overflow-x:auto;overflow-y:hidden}.sidebar-title{display:flex;flex:0 0 auto;margin:0;padding:0}.sidebar-title>span{display:none}#page-list{display:flex;gap:5px;align-items:center;flex:0 0 auto}.page-link{margin:0;width:auto;max-width:170px;white-space:nowrap;font-size:10px;padding:9px}.sidebar-item{flex:0 0 auto;white-space:nowrap;padding:7px 10px;margin:0;font-size:10px}#design-settings{border:0;margin:0;padding:7px 10px;border-radius:7px}.sidebar-bottom{display:none}#site-settings{display:none}.canvas-toolbar{padding:9px 12px;gap:7px;min-height:49px}.canvas-scroll{padding:12px 10px 5px}.canvas-bottom{font-size:9px;padding:10px 12px;line-height:1.4}.canvas-badge{display:none}.browser-chrome{height:25px;flex-basis:25px}.inspector{top:0;width:100%;max-width:390px}.studio-notice{font-size:11px;padding:10px 14px;max-height:100px}.wizard{display:block;padding:20px 16px 35px}.wizard-intro{padding:0}.wizard-intro h1{font-size:30px;letter-spacing:-1.3px;margin:10px 0}.wizard-intro>p{display:none}.wizard-note{display:none}.wizard-progress{display:flex;justify-content:space-between;gap:8px;padding-top:0;margin:18px 0 20px}.wizard-progress li{gap:7px;font-size:10px}.wizard-progress li:before{width:21px;height:21px}.wizard-card{padding:22px 18px;border-radius:16px}.wizard-card h2{font-size:23px}.wizard-buttons button{font-size:11px}.wizard-appearance>div{gap:0 10px}.field-row{gap:12px}.design-options{gap:7px}.design-sketch{height:80px}.design-choice{padding:6px}.design-choice.selected{padding:5px}.design-choice small{font-size:9px}.design-sketch:before{font-size:13px;left:7px;top:9px}.design-sketch:after{height:30px}.design-sketch.boutique:after{height:58px}.design-sketch.immersivo:before{font-size:17px;top:32px}.design-sketch.essenziale:after{height:57px}.design-sketch.studio:before{font-size:12px}.studio-dialog{padding:20px}.dialog-top h2{font-size:20px}.dialog-actions .button,.dialog-actions button{font-size:11px}}
@media(max-width:390px){.header-project strong{max-width:120px}.header-project #save-status{max-width:118px}#save-now{display:none}.wizard-progress li{font-size:9px;gap:4px}.design-choice small{display:none}.design-choice strong{font-size:10px}.suggested-label{font-size:8px}.wizard-appearance>div,.field-row{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Keep all ten styles and the palette swatches within easy reach in the inspector. */
#inspector-content .design-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#inspector-content .design-choice{padding:6px}#inspector-content .design-choice.selected{padding:5px}
#inspector-content .design-choice strong{font-size:10px;margin:7px 0 2px}#inspector-content .design-choice small{display:none}
#inspector-content .design-sketch{height:62px}#inspector-content .design-sketch:before{left:6px;top:7px;font-size:11px;width:64px}
#inspector-content .design-sketch:after{height:23px;left:5px;right:5px;bottom:5px}
#inspector-content .design-sketch.essenziale:after{left:55%;height:42px;top:10px}
#inspector-content .design-sketch.immersivo:before{top:23px;font-size:15px}
#inspector-content .design-sketch.boutique:after{left:58%;top:9px;height:48px}
#inspector-content .design-sketch.deciso:after{top:0;bottom:0;right:0;left:60%;height:auto}
#inspector-content .design-sketch.studio:before{font-size:10px;top:8px;width:100%;left:0}
#inspector-content .design-sketch.studio:after{bottom:8px;top:auto;height:24px}

/* Live style selection. Scoped to onboarding: existing editor and portal stay unchanged. */
.studio-body:has(.wizard--design:not([hidden])){height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.wizard.wizard--design{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;max-width:1700px;padding:18px 24px 20px;gap:18px}
.wizard--design .wizard-intro{padding:0;flex:0 0 auto}
.wizard--design .wizard-intro>h1,.wizard--design .wizard-intro>.eyebrow,.wizard--design .wizard-intro>p,.wizard--design .wizard-note{display:none}
.wizard--design .wizard-progress{display:flex;align-items:center;justify-content:center;gap:48px;padding:0;margin:0}
.wizard--design .wizard-progress li{font-size:11px;gap:10px}
.wizard--design .wizard-progress li:before{width:24px;height:24px;font-size:10px}
.wizard--design .wizard-card{background:transparent;padding:0;box-shadow:none;border:0;border-radius:0;flex:1;min-height:0}
.style-step{display:grid;height:100%;min-height:0;grid-template-columns:clamp(360px,31vw,450px) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;grid-template-areas:"controls preview" "actions actions";gap:18px 22px}
.style-controls{grid-area:controls;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:26px 24px 20px;background:#fff;border:1px solid var(--line);border-radius:16px}
.style-heading h2{font-size:25px;letter-spacing:-.85px;margin:10px 0 10px;line-height:1.2}
.style-heading p{font-size:12px;margin:0 0 22px;line-height:1.65}
.style-fieldset{border:0;padding:0;margin:0 0 21px;min-width:0}
.style-fieldset legend{font-size:12px;font-weight:650;margin:0 0 12px;padding:0;width:100%;display:flex;justify-content:space-between;gap:8px}
.style-fieldset legend>span{font-size:10px;font-weight:400;color:#829088}
.wizard--design .design-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.wizard--design .design-choice{border:1px solid #e0e6e2;background:#fff;border-radius:9px;padding:5px;position:relative;overflow:hidden;min-width:0;transition:border-color .12s,box-shadow .12s}
.wizard--design .design-choice:hover{background:#f5f8f2;border-color:#a1b49a}
.wizard--design .design-choice.selected{padding:5px;border:1px solid #546f47;box-shadow:0 0 0 1px #546f47;background:#f3f7ed}
.wizard-style-thumb{display:block;position:relative;width:100%;aspect-ratio:16/10;border-radius:5px;overflow:hidden;background:#e7ece5;pointer-events:none;contain:layout paint}
.wizard-style-thumb iframe{display:block;position:absolute;top:0;left:0;border:0;width:1280px;height:800px;transform-origin:top left;pointer-events:none}
.wizard-style-label{display:flex;align-items:center;justify-content:space-between;padding:0 3px;gap:3px}
.wizard--design .wizard-style-label strong{font-size:11px;letter-spacing:-.1px;margin:8px 0 4px}
.style-check{opacity:0;font-size:11px;color:#466135}
.design-choice.selected .style-check{opacity:1}
.wizard--design .suggested-label{font-size:8px;line-height:1.2;margin:0 3px 4px;color:#77856e;display:block;min-height:10px}
.wizard--design .suggested-label[hidden]{display:block!important;visibility:hidden}
.wizard--design .palette-options{gap:8px}
.wizard--design .palette-choice{font-size:10px;border-radius:8px;gap:5px;padding:6px}
.wizard--design .palette-choice.selected{padding:5px}
.wizard--design .palette-sample{height:29px;padding:3px 8px;border-radius:4px}
.wizard--design .palette-sample span{font-size:17px;line-height:23px}
.wizard--design .palette-sample i:not(:last-child){display:none}
.wizard--design .palette-sample i:last-child{height:21px;top:4px;right:4px}
.wizard-color-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.wizard--design .color-control{margin:0;gap:8px}
.wizard--design .color-control label{font-size:10px}
.wizard--design input[type=color]{height:30px;width:40px;padding:2px}
.wizard--design .accent-options{margin:0;gap:8px}
.wizard--design .accent-choice{width:27px;height:27px;min-width:27px}
.wizard--design .wizard-appearance{margin:0;padding-top:16px}
.wizard--design .wizard-appearance summary{font-size:11px}
.wizard--design .free-draft-note{padding:12px 14px;margin-top:20px}
.wizard--design .free-draft-note strong{font-size:11px}
.wizard--design .free-draft-note p{font-size:10px;line-height:1.65}
.wizard--design #ai-budget-note{font-size:10px;margin-bottom:0}
.wizard-live-preview{grid-area:preview;display:flex;flex-direction:column;min-height:0;min-width:0;border:1px solid #dce5df;border-radius:16px;background:#eaf0ec;overflow:hidden}
.wizard-preview-toolbar{padding:14px 17px;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:56px;flex:0 0 auto;background:#f8faf8;border-bottom:1px solid #e1e8e1}
.wizard-preview-toolbar>div:first-child{display:flex;align-items:center;gap:8px;min-width:0}
.wizard-preview-toolbar strong{font-size:11px;font-weight:600}
.wizard-preview-toolbar .draft-dot{margin:0;flex-shrink:0}
.wizard-preview-toolbar .device-switch button{font-size:10px;min-height:30px}
.wizard-preview-stage{flex:1;min-height:0;padding:22px 20px 9px;display:flex;justify-content:center}
.wizard-preview-browser{display:flex;flex-direction:column;width:100%;min-width:0;height:100%;overflow:hidden;background:white;border:1px solid #cedbd2;border-radius:10px;box-shadow:0 9px 30px #273d2410;transition:max-width .18s}
.wizard-preview-browser.mobile{max-width:390px;border-radius:22px;border:5px solid #21342a;box-shadow:0 12px 30px #273d241c}
.wizard-preview-browser.mobile .browser-chrome{height:25px;flex-basis:25px}
.wizard-preview-browser .browser-chrome{height:29px;flex-basis:29px}
#wizard-preview-address{max-width:78%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#76877b}
.wizard-preview-viewport{position:relative;flex:1;min-height:0;overflow:hidden;background:#f4f4ed}
#wizard-preview{position:absolute;left:0;top:0;border:0;transform-origin:top left;background:#fff;display:block}
.wizard-preview-placeholder{position:absolute;inset:0;display:grid;place-content:center;text-align:center;padding:25px;background:#f5f7f2;color:#75836f;font-size:12px}
.wizard-preview-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:0 0 auto;padding:8px 20px 4px;font-size:10px;color:#788975;line-height:1.5}
#wizard-preview-selection{font-weight:600;color:#4a6542}
.wizard-preview-note{font-size:10px;line-height:1.55!important;margin:2px 20px 12px;color:#82917e!important}
.style-step-actions{grid-area:actions;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px 20px;position:relative}
.style-step-actions>div:first-child{display:flex;flex-direction:column;gap:5px;min-width:0}
.style-step-actions>div>strong{font-size:12px;font-weight:650}
.style-step-actions>div>span{font-size:11px;color:#819078}
.style-step-actions .wizard-buttons{margin:0;flex-shrink:0}
.style-step-actions .wizard-buttons button{font-size:12px;min-height:42px}
.style-step-actions .wizard-buttons [data-wback]{border-color:transparent;background:transparent;color:#6d7f69;font-weight:500}
#create-status:empty{display:none}
.style-step-actions #create-status:not(:empty){position:absolute;bottom:100%;left:0;right:0;padding:12px;background:#fcf4df;border:1px solid #e8d8ad;border-radius:10px;font-size:12px;margin:0 0 8px;z-index:3}
@media(min-width:1550px){.style-controls{padding:28px 28px 24px}.wizard--design .wizard-style-label strong{font-size:12px}}
@media(max-width:1050px) and (min-width:721px){.wizard.wizard--design{padding:16px;gap:14px}.style-step{grid-template-columns:330px minmax(0,1fr);gap:14px}.style-controls{padding:21px 18px}.wizard-preview-toolbar{padding:10px}.wizard-preview-toolbar strong{font-size:10px}.wizard-preview-stage{padding:14px 10px 7px}.wizard-preview-caption>span:last-child{display:none}.wizard-preview-caption{padding-inline:12px}.wizard-preview-note{margin-inline:12px}.style-step-actions>div:first-child>span{font-size:10px}}
@media(max-width:720px){
 .wizard.wizard--design{padding:10px 10px 10px;gap:10px}
 .wizard--design .wizard-progress{gap:10px;justify-content:space-between;padding-inline:5px}
 .wizard--design .wizard-progress li{font-size:10px;gap:6px}
 .wizard--design .wizard-progress li:before{width:21px;height:21px;font-size:10px}
 .style-step{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(175px,34%) minmax(0,1fr) auto;grid-template-areas:"preview" "controls" "actions";gap:10px}
 .wizard-live-preview{border-radius:12px}
 .wizard-preview-toolbar{padding:7px 10px;min-height:40px}
 .wizard-preview-toolbar strong{font-size:10px}
 .wizard-preview-toolbar .device-switch button{font-size:9px;padding:4px 9px;min-height:25px}
 .wizard-preview-stage{padding:7px 9px 3px}
 .wizard-preview-browser{border-radius:6px}
 .wizard-preview-browser.mobile{border-width:3px;border-radius:11px;max-width:330px}
 .wizard-preview-browser .browser-chrome,.wizard-preview-browser.mobile .browser-chrome{height:18px;flex-basis:18px;font-size:7px;padding-inline:9px}
 .wizard-preview-caption{padding:3px 11px 6px;font-size:9px}
 .wizard-preview-caption>span:last-child,.wizard-preview-note{display:none}
 .style-controls{padding:17px 16px 16px;border-radius:12px}
 .style-heading .eyebrow{display:none}
 .style-heading h2{font-size:20px;letter-spacing:-.6px;margin:0 0 6px}
 .style-heading p{font-size:11px;margin:0 0 16px;line-height:1.6}
 .style-fieldset{margin-bottom:18px}
 .style-fieldset legend{margin-bottom:10px;font-size:11px}
 .style-fieldset legend>span{font-size:9px}
 .wizard--design .design-options{gap:8px}
 .wizard--design .wizard-style-label strong{font-size:10px}
 .wizard--design .suggested-label{font-size:8px}
 .wizard--design .palette-choice{font-size:9px}
 .style-step-actions{padding:9px 10px;border-radius:10px;gap:0}
 .style-step-actions>div:first-child{display:none}
 .style-step-actions .wizard-buttons{width:100%;gap:5px}
 .style-step-actions .wizard-buttons button{font-size:10px;min-height:39px;padding:9px}
 .style-step-actions .wizard-buttons .primary{flex:1;max-width:250px}
 .wizard--design .wizard-appearance>div{grid-template-columns:1fr 1fr}
}
@media(max-width:370px){.wizard--design .wizard-progress li{font-size:9px;gap:4px}.style-controls{padding:14px 12px}.wizard-color-row{gap:7px}.wizard-preview-toolbar strong{max-width:125px}.style-step-actions .wizard-buttons button{font-size:9px}}
@media(max-height:550px) and (min-width:721px){.wizard.wizard--design{padding-block:8px;gap:7px}.style-step{gap:8px}.style-step-actions{padding:8px 14px}.wizard-preview-note{display:none}.wizard-preview-toolbar{min-height:38px;padding-block:4px}.style-heading h2{font-size:21px}}
.wizard-preview-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.preview-expand{padding:5px 9px;font-size:17px;line-height:1;border-color:#d9e2dc;background:transparent;border-radius:7px;min-height:30px}
.style-preview-dialog{width:calc(100vw - 40px);max-width:1540px;height:calc(100vh - 40px);height:calc(100dvh - 40px);max-height:none;border:1px solid #cddbd0;border-radius:18px;background:#edf2ed;color:var(--ink);padding:18px;box-shadow:0 20px 90px #1b2e2940}
.style-preview-dialog[open]{display:flex;flex-direction:column;gap:12px}
.style-preview-dialog::backdrop{background:#14251b99;backdrop-filter:blur(4px)}
.style-preview-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:15px;flex:0 0 auto}
.style-preview-dialog-header>div:first-child{min-width:0}
.style-preview-dialog-header .eyebrow{font-size:8px;letter-spacing:1.3px}
.style-preview-dialog-header h2{font-size:17px;letter-spacing:-.3px;margin:5px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.style-preview-dialog-header .device-switch button{font-size:11px}
#wizard-preview-close{background:#fff;border-color:#d1ddd3;min-width:34px;height:34px;font-size:20px;font-weight:400;padding:4px 8px}
.style-preview-dialog .wizard-preview-stage{padding:0}
#wizard-expanded-preview{position:absolute;top:0;left:0;display:block;border:0;background:#fff;transform-origin:top left}
.style-preview-dialog .wizard-preview-browser{max-width:1282px}
.style-preview-dialog .wizard-preview-browser.mobile{max-width:398px}
.style-preview-dialog-note{font-size:11px;line-height:1.6;color:#6a7e64;margin:0;flex:0 0 auto}
@media(max-width:720px){
 .wizard-preview-actions{gap:5px}
 .preview-expand{font-size:14px;min-height:27px;padding:3px 7px}
 .style-preview-dialog{width:calc(100vw - 16px);height:calc(100vh - 16px);height:calc(100dvh - 16px);border-radius:12px;padding:10px}
 .style-preview-dialog-header{flex-wrap:wrap;gap:10px}
 .style-preview-dialog-header h2{font-size:14px}
 .style-preview-dialog-header .eyebrow{display:none}
 .style-preview-dialog-header .wizard-preview-actions{margin-left:auto}
 .style-preview-dialog .wizard-preview-browser.mobile{max-width:390px;border-radius:16px}
 .style-preview-dialog-note{font-size:10px}
}


/* Logo, image placement and immersive overlay controls */
.logo-panel{display:grid;grid-template-columns:92px 1fr;gap:16px;align-items:center;padding:16px;border:1px solid var(--line,#d8dee6);border-radius:18px;background:rgba(255,255,255,.72);margin:0 0 22px}
.logo-preview{width:92px;height:72px;border:1px dashed #aeb8c4;border-radius:14px;display:grid;place-items:center;overflow:hidden;background:#fff;color:#24303a;font-size:22px;letter-spacing:-.04em}
.logo-preview img{width:100%;height:100%;object-fit:contain;padding:8px;box-sizing:border-box}.logo-panel h3{margin:0 0 5px}.logo-panel p{margin:0 0 10px}.logo-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.logo-actions button{width:auto}
.photo-placement{margin-top:24px;padding:18px;border:1px solid var(--line,#d8dee6);border-radius:18px;background:#fff}.photo-placement>h3{margin-top:0}.photo-placement>div{margin-top:12px}.gallery-picker{margin:18px 0 4px;padding:0;border:0}.gallery-picker legend{font-weight:700;margin-bottom:10px}.gallery-photo-option{display:grid!important;grid-template-columns:20px 52px 1fr;align-items:center;gap:10px;padding:8px;border:1px solid #e0e5ea;border-radius:12px;margin:7px 0;background:#fff}.gallery-photo-option input{margin:0}.gallery-photo-option img{width:52px;height:42px;object-fit:cover;border-radius:8px}.gallery-photo-option span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.overlay-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 12px}.overlay-choice{position:relative;padding-left:36px!important;text-align:left!important}.overlay-choice:before{content:'';position:absolute;left:11px;top:50%;width:16px;height:16px;border-radius:50%;transform:translateY(-50%);background:var(--overlay-swatch);box-shadow:0 0 0 1px #0002}.overlay-choice.selected{box-shadow:inset 0 0 0 2px #24303a}
@media(max-width:650px){.logo-panel{grid-template-columns:70px 1fr;padding:13px}.logo-preview{width:70px;height:62px}.logo-actions{display:grid;grid-template-columns:1fr}.logo-actions button{width:100%}.overlay-choices{grid-template-columns:1fr}.photo-placement{padding:14px}}


.design-sketch.mosaico{background:#f0ede5}.design-sketch.mosaico:before{width:55%;font-size:14px}.design-sketch.mosaico:after{left:8px;right:42%;height:54px;border-radius:3px 18px 3px 3px;box-shadow:54px -9px 0 -13px #b8c2ae}.design-sketch.panoramico{background:#f8f5ed}.design-sketch.panoramico:before{width:70%;top:9px}.design-sketch.panoramico:after{left:5px;right:5px;bottom:8px;height:53px;border-radius:1px;background:linear-gradient(135deg,#819286,#cfd4c7)}.design-sketch.tipografico{background:#fcfbf6}.design-sketch.tipografico:before{width:86%;font-family:Arial,sans-serif;font-weight:800;font-size:22px;line-height:.9;top:13px}.design-sketch.tipografico:after{left:auto;right:7px;width:31%;height:31px;border-radius:0}.design-sketch.organico{background:#eef1e7}.design-sketch.organico:before{width:46%;top:23px}.design-sketch.organico:after{left:auto;right:7px;top:10px;width:48%;height:88px;border-radius:45% 55% 40% 60%;background:linear-gradient(135deg,#8da08c,#d0d5c7)}

/* Extended and customer-created palettes */
.palette-choice--custom{border-style:dashed;background:#fbfcfa}.palette-choice--custom.selected{border-style:solid}.custom-palette-panel{margin:12px 0 20px;padding:16px;border:1px solid #dbe3de;border-radius:14px;background:#f8faf8}.custom-palette-kicker{font-size:9px;font-weight:800;letter-spacing:1.5px;color:#617a5c;margin-bottom:5px}.custom-palette-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px}.custom-palette-color{display:flex;align-items:center;gap:9px;margin:0;padding:9px;border:1px solid #e0e6e2;border-radius:10px;background:#fff}.custom-palette-color input[type=color]{width:38px;height:38px;flex:0 0 38px}.custom-palette-color span{min-width:0}.custom-palette-color strong{display:block;font-size:10px;line-height:1.35}.custom-palette-color small{display:block;font-size:9px;line-height:1.35;color:#88958d;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;text-transform:uppercase;margin-top:2px}.wizard--design .custom-palette-panel{margin:8px 0 14px;padding:11px}.wizard--design .custom-palette-grid{gap:6px}.wizard--design .custom-palette-color{padding:6px}.wizard--design .custom-palette-color input[type=color]{width:30px;height:30px;flex-basis:30px}.wizard--design .custom-palette-color strong{font-size:9px}.wizard--design .custom-palette-color small{font-size:8px}@media(max-width:720px){.custom-palette-grid{grid-template-columns:1fr 1fr}.wizard--design .custom-palette-grid{grid-template-columns:1fr 1fr}.palette-options{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:390px){.custom-palette-grid{grid-template-columns:1fr}}


.assistant-compose{display:grid;gap:14px}.assistant-compose textarea{min-height:132px;resize:vertical;line-height:1.6}.assistant-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:-3px}.assistant-chip{border:1px solid #dfe7df;background:#f7faf6;color:#506552;border-radius:999px;padding:7px 9px;font-size:9px;line-height:1.2;text-align:left}.assistant-chip:hover{background:#edf4e9;color:#314b35}.assistant-answer{border:1px solid #dbe7d7;background:linear-gradient(180deg,#f8fbf5,#f2f7ee);border-radius:14px;padding:16px;margin-bottom:12px}.assistant-answer p{font-size:12px;line-height:1.7;color:#4f6252}.assistant-answer ul{margin:10px 0 0;padding-left:18px;color:#617263;font-size:10px;line-height:1.7}.assistant-kicker{display:block;font-size:8px;letter-spacing:1.2px;color:#748b6e;margin-bottom:6px}.assistant-secondary-title{font-size:10px;color:#89978c;margin:22px 0 5px}.assistant-dialog-request{border-left:3px solid #8eaa82;background:#f7f9f5;padding:10px 12px;margin-bottom:14px}.assistant-dialog-request small{font-size:8px;letter-spacing:1px;color:#809181}.assistant-dialog-request p{margin:4px 0 0;line-height:1.6}.assistant-change-list{display:grid;gap:8px;margin:14px 0}.assistant-change-item{display:grid;grid-template-columns:18px 1fr;gap:8px;align-items:start;padding:10px 11px;border:1px solid #e2e9e1;border-radius:10px;background:#fff}.assistant-change-item span{color:#638258;font-weight:700}.assistant-change-item p{margin:0;font-size:11px;line-height:1.55}

/* AI proposal review: part of the workspace, never a modal or a blurred backdrop. */
.ai-review-toolbar{flex:0 0 auto;border-bottom:1px solid #d8e3d7;background:#f2f7ee;padding:12px 20px;display:grid;gap:10px}
.ai-review-heading{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.ai-review-heading strong{font-size:12px;color:#314b35;letter-spacing:-.15px}
.ai-review-dot{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#6d8d61}
#ai-review-state{font-size:10px;color:#687b68;line-height:1.5;margin-left:auto}
.ai-review-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.ai-review-page-field{display:flex;gap:8px;align-items:center;margin:0;min-width:0;flex:1;font-size:10px;color:#697b6a}
.ai-review-page-field select{min-width:0;width:auto;max-width:100%;font-size:11px;padding:7px 10px;background:#fff;border-color:#d6e0d3}
.ai-review-switch{display:flex;flex-shrink:0;gap:3px;padding:3px;background:#e6eddf;border:1px solid #d5dfce;border-radius:10px}
.ai-review-switch button{background:transparent;color:#607259;padding:8px 13px;border:0;font-size:11px;font-weight:600;border-radius:7px}
.ai-review-switch button[aria-pressed=true]{background:#fff;color:#2e4a32;box-shadow:0 1px 4px #1d33291c}
.ai-review-switch button:focus-visible,.ai-review-actions button:focus-visible{outline:3px solid #758f67;outline-offset:3px}
.ai-review-switch button:disabled{opacity:.5;cursor:not-allowed}
#ai-review-retry{font-size:10px;padding:8px;flex-shrink:0}
.ai-review-toolbar.has-error{background:#fff5ee}
.ai-review-toolbar.has-error #ai-review-state{color:#91472d}
.workspace.is-reviewing .inspector{display:flex;position:relative;inset:auto;width:auto;max-width:none;box-shadow:none;z-index:auto;flex-direction:column;overflow:hidden}
.workspace.is-reviewing .inspector-tabs,.workspace.is-reviewing .close-inspector,.workspace.is-reviewing #toggle-inspector{display:none}
.workspace.is-reviewing #inspector-content{display:flex;flex:1;min-height:0;flex-direction:column;gap:12px;padding:22px 20px 18px;overflow-y:auto}
.workspace.is-reviewing .canvas-scroll{padding:18px 18px 8px}
.workspace.is-reviewing .canvas-bottom{padding-block:8px;font-size:10px}
.workspace.is-reviewing .canvas-browser iframe{min-height:120px}
.workspace.is-reviewing .page-link small{color:inherit}
.workspace.is-reviewing #generate-all{background:#304e43;border-radius:9px}
.workspace.is-reviewing .sidebar-item:disabled{opacity:.4;cursor:default}
.ai-review-intro .assistant-kicker{margin-bottom:9px;font-size:9px}
#inspector-content .ai-review-intro h2{font-size:20px;line-height:1.25;margin:0 0 10px;letter-spacing:-.5px}
#inspector-content .ai-review-intro .intro{font-size:12px;line-height:1.7;margin:0}
#inspector-content .ai-review-details{padding:12px 0;border-top:1px solid #e0e8dc;min-height:0;overflow:auto;flex:1}
#inspector-content .ai-review-details:not([open]){flex:0 0 auto}
#inspector-content .ai-review-details>summary{line-height:1.5;font-size:12px;color:#496048}
.ai-review-summary{padding:0 0 8px}
.ai-review-summary>p{font-size:12px;line-height:1.75;color:#536b56;margin:3px 0 12px;overflow-wrap:anywhere}
.ai-review-summary ul{padding-left:18px;margin:0;font-size:11px;line-height:1.75;color:#617361}
.ai-review-summary li{margin-bottom:7px;overflow-wrap:anywhere}
.ai-review-request{background:#f5f8f2;border-radius:9px;padding:11px 12px;margin-top:16px}
.ai-review-request small{font-size:8px;letter-spacing:1px;color:#75876c}
.ai-review-request p{font-size:11px;line-height:1.65;margin:5px 0 0;color:#5c725a;overflow-wrap:anywhere}
.ai-review-feedback{font-size:11px;line-height:1.6;background:#fff3e9;color:#854d33;border:1px solid #edd5c3;border-radius:10px;margin:0;padding:11px;flex:0 0 auto}
.ai-review-actions{display:grid;gap:8px;flex:0 0 auto;margin-top:auto}
.ai-review-actions button{font-size:12px;min-height:43px;justify-content:center}
.ai-review-safety{color:#7c8d7a;font-size:10px;line-height:1.6;margin:2px 0 0;text-align:center}
/* Tablets: keep the right panel in the grid instead of laying it over the preview. */
@media(min-width:721px) and (max-width:1050px){
 .workspace.is-reviewing{grid-template-columns:minmax(0,1fr) 282px;grid-template-rows:auto minmax(0,1fr)}
 .workspace.is-reviewing .pages-sidebar{grid-column:1/-1;flex-direction:row;align-items:center;padding:8px;gap:8px;overflow-x:auto;overflow-y:hidden}
 .workspace.is-reviewing .sidebar-title,.workspace.is-reviewing .sidebar-bottom,.workspace.is-reviewing .sidebar-item{display:none}
 .workspace.is-reviewing #page-list{display:flex;gap:6px}
 .workspace.is-reviewing .page-link{width:auto;max-width:180px;margin:0;padding:9px;font-size:11px}
 .workspace.is-reviewing .main-canvas{grid-column:1;grid-row:2}
 .workspace.is-reviewing .inspector{grid-column:2;grid-row:2}
 .workspace.is-reviewing #inspector-content{padding:18px 16px}
 .ai-review-toolbar{padding:10px 14px}
 #ai-review-state{margin-left:0;width:100%;padding-left:15px}
 .ai-review-controls{gap:7px}.ai-review-page-field>span{display:none}
 .ai-review-switch button{padding:8px 10px}
}
/* Phones: the site stays visible above a compact, in-flow confirmation panel. */
@media(max-width:720px){
 .workspace.is-reviewing{grid-template-columns:1fr;grid-template-rows:auto minmax(190px,1fr) auto}
 .workspace.is-reviewing .pages-sidebar{grid-column:1;grid-row:1;padding:6px 8px}
 .workspace.is-reviewing .sidebar-title,.workspace.is-reviewing .sidebar-item{display:none}
 .workspace.is-reviewing .main-canvas{grid-column:1;grid-row:2}
 .workspace.is-reviewing .inspector{grid-column:1;grid-row:3;border-left:0;border-top:1px solid #d6e2d1;max-height:34dvh;background:#fff}
 .workspace.is-reviewing #inspector-content{padding:10px 12px max(10px,env(safe-area-inset-bottom));gap:7px;overflow:auto}
 .ai-review-intro{display:none}
 #inspector-content .ai-review-details{padding:0;border:0;flex:0 1 auto;max-height:15dvh;overflow:auto}
 #inspector-content .ai-review-details>summary{font-size:11px;margin:0;padding:3px 0}
 #inspector-content .ai-review-details[open]>summary{margin-bottom:7px}
 .ai-review-summary>p,.ai-review-summary ul{font-size:11px}
 .ai-review-actions{grid-template-columns:1.35fr 1fr;gap:6px}
 .ai-review-actions button{font-size:11px;min-height:42px;padding:9px 8px}
 .ai-review-safety{grid-column:1/-1;font-size:9px;line-height:1.45;margin:0}
 .ai-review-feedback{font-size:10px;padding:7px 9px}
 .ai-review-toolbar{padding:8px 10px;gap:6px}
 .ai-review-heading{gap:6px}.ai-review-heading strong{font-size:11px}
 #ai-review-state{font-size:9px;margin-left:auto;max-width:58%;text-align:right}
 .ai-review-controls{gap:7px}.ai-review-page-field>span{display:none}
 .ai-review-page-field select{font-size:10px;padding:6px 8px;width:100%}
 .ai-review-switch{border-radius:8px;padding:2px;gap:2px}
 .ai-review-switch button{font-size:10px;padding:7px 10px}
 .workspace.is-reviewing .canvas-toolbar{min-height:41px;padding:6px 10px}
 .workspace.is-reviewing .canvas-scroll{padding:7px 8px}
 .workspace.is-reviewing .canvas-bottom{display:none}
 .workspace.is-reviewing .browser-chrome{height:23px;flex-basis:23px}
 .workspace.is-reviewing .page-link{font-size:10px;padding:7px 9px}
}
@media(max-height:560px) and (max-width:720px){
 .studio-body:has(.workspace.is-reviewing){overflow-y:auto}
 .workspace.is-reviewing{flex:0 0 auto;min-height:480px;grid-template-rows:auto minmax(290px,1fr) auto}
 .workspace.is-reviewing .inspector{max-height:190px}
}

.workspace.is-reviewing .canvas-browser{position:relative}
.ai-review-cover{position:absolute;inset:32px 0 0;z-index:2;background:#f8faf7;color:#657c60;display:flex;align-items:center;justify-content:center;text-align:center;padding:30px;font-size:12px;line-height:1.7}
@media(max-width:720px){.ai-review-cover{top:23px;font-size:11px;padding:20px}}
