/* Схема команды (orgmap.js): стили текущего веба, без финального дизайна. */
.om { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.om-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.om-seg { display: inline-grid; }
.om-seg button { padding: 0 16px; height: 36px; white-space: nowrap; }
.om-q input { height: 40px; min-width: 240px; padding: 0 14px; border-radius: 20px; border: 0; background: var(--card); color: var(--ink); box-shadow: var(--card-shadow); font: inherit; font-size: 14px; }
.om-act { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.om-sel { height: 32px; padding: 0 10px; border-radius: 16px; border: 0; background: var(--card); color: var(--ink); box-shadow: var(--card-shadow); font: inherit; font-size: 13px; cursor: pointer; }
.om-miss { font-size: 13px; color: var(--rose); }
.om-miss[hidden] { display: none; }
.om-body { position: relative; display: flex; gap: 12px; height: clamp(460px, calc(100vh - 230px), 940px); min-height: 0; }
.om-stage { position: relative; flex: 1; min-width: 0; border-radius: 24px; background: var(--card); box-shadow: var(--card-shadow); overflow: hidden; }
.om-svg { width: 100%; height: 100%; display: block; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.om-svg:active { cursor: grabbing; }
.om-note { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; pointer-events: none; text-align: center; padding: 20px; }
.om-note[hidden] { display: none; }
.om-note button { pointer-events: auto; }
.om-zoom { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 4px; padding: 4px; border-radius: 16px; background: var(--glass); box-shadow: var(--float-shadow); }
.om-zoom button { width: 38px; height: 38px; border-radius: 12px; background: none; font-size: 18px; color: var(--ink); }
.om-zoom button:hover { background: var(--chip); }
.om-mini { position: absolute; left: 12px; bottom: 12px; width: 180px; height: 120px; border-radius: 14px; background: var(--glass); box-shadow: var(--float-shadow); cursor: pointer; touch-action: none; }
.om-mini[hidden] { display: none; }
.om-mini rect { fill: var(--faint); }
.om-mini .m-project { fill: var(--muted); opacity: 0.55; }
.om-mini .m-root { fill: var(--cta); }
.om-mini .om-mini-v { fill: var(--cta); fill-opacity: 0.08; stroke: var(--cta); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.om-pop { position: absolute; z-index: 3; transform: translate(-50%, 8px); display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 16px; background: var(--card); box-shadow: var(--float-shadow); min-width: 140px; }
.om-pop[hidden] { display: none; }
.om-pl { font-size: 12px; color: var(--muted); }

.om-panel { width: 300px; flex: none; overflow: auto; padding: 16px; border-radius: 24px; background: var(--card); box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 8px; }
.om-ph { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 16px; }
.om-pi { font-size: 13px; color: var(--ink-2); display: grid; gap: 2px; }
.om-pt { margin-top: 6px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.om-rel { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.om-rel small { display: block; color: var(--muted); }

/* полотно */
.om-svg text { font-family: inherit; text-anchor: middle; pointer-events: none; }
.om-node { cursor: pointer; outline: none; transition: opacity 0.15s; }
.om-node.dim, .om-edge.dim { opacity: 0.18; }
.om-circ { fill: var(--accent); stroke: var(--axis); stroke-width: 1; }
.om-ini { font-size: 13px; font-weight: 600; fill: var(--accent-ink); }
.om-name { font-size: 12px; font-weight: 600; fill: var(--ink); }
.om-sub { font-size: 11px; fill: var(--muted); }
.om-root { fill: var(--cta); }
.om-rootl { font-size: 13px; font-weight: 600; fill: var(--cta-ink); }
.om-proj { stroke-width: 1.5; }
.om-pname { font-size: 12px; font-weight: 600; }
.om-psub { font-size: 11px; opacity: 0.8; }
.om-node.sel .om-circ, .om-node.sel .om-proj, .om-node.sel .om-root { stroke: var(--cta); stroke-width: 3; }
.om-node.hit .om-circ, .om-node.hit .om-proj, .om-node.hit .om-root { stroke: var(--cta); stroke-width: 3; }
.om-node.tgt .om-circ, .om-node.tgt .om-proj, .om-node.tgt .om-root { stroke: var(--green); stroke-width: 4; }
.om-node:focus-visible .om-circ, .om-node:focus-visible .om-proj { stroke: var(--cta); stroke-width: 3; }
.om-h { fill: var(--card); stroke: var(--cta); stroke-width: 2; opacity: 0; cursor: crosshair; transition: opacity 0.12s; }
.om-node:hover .om-h, .om-node.sel .om-h { opacity: 1; }
@media (hover: none) { .om-h { opacity: 0.85; } }
.om-edge { cursor: pointer; color: var(--faint); transition: opacity 0.15s; }
.om-line { fill: none; stroke: currentColor; stroke-width: 1.6; pointer-events: none; }
.om-hit { fill: none; stroke: transparent; stroke-width: 14; }
.om-edge.k-sold .om-line { stroke-dasharray: 6 4; }
.om-edge:hover, .om-edge.hot { color: var(--muted); }
.om-edge.sel { color: var(--rose); }
.om-edge.sel .om-line { stroke-width: 2.4; }
.om-tmp { fill: none; stroke: var(--cta); stroke-width: 2; stroke-dasharray: 5 4; pointer-events: none; }
.om-tmp[hidden] { display: none; }

/* узкий экран: полотно на всю ширину, панель снизу */
@media (max-width: 760px) {
  .om-bar { gap: 8px; }
  .om-seg { width: 100%; }
  .om-q, .om-q input { width: 100%; min-width: 0; }
  .om-body { height: calc(100vh - 230px); min-height: 420px; }
  .om-panel { position: absolute; left: 0; right: 0; bottom: 0; width: auto; max-height: 48%; border-radius: 24px 24px 0 0; box-shadow: var(--float-shadow); z-index: 4; }
  .om-panel[hidden] { display: none; }
  .om-zoom { bottom: 12px; }
}
