.element-tools input[type=checkbox]{width:auto;display:inline-block;margin-right:7px}.element-tools [hidden]{display:none!important}.element-toggles{display:flex;flex-wrap:wrap;gap:8px}.element-toggles label{font-size:12px}.element-editing [data-element-key]{cursor:move;touch-action:none;user-select:none}.element-editing [data-element-key]:hover{outline:1px dashed #986e2a;outline-offset:3px}.element-editing .element-picked{outline:2px solid #b88632!important;outline-offset:4px}.element-editing [data-element-key]:focus-visible{outline:3px solid #b88632;outline-offset:4px}
.element-mode-actions{display:flex;flex-wrap:wrap;gap:7px;margin-block:10px}.element-mode-actions button{border:1px solid #849079;border-radius:5px;background:#1b3022;color:#eee8da;padding:8px;font-size:12px;min-height:40px;cursor:pointer}
.element-guide{position:fixed;inset:0;z-index:1000;pointer-events:none}.element-guide[hidden]{display:none}.element-guide>svg{position:absolute;width:100%;height:100%;overflow:visible;fill:none;stroke:#d2b27c;stroke-width:2;filter:drop-shadow(0 1px 2px #000)}
.guide-card{position:absolute;width:260px;max-width:calc(100vw - 24px);padding:14px;border:2px solid #ff4d5e;border-radius:10px;background:#17251df7;color:#f3eddf;box-shadow:0 10px 28px #0005;pointer-events:auto;font:13px/1.45 Arial,sans-serif}
.guide-card .guide-step{display:block;color:#ff4d5e;font-size:11px;margin-bottom:5px}.guide-card strong{font-size:16px;display:block}.guide-card p{margin:5px 0 12px}.guide-actions{display:flex;justify-content:space-between;gap:10px;align-items:center}.guide-card .guide-next{border:1px solid #ff4d5e;border-radius:5px;background:#ff4d5e;color:#2b080d;padding:8px 10px;min-height:36px;font:600 12px Arial;cursor:pointer}.guide-card .guide-skip{border:0;background:transparent;padding:8px 0;min-height:36px;color:#d9c39b;font:12px Arial;text-decoration:underline;cursor:pointer}
.editor-large .guide-target{outline:3px dashed #ff4d5e!important;outline-offset:4px}
.element-layer-menu{position:fixed;z-index:160;width:250px;max-width:calc(100vw - 16px);border:1px solid #d2b27c;border-radius:8px;padding:7px;background:#17251d;color:#f3eddf;box-shadow:0 8px 30px #0008}.element-layer-menu[hidden]{display:none}.element-layer-menu strong{display:block;font-size:12px;padding:6px 8px;color:#d2b27c}.element-layer-menu button{display:block;width:100%;min-height:38px;padding:9px 8px;text-align:left;font-size:13px;border:0;background:transparent;color:inherit;border-radius:4px}.element-layer-menu button:hover,.element-layer-menu button:focus-visible{background:#344636}.element-layer-menu button:disabled{opacity:.4}.paint-properties #element-layers{align-self:center;min-height:32px;padding:6px 10px;border:1px solid #7e9076;border-radius:5px;background:#263b2a;color:#eee3ce;font-size:12px}
.paint-tabs{display:none}.workspace-launch{position:relative}.launch-hint{position:absolute;top:calc(100% + 8px);left:0;z-index:10;background:#d2b27c;color:#17221a;border:1px solid #edcf9a;border-radius:6px;padding:6px 9px;font-size:12px;white-space:nowrap;pointer-events:none}.launch-hint[hidden]{display:none}.launch-hint>span{font-size:19px;margin-right:5px}
.ribbon-toggle{display:none}.editor-large .ribbon-toggle{display:inline-block}
.resize-selection{position:fixed;z-index:35;border:1px solid #b88632;pointer-events:none}.resize-selection[hidden]{display:none}.editor-mode .resize-selection>button{position:absolute;pointer-events:auto;touch-action:none;width:16px;height:16px;min-width:0;min-height:0;padding:0;line-height:0;background:#f7e6bb;border:2px solid #795018;border-radius:3px;animation:none!important;box-shadow:0 1px 4px #0005!important}
.resize-selection>button[hidden]{display:none}.resize-selection [data-corner=nw]{left:-8px;top:-8px;cursor:nwse-resize}.resize-selection [data-corner=ne]{right:-8px;top:-8px;cursor:nesw-resize}.resize-selection [data-corner=sw]{left:-8px;bottom:-8px;cursor:nesw-resize}.resize-selection [data-corner=se]{right:-8px;bottom:-8px;cursor:nwse-resize}
.resize-selection [data-corner=n]{left:calc(50% - 8px);top:-8px;cursor:ns-resize}.resize-selection [data-corner=s]{left:calc(50% - 8px);bottom:-8px;cursor:ns-resize}.resize-selection [data-corner=e]{right:-8px;top:calc(50% - 8px);cursor:ew-resize}.resize-selection [data-corner=w]{left:-8px;top:calc(50% - 8px);cursor:ew-resize}
/* Un'unica barra condivisa da tutte le demo e dall'anteprima ingrandita. */
.workspace-launch{display:flex;align-items:center;gap:10px;flex:none;flex-wrap:wrap}
.editor-mode #expand-preview{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:9px 13px;background:linear-gradient(120deg,#e6c993,#d2b27c);border:1px solid #ecd6af;border-radius:7px;color:#17221a;font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer}
.editor-mode #expand-preview[hidden]{display:none}
.workspace-launch svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.preview-zoom{display:flex;align-items:center;gap:4px}
.preview-zoom button{display:grid;place-items:center;width:40px;height:44px;padding:8px;border:1px solid #819079;border-radius:6px;background:#192b20;color:#f2e8d5;cursor:pointer}
.preview-zoom button:disabled{opacity:.4;cursor:default}
.preview-zoom svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.preview-zoom #preview-scale{display:grid;place-items:center;min-width:62px;height:38px;margin:0;border:1px solid #697961;border-radius:5px;background:#111a15;color:#eee8da;font:600 13px/1 Arial,sans-serif;font-variant-numeric:tabular-nums}
.editor-mode #live-preview{justify-content:safe center}
.preview-dialog.editor-large .close-dialog{width:auto;min-width:140px;border-radius:6px;white-space:nowrap}
@media(max-width:850px){.workspace-launch{gap:7px}.editor-mode #expand-preview{font-size:12px;padding:8px 10px}.workspace-launch svg{width:19px;height:19px}.preview-zoom button{width:40px}.preview-zoom #preview-scale{min-width:55px}.editor-mode .preview-view-controls{flex:1}.editor-mode .workspace-tools{align-content:start}}
@media(max-width:850px) and (orientation:landscape){.editor-mode .workspace-tools{flex-wrap:wrap}.editor-mode .preview-controls{display:flex}.editor-mode .preview-view-controls{flex:none}.editor-mode .demo-page-controls{flex:1}.editor-mode .workspace-launch{gap:5px}}

/* Barra unica: tredici comandi equivalenti, proprieta in una seconda riga. */
.inspector-close{display:none}
.preview-dialog.editor-large{inset:0;margin:0;width:100vw;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0;padding:0;background:#17221b;color:#e8e7df;overflow:hidden}
.preview-dialog.editor-large[open]{display:flex;flex-direction:column}
.paint-ribbon{flex:none;padding:6px;background:#243128;border-bottom:1px solid #65725b;overflow-x:auto;max-width:100%;scrollbar-width:thin}
.paint-toolbar-row{display:grid;grid-template-columns:repeat(12,minmax(94px,1fr));gap:5px;min-width:1183px}
.paint-toolbar-row .paint-group,.paint-toolbar-row .paint-commandbar,.paint-toolbar-row .toolbar{display:contents}
.editor-mode .paint-toolbar-row button,.editor-mode .paint-toolbar-row .button,.preview-dialog.editor-large .paint-toolbar-row .close-dialog{position:static;float:none;order:initial;display:flex;align-items:center;justify-content:center;gap:4px;width:100%;height:36px;min-height:36px;min-width:0;margin:0;padding:4px;border:1px solid #7f9076;border-radius:5px;background:#203228;color:#eee8da;font:500 11px/1.15 Arial,sans-serif;text-align:center;white-space:normal;text-decoration:none;cursor:pointer;box-sizing:border-box}
.paint-toolbar-row button:disabled{opacity:.42;cursor:default}
.paint-toolbar-row svg{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
.paint-tool small{display:none}.paint-tool span{white-space:nowrap}
.editor-mode .paint-toolbar-row .paint-activity{border-left:3px solid #d2b27c}
.editor-mode .paint-toolbar-row #review-project{background:#d2b27c;color:#17221a;font-weight:700}
.editor-mode .paint-toolbar-row button:hover,.editor-mode .paint-toolbar-row button[aria-expanded=true]{background:#354735;border-color:#e5c892}
.paint-properties{display:flex;align-items:center;gap:16px;width:max-content;min-width:100%;padding-top:5px}.paint-properties>*,.paint-quick-image>*{flex-shrink:0}.paint-properties button{white-space:nowrap}
.paint-quick-text,.paint-quick-image{display:flex;align-items:end;gap:8px}
.paint-properties label{display:block;margin:0;color:#e8e7df;font:10px/1.15 Arial,sans-serif}
.paint-properties select,.paint-properties input:not([type=checkbox]){display:block;width:100%;height:26px;min-height:26px;margin-top:3px;padding:3px 5px;border:1px solid #71816b;border-radius:4px;background:#111c15;color:#eee;font:12px Arial,sans-serif;box-sizing:border-box}
.paint-properties label:has(#element-font){width:140px}
.paint-properties label:has(#element-size){width:65px}
.paint-properties label:has(#element-color){width:48px;font-size:0}
.paint-properties label:has(#element-color)::before{content:'Colore';font-size:10px}
.paint-properties #element-color{padding:2px}
.paint-properties .element-toggles{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;height:26px;order:3}
.paint-properties .element-toggles label{display:flex;align-items:center;gap:3px;white-space:nowrap;font-size:11px}
.paint-properties input[type=checkbox]{width:13px;height:13px;min-height:0;margin:0;padding:0}
.paint-quick-image{padding-left:16px;border-left:1px solid #63725c}
.paint-quick-image label{width:72px}.paint-quick-image label[hidden]{display:block}
.paint-properties input:disabled,.paint-properties select:disabled{opacity:.45}
.element-navigator{min-width:0;width:100%;margin:0 0 12px!important;padding:0!important}.element-navigator>summary{font-weight:600;font-size:13px}.element-page-list{max-height:32dvh;overflow:auto;overscroll-behavior:contain;padding-right:3px}.element-page{border:1px solid #63765c!important;border-radius:5px;margin:7px 0;padding:0!important;min-width:0}.element-page>summary{padding:9px!important;background:#293c2d;font-size:12px!important;line-height:1.45;overflow-wrap:anywhere}.element-page small{color:#d2b27c}.element-row{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;max-width:100%;min-width:0;border:0;border-top:1px solid #52634b;border-radius:0;margin:0;padding:9px 8px;background:#17271d;color:#eee7d8;text-align:left;font:12px/1.45 Arial;white-space:normal;overflow-wrap:anywhere;cursor:pointer}.element-row .element-kind{font-size:10px;color:#d6bc87}.element-row[aria-current=true]{background:#40543c;box-shadow:inset 3px 0 #e2c083!important}.element-row:focus-visible{outline:2px solid #e2c083;outline-offset:-2px}.element-selection-status{font-size:11px;line-height:1.45;color:#d7c291;margin:8px 0;overflow-wrap:anywhere}.element-navigator .element-search{min-width:0;width:100%}
#element-align-buttons{display:flex;align-items:center;gap:4px}#element-align-buttons button{display:grid;place-items:center;min-width:28px;width:28px;min-height:28px;height:28px;padding:4px;border:1px solid #72866a;border-radius:4px;background:#17271c;color:#eee8da;cursor:pointer}#element-align-buttons svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;fill:none}#element-align-buttons [aria-pressed=true]{background:#d2b27c;color:#17221b}#element-align-buttons button:disabled{opacity:.4}
.paint-properties #reset-demo{flex:none;margin-left:auto;min-height:32px;padding:6px 10px;border:1px solid #d2b27c;border-radius:5px;background:#263b2a;color:#eee3ce;font-size:12px;white-space:nowrap;cursor:pointer}
.paint-swatches{display:flex;gap:5px;padding-left:16px;border-left:1px solid #63725c}
.paint-swatches button{width:20px;height:20px;min-height:0;min-width:0;border:1px solid #9aab92;border-radius:50%;padding:0;cursor:pointer}
.editor-mode .editor-large .editor-grid{display:flex;flex-direction:row;gap:8px;flex:1;min-height:0;margin:0;padding:5px;overflow:hidden;background:#101811}
.editor-mode .editor-large .preview-workspace{flex:1;min-height:0;width:100%}
.editor-mode .editor-large #live-preview{border:0;border-radius:0;background:#101811;box-shadow:none;align-items:flex-start}
.editor-large .preview-workspace>.small-copy{display:none}.editor-large .demo-page-frame{box-shadow:0 6px 20px #0005}
.editor-large>.workspace-tools,.editor-large>.workspace-actions,.editor-large>#expanded-preview{display:none}
.paint-status{display:flex;align-items:center;gap:7px;flex:none;min-height:38px;padding:4px 8px;border-top:1px solid #5f6f56;background:#18271d;overflow-x:auto}
.paint-status>span{font-size:11px;white-space:nowrap;margin-right:auto}.paint-status .demo-page-controls{flex:none}.paint-status .demo-page-controls label{font-size:0}.paint-status .preview-controls{display:flex;flex-shrink:0}.paint-status .preview-view-controls{width:auto;flex:none}.paint-status .preview-view-controls label{font-size:0}.paint-status #toggle-editor-controls{display:none}
.paint-status .preview-zoom button{width:30px;height:30px}.paint-status #preview-scale{height:28px;min-width:53px;font-size:12px}.paint-status .demo-page-controls>button{min-height:30px;min-width:30px}.paint-status .preview-controls button{min-height:30px;padding:4px 7px;font-size:11px}
.editor-mode .editor-large .editor-controls{display:none;position:relative;order:-1;z-index:50;flex:0 0 clamp(260px,28vw,340px);width:clamp(260px,28vw,340px);min-width:0;max-height:none;overflow-y:auto;padding:36px 12px 12px;margin:0;border:1px solid #ac966b;background:#203027;border-radius:8px}
.editor-mode .editor-large .preview-workspace{min-width:0}
@media(max-width:600px){.editor-mode .editor-large .editor-controls{flex-basis:44%;width:44%;padding-inline:7px}.editor-large .continuous-picker{padding:6px}.editor-large .picker-exact{flex-wrap:wrap}.editor-large .picker-palettes{grid-template-columns:1fr}.editor-large #element-fields>label{min-width:0;width:100%;flex-basis:100%}}
.editor-mode .editor-large .editor-controls.inspector-open{display:block}.editor-large .inspector-close{display:block;position:absolute;right:5px;top:3px;width:32px;height:30px;min-height:0;border:0;background:transparent;color:#eee;font-size:23px;cursor:pointer}
.editor-large .editor-controls>.editor-actions,.editor-large .editor-controls>.small-copy{display:none}
.editor-mode .editor-large .editor-controls>details{display:none;border:0;margin:0;padding:0}.editor-mode .editor-large .editor-controls>details[data-ribbon-active=true]{display:block}.editor-large .editor-controls>details>summary{display:none}.editor-large .editor-controls>details::details-content{display:contents}.editor-large .editor-controls .element-mode-actions:empty{display:none}
.editor-large #element-fields{display:flex;flex-wrap:wrap;gap:10px 16px}.editor-large #element-fields[hidden]{display:none}.editor-large #element-fields>label:first-child{width:100%}.editor-large #element-fields>label{min-width:120px;flex:1}.editor-large .editor-controls label{font-size:12px;margin:6px 0}.editor-large .editor-controls input:not([type=checkbox]),.editor-large .editor-controls select,.editor-large .editor-controls textarea{font-size:14px;padding:7px;min-height:32px;margin-top:4px}.editor-large #element-fields .small-copy{display:none}.editor-large #element-status{font-size:12px;margin:8px 0}.editor-large .continuous-picker{max-width:430px;margin:auto}
@media(max-width:850px){.paint-ribbon{padding:4px}.paint-toolbar-row{grid-template-columns:repeat(12,108px);min-width:1351px}.paint-status>span{display:none}.paint-status{flex-wrap:wrap;gap:4px}.paint-status .demo-page-controls{flex:1}.paint-status .preview-controls{display:flex}.editor-mode .editor-large .editor-grid{padding:4px}}


/* One common artboard for the three pages; element changes never resize it. */
.demo-measure{position:fixed!important;left:-20000px!important;top:0!important;visibility:hidden!important;pointer-events:none!important;transform:none!important;z-index:-1;contain:layout style}
.demo-measure *{animation:none!important;transition:none!important}
.bounded-artboard{position:relative;overflow:clip;box-sizing:border-box}
.bounded-artboard>.demo-footer{position:absolute;left:0;right:0;bottom:0}
[data-element-slot]{pointer-events:none!important}
.alignment-guides{position:fixed;inset:0;pointer-events:none}
.guide-dock{flex:none;padding:8px 12px;background:#182b29;border-top:1px solid #739485;z-index:1001}.guide-dock[hidden]{display:none}.guide-dock .guide-card{position:static;display:grid;grid-template-columns:minmax(180px,24%) 1fr auto;gap:18px;align-items:center;width:100%;max-width:none;padding:0;border:0;border-radius:0;box-shadow:none;background:none;font-size:13px}.guide-heading small{display:block;font-size:11px;color:#c7d4cc;margin-top:5px}.guide-dock .guide-copy{margin:0}.guide-dock .guide-actions{flex-direction:column;gap:2px}.guide-dock .guide-feedback{font-size:11px;color:#b7e8cf}.guide-focus,.guide-focus-secondary{position:fixed;pointer-events:none;border:3px solid #ff4d5e;border-radius:5px;box-shadow:0 0 0 2px #2b080d,0 0 15px #ff4d5e60}.guide-focus-secondary{border:2px dashed #ff4d5e}.element-guide>svg{stroke:#ff4d5e;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(1px 0 0 #2b080d) drop-shadow(-1px 0 0 #2b080d) drop-shadow(0 1px 0 #2b080d) drop-shadow(0 -1px 0 #2b080d)}.guide-focus[hidden],.guide-focus-secondary[hidden]{display:none}
.paint-exit{display:none!important}.paint-shell>.paint-ribbon{width:100%;flex:1}.paint-toolbar-row{grid-template-columns:repeat(11,minmax(90px,1fr));min-width:1040px}.editor-mode .paint-toolbar-row button{background:#314c43;border-color:#92ab9d;color:#fff}.editor-mode .paint-toolbar-row button:hover,.editor-mode .paint-toolbar-row button[aria-expanded=true]{background:#47715f;border-color:#efd299}.paint-status{flex-wrap:wrap;justify-content:flex-end;overflow:visible;gap:5px}.paint-status>span{display:none}.paint-status .demo-page-controls{margin-right:auto}.paint-final-actions{display:flex;gap:5px;flex:none}.editor-mode .paint-final-actions button,.editor-mode .paint-final-actions .button,.preview-dialog.editor-large .paint-final-actions .close-dialog{position:static;display:flex;align-items:center;justify-content:center;gap:5px;width:auto;min-width:0;height:36px;min-height:36px;margin:0;padding:6px 10px;border:1px solid #d9c58e;border-radius:5px;white-space:nowrap;font:600 12px/1.2 Arial;text-decoration:none;cursor:pointer}.paint-final-actions #reset-demo{background:#4b412a;color:#ffe6a5;border-color:#c8a258}.paint-final-actions #review-project{background:#e3c58a;color:#18271f;border-color:#fff0c5}.preview-dialog.editor-large .paint-final-actions .close-dialog{background:#285d73;color:#fff;border-color:#8dc3d9}.paint-status .preview-view-controls{flex:none}.paint-status .preview-controls button,.paint-status .demo-page-controls>button,.paint-status .preview-zoom button{height:36px;min-height:36px;background:#304b44;border-color:#8daa9c;color:#fff}.paint-status .preview-controls [aria-pressed=true]{background:#e3c58a;color:#18271f}.paint-status .preview-zoom #preview-scale{height:36px}.paint-status .preview-zoom button{width:34px;padding:5px}.paint-status .preview-view-controls select{max-width:136px}.paint-status .demo-page-controls select{max-width:145px}.paint-status .preview-controls{gap:4px}.paint-status .preview-controls button{padding-inline:7px}
@media(max-width:850px){.paint-toolbar-row{grid-template-columns:repeat(11,100px);min-width:1145px}.guide-dock .guide-card{grid-template-columns:1fr auto;gap:7px 12px}.guide-heading{grid-column:1}.guide-dock .guide-actions{grid-column:2;grid-row:1/3}.guide-dock .guide-description{grid-column:1}.guide-heading small{display:none}.guide-dock .guide-copy{font-size:12px}.guide-dock .guide-title{font-size:14px}.guide-dock .guide-step{display:inline;margin-right:8px}.guide-dock{padding:6px 9px}.paint-final-actions{margin-left:auto}.paint-status .demo-page-controls{width:auto;flex-basis:auto}.paint-status .preview-controls{flex:none}.paint-status .preview-view-controls{flex:none}.paint-status .demo-page-controls select{max-width:125px}.paint-final-actions button,.paint-final-actions .button{font-size:11px!important;padding-inline:7px!important}}
.alignment-line{position:fixed;z-index:36;pointer-events:none;box-shadow:0 0 2px #102a25}
.demo-gallery{padding:28px 36px;background:var(--demo-surface);color:var(--demo-ink)}.demo-gallery-heading,.demo-gallery-controls{display:flex;align-items:center;gap:16px;justify-content:space-between}.demo-gallery-heading{margin-bottom:14px}.demo-gallery-heading h3{font-size:24px}.demo-gallery-heading span{font-size:13px;white-space:nowrap}.demo-gallery-photo{height:280px;overflow:hidden}.demo-gallery-photo img{display:block;width:100%;height:100%;object-fit:cover}.demo-gallery-controls{margin-top:12px}.demo-gallery-controls p{font-size:13px;margin:0}.demo-gallery-controls button{min-width:44px;flex:none}[data-device=phone] .demo-gallery{padding:18px}
.image-effects{flex:0 0 100%;min-width:0;margin:12px 0;padding:10px;border:1px solid #728974;border-radius:6px;background:#243b2d}.image-effects legend{padding-inline:5px;color:#e9d19b;font-size:13px;font-weight:700}.image-effects p{font-size:11px;line-height:1.5;color:#cbd7c8}.image-effects button{width:100%;margin-top:10px;padding:8px;border:1px solid #a3bba5;border-radius:5px;background:#3d6655;color:#fff;font-size:13px;cursor:pointer}
.demo-canvas[data-title-color] :is(h1,h2,h3,h4,h5,h6){color:var(--demo-titles)!important}.demo-canvas[data-button-color] button:not(.demo-header button,.demo-footer button,[data-layer-nav],[data-editor-added]){background:var(--demo-buttons)!important;color:var(--demo-buttons-on)!important;border-color:var(--demo-buttons)!important}.demo-canvas[data-button-color] button:not(.demo-header button,.demo-footer button,[data-layer-nav],[data-editor-added]) :is(span,b,strong){color:inherit!important}.editor-mode .palette-roles{grid-template-columns:repeat(3,minmax(0,1fr))}
.guide-bubble{position:fixed;inset:0;pointer-events:none;z-index:1001}.guide-bubble[hidden]{display:none}.guide-bubble .guide-heading small{font-size:10px;line-height:1.4;color:#b9cbbd}.guide-bubble .guide-card{width:260px;padding:12px;background:#172b22fa}.guide-bubble .guide-actions{flex-direction:row}.guide-bubble .guide-copy{font-size:12px;line-height:1.5}.guide-bubble .guide-feedback{font-size:11px;margin-bottom:7px}.layer-description{padding:4px 8px 8px;margin:0;color:#cad7c6;font-size:11px;line-height:1.5}.element-layer-menu [data-layer-reset]{border-top:1px solid #6b7c62;color:#ead1a2;margin-top:5px}
@media(max-width:600px){.paint-final-actions{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:0 0 100%;min-width:0;margin:0}.editor-mode .paint-final-actions button,.editor-mode .paint-final-actions .button,.preview-dialog.editor-large .paint-final-actions .close-dialog{width:100%;white-space:normal;padding:4px!important;min-width:0;text-align:center}.paint-status .preview-controls button{padding-inline:5px}}
.alignment-line.vertical{width:0;border-left:1px dashed #52e6c2}
.alignment-line.horizontal{height:0;border-top:1px dashed #52e6c2}
.alignment-line[data-kind=center]{border-color:#ffd685}.alignment-line.vertical[data-kind=center]{border-left-style:solid}.alignment-line.horizontal[data-kind=center]{border-top-style:solid}
.alignment-line[data-kind=edge]{border-color:#f7b965}
.demo-open-action{flex:none;display:flex;justify-content:center;padding:10px 12px;border:1px solid #64715e;border-top:0;border-radius:0 0 9px 9px;background:#1d3023}
.editor-mode:has(.demo-open-action) #live-preview{border-radius:9px 9px 0 0}
.editor-mode .demo-open-action #expand-preview{display:flex;justify-content:center;width:min(100%,580px);min-height:52px;padding:12px 20px;font-size:18px;font-weight:700;gap:12px;animation:demo-open-light 3.6s ease-in-out infinite}
.demo-open-action #expand-preview svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;flex:none}
.editor-mode .editor-large .demo-open-action{display:none}
@keyframes demo-open-light{0%,100%{box-shadow:inset 0 0 0 1px #ffffff35,inset 0 0 0 999px #ffffff05,0 0 5px #ffffff15}50%{box-shadow:inset 0 0 0 1px #ffffff99,inset 0 0 0 999px #ffffff25,0 0 18px #ffffff60}}
@media(max-width:850px){.editor-mode .demo-open-action{padding:7px}.editor-mode .demo-open-action #expand-preview{min-height:46px;font-size:16px}}
@media(prefers-reduced-motion:reduce){.editor-mode .demo-open-action #expand-preview{animation:none;box-shadow:inset 0 0 0 1px #ffffff55,0 0 8px #ffffff30}}

.paint-shell{display:flex;align-items:stretch;flex:none;min-width:0;background:#243128}.paint-shell .paint-ribbon{flex:1;min-width:0}.paint-exit{flex:0 0 112px;padding:6px 6px 6px 0;border-bottom:1px solid #65725b}.preview-dialog.editor-large .paint-exit .close-dialog{position:static;display:flex;gap:5px;align-items:center;justify-content:center;width:100%;min-width:0;height:36px;min-height:36px;margin:0;padding:4px;border:1px solid #d2b27c;border-radius:5px;color:#f6eddc;background:#344438;font:600 11px/1.15 Arial;white-space:normal}.paint-exit .close-dialog>span{font-size:20px}.guide-next:disabled{opacity:.5;cursor:default}.guide-feedback{display:block;margin:0 0 10px;font-size:11px;color:#e4c990}.example-editor[href]{color:inherit;text-decoration:none;cursor:pointer;animation:none!important}.example-editor[href]:focus-visible{outline:3px solid #d2b27c;outline-offset:4px}

/* Selected-text color inspector: right edge follows the toolbar swatch. */
.editor-mode .editor-large .editor-controls.text-color-open{flex:0 0 var(--text-color-width,280px);width:var(--text-color-width,280px);margin-left:var(--text-color-offset,0px);align-self:flex-start;max-height:100%}
#text-color-panel h3{margin:0 0 6px;font-size:16px}#text-color-panel .small-copy{font-size:12px;line-height:1.45;margin:0 0 12px}#text-color-panel .continuous-picker{padding:8px}#text-color-panel .picker-harmonies,#text-color-panel .picker-result{display:none}#element-color[role=button]{cursor:pointer}#element-color[role=button]:focus-visible{outline:2px solid #ff4d5e;outline-offset:3px}

/* Independent outlines for the demo, separate from editor-panel preferences. */
.demo-canvas[data-border-buttons] :is(button,.demo-button):not([data-editor-added]){border-color:var(--border-buttons-color)!important;border-width:var(--border-buttons-width)!important;border-style:var(--border-buttons-style)!important}
.demo-canvas[data-border-panels] :is(article,details,form,select,[role=menu],[role=listbox],.demo-card){border-color:var(--border-panels-color)!important;border-width:var(--border-panels-width)!important;border-style:var(--border-panels-style)!important}
#border-options{border-top:1px solid #73846d;margin-top:16px;padding-top:10px}#border-options summary{font-weight:700}#border-options .picker-harmonies,#border-options .picker-result{display:none}#border-options output{float:right}#border-reset{margin-top:10px}

/* La guida occupa una colonna propria: non copre la tela né cambia i suoi contenuti. */
.editor-mode .editor-large.guide-visible .editor-grid{padding-left:clamp(226px,33vw,330px)!important}
.guide-bubble .guide-card{overflow:auto;overscroll-behavior:contain}
.guide-card .guide-fill-page{display:block;width:100%;margin:8px 0 12px;padding:8px;border:1px solid #ff4d5e;border-radius:5px;background:#812232;color:#fff;font:600 12px Arial}
.editor-large button.guide-target{background:#a1172b!important;color:#fff!important;border-color:#ff4d5e!important}
.demo-canvas .photo-readability-veil{position:absolute;pointer-events:none;background:linear-gradient(110deg,#fff,rgba(255,255,255,.95) 55%,rgba(255,255,255,.9));animation:none!important}
.demo-canvas [data-photo-readable]{font-size:var(--photo-readable-size)!important}
.demo-canvas [data-photo-ink]{--photo-readable-ink:#18231c;-webkit-text-fill-color:var(--photo-readable-ink)!important;text-shadow:0 1px 2px #ffffff66!important}
.demo-canvas [data-photo-ink] :is(span,strong,em,b,i,u,a){-webkit-text-fill-color:var(--photo-readable-ink)!important}
@media(max-width:600px){.editor-mode .editor-large.guide-visible .editor-grid{padding-left:155px!important}.guide-bubble .guide-card{width:140px;padding:9px}.guide-bubble .guide-actions{flex-direction:column;align-items:stretch;gap:4px}.guide-bubble .guide-card strong{font-size:14px}}

/* The tutorial lives beside the canvas. Only the next useful action is lit. */
.guide-bubble .guide-card{display:flex;flex-direction:column;gap:12px;padding:18px;box-sizing:border-box}
.guide-bubble .guide-copy{font-size:15px;line-height:1.55}.guide-bubble .guide-card strong{font-size:21px;line-height:1.2}.guide-bubble .guide-actions{margin-top:auto;flex:none}
.guide-card .guide-fill-page[hidden]{display:none}.guide-card .guide-next:disabled{background:#33433a;color:#aebbb0;border-color:#66786a;opacity:.65}
.guide-card .guide-fill-page,.guide-card .guide-next:not(:disabled){background:#ad2035;color:#fff;border-color:#ff6574;min-height:42px;font-size:14px}
.guide-visible .element-layer-menu .image-appearance{display:none}
.paint-properties #element-appearance{align-self:center;min-height:32px;padding:6px 10px;border:1px solid #7e9076;border-radius:5px;background:#263b2a;color:#eee3ce;font-size:12px}
.paint-properties #element-appearance:disabled{opacity:.4}
.element-layer-menu{max-height:calc(100dvh - 16px);overflow:auto;overscroll-behavior:contain}
.image-appearance{min-width:0;border:0;border-top:1px solid #71816c;margin:8px 0 0;padding:10px 8px}
.image-appearance legend{font-size:13px;color:#ebd19f;padding:0 4px}.image-appearance label{display:block;font-size:12px;margin-top:10px;color:#f3eddf}.image-appearance output{float:right}.image-appearance input{display:block;width:100%;margin:8px 0;accent-color:#e0bc7f;min-height:24px}.image-appearance small{font-size:11px;color:#bdcabd;display:block}.image-appearance #image-original{margin-top:10px;border:1px solid #829178;text-align:center}
.element-layer-menu.appearance-only>:not(.image-appearance){display:none}.element-layer-menu.appearance-only .image-appearance{border:0;margin:0}
@media(max-height:650px){.guide-bubble .guide-card{gap:6px;padding:12px}.guide-bubble .guide-copy{font-size:13px;line-height:1.4}.guide-bubble .guide-card strong{font-size:18px}}
.selection-actions{position:fixed;z-index:145;display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:5px 7px;border:1px solid #92b6c8;border-radius:9px;background:#102a36;color:#fff;box-shadow:0 4px 16px #0006;font:12px/1.3 Arial;max-width:calc(100vw - 24px)}
.selection-actions[hidden],.group-selection[hidden],.selection-marquee[hidden]{display:none!important}
.selection-actions button{font:600 12px/1.3 Arial;min-height:30px;padding:5px 8px;border:1px solid #80a6b8;border-radius:5px;background:#224653;color:#fff;cursor:pointer}
.selection-actions button:hover,.selection-actions button:focus-visible{background:#326b81;outline:2px solid #b3ecff;outline-offset:1px}
.selection-actions .selection-count{padding:0 5px;color:#d5edf6;white-space:nowrap}
.group-selection{position:fixed;z-index:140;pointer-events:none;border:2px solid #47c7ef;box-shadow:0 0 0 1px #102a36}
.group-selection button{position:absolute;pointer-events:auto;width:13px;height:13px;min-height:0;padding:0;border:2px solid #123746;background:#e9fbff;border-radius:3px;touch-action:none}
.group-selection [data-group-corner=nw]{left:-7px;top:-7px;cursor:nwse-resize}.group-selection [data-group-corner=ne]{right:-7px;top:-7px;cursor:nesw-resize}.group-selection [data-group-corner=sw]{left:-7px;bottom:-7px;cursor:nesw-resize}.group-selection [data-group-corner=se]{right:-7px;bottom:-7px;cursor:nwse-resize}
.group-selection [data-group-move]{left:calc(50% - 15px);bottom:-35px;width:30px;height:28px;background:#123746;color:white;font-size:20px;cursor:move}
.selection-marquee{position:fixed;z-index:140;border:1px solid #47c7ef;background:#47c7ef22;pointer-events:none}

.paint-quick-text[hidden],.paint-quick-image[hidden]{display:none!important}

.selection-actions button[aria-pressed=true]{background:#16718d;border-color:#b3ecff;color:#fff}

/* Compact editing workspace: one top ribbon and one bottom status bar. */
.editor-large .paint-shell{align-items:center;border-bottom:1px solid #65725b;padding:2px 5px;gap:7px}
.editor-large .paint-home{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 102px;height:38px;border:1px solid #7b8b7555;text-decoration:none;color:#ead5a7;border-radius:3px}
.editor-large .paint-home img{display:block;width:96px;height:34px;object-fit:contain}
.editor-large .paint-home span{position:absolute;right:3px;bottom:1px;font-size:7px;line-height:8px;letter-spacing:.3px}
.editor-large .paint-shell>.paint-ribbon{display:flex;align-items:center;gap:9px;padding:2px 0;border:0;scrollbar-width:thin;overflow-x:auto;min-width:0}
.editor-large .paint-toolbar-row{display:flex;align-items:center;flex:0 0 auto;gap:3px;min-width:0}
.editor-mode .editor-large .paint-toolbar-row button{width:auto;min-height:28px;height:28px;padding:3px 5px;font-size:10px;white-space:nowrap;border-radius:3px;gap:3px}
.editor-large .paint-toolbar-row svg{width:12px;height:12px}
.editor-large .paint-toolbar-row #undo span,.editor-large .paint-toolbar-row #redo span{display:none}
.editor-mode .editor-large .paint-toolbar-row #undo,.editor-mode .editor-large .paint-toolbar-row #redo{width:26px}
.editor-large .paint-properties{flex:0 0 auto;min-width:0;width:auto;gap:7px;padding:0 2px 0 8px;border-left:1px solid #63725c}
.editor-large .paint-quick-image,.editor-large .paint-quick-text{gap:5px;align-items:center}
.editor-large .paint-quick-image{padding:0;border:0}
.editor-large .paint-properties label{font-size:9px}
.editor-large .paint-quick-image label{width:51px}
.editor-large .paint-properties input:not([type=checkbox]),.editor-large .paint-properties select{height:22px;min-height:22px;margin-top:1px;padding:1px 4px;font-size:11px}
.editor-large .paint-properties #element-appearance,.editor-large .paint-properties #element-layers{min-height:26px;height:26px;padding:3px 6px;font-size:10px;border-radius:3px}
.editor-large .paint-swatches{gap:4px;padding-left:7px}
.editor-large .paint-swatches button{width:14px;height:14px}
.editor-large .paint-status{min-height:32px;padding:2px 6px;gap:5px;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.editor-mode .editor-large .paint-status button,.editor-mode .editor-large .paint-status .button,.editor-mode .editor-large .paint-status select,.editor-mode .editor-large .paint-status #preview-scale{height:28px;min-height:28px;margin-block:0;padding:3px 6px;font-size:11px;border-radius:3px}
.editor-large .paint-status .preview-zoom button{width:28px}
.editor-large .paint-status .preview-zoom svg{width:17px;height:17px}
.editor-large .paint-status #preview-scale{min-width:43px}
.editor-large .paint-status .demo-page-controls>button{min-width:26px}
.editor-large .paint-status .demo-page-controls select{max-width:140px}
.editor-large .paint-status .preview-view-controls select{max-width:128px}
.editor-large .paint-status .paint-final-actions{display:flex;flex:0 0 auto;width:auto;gap:4px}
.editor-large .paint-status .demo-page-controls,.editor-large .paint-status .preview-controls,.editor-large .paint-status .preview-view-controls{margin-block:0}
@media(pointer:coarse){.editor-mode .editor-large .paint-toolbar-row button,.editor-mode .editor-large .paint-status button{min-height:32px;height:32px}}

.editor-large .paint-quick-image label{width:58px;white-space:nowrap}
.preview-dialog.editor-large .paint-status .paint-final-actions :is(button,a){height:28px;min-height:28px;padding:3px 6px;font-size:11px}

/* Slim tool rail and contextual inspector reserve space beside the demo. */
.editor-large .paint-toolrail{position:fixed;left:5px;top:48px;bottom:38px;width:66px;display:flex;flex-direction:column;gap:4px;padding:4px 2px;overflow:auto;scrollbar-width:thin;z-index:90;background:#19271f;border-right:1px solid #71816b55;box-sizing:border-box}
.editor-large .paint-toolrail .paint-group{display:block}
.editor-mode .editor-large .paint-toolrail button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-height:45px;margin:0;padding:5px 2px;border:1px solid transparent;border-radius:4px;background:transparent;color:#e8e7df;font:10px/1.2 Arial;box-shadow:none;white-space:normal}
.editor-large .paint-toolrail .paint-tool span{white-space:normal;overflow-wrap:anywhere}
.editor-large .paint-toolrail svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6}
.editor-mode .editor-large .paint-toolrail button:hover,.editor-mode .editor-large .paint-toolrail button[aria-expanded=true]{background:#344438;border-color:#bda472}
.editor-mode .editor-large .editor-grid{padding-left:76px;gap:8px}
.editor-mode .editor-large .editor-controls,.editor-mode .editor-large .editor-controls.text-color-open{order:2;flex:0 0 228px;width:228px;min-width:0;margin:0;padding:8px;align-self:stretch;max-height:100%;border:1px solid #71816b88;border-radius:5px;box-sizing:border-box;overflow:auto;scrollbar-width:thin;font-size:11px}
.editor-large .editor-controls .paint-properties{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%;min-width:0;padding:0 0 9px;margin:4px 0 8px;border:0;border-bottom:1px solid #71816b55}
.editor-large .editor-controls .paint-quick-text,.editor-large .editor-controls .paint-quick-image{display:flex;flex-wrap:wrap;width:100%;min-width:0;gap:6px}
.editor-large .editor-controls .paint-properties label:has(#element-font){width:136px}
.editor-large .editor-controls .paint-properties label:has(#element-size){width:54px}
.editor-large .editor-controls .paint-swatches{padding:0}
.editor-large .editor-controls .element-toggles{flex-wrap:wrap;gap:6px}
.editor-large .editor-controls :is(label,summary,.small-copy){font-size:11px;line-height:1.4}
.editor-large .editor-controls :is(input:not([type=checkbox]):not([type=range]),select,button){min-height:27px;padding:4px 5px;font-size:11px;border-radius:3px}
.editor-large .editor-controls label{min-width:0;margin:0}
.editor-large .editor-controls textarea{min-height:66px;padding:6px;font-size:12px}
.editor-large .editor-controls #element-fields{gap:10px 8px}
.editor-large .editor-controls #element-fields>label:has(textarea),.editor-large .editor-controls .selection-size-tool{grid-column:1/-1}
.editor-large .editor-controls .selection-size-tool output{float:right;color:#e4c990}
.editor-large .editor-controls input[type=range]{width:100%;margin:6px 0;min-height:20px;accent-color:#d2b27c}
.editor-large .editor-controls .image-effects{padding:7px;margin:0;min-width:0}
.editor-large .editor-controls .image-effects p{font-size:10px;line-height:1.4;margin:3px 0 7px}
.editor-large .editor-controls .image-effects label{margin:6px 0}
.editor-large .editor-controls #text-color-panel h3{font-size:14px}
.editor-large .editor-controls .continuous-picker{min-width:0}
.editor-large .element-layer-menu button{min-height:29px;padding:6px 8px;font-size:12px}
.editor-large .selection-actions{padding:3px 4px;gap:3px;border-radius:5px;font-size:10px}
.editor-large .selection-actions button{min-height:26px;padding:3px 5px;font-size:11px;border-radius:3px}
@media(max-width:1000px){.editor-mode .editor-large .editor-controls,.editor-mode .editor-large .editor-controls.text-color-open{flex-basis:208px;width:208px}.editor-large .editor-controls .paint-properties label:has(#element-font){width:118px}}

.editor-large .editor-controls::before{content:'Proprietà';display:block;height:22px;font:600 12px/18px Arial;color:#ead5a7}
.editor-large .editor-controls .paint-swatches button{width:14px;height:14px;min-height:0;padding:0;border-radius:50%}
.editor-large .editor-controls .element-navigator>summary{min-height:28px;padding:5px!important;font-size:11px;border-radius:3px;box-sizing:border-box}
.editor-large .editor-controls .element-page>summary{padding:5px!important;font-size:11px!important}
.editor-large .editor-controls .element-navigator:not([open]){margin-bottom:8px!important}
.editor-large .editor-controls .selection-size-tool{flex-basis:100%!important}
.editor-large .editor-controls .paint-properties #element-appearance{padding-inline:4px}

/* Keep selection actions off the artwork, in the free part of the top bar. */
.editor-large .selection-actions{top:6px!important;left:auto!important;right:8px;max-width:calc(100vw - 340px);background:#203027;border-color:#71816b88;box-shadow:none}

.editor-mode .editor-large .editor-controls .paint-properties .paint-swatches button{width:14px;height:14px;min-height:0;padding:0;border-radius:50%}
.editor-large .editor-controls #element-fields>label{min-width:0;flex-basis:calc(50% - 8px)}
.editor-large .editor-controls #element-fields>label:has(textarea){flex-basis:100%}
.editor-large .editor-controls #element-fields>label:has(#element-align){display:none}
.editor-large .editor-controls .image-effects-panel{flex-basis:100%;width:100%;margin:0;padding:0;border:1px solid #71816b66;border-radius:3px}
.editor-large .editor-controls .image-effects-panel summary{padding:5px;min-height:27px;cursor:pointer}
.editor-large .editor-controls .image-effects-panel .image-effects{border:0}
.editor-large .editor-controls [hidden]{display:none!important}

.editor-large .editor-controls .paint-quick-image label{width:calc(50% - 3px)}

.selection-box-active .resize-selection,.selection-box-active .group-selection{visibility:hidden!important}
.selection-box-active .element-picked{outline:none!important}
.selection-box-active .element-marquee-candidate{outline:2px solid #47c7ef!important;outline-offset:2px}
