/* ═══════════════════════════════════════════════════════════
   ONOFF Editor Pro v2 — popup chiari, ridimensionamento testi,
   blocchi geometrici, salvataggio persistente
   ═══════════════════════════════════════════════════════════ */

/* ─── Launcher fisso ─── */
#edp-launcher {
  position: fixed; left: 18px; bottom: 18px; z-index: 99990;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  border: 0; border-radius: 999px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 14px 32px -10px rgba(15,23,42,.45);
  transition: transform .15s, box-shadow .15s;
}
#edp-launcher:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(15,23,42,.55); }
#edp-launcher .edp-launcher-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #fb923c;
  box-shadow: 0 0 0 4px rgba(251,146,60,.28);
  animation: edp-pulse 1.6s ease-in-out infinite;
}
@keyframes edp-pulse { 0%,100%{opacity:.7} 50%{opacity:1} }
#edp-launcher.is-active {
  background: linear-gradient(135deg, #ea580c, #c2410c);
}

/* ─── Toolbar laterale (pannello modes) ─── */
#edp-panel {
  position: fixed; left: 18px; bottom: 72px;
  z-index: 99988;
  width: 320px; max-width: calc(100vw - 36px);
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 24px 60px -16px rgba(15,23,42,.3);
  font-family: "Inter", system-ui, sans-serif;
  display: none;
  flex-direction: column;
  overflow: hidden;
  color: #0f172a;
}
#edp-panel.is-open { display: flex; animation: edp-slide .22s ease-out; }
@keyframes edp-slide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
#edp-panel header {
  padding: 14px 16px;
  background: #0f172a; color: white;
  display: flex; align-items: center; justify-content: space-between;
}
#edp-panel header h3 {
  margin: 0; font-size: 13px; font-weight: 600;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
}
#edp-panel header h3::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #fb923c; box-shadow: 0 0 0 3px rgba(251,146,60,.3);
}
#edp-panel header .edp-x {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 0; color: white;
  cursor: pointer; font-size: 14px; line-height: 1;
}
#edp-panel header .edp-x:hover { background: rgba(255,255,255,.22); }

.edp-modes {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; padding: 14px;
}
.edp-mode {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 4px;
  padding: 12px 12px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0; border-radius: 12px;
  font-family: inherit; font-size: 12px; font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: all .15s;
  text-align: left;
}
.edp-mode small {
  display: block; font-weight: 400; color: #64748b;
  font-size: 10.5px; line-height: 1.35;
}
.edp-mode-icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid #e2e8f0;
  font-size: 14px;
  margin-bottom: 4px;
}
.edp-mode:hover {
  border-color: #fb923c; background: #fff7ed;
}
.edp-mode.is-active {
  border-color: #ea580c; background: #ffedd5;
  box-shadow: 0 0 0 3px rgba(251,146,60,.18);
}
.edp-mode.is-active .edp-mode-icon { background: #fb923c; color: white; border-color: #fb923c; }

.edp-panel-actions {
  display: flex; gap: 8px;
  padding: 0 14px 14px;
}
.edp-btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: white;
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.edp-btn:hover { border-color: #cbd5e1; background: #f8fafc; }
.edp-btn.is-primary {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: white; border-color: transparent;
  box-shadow: 0 6px 18px -6px rgba(234,88,12,.45);
}
.edp-btn.is-primary:hover { box-shadow: 0 10px 24px -6px rgba(234,88,12,.55); }
.edp-btn.is-ghost { background: transparent; }
.edp-btn.is-danger { color: #b91c1c; border-color: #fecaca; }
.edp-btn.is-danger:hover { background: #fef2f2; }

.edp-panel-status {
  padding: 10px 14px;
  font-size: 11px; color: #64748b;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  min-height: 32px;
}
.edp-panel-status.ok { color: #059669; }
.edp-panel-status.err { color: #b91c1c; }

/* ─── Hover halo su elementi editabili ─── */
body.edp-mode-text [data-edp-text]:hover,
body.edp-mode-image [data-edp-image]:hover,
body.edp-mode-resize [data-edp-resizable]:hover {
  cursor: pointer;
  outline: 2px dashed #fb923c;
  outline-offset: 4px;
  border-radius: 6px;
  background: rgba(251,146,60,.06);
}
body.edp-mode-text [data-edp-text],
body.edp-mode-image [data-edp-image],
body.edp-mode-resize [data-edp-resizable] {
  transition: outline-color .12s, background .12s;
}

/* In modalità shape, cursore crosshair */
body.edp-mode-shape { cursor: crosshair !important; }
body.edp-mode-shape * { cursor: crosshair !important; }

/* ─── Popup di modifica (centrato, modal) ─── */
.edp-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.5);
  backdrop-filter: blur(4px);
  z-index: 99995;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.edp-modal-overlay.is-open {
  opacity: 1; pointer-events: auto;
}
.edp-modal {
  background: white;
  border-radius: 18px;
  width: 480px; max-width: 100%;
  max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 32px 80px -12px rgba(15,23,42,.4);
  overflow: hidden;
  font-family: "Inter", system-ui, sans-serif;
  color: #0f172a;
  transform: translateY(8px);
  transition: transform .25s;
}
.edp-modal.is-manual { width: 760px; }
.edp-modal-overlay.is-open .edp-modal { transform: translateY(0); }
.edp-modal header {
  padding: 18px 22px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  display: flex; align-items: center; justify-content: space-between;
}
.edp-modal header .edp-modal-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600;
}
.edp-modal header .edp-modal-target {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  background: rgba(255,255,255,.14);
  padding: 4px 10px;
  border-radius: 999px;
  color: #fbbf24;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.edp-modal header .edp-x {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 0; color: white;
  cursor: pointer; font-size: 16px; line-height: 1;
}
.edp-modal-body {
  flex: 1; overflow-y: auto;
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 16px;
}

.edp-field { display: flex; flex-direction: column; gap: 6px; }
.edp-field label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #64748b; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.edp-field label b {
  font-family: inherit; color: #ea580c; font-size: 12px;
}
.edp-input, .edp-textarea, .edp-select {
  width: 100%;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  color: #0f172a;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.edp-textarea { min-height: 90px; resize: vertical; line-height: 1.45; }
.edp-input:focus, .edp-textarea:focus, .edp-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56,189,248,.18);
}
.edp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.edp-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.edp-color-row {
  display: flex; align-items: center; gap: 10px;
}
.edp-color-row input[type=color] {
  width: 44px; height: 36px; border: 1.5px solid #e2e8f0;
  border-radius: 8px; cursor: pointer; padding: 2px;
  background: white;
}
.edp-toggle-row {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.edp-toggle {
  padding: 8px 14px;
  background: white; border: 1.5px solid #e2e8f0;
  border-radius: 8px; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 600;
  color: #0f172a;
  transition: all .12s;
}
.edp-toggle:hover { border-color: #cbd5e1; background: #f8fafc; }
.edp-toggle.is-active {
  background: #0f172a; color: white; border-color: #0f172a;
}

.edp-modal-foot {
  display: flex; gap: 8px; justify-content: flex-end;
  padding: 14px 22px;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
}

.edp-hint {
  font-size: 11.5px; color: #64748b;
  line-height: 1.45;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
}
.edp-hint b { color: #0f172a; }

/* ─── Maniglia ridimensiona (handle) ─── */
.edp-resize-wrap {
  position: relative;
}
.edp-resize-overlay {
  position: absolute;
  pointer-events: none;
  z-index: 9000;
  border: 2px dashed #2563eb;
  border-radius: 6px;
  background: rgba(37,99,235,.06);
  box-shadow: 0 0 0 1px rgba(37,99,235,.3);
  transition: border-color .12s;
}
.edp-resize-overlay.is-blocked {
  border-color: #dc2626;
  background: rgba(220,38,38,.08);
}
.edp-resize-handle {
  position: absolute;
  pointer-events: auto;
  width: 14px; height: 14px;
  background: white;
  border: 2px solid #2563eb;
  border-radius: 50%;
  cursor: nwse-resize;
  z-index: 9001;
  box-shadow: 0 2px 6px rgba(15,23,42,.2);
}
.edp-resize-handle[data-h="e"]  { cursor: ew-resize; }
.edp-resize-handle[data-h="w"]  { cursor: ew-resize; }
.edp-resize-handle[data-h="n"]  { cursor: ns-resize; }
.edp-resize-handle[data-h="s"]  { cursor: ns-resize; }
.edp-resize-handle[data-h="nw"] { cursor: nwse-resize; }
.edp-resize-handle[data-h="se"] { cursor: nwse-resize; }
.edp-resize-handle[data-h="ne"] { cursor: nesw-resize; }
.edp-resize-handle[data-h="sw"] { cursor: nesw-resize; }

.edp-resize-toast {
  position: absolute;
  top: -34px; left: 50%; transform: translateX(-50%);
  background: #0f172a; color: white;
  padding: 5px 10px; border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
}
.edp-resize-toast.is-blocked { background: #dc2626; }

/* ─── Blocchi geometrici inseriti ─── */
.edp-shape {
  position: absolute;
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px; font-weight: 600;
  color: #0f172a;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  cursor: move;
  user-select: none;
  background-size: cover;
  background-position: center;
  padding: 16px;
  word-wrap: break-word;
  overflow: hidden;
  box-sizing: border-box;
  text-wrap: pretty;
  box-shadow: 0 12px 28px -10px rgba(15,23,42,.25);
}
.edp-shape.is-circle { border-radius: 50%; }
.edp-shape.is-rounded { border-radius: 22px; }
.edp-shape.is-square { border-radius: 6px; }
.edp-shape.is-pill { border-radius: 999px; }
.edp-shape.is-diamond {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  border-radius: 0;
}
.edp-shape.is-hexagon {
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  border-radius: 0;
}
.edp-shape.is-triangle {
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  border-radius: 0;
}
.edp-shape.is-star {
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  border-radius: 0;
}
.edp-shape.is-blob {
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
}
.edp-shape[data-has-image="1"] { color: white; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.edp-shape:hover { box-shadow: 0 18px 36px -10px rgba(15,23,42,.35); }

.edp-shape-chrome {
  position: absolute;
  top: 4px; right: 4px;
  display: none;
  background: rgba(15,23,42,.92);
  color: white;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
  align-items: center;
  z-index: 9000;
  box-shadow: 0 8px 18px -6px rgba(15,23,42,.4);
  white-space: nowrap;
  pointer-events: auto;
  cursor: default !important;
}
body.edp-mode-shape .edp-shape-chrome,
body.edp-mode-shape .edp-shape-chrome * { cursor: default !important; }
.edp-shape.is-selected { outline: 2px dashed #2563eb; outline-offset: 4px; overflow: visible; }
.edp-shape.is-selected .edp-shape-chrome { display: inline-flex; }
.edp-shape-chrome button {
  width: 24px; height: 24px;
  background: transparent; border: 0; color: white;
  border-radius: 5px;
  cursor: pointer !important; font-size: 12px;
  display: grid; place-items: center;
  pointer-events: auto;
}
.edp-shape-chrome button:hover { background: rgba(255,255,255,.16); }

.edp-shape-text {
  pointer-events: none;
  display: block;
  width: 100%;
  text-align: center;
}

/* ─── Shape placement ghost ─── */
.edp-shape-ghost {
  position: absolute;
  pointer-events: none;
  z-index: 9999;
  border: 2px dashed #ea580c;
  background: rgba(251,146,60,.16);
  display: grid; place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #ea580c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* ─── Tip iniziale ─── */
.edp-tip {
  position: fixed; left: 18px; bottom: 78px;
  z-index: 99989;
  background: #0f172a; color: white;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px; max-width: 280px;
  box-shadow: 0 12px 28px -8px rgba(15,23,42,.4);
  opacity: 0; transform: translateY(8px);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.edp-tip.show { opacity: 1; transform: translateY(0); }
.edp-tip::after {
  content: ""; position: absolute;
  left: 24px; bottom: -6px;
  width: 12px; height: 12px;
  background: #0f172a;
  transform: rotate(45deg);
}
.edp-tip b { color: #c8ff3c; }

/* ─── Hero simulator tile (icona nuova in hero) ─── */
.hero-sim-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  margin-top: 28px;
  max-width: 600px;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 22px;
  text-decoration: none;
  color: #0f172a;
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
  box-shadow: 0 14px 34px -14px rgba(15,23,42,.18);
}
.hero-sim-tile::before {
  content: "";
  position: absolute; inset: 0;
  padding: 2px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fb923c, #38bdf8 60%, #34d399);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.hero-sim-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -16px rgba(15,23,42,.28);
}
.hero-sim-tile-bg {
  position: absolute; right: -20px; top: -10px;
  width: 160px; height: 160px;
  pointer-events: none;
  opacity: .65;
}
.hero-sim-tile-bg svg { width: 100%; height: 100%; }
.hero-sim-tile-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: white;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 10px 24px -8px rgba(234,88,12,.55);
  position: relative;
  z-index: 2;
}
.hero-sim-tile-icon svg { width: 30px; height: 30px; }
.hero-sim-tile-text {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  gap: 2px;
  position: relative; z-index: 2;
  text-align: left;
}
.hero-sim-tile-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ea580c;
  font-weight: 700;
}
.hero-sim-tile-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #0f172a;
  line-height: 1.15;
}
.hero-sim-tile-sub {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.4;
  font-weight: 500;
}
.hero-sim-tile-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #0f172a;
  color: white;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform .2s, background .2s;
  position: relative; z-index: 2;
}
.hero-sim-tile-arrow svg { width: 14px; height: 14px; }
.hero-sim-tile:hover .hero-sim-tile-arrow {
  transform: translateX(4px);
  background: linear-gradient(135deg, #fb923c, #ea580c);
}
.hero-sim-tile-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.6) 50%, transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left .7s ease;
}
.hero-sim-tile:hover .hero-sim-tile-shine { left: 130%; }
@media (max-width: 600px) {
  .hero-sim-tile { flex-direction: row; padding: 14px 16px; gap: 12px; }
  .hero-sim-tile-icon { width: 44px; height: 44px; }
  .hero-sim-tile-icon svg { width: 22px; height: 22px; }
  .hero-sim-tile-title { font-size: 15px; }
  .hero-sim-tile-sub { font-size: 11.5px; }
}

/* La barra spostata: stesso look ma in modalità inline (sotto al calc) */
.advanced-sim-link--inline {
  display: flex !important;
  width: 100%;
  margin-top: 14px !important;
  text-align: left;
  justify-content: flex-start;
}

/* ─── MANUALE OPERATIVO (dentro al modal) ─── */
.edp-manual {
  font-size: 14.5px;
  line-height: 1.6;
  color: #1e293b;
}
.edp-manual-intro {
  font-size: 15px;
  color: #475569;
  padding: 14px 16px;
  background: linear-gradient(135deg, #ffedd5, #e0f2fe);
  border-radius: 12px;
  margin: 0 0 18px;
  border: 1px solid #e2e8f0;
}
.edp-manual-toc {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 24px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.edp-manual-toc a {
  display: block;
  padding: 6px 10px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #0f172a;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all .12s;
}
.edp-manual-toc a:hover {
  background: #0f172a; color: white; border-color: #0f172a;
}
.edp-manual h3 {
  margin: 28px 0 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #0f172a;
  border-top: 1px solid #f1f5f9;
  padding-top: 22px;
  scroll-margin-top: 16px;
}
.edp-manual h3 small {
  font-size: 12px; font-weight: 500; color: #64748b;
  margin-left: 8px;
}
.edp-manual p {
  margin: 0 0 10px;
}
.edp-manual code {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}
.edp-manual kbd {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  background: #0f172a; color: white;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  border-bottom: 2px solid #1e293b;
  letter-spacing: 0.03em;
  margin: 0 2px;
  vertical-align: 1px;
}
.edp-manual-steps {
  list-style: none;
  counter-reset: stp;
  padding: 0;
  margin: 12px 0;
}
.edp-manual-steps li {
  counter-increment: stp;
  position: relative;
  padding: 10px 0 10px 38px;
  border-top: 1px solid #f1f5f9;
  font-size: 14px;
  line-height: 1.5;
}
.edp-manual-steps li:last-child { border-bottom: 1px solid #f1f5f9; }
.edp-manual-steps li::before {
  content: counter(stp);
  position: absolute;
  left: 0; top: 10px;
  width: 24px; height: 24px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: white;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
}
.edp-manual-bullets {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.edp-manual-bullets li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 14px;
  line-height: 1.5;
}
.edp-manual-bullets li::before {
  content: "✓";
  position: absolute; left: 0; top: 6px;
  color: #059669;
  font-weight: 700;
}
.edp-manual-callout {
  background: white;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #059669;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.55;
}
.edp-manual-callout.tip    { border-left-color: #2563eb; background: #f0f9ff; }
.edp-manual-callout.warn   { border-left-color: #ea580c; background: #fff7ed; }
.edp-manual-callout.danger { border-left-color: #dc2626; background: #fef2f2; }
.edp-manual-callout b { color: #0f172a; }


/* ─── Audio player attaccato a un blocco ─── */
.edp-audio-player {
  position: absolute;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  border: 0;
  border-radius: 999px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 22px -10px rgba(15,23,42,.55);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.edp-audio-player:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(15,23,42,.65);
}
.edp-audio-player.is-playing {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  animation: edp-audio-pulse 1.4s ease-in-out infinite;
}
@keyframes edp-audio-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251,146,60,.5); }
  50% { box-shadow: 0 0 0 10px rgba(251,146,60,0); }
}
.edp-audio-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: grid; place-items: center;
  font-size: 11px;
  flex-shrink: 0;
}
.edp-audio-label { letter-spacing: -0.01em; }
.edp-audio-time {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  opacity: .75;
  padding-left: 6px;
  border-left: 1px solid rgba(255,255,255,.22);
  margin-left: 2px;
}
.edp-audio-player.edp-audio-pos-tr { top: 10px; right: 10px; }
.edp-audio-player.edp-audio-pos-tl { top: 10px; left: 10px; }
.edp-audio-player.edp-audio-pos-br { bottom: 10px; right: 10px; }
.edp-audio-player.edp-audio-pos-bl { bottom: 10px; left: 10px; }
.edp-audio-player.edp-audio-pos-inline {
  position: static;
  margin: 12px 18px 16px;
  display: inline-flex;
}

/* ─── Topbar resta sottile: NIENTE overflow su logo grande ─── */
.topbar { overflow: visible !important; }
