/* ===== Laser24 — configuratore immersivo scuro (full-viewport app) ===== */
.l24-fullscreen { margin: 0 !important; padding: 0 !important; max-width: none !important; }

.laser24.l24-app {
  --bg0: #16171d; --bg1: #1e2027; --bg2: #262932; --bg3: #2e313c;
  --line: #313440; --text: #e8eaef; --muted: #9298a6;
  --accent: #C2410C; --accent-2: #9A3412; --ok: #3ecf8e; --blue: #4d9bff;
  --canvas: #0f1015;
  position: fixed; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; z-index: 99; overflow: hidden;
  background: var(--bg0); color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; line-height: 1.5;
}
.laser24.l24-app *, .laser24.l24-app *::before, .laser24.l24-app *::after { box-sizing: border-box; }

/* ---- top bar ---- */
.l24-appbar { display: flex; align-items: center; gap: 14px; height: 56px; flex-shrink: 0;
  padding: 0 18px; background: #121317; border-bottom: 1px solid var(--line); }
.l24-appbrand { font-size: 22px; font-weight: 800; letter-spacing: -.5px; text-decoration: none; color: #fff; }
.l24-appbrand span { color: var(--accent-2); }
.l24-apptag { color: var(--muted); font-size: 13px; font-weight: 600; }
.l24-appnav { display: flex; gap: 2px; margin-left: 6px; }
.l24-appnav a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; padding: 7px 11px; border-radius: 8px; transition: color .12s, background .12s; }
.l24-appnav a:hover { color: #fff; background: var(--bg2); }
.l24-appcart { color: var(--muted); text-decoration: none; font-size: 17px; line-height: 1; }
.l24-appcart:hover { color: #fff; }
.l24-appright { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.l24-apptotal { font-size: 20px; font-weight: 800; color: #fff; }
.l24-appexit { color: var(--muted); text-decoration: none; font-size: 18px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 9px; }
.l24-appexit:hover { background: var(--bg2); color: #fff; }

/* ---- workspace 3 colonne ---- */
.l24-workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: 400px 1fr 380px; grid-template-rows: minmax(0, 1fr); }
.l24-row > *, .l24-row3 > *, .l24-hole-row > *, .l24-slot-row > * { min-width: 0; }
/* min-height:0 sui figli della griglia: senza, con molto contenuto (tante lastre/step) la riga
   cresce oltre il box fisso e i pannelli non scrollano. Con questo l'overflow-scroll si attiva. */
.l24-pane { overflow-y: auto; padding: 18px; background: var(--bg1); min-height: 0; }
.l24-left { border-right: 1px solid var(--line); }
.l24-right { border-left: 1px solid var(--line); }
.l24-pane::-webkit-scrollbar { width: 10px; }
.l24-pane::-webkit-scrollbar-thumb { background: #353844; border-radius: 6px; }

.l24-bottombar { display: none; }
.l24-touch-note { display: none; }
/* Configuratori allineati: via badge fiducia + note produzione dal pannello prezzo. */
.l24-trust, .l24-notef { display: none !important; }
/* Parametrico: dettagli avanzati (raggi/fori/asole) richiudibili + guida DXF numerata. */
.l24-adv { margin-top: 6px; }
.l24-adv > summary { cursor: pointer; font-size: 12px; color: var(--accent-2); list-style: none; padding: 4px 0; font-weight: 600; }
.l24-adv > summary::-webkit-details-marker { display: none; }
.l24-adv > summary:hover { color: #fff; }
.l24-adv .l24-field, .l24-adv .l24-holes { margin-top: 8px; }
.l24-guide { margin: 0 0 10px; padding-left: 18px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.l24-guide li { margin-bottom: 5px; }
.l24-guide a { color: var(--accent-2); font-weight: 600; }

/* Commessa (clienti azienda): selettore + messaggio di conferma. */
.l24-commessa { margin: 6px 0 10px; }
.l24-ok-msg { margin-top: 8px; font-size: 13px; color: #3ecf8e; background: rgba(62,207,142,.10); border: 1px solid #2f6b50; border-radius: 8px; padding: 8px 10px; }
.l24-ok-msg a { color: #fff; text-decoration: underline; }

/* ================= MOBILE — app CAD touch ================= */
@media (max-width: 1100px) {
  .l24-apptag, .l24-apptotal, .l24-appnav { display: none; }
  .l24-appbar { height: 50px; }

  /* canvas a tutto schermo, sotto la top-bar e sopra la bottom-bar */
  .l24-workspace { display: block; position: relative; }
  .l24-canvas { position: absolute; top: 0; left: 0; right: 0; bottom: 58px; }
  .l24-stage { padding: 14px; }

  /* pannelli laterali → bottom-sheet che salgono */
  .l24-pane {
    position: fixed; left: 0; right: 0; bottom: 58px; top: auto; width: auto;
    max-height: 76vh; border: none; border-top: 1px solid var(--line);
    border-radius: 18px 18px 0 0; box-shadow: 0 -12px 34px rgba(0,0,0,.55);
    transform: translateY(120%); transition: transform .26s cubic-bezier(.4,0,.2,1);
    z-index: 70; padding-top: 2px;
  }
  .l24-pane::before { content: ""; display: block; width: 42px; height: 4px; background: #3c3f4b; border-radius: 3px; margin: 8px auto 12px; }
  #l24[data-sheet="config"] .l24-left { transform: translateY(0); }
  #l24[data-sheet="price"] .l24-right { transform: translateY(0); }

  /* backdrop quando un foglio è aperto */
  #l24[data-sheet]:not([data-sheet=""]) .l24-canvas::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); z-index: 60; pointer-events: none; }

  /* barra inferiore di navigazione */
  .l24-bottombar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 58px; z-index: 80; background: #101116; border-top: 1px solid var(--line); }
  .l24-bnav { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: transparent; border: none; color: var(--muted); font-size: 19px; cursor: pointer; }
  .l24-bnav span { font-size: 11px; font-weight: 700; }
  .l24-bnav b { color: var(--accent-2); }
  .l24-bnav.is-active { color: #fff; box-shadow: inset 0 2px 0 var(--accent); }

  /* editor un po' più compatto nei fogli */
  .l24-mini { min-height: 140px; }
  .l24-cta { padding: 14px; }

  /* disegno touch: il tap propone, i numeri danno la precisione */
  .l24-touch-note { display: block; font-size: 12px; color: var(--accent-2); background: rgba(194,65,12,.1); border: 1px solid rgba(194,65,12,.3); border-radius: 9px; padding: 8px 10px; margin-bottom: 8px; font-weight: 600; }
  .l24-dyn input { width: 66px; padding: 8px; font-size: 15px; }
  .l24-dyn-ok { width: 32px; height: 32px; font-size: 15px; }
}

/* ---- blocchi / titoli ---- */
.l24-block { margin-bottom: 18px; }
.l24-block + .l24-block { padding-top: 18px; border-top: 1px solid var(--line); }
.l24-h { margin: 0 0 12px; font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 10px; color: #fff; }
.l24-step { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; }

/* ---- campi ---- */
.l24-field { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 10px; text-transform: none; }
.l24-field input, .l24-field select, .l24-field textarea {
  padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; color: var(--text);
  background: var(--bg2); font-weight: 500; font-family: inherit; transition: border-color .12s, box-shadow .12s; }
.l24-field input:focus, .l24-field select:focus, .l24-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194,65,12,.22); }
.l24-field select option { background: var(--bg2); }
.l24-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.l24-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.l24-hint { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.l24-hint a { color: var(--accent-2); font-weight: 700; }

/* ---- tabs ---- */
.l24-tabs { display: flex; gap: 5px; margin-bottom: 14px; background: var(--bg0); padding: 4px; border-radius: 11px; border: 1px solid var(--line); }
.l24-tab { flex: 1; padding: 8px 5px; border: none; background: transparent; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 12px; color: var(--muted); transition: all .15s; }
.l24-tab:hover { color: var(--text); }
.l24-tab.is-active { background: var(--accent); color: #fff; }

/* ---- editor + mini ---- */
.l24-editor { display: block; }
.l24-mini { background: radial-gradient(circle at 1px 1px, #2a2d38 1px, transparent 0) 0 0/14px 14px, var(--canvas); border: 1px solid var(--line); border-radius: 11px; min-height: 160px; margin-top: 12px; display: flex; align-items: center; justify-content: center; }
.l24-mini svg { width: 100%; height: 100%; padding: 8px; }

/* fori / asole */
.l24-holes { border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 8px; }
.l24-holes-head { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.l24-mini-btn { border: 1px solid var(--accent); color: var(--accent-2); background: transparent; border-radius: 8px; padding: 4px 10px; font-weight: 800; cursor: pointer; font-size: 11.5px; transition: all .12s; }
.l24-mini-btn:hover { background: var(--accent); color: #fff; }
/* foro/asola: riga-card con ogni campo etichettato; l'asola va a capo invece di stringersi */
.l24-hole-row, .l24-slot-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; align-items: flex-end;
  padding: 9px; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; }
.l24-mf { display: flex; flex-direction: column; gap: 3px; flex: 1 1 62px; min-width: 52px;
  font-size: 9px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.l24-mf input { padding: 6px; border: 1px solid var(--line); border-radius: 6px; width: 100%;
  background: var(--bg1); color: var(--text); font-size: 13px; font-weight: 400; text-transform: none; }
.l24-mf input:focus { outline: none; border-color: var(--accent); }
.l24-del { border: none; background: var(--bg3); color: var(--accent-2); border-radius: 7px; width: 26px; height: 26px; cursor: pointer; font-size: 15px; line-height: 1; }
.l24-del:hover { background: var(--accent); color: #fff; }
.l24-filename { font-size: 13px; font-weight: 600; margin-top: 8px; color: var(--text); }
.l24-warn-inline { margin-top: 7px; font-size: 12.5px; font-weight: 600; line-height: 1.4; color: #ffd166; background: rgba(200,134,26,.14); border: 1px solid rgba(200,134,26,.45); border-radius: 9px; padding: 8px 10px; }

.l24-addrow { display: flex; gap: 10px; align-items: flex-end; margin-top: 14px; }
.l24-qtyf { width: 84px; margin-bottom: 0; }
.l24-cta-2 { flex: 1; padding: 11px; border: none; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 800; cursor: pointer; font-size: 14px; transition: background .15s; }
.l24-cta-2:hover { background: var(--accent-2); }

/* ---- lista pezzi ---- */
.l24-parts .l24-empty, #l24-price .l24-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 14px 0; }
.l24-part { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 8px; background: var(--bg2); transition: border-color .12s, box-shadow .12s; cursor: pointer; }
.l24-part:hover { border-color: #44485a; }
.l24-part.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.l24-part.sel .l24-part-thumb { border-color: var(--accent); }
.l24-part-thumb { width: 50px; height: 50px; flex-shrink: 0; background: var(--canvas); border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.l24-part-thumb svg { width: 100%; height: 100%; padding: 5px; }
.l24-part-thumb .l24-dxf { font-size: 11px; font-weight: 800; color: var(--muted); }
.l24-part-body { flex: 1; min-width: 0; }
.l24-part-main { font-size: 13.5px; font-weight: 600; color: #fff; }
.l24-part-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.l24-part-ctl { display: flex; align-items: center; gap: 6px; }
.l24-pqty { width: 54px; padding: 6px; border: 1px solid var(--line); border-radius: 7px; text-align: center; background: var(--bg1); color: var(--text); }
.l24-dup { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 7px; width: 26px; height: 26px; cursor: pointer; font-size: 13px; }
.l24-dup:hover { border-color: var(--accent); color: var(--accent-2); }
.l24-chip-warn { display: inline-block; background: rgba(194,65,12,.16); color: var(--accent-2); border-radius: 999px; padding: 1px 9px; font-size: 11px; font-weight: 800; margin-left: 6px; }

/* ---- canvas centrale ---- */
.l24-canvas { background: var(--canvas); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.l24-canvas-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); flex-shrink: 0; }
.l24-stage { flex: 1 1 50%; min-height: 0; overflow: auto; display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
.l24-stage .l24-empty { margin: auto; color: var(--muted); font-size: 14px; text-align: center; max-width: 320px; }
.l24-3d { flex: 1 1 50%; min-height: 0; position: relative; background: radial-gradient(ellipse at 50% 30%, #1a1c24 0%, var(--canvas) 70%); }
.l24-3d canvas { display: block; }
.l24-3d-hud { position: absolute; left: 14px; top: 14px; z-index: 2; font-family: inherit; font-size: 11px; color: var(--muted);
  background: rgba(13,14,20,.6); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; display: grid; gap: 2px; pointer-events: none; }
.l24-3d-hud b { color: var(--accent-2); font-weight: 600; }
.l24-3d-hud[hidden] { display: none; }
.l24-3d-hint { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; color: var(--muted); font-size: 14px; padding: 0 20px; pointer-events: none; }
/* toggle ingrandisci/riduci 3D */
.l24-canvas.l24-3d-big .l24-stage { flex: 1 1 26%; }
.l24-canvas.l24-3d-big .l24-3d { flex: 1 1 74%; }
.l24-3d-ctl { display: flex; align-items: center; gap: 10px; }
.l24-3d-sel { font-size: 12px; font-weight: 600; color: var(--text); }
.l24-3d-sel a { color: var(--accent-2); text-decoration: none; }
.l24-3d-sel a:hover { text-decoration: underline; }
.l24-3d-btn { background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; width: 30px; height: 26px; cursor: pointer; font-size: 14px; line-height: 1; }
.l24-3d-btn:hover { border-color: var(--accent); }
.l24-sheetwrap { flex: 1 1 0; min-height: 240px; display: flex; flex-direction: column; background: var(--bg1); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.l24-sheetlabel { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; flex-shrink: 0; }
.l24-sheetwrap svg { flex: 1 1 auto; min-height: 0; width: 100%; height: 100%; display: block; overflow: hidden; cursor: zoom-in; touch-action: none; }
#l24-nest.l24-grab .l24-sheetwrap svg { cursor: grabbing; }
.l24-sheet { fill: #f5f6fa; stroke: #5a5f70; stroke-width: 2; vector-effect: non-scaling-stroke; }
.l24-grid line { stroke: #d2d6de; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .45; }
.l24-dim { fill: #6a7080; font-weight: 700; font-family: inherit; }
/* etichette pezzo con alone chiaro per restare leggibili sopra la sagoma */
.l24-plabel { fill: #15171d; font-weight: 800; font-family: inherit; paint-order: stroke; stroke: #f5f6fa; stroke-linejoin: round; }
.l24-pdim { fill: #2e3340; font-weight: 700; font-family: inherit; paint-order: stroke; stroke: #f5f6fa; stroke-linejoin: round; }
.l24-util { font-weight: 600; color: var(--text); }
.l24-util .l24-free { color: var(--ok); font-weight: 700; }
.l24-onlymobile { display: none; }

/* ---- prezzo (destra) ---- */
.l24-trust { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.l24-trust span { background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; font-size: 11.5px; font-weight: 600; color: var(--text); }
.l24-trust b { color: var(--accent-2); }
.l24-vat { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.l24-vat label { display: flex; align-items: center; gap: 6px; margin: 0; }
.l24-vat select, .l24-vat input { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; background: var(--bg2); color: var(--text); }
.l24-vat input { width: 80px; }
.l24-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; font-variant-numeric: tabular-nums; }  /* F40: cifre a larghezza fissa, niente salti nel ricalcolo */
.l24-total b { font-size: 38px; font-weight: 800; letter-spacing: -1px; line-height: 1; color: #fff; }
.l24-total .l24-each { color: var(--muted); font-size: 12px; text-align: right; line-height: 1.4; }

/* F36: rispetta prefers-reduced-motion in tutto il configuratore */
@media (prefers-reduced-motion: reduce){
  .laser24.l24-app *, .laser24.l24-app *::before, .laser24.l24-app *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
.l24-perpiece { font-weight: 800; color: var(--text); }
.l24-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.l24-disc-chip { background: rgba(62,207,142,.16); color: var(--ok); border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 800; }
.l24-badge { background: var(--bg2); color: var(--muted); border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 700; }
.l24-lead-line { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; background: var(--bg2); border-radius: 10px; font-size: 13px; font-weight: 600; }
.l24-nudge { margin-top: 8px; font-size: 12.5px; color: var(--ok); font-weight: 600; }
.l24-break { border-top: 1px dashed var(--line); margin-top: 13px; padding-top: 12px; font-size: 12.5px; }
.l24-break div { display: flex; justify-content: space-between; padding: 2.5px 0; color: var(--muted); }
.l24-vatline { margin-top: 12px; padding: 10px 13px; background: var(--bg2); border: 1px solid var(--line); border-radius: 11px; font-size: 13px; }
.l24-vatline div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--muted); }
.l24-vatline div:last-child { margin-top: 5px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 16px; color: var(--text); }
.l24-vatline b { color: #fff; font-weight: 800; }
.l24-warn { background: rgba(194,65,12,.12); border: 1px solid rgba(194,65,12,.4); color: var(--accent-2); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 12px; }
.l24-warn b { display: block; margin-bottom: 3px; }
.l24-notef { margin-top: 14px; margin-bottom: 0; }
.l24-notef textarea { resize: vertical; }
.l24-cta { width: 100%; margin-top: 14px; padding: 15px; border: none; border-radius: 12px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; transition: background .15s, transform .05s; }
.l24-cta:hover:not(:disabled) { background: var(--accent-2); }
.l24-cta:active:not(:disabled) { transform: translateY(1px); }
.l24-cta:disabled { background: #3a3d48; color: #7c8190; cursor: not-allowed; }
/* PDF = azione secondaria: outline, per non competere con "Aggiungi al carrello" */
#l24-pdf { display: block; text-align: center; text-decoration: none; margin-top: 10px; background: transparent; color: var(--accent-2); border: 1px solid var(--accent); }
#l24-pdf:hover { background: rgba(194,65,12,.12); }
.l24-note-sm { text-align: center; font-size: 11px; color: var(--muted); margin: 12px 0 0; }

/* ---- disegno a mano (scuro) ---- */
.l24-drawmodes { display: flex; gap: 5px; margin-bottom: 10px; }
.l24-dmode { padding: 7px 11px; border: 1px solid var(--line); background: var(--bg2); border-radius: 9px; cursor: pointer; font-weight: 700; font-size: 11.5px; color: var(--muted); transition: all .12s; }
.l24-dmode.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.l24-drawbar, .l24-polar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.l24-drawbar select, .l24-polar input { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg2); color: var(--text); }
.l24-polar input { width: 84px; }
.l24-draw { width: 100%; height: auto; aspect-ratio: 600 / 400; border: 1px solid var(--line); border-radius: 11px; background: var(--canvas); cursor: crosshair; display: block; touch-action: none; }
.l24-draw-wrap { position: relative; }
.l24-dyn { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 4px; background: #0c0d11; border: 1px solid var(--accent); border-radius: 9px; padding: 4px 6px; box-shadow: 0 6px 18px rgba(0,0,0,.6); z-index: 6; }
.l24-dyn span { font-size: 12px; font-weight: 800; color: var(--muted); }
.l24-dyn input { width: 56px; padding: 5px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg2); color: var(--text); font-size: 13px; }
.l24-dyn-ok { border: none; background: var(--accent); color: #fff; border-radius: 6px; width: 26px; height: 26px; font-size: 13px; font-weight: 800; cursor: pointer; }
.l24-dyn-ok:hover { background: var(--accent-2); }
.l24-draw .grid { stroke: #23262f; stroke-width: 1; vector-effect: non-scaling-stroke; }
.l24-draw .grid-100 { stroke: #2f333f; }
.l24-draw .poly { fill: rgba(194,65,12,.16); stroke: var(--accent-2); stroke-width: 2; vector-effect: non-scaling-stroke; }
.l24-draw .ghost { stroke: var(--accent-2); stroke-width: 1.5; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; fill: none; }
.l24-draw .vtx { fill: var(--canvas); stroke: var(--accent-2); stroke-width: 2; vector-effect: non-scaling-stroke; }
.l24-draw .vtx-first { fill: var(--accent-2); }
.l24-draw .hole { fill: var(--canvas); stroke: var(--blue); stroke-width: 2; vector-effect: non-scaling-stroke; }
.l24-draw .hole-ghost { fill: rgba(77,155,255,.18); stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.l24-draw-info { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.l24-draw-verts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.l24-draw-verts .vrow { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); }
.l24-draw-verts input { width: 48px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg2); color: var(--text); }

/* ---- mobile: tab "Pezzi" mostra i pezzi sulla lastra, non gli strumenti di disegno ---- */
@media (max-width: 1100px) {
  .l24-onlymobile { display: block; }
  /* "Pezzi": fa salire il pannello sinistro ma con SOLO la lista pezzi (step 3) */
  #l24[data-sheet="parts"] .l24-left { transform: translateY(0); max-height: 54vh; }
  #l24[data-sheet="parts"] .l24-sec-mat,
  #l24[data-sheet="parts"] .l24-sec-add { display: none; }
  /* "Crea": niente lista pezzi (sta sotto "Pezzi") */
  #l24[data-sheet="config"] .l24-sec-parts { display: none; }
  /* sotto "Pezzi" la lastra resta visibile: niente velo scuro sul canvas */
  #l24[data-sheet="parts"] .l24-canvas::after { display: none; }
}

/* ---- tipo cliente: interruttore + banner d'ingresso ---- */
.l24-ctype { display: flex; gap: 4px; background: var(--bg0); border: 1px solid var(--line); border-radius: 11px; padding: 4px; margin-bottom: 16px; }
.l24-ctype button { flex: 1; padding: 8px 6px; border: none; background: transparent; border-radius: 8px; color: var(--muted); font-weight: 800; font-size: 12.5px; cursor: pointer; transition: background .15s, color .15s; }
.l24-ctype button.is-active { background: var(--accent); color: #fff; }

.l24-gate { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10,11,15,.55); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.l24-gate[hidden] { display: none; }
.l24-gate-card { width: 100%; max-width: 560px; background: var(--bg1); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 24px 70px rgba(0,0,0,.6); text-align: center; }
.l24-gate-card h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: #fff; }
.l24-gate-card > p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.l24-gate-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.l24-gate-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 14px; border: 1px solid var(--line); background: var(--bg2); border-radius: 14px; cursor: pointer; color: var(--text); transition: border-color .15s, transform .05s, background .15s; }
.l24-gate-btn:hover { border-color: var(--accent); background: #2b2e38; }
.l24-gate-btn:active { transform: translateY(1px); }
.l24-gate-ic { font-size: 30px; }
.l24-gate-btn b { font-size: 16px; color: #fff; }
.l24-gate-note { margin: 16px 0 0; font-size: 11.5px; color: var(--muted); }

.l24-pricegate { text-align: center; padding: 10px 4px; }
.l24-pricegate-ic { font-size: 30px; margin-bottom: 6px; }
.l24-pricegate b { display: block; color: #fff; font-size: 15px; margin-bottom: 6px; }
.l24-pricegate p { color: var(--muted); font-size: 12.5px; margin: 0 0 14px; line-height: 1.45; }
.l24-pricegate .l24-cta { display: block; text-decoration: none; }

@media (max-width: 560px) { .l24-gate-opts { grid-template-columns: 1fr; } .l24-gate-card { padding: 22px 18px; } }

/* ---- Modale "Aiuto & guida" (in-app) ---- */
.l24-help { position: fixed; inset: 0; z-index: 220; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10,11,15,.55); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.l24-help[hidden] { display: none; }
.l24-help-card { position: relative; width: 100%; max-width: 620px; max-height: 88vh; overflow-y: auto; background: var(--bg1); border: 1px solid var(--line); border-radius: 16px; padding: 26px 26px 24px; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.l24-help-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--bg2); color: var(--text); border-radius: 9px; cursor: pointer; }
.l24-help-x:hover { background: var(--bg3); color: var(--accent); }
.l24-help-card h2 { margin: 0 0 16px; font-size: 21px; font-weight: 800; color: var(--text); }
.l24-help-card h3 { margin: 0 0 9px; font-size: 14px; font-weight: 700; color: var(--text); }
.l24-help-guide { margin-bottom: 20px; }
.l24-help-guide ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.l24-help-guide li { margin-bottom: 7px; }
.l24-help-guide li b { color: var(--text); font-weight: 700; }
.l24-help-ask { border-top: 1px solid var(--line); padding-top: 18px; }
.l24-help-ask p { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.l24-help-row { display: flex; gap: 10px; margin-bottom: 10px; }
.l24-help-form input, .l24-help-form textarea { width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; color: var(--text); font-family: inherit; font-size: 13.5px; }
.l24-help-form input:focus, .l24-help-form textarea:focus { outline: none; border-color: var(--accent); }
.l24-help-form textarea { resize: vertical; }
.l24-help-form .l24-cta { margin-top: 12px; }
.l24-help-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
.l24-help-msg { font-size: 12.5px; margin: 10px 0 0; min-height: 1em; }
.l24-help-msg.ok { color: var(--ok); }
.l24-help-msg.err { color: var(--accent-2); }
.laser24.l24-app button.lv3-icon { background: none; border: 0; padding: 0; cursor: pointer; }
@media (max-width: 560px) { .l24-help-row { flex-direction: column; gap: 10px; } }

/* ---- step 4: accessori ---- */
.l24-acc { display: flex; flex-direction: column; gap: 9px; }
.l24-acc-card { display: flex; gap: 11px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
.l24-acc-img { width: 74px; height: 56px; flex-shrink: 0; border-radius: 9px; border: 1px solid var(--line); background: var(--canvas); object-fit: cover; }
.l24-acc-noimg { display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--muted); }
.l24-acc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.l24-acc-name { font-size: 13px; color: #fff; font-weight: 600; }
.l24-acc-desc { font-size: 11px; color: var(--muted); line-height: 1.35; }
.l24-acc-foot { display: flex; align-items: center; gap: 7px; margin-top: auto; }
.l24-acc-price { font-size: 12px; font-weight: 700; color: var(--text); margin-right: auto; }
.l24-acc-size { padding: 6px 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg0); color: var(--text); font-size: 12.5px; font-weight: 600; }
.l24-acc-qty { width: 56px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg0); color: var(--text); font-size: 14px; text-align: center; }
.l24-acc-size:focus, .l24-acc-qty:focus { outline: none; border-color: var(--accent); }

/* ===================== LOTTI (multimateriale) ===================== */
.l24-lotbar { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; flex-wrap: wrap; }
.l24-lottabs { display: flex; gap: 6px; flex-wrap: wrap; flex: 1 1 auto; }
.l24-lottab { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg0); color: var(--text); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.l24-lottab.is-active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.l24-lottab .l24-lotn { font-size: 11px; opacity: .7; }
.l24-lotdot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.l24-activelot { font-size: 12px; font-weight: 600; opacity: .85; display: inline-flex; align-items: center; gap: 5px; }

.l24-lot { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.l24-lot.is-active { border-color: var(--accent); }
.l24-lot-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--bg0); cursor: pointer; font-weight: 700; font-size: 13px; }
.l24-lot.is-active .l24-lot-head { box-shadow: inset 3px 0 0 var(--accent); }
.l24-lot-title { flex: 1 1 auto; }
.l24-lot-n { font-size: 11.5px; font-weight: 600; opacity: .7; }
.l24-lot-del { border: none; background: transparent; color: var(--text); opacity: .55; font-size: 16px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.l24-lot-del:hover { opacity: 1; color: var(--accent); }
.l24-lot-parts { padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.l24-lot-empty { padding: 10px; font-size: 12px; }

.l24-lotnest { margin-bottom: 14px; }
.l24-lotnest-head { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; margin: 0 0 6px; opacity: .9; }
