/* Busola Curriculară: vizorul (site/viz/vizor.js), desene mari de explorat ca pe o hartă, cu ferestre deasupra */
.vz { position: relative; overflow: hidden; touch-action: none; background: var(--bg); }
.vz-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; user-select: none; -webkit-user-select: none; }
.vz-trage .vz-svg { cursor: grabbing; }
.vz:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.vz-zoom { position: absolute; right: 12px; bottom: 16px; z-index: 4; display: grid; border-radius: 10px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.vz-zoom button { width: 40px; height: 40px; border: 0; background: none; color: var(--ink); font: 600 1.25rem/1 var(--f-body); cursor: pointer; display: grid; place-items: center; }
.vz-zoom button + button { border-top: 1px solid var(--line); }
.vz-zoom button:hover { background: var(--surface-2); }
.vz-zoom svg { width: 18px; height: 18px; }

.vz-dock { position: absolute; z-index: 5; display: grid; gap: var(--s-2); pointer-events: none; top: var(--vz-sus, 84px); bottom: 12px; width: min(380px, calc(100% - 96px)); align-content: start; }
.vz-dock-stanga { left: 12px; }
.vz-dock-dreapta { right: 64px; }
.vz-fer { pointer-events: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; max-height: 100%; min-height: 0; }
.vz-fer-cap { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-3); border-bottom: 1px solid var(--line); }
.vz-fer-t { margin: 0; font-size: var(--t-s); font-family: var(--f-body); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); flex: 1; min-width: 0; }
.vz-fer-x { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.vz-fer-x:hover { background: var(--surface-2); color: var(--ink); }
.vz-fer-corp { padding: var(--s-3); overflow: auto; overscroll-behavior: contain; display: grid; gap: var(--s-2); align-content: start; }
.vz-fer-corp > * { margin: 0; min-width: 0; }

/* pe ecran îngust, fereastra urcă de jos ca o fișă */
@media (max-width: 700px) {
  .vz-dock { left: 0 !important; right: 0 !important; top: max(var(--vz-sus, 84px), 52%); bottom: 0; width: auto; align-content: end; }
  .vz-fer { border-radius: 14px 14px 0 0; max-height: 100%; border-bottom: 0; }
  .vz-fer-cap::before { content: ""; position: absolute; left: 50%; top: 5px; width: 36px; height: 4px; margin-left: -18px; border-radius: 4px; background: var(--line); }
  .vz-fer { position: relative; }
  .vz-zoom { bottom: auto; top: var(--vz-sus, 84px); right: 8px; }
  .vz-zoom button { width: 36px; height: 36px; }
}
