/* OpenMenti 2.0.18: controlli progressivi, ordinamento e doppio schermo. */
.om18-cloud-toolbar,.om18-word-carousel,.om18-order-actions{display:flex;align-items:center;gap:.65rem}
.om18-word-counter{font-size:.8rem;color:#5b6c79;font-variant-numeric:tabular-nums;white-space:nowrap}
.om18-word-carousel{margin-top:1rem;padding:.7rem;border:1px solid #dce6ed;border-radius:12px;flex-wrap:wrap}
.om18-word-selected{flex:1;min-width:120px;overflow-wrap:anywhere;font-weight:600}
.om18-word-carousel button{min-width:44px;min-height:44px}
.om18-word-carousel small{flex-basis:100%;text-align:center}
.om18-rank-list,.om18-order-list{list-style:none;padding:0;display:grid;gap:.55rem}
.om18-rank-list>li,.om18-order-list>li{display:flex;align-items:center;justify-content:space-between;gap:.7rem;padding:.65rem;border:1px solid #dce6ed;border-radius:12px;background:#fff;cursor:grab}
.om18-order-list a,.om18-order-label{flex:1;min-width:0;overflow-wrap:anywhere}
.om18-order-actions{flex-shrink:0}
.om18-order-actions button{padding:.4rem .6rem;min-width:38px;min-height:40px}
.om18-dragging{opacity:.55;outline:2px dashed #13746e}
.om18-rank-result{margin:.8rem 0}
.om18-presenter-layout{display:grid;grid-template-columns:minmax(200px,260px) minmax(0,1fr);gap:1.4rem;align-items:start}
.om18-slide-nav{position:sticky;top:1rem;max-height:82vh;overflow:auto}
.om18-slide-nav form{margin:.4rem 0}.om18-slide-nav button{width:100%;text-align:left;white-space:normal}
.om18-current-slide{outline:3px solid #13746e;background:#edf9f5!important}
.om18-presenter-layout .stage{min-height:350px;margin-top:0}
.om18-public-screen{margin:0;background:#f5f9fb}
.om18-public-screen main{max-width:none;width:100%;padding:0;margin:0}
.om18-public-screen .stage{box-shadow:none;border:0;border-radius:0;margin:0;min-height:100vh;padding:clamp(1.3rem,4vw,4rem)}
.om18-public-screen .stage h1{font-size:clamp(2rem,5vw,4.5rem)}
.om18-public-screen .cloud{min-height:25vh;gap:1.1rem}
.om18-public-screen .om2-google-map{height:min(60vh,680px)}
.om18-public-screen .om2-map-response-dot{width:13px;height:13px}
.om18-audio-activation{position:fixed;right:1rem;bottom:1rem;z-index:20;max-width:350px;background:#fff;border:1px solid #dce6ed;border-radius:12px;padding:.7rem;box-shadow:0 6px 25px #17263f20}
.om18-audio-activation[hidden]{display:none}.om18-audio-activation span{font-size:.85rem}
.om18-map-results>.ghost{margin:.4rem .6rem .7rem 0}
.om18-map-modal{width:min(1100px,96vw);max-width:96vw;height:min(900px,92vh);max-height:92vh;padding:1.2rem;border:0;border-radius:18px;color:#17263f;background:#fff}
.om18-map-modal[open]{display:flex;flex-direction:column;gap:.6rem}
.om18-map-modal::backdrop{background:#17263fb5}
.om18-map-modal h2{margin:0;font-size:1.35rem}.om18-map-modal>button{align-self:flex-end}
.om18-map-modal-canvas{flex:1;min-height:250px;width:100%;border-radius:12px;overflow:hidden}
.om18-map-modal-canvas .om2-map-response-dot{width:13px;height:13px}
.om18-map-answer .om2-google-map{touch-action:manipulation}
.om18-saved-answer .notice{margin:0 0 .8rem}
@media(max-width:850px){.om18-presenter-layout{grid-template-columns:1fr}.om18-slide-nav{position:static;max-height:240px}.om18-order-list>li{padding:.4rem}.om18-public-screen .stage{padding:1.2rem}.om18-map-modal{height:94vh;max-height:94vh;padding:.8rem}}

/* OpenMenti 2.0.23 — riordino con mouse/touch e due colonne anche sul telefono. */
.om23-order-handle{touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;flex:0 0 44px;width:44px;min-width:44px;min-height:44px;padding:0;font-size:1.2rem;letter-spacing:-.16em;line-height:1}
.om23-order-handle:active,.om23-order-active .om23-order-handle{cursor:grabbing}
.om23-order-active{user-select:none;-webkit-user-select:none}
.om18-order-list{display:grid;overflow-anchor:none}
.om18-order-list>li{display:grid;grid-template-columns:minmax(0,1fr) 44px;max-width:none;margin:0}
.om18-order-list>li>a{grid-column:1;grid-row:1}
.om18-order-list .om23-order-handle{grid-column:2;grid-row:1;align-self:start}
.om18-order-list .om18-order-actions{grid-column:1/-1;justify-content:flex-end}
[data-slide-order][data-editable="0"] .om18-order-list>li{cursor:default}
body[data-page="editor"] .editor-sidebar .om18-order-list{max-height:55vh;max-height:55dvh;overflow-y:auto;overscroll-behavior:contain;padding:3px;scroll-behavior:auto}
body[data-page="editor"] .editor-sidebar [data-order-save]{width:100%}
body[data-page="editor"] .editor-workspace .card{min-width:0;overflow-wrap:anywhere}
body[data-page="editor"] .editor-workspace input,body[data-page="editor"] .editor-workspace select,body[data-page="editor"] .editor-workspace textarea{min-width:0;max-width:100%}
@media(max-width:850px){
  body[data-page="editor"] .editor-layout{grid-template-columns:132px minmax(0,1fr);gap:12px}
  body[data-page="editor"] .editor-layout>.editor-sidebar{grid-column:1;grid-row:1/span 2;order:0;position:sticky;top:10px;padding:12px 8px;min-width:0}
  body[data-page="editor"] .editor-workspace{grid-column:2;grid-row:1;order:0}
  body[data-page="editor"] .editor-layout>.editor-preview{grid-column:2;grid-row:2;order:0;position:static}
  body[data-page="editor"] .editor-sidebar .eyebrow{font-size:.6rem;letter-spacing:.07em}
  body[data-page="editor"] .editor-sidebar h3{font-size:.95rem}
  body[data-page="editor"] .editor-sidebar .tiny{font-size:.72rem;line-height:1.4}
  body[data-page="editor"] .om18-order-list{margin:12px 0;gap:8px}
  body[data-page="editor"] .om18-order-list>li{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:3px;padding:5px}
  body[data-page="editor"] .om18-order-list>li>a{grid-column:1;grid-row:1;font-size:.78rem;line-height:1.35;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
  body[data-page="editor"] .om18-order-list .om23-order-handle{grid-column:2;grid-row:1;align-self:start}
  body[data-page="editor"] .om18-order-actions{grid-column:1/-1;justify-content:space-between;gap:4px}
  body[data-page="editor"] .om18-order-actions button{min-width:44px;min-height:44px;padding:0}
  body[data-page="editor"] .editor-sidebar .button,body[data-page="editor"] .editor-sidebar [data-order-save]{padding:9px 4px;font-size:.75rem;white-space:normal}
}
@media(max-width:600px){
  body[data-page="editor"] main{padding:18px 10px 65px}
  body[data-page="editor"] .editor-layout{grid-template-columns:128px minmax(0,1fr);gap:8px}
  body[data-page="editor"] .editor-layout>.editor-sidebar{padding:10px 5px;border-radius:12px}
  body[data-page="editor"] .editor-workspace .card,body[data-page="editor"] .editor-preview>.card{padding:12px 9px;border-radius:12px}
  body[data-page="editor"] .editor-workspace h2,body[data-page="editor"] .editor-preview h2{font-size:clamp(1.05rem,4vw,1.35rem);line-height:1.25}
  body[data-page="editor"] .editor-workspace h3{font-size:1rem}
  body[data-page="editor"] .editor-workspace .actions,body[data-page="editor"] .editor-workspace .inline,body[data-page="editor"] .editor-workspace .split{flex-wrap:wrap;gap:8px}
  body[data-page="editor"] .editor-workspace .actions>*{min-width:0;max-width:100%;white-space:normal}
  body[data-page="editor"] .editor-workspace button,body[data-page="editor"] .editor-workspace .button{white-space:normal;padding:10px 8px;font-size:.82rem}
  body[data-page="editor"] .editor-workspace .inline>*{min-width:0;flex:1 1 100%}
  body[data-page="editor"] .editor-workspace .inline.two,body[data-page="editor"] .editor-workspace .inline.three{grid-template-columns:minmax(0,1fr)}
  body[data-page="editor"] .editor-workspace .type-visual{padding:10px;gap:7px;flex-wrap:wrap}
  body[data-page="editor"] .editor-workspace .qr{width:min(150px,100%);height:auto;aspect-ratio:1}
  body[data-page="editor"] .editor-preview input[type="file"]{width:100%;min-width:0}
}

/* OpenMenti 2.0.24 — sposta i moduli direttamente nell’area centrale. */
.om24-slide-cards{overflow-anchor:none}
.om24-slide-card{position:relative}
.om24-card-handle{display:flex;align-items:center;gap:.6rem;width:100%;min-height:44px;margin:0 0 12px;text-align:left;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;border:1px dashed #a9bccb;background:#f2f7fa;color:#173b53;font-weight:750}
.om24-card-handle>span{font-size:1.35rem;letter-spacing:-.16em}
.om24-card-handle:active,.om23-order-active .om24-card-handle{cursor:grabbing}
.om24-slide-card.om18-dragging{outline:3px dashed #13746e;box-shadow:0 8px 28px #13746e30}
.om24-order-toolbar{position:sticky;top:8px;z-index:12;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px;padding:12px 15px;border:1px solid #dce6ed;border-radius:12px;background:#fff;box-shadow:0 3px 12px #17263f12}
.om24-order-toolbar p{margin:4px 0 0}
.om24-order-toolbar>button{flex-shrink:0;min-height:44px}
body[data-page="editor"] .editor-sidebar .om18-order-list>li{display:block;cursor:default}
body[data-page="editor"] .editor-sidebar .om18-order-list>li>a{display:block;-webkit-line-clamp:unset}
@media(max-width:600px){.om24-order-toolbar{flex-wrap:wrap;padding:10px 8px}.om24-order-toolbar>button{width:100%}.om24-order-toolbar .tiny{font-size:.75rem}}
