/* =========================================================
   6. Controles flotantes: zoom, minimapa, leyenda, status, toasts
   ========================================================= */
.float { position: absolute; z-index: 10; }
#zoomBar {
  right: 12px; bottom: 12px; display: flex; align-items: center; gap: 2px; padding: 3px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
#zoomBar .zoom-label { min-width: 46px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; border-radius: 4px; padding: 4px 2px; }
#zoomBar .zoom-label:hover { background: var(--hover); }
#minimap {
  right: 12px; bottom: 56px; width: 200px; height: 130px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--panel); box-shadow: var(--shadow); cursor: crosshair; touch-action: none;
}
#statusBar { left: 12px; bottom: 12px; font-size: 12px; color: var(--fg-3); pointer-events: none; display: flex; gap: 10px; }
#legend {
  left: 12px; bottom: 36px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--fg-2);
  background: color-mix(in srgb, var(--panel) 85%, transparent); padding: 6px 10px; border-radius: var(--radius); border: 1px solid var(--border); pointer-events: none;
}
#legend span { display: inline-flex; align-items: center; gap: 6px; }
#legend svg { width: 28px; height: 10px; overflow: visible; }
#legend .lg-ds { stroke: var(--accent); stroke-width: 2.2; }
#legend .lg-ext { stroke: var(--accent); stroke-width: 2.2; stroke-dasharray: 6 4; }
#legend .lg-src { stroke: var(--edge-source); stroke-width: 1.8; stroke-dasharray: 2 4; stroke-linecap: round; }
#legend .lg-box { width: 14px; height: 10px; border: 1px solid var(--border-strong); border-radius: 3px; display: inline-block; position: relative; }
#legend .lg-box::after { content: ""; position: absolute; left: 3px; top: 3px; width: 5px; height: 4px; border: 1px dashed var(--fg-3); border-radius: 1px; }
#toasts { left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; z-index: 60; }
.toast {
  background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: var(--radius); font-size: 13px; box-shadow: var(--shadow-md);
  animation: toastIn .18s ease-out; max-width: min(460px, 90vw); pointer-events: auto;
}
.toast.error { background: var(--danger); color: #fff; }
.toast.out { opacity: 0; transition: opacity .25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }


/* Estado vacío del lienzo (selection.js → renderEmptyHint) */
#emptyHint {
  left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; width: min(420px, calc(100% - 32px));
  text-align: center; padding: 22px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--panel) 92%, transparent); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
#emptyHint h3 { margin: 0; font-size: 15px; font-weight: 600; }
#emptyHint p { margin: 0; font-size: 13px; color: var(--fg-2); line-height: 1.5; }
#emptyHint .hint { font-size: 12px; color: var(--fg-3); }
#emptyHint .btn { margin-top: 4px; }
