/* OpenMenti Studio 2.2 — interfaccia visiva originale, ispirata al workflow dei moderni editor. */
body:is([data-page="visual_editor"],[data-page="editor"]){background:#f7f8fb!important;font-family:Inter,"Segoe UI",Arial,sans-serif;color:#101d3c}
body:is([data-page="visual_editor"],[data-page="editor"]) main#content{max-width:none;padding:0!important;min-height:calc(100vh - 80px)}
body:is([data-page="visual_editor"],[data-page="editor"]) .site-header{min-height:49px;box-shadow:none;border-bottom:1px solid #e5e8f2}
body:is([data-page="visual_editor"],[data-page="editor"]) .site-header:before{height:5px!important}
body:is([data-page="visual_editor"],[data-page="editor"]) .header-inner{max-width:none;padding:8px 22px;gap:12px}
body:is([data-page="visual_editor"],[data-page="editor"]) .brand{font-size:1.05rem}
body:is([data-page="visual_editor"],[data-page="editor"]) .brand-mark{width:30px;height:30px}
body:is([data-page="visual_editor"],[data-page="editor"]) .site-header nav{gap:14px}
body:is([data-page="visual_editor"],[data-page="editor"]) .site-header nav a,body:is([data-page="visual_editor"],[data-page="editor"]) .site-header nav button{font-size:12px}
body:is([data-page="visual_editor"],[data-page="editor"]) footer{display:none}
.om-studio,.om-studio *{box-sizing:border-box}
.om-studio{--os-navy:#101d3c;--os-blue:#305bed;--os-edge:#e3e7f1;--os-rainbow:linear-gradient(90deg,#f43f5e,#ff922b,#facc15,#20bc75,#2585ec,#7c4dff);background:#f7f8fb;color:var(--os-navy);min-height:calc(100vh - 120px);font-size:13px}
.om-studio button{border-radius:9px;min-height:30px;padding:8px 10px;background:#fff;color:var(--os-navy);border:1px solid var(--os-edge);font-size:12px;box-shadow:none;transition:background .13s,border-color .13s}
.om-studio button:hover{transform:none;background:#f0f5ff;border-color:#afc3f6;color:var(--os-navy);box-shadow:none}
.om-studio button:focus-visible{outline:3px solid #3979ff88;outline-offset:2px}
.om-studio h3{font-size:15px;margin:0 0 13px;letter-spacing:-.025em}.om-studio h4{font-size:12px;letter-spacing:0;margin:16px 0 9px}
.om-studio label{font-size:12px;font-weight:680;margin:10px 0;display:block}
.om-studio input:not([type=checkbox]):not([type=radio]):not([type=color]),.om-studio textarea,.om-studio select{border-radius:8px;min-height:34px;padding:8px 10px;font-size:12px;margin-top:5px;border:1px solid #dce2ec;color:#101d3c}
.om-studio textarea{min-height:75px;resize:vertical}
.om-studio input[type=color]{width:100%;height:35px;margin-top:6px;padding:3px;background:#fff;border:1px solid #dce2ec;border-radius:8px}
.om-studio .om-studio-note{font-size:11px;line-height:1.5;color:#687792;display:block}
.om-studio-head{height:59px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 18px 0 20px;background:#fff;border-bottom:1px solid var(--os-edge)}
.om-studio-identity{display:flex;align-items:center;gap:12px;min-width:0}.om-studio-identity>a{font-size:24px;text-decoration:none;color:#485873}
.om-studio-identity>div{display:flex;flex-direction:column;gap:1px;min-width:0}.om-studio-identity span{font-size:11px;color:#64718b}.om-studio-identity strong{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:33vw}
.om-studio-save{border-left:1px solid #dce4ef;padding-left:12px;color:#2f8464!important;max-width:260px}
.om-studio-save.error{color:#b01e46!important}
.om-studio-head-actions{display:flex;gap:8px;align-items:center}
.om-studio a.om-studio-secondary,.om-studio a.om-studio-primary,.om-studio button.om-studio-primary,.om-studio button.om-studio-secondary{padding:10px 15px;border-radius:9px;text-decoration:none;font-weight:730;white-space:nowrap;min-height:36px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;border:1px solid #dce2ed}
.om-studio a.om-studio-secondary,.om-studio button.om-studio-secondary{background:#fff;color:#1d3154}
.om-studio a.om-studio-primary,.om-studio button.om-studio-primary{border:none;background:linear-gradient(102deg,#fc7751,#e74984,#704dff,#257cf1);color:#fff}
.om-studio-work{display:grid;grid-template-columns:195px minmax(480px,1fr) 324px;min-height:calc(100vh - 160px);gap:0}
.om-studio-slides{background:#f6f7fa;border-right:1px solid #e1e5ed;display:flex;flex-direction:column;align-items:stretch;padding:13px 12px 16px;gap:14px;min-height:0}
.om-studio button.om-studio-new{background:#152951;color:#fff;border:0;font-weight:760;min-height:42px;font-size:13px;border-radius:12px;width:100%}
.om-studio button.om-studio-new:hover{background:#29447c;color:#fff}
.om-studio-slide-list{display:flex;flex-direction:column;gap:10px;max-height:calc(100vh - 300px);overflow-y:auto;padding-right:3px}
.om-studio-thumb{display:flex;gap:7px;align-items:flex-start;text-decoration:none!important;color:#1d335c;min-height:93px;overflow:hidden}
.om-studio-thumb>span{font-size:12px;width:12px;margin-top:7px;color:#556681}
.om-studio-thumb-art{position:relative;border:1px solid #dce3ef;border-radius:10px;background:#fff;min-height:90px;width:145px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;padding:13px;overflow:hidden;box-shadow:0 1px 4px #152e4810}
.om-studio-thumb.active .om-studio-thumb-art{outline:2px solid #305df6;outline-offset:1px;border-color:#305df6}
.om-studio-thumb-art b{font-weight:800;line-height:1.3;font-size:11px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:100%}
.om-studio-thumb-art small{color:#8d9bb2;font-size:9px}
.om-studio-mini-bar{position:absolute;bottom:0;left:0;right:0;height:5px;background:var(--os-rainbow)}
.om-studio-slides>.om-studio-note{text-align:center}
.om-studio-main{min-width:0;display:flex;flex-direction:column;background:#f9fafd}
.om-studio-toolbar{background:#fff;display:flex;align-items:center;flex-wrap:wrap;padding:10px 12px;gap:5px;border-bottom:1px solid var(--os-edge);min-height:60px}
.om-studio-toolbar>button{border:1px solid transparent;min-width:36px;padding:7px 8px;white-space:nowrap;font-weight:670;display:inline-flex;align-items:center;gap:5px}
.om-studio-toolbar>button:hover{background:#e9efff;border-color:#d1dfff}
.om-studio-toolbar>button b{font-size:17px;color:#234bd2;font-weight:850}
.om-studio-divider{width:1px;height:27px;background:#dbe2ec;margin:0 3px}
.om-studio-zoom-label{display:inline-flex!important;align-items:center;gap:7px;margin:0 0 0 auto!important;font-size:11px!important}
.om-studio-zoom-label select{width:auto;margin:0!important;min-height:32px!important}
.om-studio-stage-wrap{width:100%;flex:1;min-height:430px;padding:26px 18px;display:flex;align-items:center;justify-content:center;overflow:auto}
.om-studio-sheet{position:relative;width:100%;max-width:1280px;aspect-ratio:16/9;background:#fff;border:1px solid #e0e6ed;box-shadow:0 14px 34px #1b31551c;border-radius:4px;isolation:isolate;overflow:hidden;touch-action:pan-y;flex-shrink:0}
.om-studio-canvas-rainbow{position:absolute;bottom:0;left:0;right:0;height:2.8%;z-index:0;background:var(--os-rainbow)}
.om-studio-object{position:absolute;display:flex;flex-direction:column;justify-content:center;overflow:visible;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.05;padding:2px;touch-action:none;cursor:grab;border:1px solid transparent;z-index:2;min-height:0!important;user-select:none}
.om-studio-object:hover{outline:1px solid #879be9}
.om-studio-object.selected{outline:2px solid #315ff6;box-shadow:0 0 0 5px #315cf31a}
.om-studio-object .om-studio-grip{position:absolute;bottom:-7px;right:-7px;width:14px;height:14px;background:#315ff6;border:2px solid #fff;border-radius:3px;cursor:nwse-resize;z-index:6;box-shadow:0 1px 2px #20366a30}
.om-studio-object-image img{width:100%;height:100%;object-fit:contain;pointer-events:none}
.om-studio-object-icon{align-items:center;text-align:center;filter:drop-shadow(0 3px 2px #7584b544)}
.om-studio-object-shape{padding:0;box-shadow:0 3px 10px #00000013}
.om-studio-shape-triangle{clip-path:polygon(50% 0,100% 100%,0 100%)}
.om-studio-shape-diamond{clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}
.om-studio-shape-hexagon{clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%)}
.om-studio-shape-star{clip-path:polygon(50% 0,61% 34%,98% 35%,68% 57%,79% 95%,50% 72%,21% 95%,32% 57%,2% 35%,39% 34%)}
.om-studio-shape-arrow{clip-path:polygon(0 30%,70% 30%,70% 0,100% 50%,70% 100%,70% 70%,0 70%)}
.om-studio-shape-line{clip-path:polygon(0 40%,100% 40%,100% 60%,0 60%)}
.om-studio-shape-chevron{clip-path:polygon(0 0,36% 0,100% 50%,36% 100%,0 100%,64% 50%)}
.om-studio-shape-speech{clip-path:polygon(0 0,100% 0,100% 80%,35% 80%,19% 100%,19% 80%,0 80%)}
.om-studio-shape-heart{clip-path:polygon(50% 96%,11% 59%,0 28%,10% 7%,30% 2%,50% 23%,70% 2%,90% 7%,100% 28%,89% 59%)}
.om-studio-question-box{background:#f7f9ffcc;border-radius:16px!important;border:1px solid #e8eeff;display:flex;flex-direction:column;align-items:center;text-align:center;gap:9px;padding:5px 12px;line-height:1.1}
.om-studio-question-box small{font-size:10px;font-weight:800;letter-spacing:.15em;color:#305df6}
.om-studio-question-box div{font-size:clamp(11px,2vw,24px);font-weight:790}
.om-studio-chart-box{align-items:center;padding:3px;border-radius:12px;box-shadow:0 2px 7px #dce3f544}
.om-studio-bottom{display:flex;justify-content:space-between;align-items:center;padding:9px 18px;min-height:38px;color:#73839b;font-size:11px;gap:8px}
.om-studio-inspector{min-width:0;border-left:1px solid #e4e8ef;background:#fff;display:flex;flex-direction:column;max-height:calc(100vh - 156px)}
.om-studio-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid #e7eaf2;padding:8px 10px 0;gap:2px}
.om-studio-tabs button{border:0!important;font-weight:720;padding:10px 4px!important;color:#53627c!important;border-bottom:3px solid transparent!important;border-radius:0!important}
.om-studio-tabs button.active{color:#2159e9!important;border-bottom:3px solid #4064ff!important;background:#fff!important}
.om-studio-panel{padding:16px 19px;overflow:auto;flex:1;max-height:calc(100vh - 275px)}
.om-studio-panel[hidden]{display:none!important}
.om-studio-inspector-actions{padding:12px 13px;border-top:1px solid #e7eaf2;display:flex;gap:6px;align-items:center;margin-top:auto}
.om-studio-inspector-actions button[data-save]{background:#315eee;color:#fff;border:0;min-height:40px;flex:1;font-size:13px;font-weight:750}
.om-studio-inspector-actions button[data-save]:hover{background:#254bd8;color:#fff}
.om-studio-inspector-actions button:not([data-save]){min-height:40px;font-size:17px}
.om-studio-library,.om-studio-media-picker{margin-top:8px}.om-studio-library>button{width:100%;margin-bottom:4px;text-align:left;justify-content:flex-start}
.om-studio-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.om-studio-library-grid button{font-size:11px;text-align:left;min-height:49px;justify-content:flex-start}
.om-studio-library-grid button::first-letter{font-size:22px}
.om-studio-library-icons{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin-bottom:14px}
.om-studio-library-icons button{font-size:21px;min-height:43px;padding:5px;text-align:center;justify-content:center;box-shadow:0 1px 2px #1f315815}
.om-studio-library-icons button.active{background:#e7eeff;border:2px solid #345deb}
.om-studio-media-picker [data-media-list]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.om-studio-media-picker [data-media-list] button{display:flex;flex-direction:column;gap:7px;align-items:center;padding:6px;font-size:10px;overflow:hidden}
.om-studio-media-picker [data-media-list] img{width:100%;height:68px;object-fit:cover;border-radius:5px}
.om-studio-media-picker [data-media-list] small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.om-studio-upload{display:flex!important;align-items:center;justify-content:center;border:1px dashed #8fa9f6;color:#295ce5;border-radius:11px;padding:12px;cursor:pointer;font-size:12px!important}
.om-studio-upload input{display:none}
.om-studio-choices{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:8px}.om-studio-choices>button{flex:1;font-size:11px}
.om-studio-choices button.active,.om-studio-chart-choices button.active{background:#eaf0ff;border:2px solid #315eee;color:#1745d4;font-weight:800}
.om-studio-dimensions{display:grid;grid-template-columns:1fr 1fr;gap:2px 10px}
.om-studio-lightbutton{width:100%;margin-top:6px!important}.om-studio button.om-studio-danger{color:#bf3152;background:#fff2f5;border-color:#fddde6;width:100%;margin-top:6px!important}
.om-studio-chart-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.om-studio-chart-choices button{height:65px;font-size:14px;white-space:normal;display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;line-height:1.2}
.om-studio-chart-choices button::first-letter{font-size:24px;color:#315eee}
.om-studio-demo-chart{height:160px;width:100%;position:relative;display:flex;gap:7px;padding:8px;justify-content:center;align-items:end}
.om-studio-chart-box .om-studio-demo-chart{height:100%;padding:4px;width:100%}
.om-studio-demo-chart.vertical{align-items:stretch}
.om-studio-demo-col{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;width:16%;height:100%;gap:3px}
.om-studio-demo-col i{display:block;width:100%;border-radius:5px 5px 0 0;min-height:1px;animation:om-studio-grow .65s ease both;transform-origin:bottom}
.om-studio-demo-col small{font-size:10px}
@keyframes om-studio-grow{from{transform:scaleY(.05)}to{transform:scaleY(1)}}
.om-studio-demo-chart.horizontal{flex-direction:column;align-items:stretch;justify-content:center}
.om-studio-demo-row{display:flex;gap:7px;align-items:center;font-size:10px}.om-studio-demo-row>small{width:15px}.om-studio-demo-row>span{height:15px;background:#f1f5fc;border-radius:4px;flex:1;display:block;overflow:hidden}.om-studio-demo-row>span>i{height:100%;display:block;border-radius:4px;animation:om-studio-bar .6s ease both}
@keyframes om-studio-bar{from{transform:scaleX(.05);transform-origin:left}to{transform:scaleX(1)}}
.om-studio-demo-pie{width:145px;height:145px;border-radius:50%;animation:om-studio-pop .5s ease both;position:relative}
.om-studio-chart-box .om-studio-demo-pie{height:min(100%,160px);aspect-ratio:1;width:auto}
.om-studio-demo-pie.donut:after{content:"";position:absolute;inset:29%;background:white;border-radius:50%}
@keyframes om-studio-pop{from{transform:scale(.65);opacity:.3}to{transform:scale(1);opacity:1}}
.om-studio-mobile-demo{border:1px solid #e5e9f3;padding:17px 12px;border-radius:12px;background:#f8faff;display:flex;align-items:center;flex-direction:column;gap:12px}
.om-studio-mobile-demo strong{font-size:13px;text-align:center}.om-studio-mobile-demo input[type=range]{width:95%;accent-color:#3d74ee}
.om-studio-stars{font-size:27px;color:#f4be26;letter-spacing:5px}.om-studio-numbers{font-size:24px;color:#3a69ee;letter-spacing:6px}
.om-studio-switch{display:flex!important;align-items:center;gap:7px}.om-studio-link{font-size:12px;color:#2d56df}
.om-studio-swatches{display:flex;gap:7px}.om-studio-swatches button{height:32px;min-width:32px;width:32px;border:1px solid #b7c0ce;border-radius:8px}
.om-studio-palette{display:flex;gap:5px}.om-studio-palette i{display:block;height:22px;flex:1;border-radius:4px}
.om-studio-divider-h{height:1px;background:#e7eaf2;margin:17px 0}
.om-studio-dialog{border:1px solid #e6eaf3;border-radius:18px;box-shadow:0 22px 70px #16265355;padding:24px;width:min(740px,94vw);max-height:90vh;overflow:auto;background:#fff;color:#142441}
.om-studio-dialog::backdrop{background:#09172c91;backdrop-filter:blur(2px)}
.om-studio-dialog-head{display:flex;justify-content:space-between;align-items:center}.om-studio-dialog-head h2{margin:0 0 12px;font-size:22px}
.om-studio-slide-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.om-studio-slide-categories label{margin:0}.om-studio-slide-categories input{position:absolute;opacity:0}
.om-studio-slide-categories span{display:flex;min-height:56px;align-items:center;justify-content:center;text-align:center;padding:8px;border:1px solid #dae1ee;border-radius:11px;cursor:pointer;background:#fafbff}
.om-studio-slide-categories input:checked+span{border:2px solid #315eee;background:#edf3ff;color:#2357ea;font-weight:800}
.om-studio-dialog-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:15px}
@media(max-width:1230px){.om-studio-work{grid-template-columns:130px minmax(360px,1fr) 275px}.om-studio-thumb-art{width:99px;padding:8px}.om-studio-head-actions a:first-child{display:none}.om-studio-panel{padding:12px}.om-studio-toolbar>button{font-size:11px}}
@media(max-width:920px){.om-studio-work{grid-template-columns:115px minmax(320px,1fr)}.om-studio-inspector{grid-column:1/-1;max-height:none;min-height:320px}.om-studio-panel{max-height:none;min-height:280px}.om-studio-thumb-art{width:84px}.om-studio-stage-wrap{min-height:350px}.om-studio-head{height:auto;min-height:59px;flex-wrap:wrap;padding:9px 12px}}
@media(max-width:680px){.om-studio-work{display:flex;flex-direction:column}.om-studio-slides{padding:8px;gap:7px}.om-studio-slides .om-studio-slide-list{display:flex;flex-direction:row;overflow-x:auto;max-height:125px}.om-studio-slides .om-studio-thumb{min-width:120px}.om-studio-slide-list .om-studio-thumb-art{width:105px}.om-studio-toolbar{overflow-x:auto;flex-wrap:nowrap}.om-studio-toolbar>button{flex-shrink:0}.om-studio-zoom-label{display:none!important}.om-studio-stage-wrap{padding:15px 7px;min-height:260px}.om-studio-sheet{min-width:320px}.om-studio-inspector{width:100%}.om-studio-head-actions a{padding:7px!important;font-size:10px!important}.om-studio-identity strong{max-width:50vw}.om-studio-identity>div>span{display:none}.om-studio-slide-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.om-studio-save{display:none}.om-studio-bottom{font-size:10px}.om-studio-bottom span:last-child{display:none}}
/* Sovrascrive i pulsanti dark globali sulla pagina Studio: barra neutra, colori solo negli accenti. */
.om-studio .om-studio-toolbar>button,.om-studio .om-studio-library-grid>button,.om-studio .om-studio-library-icons>button,.om-studio .om-studio-choices>button,.om-studio .om-studio-chart-choices>button{background:#fff!important;color:#152849!important;border:1px solid #e3e7f0!important;box-shadow:none!important}
.om-studio .om-studio-toolbar>button:hover,.om-studio .om-studio-library-grid>button:hover,.om-studio .om-studio-library-icons>button:hover{background:#edf3ff!important;border-color:#95b2fc!important}
.om-studio .om-studio-chart-choices>button.active,.om-studio .om-studio-choices>button.active{background:#eaf0ff!important;border:2px solid #315eee!important}
.om-studio .om-studio-new{background:#142b53!important;color:white!important}
.om-studio .om-studio-inspector-actions button[data-save]{background:#315eee!important;color:white!important}

/* OpenMenti 2.2.1: il ? non deve coprire Salva o pannelli */
body[data-page="editor"] #helpLauncher,body[data-page="visual_editor"] #helpLauncher{display:none!important}
.om-studio-head-actions .om-studio-help-top{background:#fff!important;border:1px solid #dce5f4!important;color:#253b66!important;font-weight:800}
.om-studio-theme-scope{border:1px solid #e1e6f1;padding:8px 10px;border-radius:10px}
.om-studio-theme-scope legend{font-size:12px;font-weight:750}
.om-studio-theme-scope label{display:flex;align-items:center;gap:7px;margin:5px 0}
.om-studio-theme-scope input{width:16px;height:16px;min-height:16px}
.om-studio-theme-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.om-studio-theme-presets button{min-height:74px;text-align:center;display:flex;align-items:center;flex-direction:column;gap:8px;justify-content:center;font-weight:730}
.om-studio-theme-presets button:before{content:'';width:85%;height:24px;background:linear-gradient(90deg,var(--theme-accent),var(--theme-bg));border:1px solid #cbd3e1;border-radius:6px}
.om-studio-theme-presets button.active,.om-studio-choices button.active{outline:2px solid #305df6;background:#eff4ff!important}
.om-studio-google-canvas{min-height:290px;height:300px;border-radius:11px;background:#f2f6fb;border:1px solid #d3ddec;margin:10px 0}
.om-studio-google-editor [data-google-search],.om-studio-dialog [data-create-google-search]{margin:8px 0}
.om-studio-pin-source{border:1px solid #dee5f1;padding:15px;border-radius:12px;margin-top:10px}
.om-studio-pin-source legend{font-weight:770;font-size:13px;padding:0 6px}
.om-studio-pin-source label{display:flex;align-items:center;gap:7px}
.om-studio-pin-source input[type=radio]{min-width:17px;min-height:17px}
.om-studio-pin-source [data-create-google-box] button{margin:8px 0}
.om-studio-pin-source [data-pin-image]>label{display:block}
.om-studio-demo-chart.gauge,.om-studio-demo-chart.scatter,.om-studio-demo-chart.density{align-items:center;justify-content:center}
.om-studio-demo-gauge{height:90px;width:180px;border:21px solid transparent;border-bottom:0;border-radius:180px 180px 0 0;background:linear-gradient(white,white) padding-box,linear-gradient(90deg,#f43f5e,#facc15,#20bc75) border-box;position:relative;display:flex;align-items:center;justify-content:flex-end;flex-direction:column}
.om-studio-demo-gauge b{font-size:24px}.om-studio-demo-gauge small{font-size:11px}
.om-studio-demo-density{display:flex;align-items:end;gap:1px;width:100%;height:105px;border-bottom:3px solid #315eee;overflow:hidden}
.om-studio-demo-density i{flex:1;border-radius:8px 8px 0 0;min-height:3px}
.om-studio-demo-scatter{position:relative;width:100%;height:120px;border-bottom:2px solid #7484a1;border-left:2px solid #7484a1;background-image:linear-gradient(#a7b5cc44 1px,transparent 1px),linear-gradient(90deg,#a7b5cc44 1px,transparent 1px);background-size:25% 25%}
.om-studio-demo-scatter i{position:absolute;width:11px;height:11px;border-radius:50%;box-shadow:0 1px 5px #14244133}
.om-studio-demo-cloud{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:9px;min-height:160px}.om-studio-demo-cloud.editorial{align-content:center;gap:5px 18px}.om-studio-demo-cloud span{font-weight:800}
.om-studio-chart-choices button[hidden]{display:none!important}
.om-studio-panel .om-studio-chart-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:850px){.om-studio-google-canvas{height:250px;min-height:250px}}

/* L’attributo HTML hidden prevale sugli stili generali del form. */
.om-studio [hidden]{display:none!important}

/* 2.2.2 — Google Maps is edited directly on the full 16:9 presentation slide. */
.om-studio-map-stage{position:absolute;inset:0;z-index:1;background:#e8f2f4;overflow:hidden}
.om-studio-map-stage[hidden],.om-studio-map-cover[hidden],.om-studio-map-top[hidden],.om-studio-map-bottom[hidden]{display:none!important}
.om-studio-map-surface{position:absolute;inset:0;width:100%;height:100%;background:#e8f2f4}
.om-studio-map-cover{position:absolute;inset:0;z-index:8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(5px,1vw,14px);padding:clamp(18px,4vw,70px);background:linear-gradient(120deg,#f4faff,#fff 47%,#fff7ee);text-align:center;color:#18335b}
.om-studio-map-cover h3{font-size:clamp(18px,2.5vw,34px);margin:0}
.om-studio-map-cover p{max-width:590px;font-size:clamp(12px,1.3vw,18px);line-height:1.45;margin:0}
.om-studio-map-cover small{color:#62758b;font-size:12px}
.om-studio-map-symbol{font-size:clamp(40px,5vw,76px)}
.om-studio-map-cover button{width:auto;max-width:100%;white-space:normal!important}
.om-studio-map-cover.om-studio-map-error{background:#fff4f1;color:#7d2822}
.om-studio-map-top{position:absolute;z-index:9;top:12px;left:12px;right:12px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;pointer-events:none}
.om-studio-map-top>*{pointer-events:auto}
.om-studio-map-search{width:min(62%,450px);max-width:100%;min-width:160px;display:flex;align-items:center}
.om-studio-map-search gmp-place-autocomplete{display:block;width:100%;border-radius:11px;box-shadow:0 2px 12px #19335745}
.om-studio-map-search-unavailable{display:block;background:#fff;padding:8px;border-radius:8px;font-size:11px;color:#31425a;box-shadow:0 2px 8px #192a4940}
.om-studio-map-top button{flex-shrink:0;background:#1649c7!important;color:white!important;border:2px solid white!important;border-radius:9px;box-shadow:0 3px 15px #15375c66;padding:10px 12px!important;min-height:42px;white-space:normal;font-size:12px;font-weight:800}
.om-studio-map-top button:disabled{opacity:.65;cursor:wait}
.om-studio-map-bottom{position:absolute;bottom:5%;left:14px;right:14px;z-index:9;display:flex;justify-content:space-between;align-items:center;gap:12px;pointer-events:none}
.om-studio-map-bottom p,.om-studio-map-bottom span{max-width:72%;margin:0;background:#fff;color:#20354a;border-radius:9px;padding:8px 10px;box-shadow:0 3px 15px #1b345444;font-size:11px;line-height:1.3}
.om-studio-map-bottom span{white-space:nowrap;max-width:none;font-variant-numeric:tabular-nums}
.om-studio-map-stage ~ .om-studio-canvas-rainbow{pointer-events:none}
@media(max-width:850px){.om-studio-map-top{top:6px;left:6px;right:6px;gap:5px}.om-studio-map-top button{padding:6px!important;min-height:32px;font-size:10px}.om-studio-map-bottom{bottom:4%;left:6px;right:6px;flex-wrap:wrap}.om-studio-map-bottom p,.om-studio-map-bottom span{font-size:9px;padding:4px 6px}.om-studio-map-cover p{font-size:12px}}

/* 2.2.3 – mappa come oggetto della slide, non sfondo a tutta pagina. */
.om-studio-map-stage{inset:auto;left:23%;top:29%;width:64%;height:59%;z-index:4;border:2px solid #3867e9;border-radius:7px;box-shadow:0 2px 14px #29426d25;overflow:visible}
.om-studio-map-surface,.om-studio-map-cover{border-radius:5px;overflow:hidden}
.om-studio-map-dragbar{position:absolute;z-index:12;top:-29px;left:-2px;right:-2px;height:28px;border-radius:7px 7px 0 0;background:#1845b2;color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:6px;cursor:grab;touch-action:none;user-select:none}
.om-studio-map-dragbar:active{cursor:grabbing}
.om-studio-map-resize{display:block;position:absolute;z-index:13;bottom:-10px;right:-10px;width:20px;height:20px;border:3px solid white;background:#2458db;border-radius:5px;box-shadow:0 2px 6px #182b4860;cursor:nwse-resize;touch-action:none}
.om-studio-map-surface{pointer-events:none}
.om-studio-map-stage.om-map-navigation .om-studio-map-surface{pointer-events:auto}
.om-studio-map-cover{padding:clamp(9px,2.2vw,26px);gap:5px}
.om-studio-map-cover .om-studio-map-symbol{font-size:clamp(20px,3vw,42px)}
.om-studio-map-cover h3{font-size:clamp(12px,1.5vw,23px)}
.om-studio-map-cover p{font-size:clamp(10px,1vw,13px)}
.om-studio-map-cover small{font-size:10px}
.om-studio-map-cover button{font-size:11px;min-height:34px;padding:6px 9px}
.om-studio-map-top{left:5px;right:5px;top:5px;flex-wrap:wrap;align-items:center;gap:4px}
.om-studio-map-top button{padding:4px 7px!important;min-height:29px;font-size:10px}
.om-studio-map-search{min-width:100px;flex:1;width:auto}
.om-studio-map-bottom{bottom:2px;left:6px;right:6px}
.om-studio-map-bottom p,.om-studio-map-bottom span{padding:4px 6px;font-size:9px}
.om-studio-slide-commands{display:flex;flex-direction:column;gap:5px;padding-top:14px;border-top:1px solid #e2e7ef}
.om-studio-slide-commands .om-studio-remove-slide{background:#fff0f2!important;color:#a51d3d!important;border:1px solid #f2b5c2!important;font-weight:800;font-size:12px;min-height:39px}
.om-studio-slide-commands small{color:#62718e;font-size:10px;line-height:1.4}
.om-studio-new-image{padding:12px;background:#f7faff;border:1px solid #c9dbff;border-radius:11px;margin:12px 0}
.om-studio-new-image strong{display:block;margin-bottom:4px}
.om-studio-new-image p{font-size:12px;line-height:1.4}
.om-studio-upload-block{display:block;padding:10px;border:1px dashed #7295eb;border-radius:8px;background:#fff;margin:8px 0!important}
.om-studio-upload-block input{display:block;width:100%;margin-top:6px}
@media(max-width:850px){.om-studio-map-dragbar{height:23px;top:-24px;font-size:10px}.om-studio-map-cover p{font-size:9px}.om-studio-map-top button{font-size:9px;padding:3px 4px!important}}

/* OpenMenti 2.2.4 - Anteprima nuvola come sulla proiezione. */
.om-studio-cloud-preview{position:relative;width:100%;min-height:250px;height:290px;background:#fff;border:1px solid #e0e7f1;border-radius:12px;overflow:hidden}
.om-studio-choices [data-cloud="mosaic"].active{box-shadow:inset 0 -3px 0 #8c4fdb}
[data-cloud-settings] label{display:block;margin-top:10px;font-weight:650}
[data-cloud-settings] input[type="range"]{width:100%;accent-color:#2859e8}
[data-cloud-settings] select{width:100%;margin-top:5px}
[data-cloud-density-value]{float:right;font-weight:800;color:#2859e8}

.om-studio-cloud-on-slide{position:absolute!important;left:9%!important;top:46%!important;width:82%!important;height:42%!important;min-height:0!important;border-radius:12px!important;background:white!important;z-index:30!important;pointer-events:none!important;overflow:hidden!important}
.om-studio-cloud-sample-label{position:absolute;top:0;left:0;right:0;text-align:center;font-size:11px;font-weight:800;letter-spacing:.09em;color:#667c96;z-index:2;background:#fff8;padding:4px}

/* OpenMenti Studio 2.2.5 — menu contestuale, tastiera e salvataggio non invasivo */
.om-studio-context-menu{position:fixed;z-index:100002;min-width:225px;max-width:calc(100vw - 12px);padding:6px;border:1px solid #d9e2f3;border-radius:12px;background:#fff;box-shadow:0 16px 38px #14254233;color:#162a50;display:flex;flex-direction:column;gap:2px}
.om-studio-context-menu[hidden]{display:none!important}
.om-studio-context-menu .om-studio-context-action{display:block;width:100%;text-align:left;border:0!important;border-radius:7px!important;background:transparent!important;color:#1e3154!important;font-size:13px!important;font-weight:600!important;padding:9px 12px!important;line-height:1.2!important;min-height:36px}
.om-studio-context-menu .om-studio-context-action:hover,.om-studio-context-menu .om-studio-context-action:focus-visible{background:#ecf1ff!important;color:#123ec8!important}
.om-studio-context-menu .om-studio-context-action:disabled{opacity:.42;cursor:not-allowed}
.om-studio-context-menu .om-studio-context-action.danger{color:#ba254a!important}
.om-studio-context-menu .om-studio-context-separator{border-top:1px solid #e7ebf3;margin:5px 8px}

/* 2.2.6: editor - selezione del riquadro geografico e scelta contestuale delle forme */
.om-studio-map-stage.om-map-selected{outline:3px solid #7a59ff;outline-offset:2px}
.om-studio-map-dragbar [data-map-remove]{margin-left:auto;margin-right:3px;border:0!important;border-radius:4px!important;background:#fff!important;color:#a72545!important;font-size:11px!important;font-weight:800;padding:3px 6px!important;min-height:20px;cursor:pointer}
.om-studio-map-dragbar [data-map-remove]:focus-visible{outline:2px solid #fff;outline-offset:2px}
.om-studio-context-menu:has(.om-studio-context-shapes){width:328px;max-height:78vh;overflow-y:auto}
.om-studio-context-picker-title{font-size:13px;font-weight:800;padding:7px 8px}
.om-studio-context-shapes{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.om-studio-context-shape{background:#f5f7ff!important;color:#192d50!important;min-height:39px;border:1px solid #dce3f3!important;border-radius:7px;font-size:12px;font-weight:700;text-align:left;padding:7px;cursor:pointer}
.om-studio-context-shape:hover,.om-studio-context-shape:focus-visible{background:#e6ecff!important;outline:2px solid #4167e7}
.om-studio-context-back{background:transparent!important;color:#29436c!important;text-align:left;border:0;padding:10px;cursor:pointer}

/* OpenMenti 2.3.0 RC1 — unified, compact editor. No new external dependencies. */
body:is([data-page="visual_editor"],[data-page="editor"]) .site-header{min-height:50px;max-height:none}
body:is([data-page="visual_editor"],[data-page="editor"]) .header-inner{padding-top:6px;padding-bottom:6px}
.om-studio{font-family:Inter,"Segoe UI",Arial,sans-serif;--os-navy:#172847;--os-blue:#335ce4;--os-edge:#e2e7f0;--os-rainbow:linear-gradient(90deg,#8054dc,#5475ed,#3bb9dc,#38bf93,#f1c75c,#f18d65,#e96788)}
.om-studio-work{min-height:calc(100vh - 52px);grid-template-columns:174px minmax(0,1fr) 304px;transition:grid-template-columns .2s ease}
.om-studio.om23-hide-slides .om-studio-work{grid-template-columns:0 minmax(0,1fr) 304px}
.om-studio.om23-hide-inspector .om-studio-work{grid-template-columns:174px minmax(0,1fr) 0}
.om-studio.om23-hide-slides.om23-hide-inspector .om-studio-work{grid-template-columns:0 minmax(0,1fr) 0}
.om23-hide-slides .om-studio-slides,.om23-hide-inspector .om-studio-inspector{overflow:hidden;visibility:hidden;padding:0;border:0;pointer-events:none}
.om-studio-toolbar{min-height:54px;height:auto;display:flex;justify-content:space-between;gap:8px;flex-wrap:nowrap;padding:6px 10px;overflow:visible;position:relative;z-index:8}
.om23-toolbar-meta{display:flex;align-items:center;gap:8px;min-width:90px;overflow:hidden;flex:1 1 auto}
.om23-toolbar-meta>a{font-size:23px;color:#172847;text-decoration:none}
.om23-toolbar-meta strong{font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:240px}
.om23-toolbar-meta .om-studio-save{font-size:11px;border:0;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.om23-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex:1 0 auto}
.om23-toolbar-actions>button{min-width:30px!important;border:1px solid var(--os-edge)!important}
.om23-toolbar-actions>a{font-size:12px;white-space:nowrap;text-decoration:none;padding:7px 10px;border-radius:8px;border:1px solid var(--os-edge);color:#233d67}
.om23-toolbar-actions>a.om23-present{background:#335ce4;border-color:#335ce4;color:#fff;font-weight:750}
.om23-dropdown{margin:0;position:relative;display:block;padding:0;border:0}
.om23-dropdown summary{cursor:pointer;display:flex;align-items:center;height:34px;padding:7px 10px;white-space:nowrap;border-radius:8px;font-weight:650;font-size:12px;color:#23375f}
.om23-dropdown summary:hover,.om23-dropdown[open] summary{background:#f0f4ff}
.om23-dropdown summary::marker{content:''}
.om23-dropdown-content{position:absolute;top:37px;right:0;z-index:90;width:300px;max-width:min(440px,88vw);max-height:70vh;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:15px;background:#fff;border:1px solid #dce4f0;border-radius:12px;box-shadow:0 18px 48px #1324472a}
.om23-dropdown:not([open]) .om23-dropdown-content{display:none}
.om23-dropdown-content label{margin:3px 0;display:flex;align-items:center;gap:6px}
.om23-dropdown-content label:has(select){flex-direction:column;align-items:stretch}
.om23-dropdown-content label input[type=checkbox]{width:auto!important}
.om23-dropdown-content a{font-size:12px;text-decoration:none;color:#2349b4}
.om23-dropdown-content small{font-size:11px;color:#64748b}
.om23-menu-title{font-weight:780;font-size:13px}
.om23-legacy-tools{display:inline-flex;align-items:center;gap:3px;order:-1;flex:0 0 auto}
.om23-legacy-tools [data-tool]{display:none}
.om23-legacy-tools .om-studio-divider{display:none}
.om23-legacy-tools [data-action]{padding:6px!important;min-width:28px!important}
.om23-legacy-tools label{margin:0!important;font-size:11px!important}
.om23-insert-tools{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.om23-insert-tools [data-tool]{display:inline-flex;align-items:center;justify-content:flex-start;gap:7px;border:1px solid #e2e8f0;background:white}
.om23-insert-tools [data-tool] b{font-size:16px}
.om23-dropdown-content .om23-primary{background:#335ce4;color:white;border:0}
.om-studio-slides{padding:10px 9px;gap:10px}
.om-studio button.om-studio-new{min-height:36px;font-size:12px;background:#203a68}
.om-studio-thumb-art{width:128px;min-height:70px;padding:9px}
.om-studio-thumb{min-height:72px}
.om-studio-thumb-art b{font-weight:750}
.om-studio-inspector{max-height:calc(100vh - 50px)}
.om-studio-panel{max-height:calc(100vh - 165px);padding:14px}
.om-studio-stage-wrap{padding:70px 95px;min-height:420px;overflow:auto;align-items:center;justify-content:flex-start;scrollbar-gutter:stable}
.om-studio-sheet{max-width:1280px;min-width:360px;overflow:visible;isolation:auto;box-shadow:0 6px 34px #1328471a}
.om-studio-canvas-rainbow{height:3px;opacity:.75;pointer-events:none}
.om-studio-object{z-index:2}
.om-studio-object-image{overflow:hidden!important;border-radius:3px}
.om-studio-object-image img{object-fit:cover}
.om23-shape-visual{position:absolute;inset:0;pointer-events:none}
.om-studio-object-shape{background:transparent!important;box-shadow:none!important}
.om-studio-shape-arrow{clip-path:polygon(0 var(--arrow-top,30%),calc(100% - var(--arrow-head,30%)) var(--arrow-top,30%),calc(100% - var(--arrow-head,30%)) 0,100% 50%,calc(100% - var(--arrow-head,30%)) 100%,calc(100% - var(--arrow-head,30%)) var(--arrow-bottom,70%),0 var(--arrow-bottom,70%))}
.om-studio-shape-line{clip-path:polygon(0 var(--arrow-top,40%),100% var(--arrow-top,40%),100% var(--arrow-bottom,60%),0 var(--arrow-bottom,60%))}
.om23-grip{position:absolute;width:11px;height:11px;border:2px solid white;background:#3361eb;box-shadow:0 1px 3px #1a31613b;border-radius:3px;z-index:15;display:none}
.om-studio-object.selected .om23-grip,.om-studio-object.selected .om23-rotate-grip{display:block}
.om23-grip-nw{left:-6px;top:-6px;cursor:nwse-resize}.om23-grip-n{left:50%;top:-6px;cursor:ns-resize}.om23-grip-ne{right:-6px;top:-6px;cursor:nesw-resize}.om23-grip-e{right:-6px;top:50%;cursor:ew-resize}.om23-grip-se{right:-6px;bottom:-6px;cursor:nwse-resize}.om23-grip-s{left:50%;bottom:-6px;cursor:ns-resize}.om23-grip-sw{left:-6px;bottom:-6px;cursor:nesw-resize}.om23-grip-w{left:-6px;top:50%;cursor:ew-resize}
.om23-rotate-grip{position:absolute;left:50%;top:-36px;transform:translateX(-50%);cursor:grab;border:1px solid #bbc8e4;color:#315ce7;border-radius:50%;background:white;font-size:14px;width:23px;height:23px;text-align:center;display:none;z-index:15}
.om23-rotate-grip:after{content:'';position:absolute;width:1px;height:13px;top:22px;left:50%;background:#315ce7}
.om23-text-edit{cursor:text!important;user-select:text!important;outline:2px dashed #335ce4!important}
.om-studio button:not(.om-studio-primary):not(.om-studio-new):not([data-save]):not(.om23-primary){background-image:none!important}
.om-studio button[data-save],.om23-toolbar-actions>a.om23-present{background:#335ce4!important}
.om-studio button,.om-studio a{transition:background .16s,border-color .16s,opacity .16s}
.om23-question-settings{margin:10px 0;padding:12px;border-radius:12px;background:#f8faff;border:1px solid #e7edf7}
.om23-question-settings input[type=number],.om23-question-settings textarea,.om23-question-settings select{width:100%}
.om23-checkbox{display:flex!important;align-items:center;gap:7px}.om23-checkbox input{width:auto!important}
@media(max-width:1100px){.om23-toolbar-actions>button[data-toggle-slides],.om23-toolbar-actions>button[data-toggle-inspector]{font-size:0}.om23-toolbar-actions>button[data-toggle-slides]::first-letter,.om23-toolbar-actions>button[data-toggle-inspector]::first-letter{font-size:15px}.om23-toolbar-meta strong{max-width:140px}.om-studio-work{grid-template-columns:130px minmax(0,1fr) 265px}.om-studio.om23-hide-slides .om-studio-work{grid-template-columns:0 minmax(0,1fr) 265px}.om-studio.om23-hide-inspector .om-studio-work{grid-template-columns:130px minmax(0,1fr) 0}.om-studio-thumb-art{width:99px}}
@media(max-width:800px){.om23-toolbar-meta .om-studio-save,.om23-qr{display:none}.om-studio-work{grid-template-columns:0 minmax(0,1fr) 0}.om-studio-slides,.om-studio-inspector{visibility:hidden;pointer-events:none}.om-studio:not(.om23-hide-slides) .om-studio-slides{visibility:visible;pointer-events:auto;position:absolute;z-index:18;width:195px;top:100px;bottom:0;background:#fff;box-shadow:5px 5px 20px #13284725}.om-studio:not(.om23-hide-inspector) .om-studio-inspector{visibility:visible;pointer-events:auto;position:absolute;z-index:18;right:0;top:100px;bottom:0;width:295px;box-shadow:-5px 5px 20px #13284725}.om-studio-work,.om-studio.om23-hide-slides .om-studio-work,.om-studio.om23-hide-inspector .om-studio-work{grid-template-columns:0 minmax(0,1fr) 0}.om23-legacy-tools [data-action]:nth-of-type(n+5){display:none}.om-studio-stage-wrap{padding:55px 35px}.om23-toolbar-meta strong{max-width:90px}}
.om23-demo-disclaimer{display:block;text-align:center;color:#687894;font-size:10px;line-height:1.4}
.om-studio-chart-box::after{content:'ANTEPRIMA · DATI DI ESEMPIO';font-size:9px;position:absolute;right:8px;top:6px;color:#8e99b1;letter-spacing:.08em;pointer-events:none}
.om-studio-object-text{overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.12;}

/* 2.3.1: menu actions stays in the existing compact editor row. */
.om23-toolbar-actions>.om231-presentation-menu{flex:0 0 auto}
.om23-toolbar-actions>.om231-presentation-menu summary{width:33px;min-height:33px;font-size:20px}

/* 2.4: histogram is a contiguous frequency distribution, not category bars. */
.om-studio-demo-chart.histogram{gap:0;align-items:stretch;padding-inline:12px}
.om-studio-demo-chart.histogram .om-studio-demo-col{flex:1;width:auto;gap:1px}
.om-studio-demo-chart.histogram .om-studio-demo-col i{border-radius:2px 2px 0 0}
.om-studio-chart-box .om-studio-demo-chart.pie{align-items:center;justify-content:center}
.om-studio-chart-box .om-studio-demo-pie{height:min(95%,90cqw);width:auto;max-width:95%;aspect-ratio:1}
.om-studio-chart-box{container-type:size}
.om-studio-chart-box .om-studio-demo-chart{height:100%;min-height:0}
.om24-feedback-config{min-width:330px;max-width:min(390px,95vw);max-height:75vh;overflow-y:auto}
.om24-feedback-config input,.om24-feedback-config textarea,.om24-feedback-config select{width:100%;max-width:100%}
.om24-feedback-config label:has(input[type=checkbox]){display:flex;align-items:center;gap:8px}
.om24-feedback-config label input[type=checkbox]{width:auto}
.om24-feedback-config [hidden]{display:none!important}

.om241-setting-disabled{opacity:.4;filter:grayscale(1)}.om241-setting-disabled select{cursor:not-allowed}

.om241-slide-slot{position:relative;margin:0 2px 10px;cursor:grab}.om241-slide-slot.dragging{opacity:.52;outline:2px dashed #3a65e7;border-radius:10px}
.om241-slide-slot .om-studio-thumb{display:block;margin:0}.om241-slide-arrows{position:absolute;right:5px;top:5px;display:flex;gap:2px;z-index:4;opacity:0;transition:opacity .12s}
.om241-slide-slot:hover .om241-slide-arrows,.om241-slide-slot:focus-within .om241-slide-arrows{opacity:1}
.om241-slide-arrows button{width:23px!important;height:25px!important;min-height:25px!important;padding:0!important;border-radius:5px!important;box-shadow:none!important;font-size:15px!important;background:#e8efff!important;color:#173b7d!important}
.om241-slide-arrows button:after{display:none!important}.om241-slide-lock{position:absolute;right:7px;top:7px;z-index:3;font-size:14px}.om241-slide-locked{cursor:default}
@media (hover:none){.om241-slide-arrows{opacity:1}}

/* 2.4.1 — Studio charts fill their frames on diagonal resize. */
.om-studio-chart-box{container-type:size}
.om-studio-chart-box .om-studio-demo-chart.gauge{width:100%;height:100%;min-height:0;padding:3%;container-type:normal}
.om-studio-chart-box .om-studio-demo-gauge{width:min(84cqw,166cqh);height:auto;aspect-ratio:2/1;min-height:0;max-width:none;border-width:clamp(9px,6cqh,56px);border-bottom:0;border-radius:1000px 1000px 0 0;flex:none}
.om-studio-chart-box .om-studio-demo-gauge b{font-size:calc(clamp(20px,5cqh,69px) * var(--om24-content-scale,1));line-height:1.15}
.om-studio-chart-box .om-studio-demo-gauge small{font-size:calc(clamp(10px,2cqh,25px) * var(--om24-content-scale,1))}
.om-studio-chart-box .om-studio-demo-chart .om-studio-demo-col small{font-size:calc(clamp(10px,1.8cqh,20px) * var(--om24-content-scale,1))}
.om-studio-chart-box .om-studio-demo-chart.pie .om-studio-demo-pie{width:min(80cqw,80cqh);height:min(80cqw,80cqh);max-width:none;flex:none}

/* OpenMenti 2.4.6: studio preview matches the public bar layout. */
.om-studio-demo-chart.vertical .om-studio-demo-col,.om-studio-demo-chart.histogram .om-studio-demo-col{display:grid;grid-template-rows:minmax(0,1fr) 2.5em;align-items:stretch;min-width:0;gap:3px}
.om246-demo-bar-area{height:100%;min-height:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;position:relative;padding-top:1.5em;box-sizing:border-box}
.om246-demo-bar-area i{max-height:73%;flex:none;min-height:0!important}
.om246-demo-count{position:absolute;top:0;left:0;right:0;text-align:center;font-size:clamp(10px,1.8cqh,20px);color:#142744;line-height:1.1}
.om-studio-demo-chart .om-studio-demo-col small.om246-demo-label{font-size:clamp(9px,1.6cqh,17px);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:100%;min-height:0;align-self:end;line-height:2em;text-align:center}


/* 2.4.7 — horizontal arrows and vertically coloured count labels, Studio preview. */
.om-studio-chart-box .om-studio-demo-chart{--om247-chart-scale:var(--om24-content-scale,1)}
.om-studio-chart-box .om-studio-demo-chart .om246-demo-count{
 top:auto;bottom:calc(var(--om247-demo-height,0%) + 2px);font-size:min(calc(21px * var(--om247-chart-scale,1)),6cqh);
 font-weight:850;line-height:1.1;color:inherit;white-space:nowrap;
}
.om-studio-chart-box .om247-demo-horizontal{display:flex;flex-direction:column;justify-content:center;gap:min(1.5cqh,10px)}
.om-studio-chart-box .om247-demo-row{display:grid;grid-template-columns:minmax(0,29%) minmax(0,1fr) minmax(1.8em,auto);
 gap:clamp(3px,1cqw,12px);align-items:center;min-width:0;min-height:0;flex:1 1 0;max-height:20%;
 font-size:min(calc(16px * var(--om247-chart-scale,1)),4.5cqh)}
.om-studio-chart-box .om247-demo-row>.om247-demo-hlabel{font-size:1em;width:auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;line-height:1.25;color:#14274e;font-weight:650}
.om-studio-chart-box .om247-demo-row>.om247-demo-track{display:block;width:100%;height:clamp(20px,8cqh,48px);background:#eaf0f8;overflow:visible;min-width:0;border-radius:4px}
.om-studio-chart-box .om247-demo-track>.om247-demo-arrow{display:block;min-height:0;height:100%;clip-path:polygon(0 0,calc(100% - min(5cqh,18px)) 0,100% 50%,calc(100% - min(5cqh,18px)) 100%,0 100%);border-radius:0}
.om-studio-chart-box .om247-demo-hcount{font-size:1.22em;font-weight:800;line-height:1;text-align:right;font-variant-numeric:tabular-nums}
/* Keep preview typography consistent with the public chart model, diagonal zoom only. */
.om-studio-chart-box .om-studio-demo-chart .om247-demo-row{
 font-size:min(calc(18px * var(--om247-chart-scale,1)),12cqh)!important;
}
.om-studio-chart-box .om-studio-demo-chart .om246-demo-count{
 font-size:min(calc(23px * var(--om247-chart-scale,1)),12cqh)!important;
}
.om-studio-chart-box .om-studio-demo-chart .om246-demo-label{
 font-size:min(calc(17px * var(--om247-chart-scale,1)),10cqh)!important;
}

/* OpenMenti editor safety patch — toolbar stays inside the central column across PCs and zoom levels. */
.om-studio .om-studio-main{min-width:0;max-width:100%}
.om-studio .om-studio-toolbar{
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;
 grid-template-areas:"meta" "actions" "legacy";gap:5px!important;
 width:100%;max-width:100%;min-width:0;box-sizing:border-box;
 align-items:center;justify-items:stretch;overflow:visible;
}
.om-studio .om23-toolbar-meta{grid-area:meta;flex:auto;min-width:0;max-width:100%;width:100%;overflow:hidden}
.om-studio .om23-toolbar-meta strong{max-width:min(380px,55%)}
.om-studio .om23-toolbar-actions{grid-area:actions;display:flex;flex:0 1 auto;flex-wrap:wrap;gap:5px;
 min-width:0;width:100%;max-width:100%;justify-content:flex-start;align-items:center}
.om-studio .om23-toolbar-actions>*{flex:0 0 auto;max-width:100%}
.om-studio .om23-legacy-tools{grid-area:legacy;order:initial;max-width:100%;width:100%;min-width:0;
 display:flex;flex-wrap:wrap;overflow-x:auto;overflow-y:hidden}
.om-studio .om23-toolbar-actions>.om23-present{position:static!important;transform:none!important;margin:0!important}
.om-coedit-warning{margin:8px 12px;padding:12px;display:flex;gap:8px;flex-wrap:wrap;align-items:center;
 background:#fff5e8;border:1px solid #e9ab64;border-radius:10px;color:#663e16;z-index:2;font-size:13px}
.om-coedit-warning[hidden],.om-create-save-later[hidden]{display:none!important}
.om-coedit-message{flex:1 1 270px}
.om-coedit-warning button,.om-create-save-later{border-radius:7px;padding:8px 11px;font-weight:700;border:1px solid #ba7939;background:white;color:#613a1c;cursor:pointer}
.om-coedit-warning button:focus-visible,.om-create-save-later:focus-visible{outline:3px solid #315dec;outline-offset:2px}
.om-create-save-later{margin:8px 0;width:100%}
@media(max-width:800px){
 .om-studio .om-studio-toolbar{overflow:visible!important}
 .om-studio .om23-toolbar-actions{flex-wrap:wrap}
 .om-studio .om23-legacy-tools{max-width:100%;overflow-x:auto}
}

/* Responsive inspector drawers start below the real, wrapped toolbar height. */
.om-studio .om-studio-work{position:relative}
@media(max-width:800px){
 .om-studio:not(.om23-hide-slides) .om-studio-slides,
 .om-studio:not(.om23-hide-inspector) .om-studio-inspector{top:var(--om-studio-safe-panel-top,220px)!important}
}

.om-coedit-release{font-size:10px;font-weight:650;white-space:nowrap;color:#586783;border-radius:7px;
 background:#edf2f8;padding:3px 6px}
@media(max-width:900px){.om-coedit-release{font-size:9px}}

/* R8.3.2 TEST — smaller vertical bars and labels; preserves existing user element positions. */
.om-studio-chart-box .om-studio-demo-chart.vertical .om246-demo-bar-area i,
.om-studio-chart-box .om-studio-demo-chart.histogram .om246-demo-bar-area i{
  width:72%;margin-inline:auto;max-height:60%;
}
.om-studio-chart-box .om-studio-demo-chart.vertical .om246-demo-count,
.om-studio-chart-box .om-studio-demo-chart.histogram .om246-demo-count{
  font-size:min(calc(14px * var(--om247-chart-scale,1)),4cqh)!important;
  line-height:1.1;
}
.om-studio-chart-box .om-studio-demo-chart.vertical .om246-demo-label,
.om-studio-chart-box .om-studio-demo-chart.histogram .om246-demo-label{
  font-size:min(calc(11px * var(--om247-chart-scale,1)),3cqh)!important;
  line-height:1.35!important;
  overflow:hidden;text-overflow:ellipsis;
}

/* The complete save error must remain readable even when top bar is narrow. */
.om-studio-save-failure:not([hidden]){
  display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 14px;
  background:#fff1f2;color:#811b35;border-bottom:2px solid #e8708f;
  font:600 13px/1.4 system-ui,sans-serif;position:relative;z-index:9;
}
.om-studio-save-failure-text{flex:1 1 280px;min-width:0;white-space:normal;overflow-wrap:anywhere}
.om-studio-save-failure button{min-height:34px;border:1px solid #b93354!important;border-radius:6px!important;background:white!important;color:#891b3b!important;font-weight:700}
@media(max-width:680px){.om-studio-save-failure{position:relative;z-index:20}}
