/* ArcReady - circuit zoom/pan controls */
.zp-wrap { flex: 1 1 100%; width: 100%; min-width: 0; }
.zp-host { position: relative; overflow: hidden; }
.zp-host { touch-action: pan-y; }
.zp-host.zp-zoomed { touch-action: none; cursor: grab; }
.zp-host.zp-panning { cursor: grabbing; user-select: none; }
.zp-host:focus-visible { outline: 2px solid var(--red, #CC0000); outline-offset: 2px; }
.zp-bar { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: 0 0 8px; padding: 4px 0; }
.zp-host.zp-full .zp-bar { position: absolute; top: 12px; right: 12px; z-index: 5; margin: 0; padding: 4px;
  background: rgba(255,255,255,.94); border: 1px solid #ccc; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.zp-btn { min-width: 30px; height: 30px; padding: 0 6px; border: 1px solid #bbb; border-radius: 6px; background: #fff;
  color: #1a1a1a; font-size: .95rem; font-weight: 700; line-height: 1; cursor: pointer; }
.zp-btn:hover:not(:disabled) { background: #f5f5f5; border-color: var(--red, #CC0000); }
.zp-btn:focus-visible { outline: 2px solid var(--red, #CC0000); outline-offset: 1px; }
.zp-btn:disabled { opacity: .4; cursor: default; }
.zp-label { min-width: 40px; text-align: center; font-size: .8rem; font-weight: 600; color: #444; }
.zp-host.zp-full { position: fixed !important; inset: 0; z-index: 10000; background: #fff; border-radius: 0; display: flex; align-items: center; justify-content: center; }
.zp-host.zp-full svg { width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; }
body.zp-noscroll { overflow: hidden; }
@media (max-width: 600px) { .zp-btn { min-width: 40px; height: 40px; } .zp-label { display: none; } }
@media print { .zp-bar { display: none !important; } }

/* Multimeter readout over the circuit in full screen */
.zp-hud { position: absolute; left: 12px; bottom: 12px; z-index: 6; min-width: 190px; padding: 10px 12px; border-radius: 10px;
  background: rgba(26,26,26,.92); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); font-family: system-ui, sans-serif; cursor: default; }
.zp-hud-brand { font-size: .65rem; font-weight: 800; letter-spacing: .12em; color: #FFD700; margin-bottom: 4px; }
.zp-hud-lcd { background: #cfe3c0; color: #111; border-radius: 6px; padding: 4px 10px; font-family: ui-monospace, Menlo, monospace; text-align: right; }
.zp-hud-read { font-size: 1.9rem; font-weight: 700; }
.zp-hud-unit { font-size: .8rem; font-weight: 700; }
.zp-hud-leads { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0; font-size: .75rem; }
.zp-hud-red { color: #ff7b7b; } .zp-hud-com { color: #ddd; }
.zp-hud-reset { width: 100%; padding: 6px; border: 1px solid #666; border-radius: 6px; background: #333; color: #fff; font-size: .75rem; font-weight: 700; cursor: pointer; }
.zp-hud-reset:hover { background: #444; }
/* Fixed meter size so it never resizes with the reading */
.zp-hud-lcd { height: 2.6rem; display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; white-space: nowrap; overflow: hidden; box-sizing: border-box; }
.zp-hud-leads b { display: inline-block; min-width: 3.2em; }
@media (max-width: 600px) { .zp-hud { width: 210px; min-width: 0; left: 8px; bottom: 8px; padding: 8px; box-sizing: border-box; } .zp-hud-read { font-size: 1.35rem; } .zp-hud-lcd { height: 2.2rem; padding: 4px 8px; } }
