/* Переходы и засады (links.js): схема связей карт и панель правки. Цвета — только токены оформления (все 6 вариантов). */
.lk-wrap{z-index:160}
.sheet.lk{width:min(1100px,96vw);max-width:100%;box-sizing:border-box;max-height:92vh;overflow:auto;display:block;padding:16px}
.sheet.lk .st-head{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.sheet.lk .st-head h2{margin:0;font-size:20px}
.sheet.lk .sp{flex:1}
.lk-lead{margin:0 0 10px}
.lk-cols{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:14px;align-items:start}
.lk-gwrap{position:sticky;top:0;overflow:auto;max-height:60vh;border:1px solid var(--line);border-radius:14px;background:var(--fill);padding:8px;min-width:0}
.lk-graph{display:block;max-width:none}
.lk-graph .lk-n rect{fill:var(--panel);stroke:var(--line-2);stroke-width:1.2;cursor:pointer;transition:fill .15s,stroke .15s}
.lk-graph .lk-n{cursor:pointer;outline:none}
.lk-graph .lk-n:hover rect,.lk-graph .lk-n:focus-visible rect{stroke:var(--brass)}
.lk-graph .lk-n.on rect{fill:rgba(var(--brass-rgb),.2);stroke:var(--brass);stroke-width:2}
.lk-graph .t1{fill:var(--ink);font-size:11.5px;font-weight:600;pointer-events:none}
.lk-graph .t2{fill:var(--muted);font-size:10px;pointer-events:none}
.lk-graph .lk-e{fill:none;pointer-events:none}
.lk-graph .lk-e.mine{stroke:var(--brass);stroke-width:2}
.lk-graph .lk-e.mine.on{stroke-width:3.6}
.lk-graph .lk-e.pin{stroke:var(--muted);stroke-width:1.2;stroke-dasharray:4 4;opacity:.7}
.lk-graph .lk-hit{fill:none;stroke:transparent;stroke-width:14;cursor:pointer;pointer-events:stroke}
.lk-graph .lk-hit:hover{stroke:rgba(var(--brass-rgb),.25)}
.lk-graph .lk-ah{fill:var(--brass)}
.lk-leg{margin:6px 2px 0;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.lk-sw{display:inline-block;width:22px;height:0;border-top:2px solid var(--brass);vertical-align:middle;margin-right:2px}
.lk-sw.pin{border-top:2px dashed var(--muted)}
.lk-side{min-width:0}
.lk-form{display:flex;flex-direction:column;gap:10px;font-size:14px}
.lk-head{display:flex;align-items:center;gap:8px;justify-content:space-between}
.lk-head b{font-size:15px}
.lk-row{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:flex-end}
.lk-form label{display:flex;flex-direction:column;gap:3px;font-size:12px;color:var(--muted);min-width:0}
.lk-form label.chk{flex-direction:row;align-items:center;gap:6px;color:var(--ink);font-size:13px}
.lk-form input:not([type=checkbox]):not([type=range]),.lk-form select{min-height:36px;padding:4px 8px;border:1px solid var(--line-2);border-radius:10px;background:var(--fill);color:var(--ink);font:inherit;max-width:100%}
.lk-form input[type=number]{width:96px}
.lk-form input:focus-visible,.lk-form select:focus-visible{outline:2px solid var(--brass);outline-offset:1px}
.lk-form .sm-h{margin:6px 0 0;display:flex;align-items:center;gap:10px}
.lk-tbl{border-collapse:collapse;width:100%;font-size:13px}
.lk-tbl th{font-size:11px;font-weight:600;color:var(--muted);text-align:left;padding:4px 6px;border-bottom:1px solid var(--line)}
.lk-tbl td{padding:5px 6px;border-bottom:1px solid var(--line)}
.lk-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.lk-list button,.lk-z{width:100%;text-align:left;display:flex;flex-direction:column;gap:2px;padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:var(--fill);color:var(--ink);font:inherit;cursor:pointer;min-height:44px}
.lk-list button:hover,.lk-z:hover{background:var(--fill-2);border-color:var(--line-2)}
.lk-list small,.lk-z small{color:var(--muted);font-size:12px}
.lk-zs{display:flex;flex-direction:column;gap:6px}
.lk-z.on{border-color:var(--brass);background:rgba(var(--brass-rgb),.14)}
.lk-z.off{opacity:.6}
.lk-zf{display:flex;flex-direction:column;gap:10px;padding:10px;border:1px solid var(--line);border-radius:14px;background:var(--fill)}
.lk-mons{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.lk-mons li{display:flex;align-items:center;gap:6px}
.lk-mons li span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lk-mons b{min-width:22px;text-align:center}
.lk-pv{position:relative;border-radius:12px;overflow:hidden;border:1px solid var(--line-2);cursor:crosshair;line-height:0;background:var(--panel);touch-action:manipulation}
.lk-pv img{width:100%;height:auto;display:block;-webkit-user-drag:none;user-select:none}
.lk-pv .lk-zone{position:absolute;aspect-ratio:1/1;transform:translate(-50%,-50%);border-radius:50%;border:2px solid var(--brass);background:rgba(var(--brass-rgb),.28);pointer-events:none;box-shadow:0 0 0 2px rgba(0,0,0,.35)}
.lk-res{min-height:1.2em;font-size:13px;color:var(--ink)}
.lk-pick{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:400;display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:999px;background:var(--panel);color:var(--ink);border:1px solid var(--brass);box-shadow:0 10px 30px rgba(0,0,0,.45);max-width:calc(100vw - 32px);font-size:14px}
.lk-gate{z-index:420}
.lk-gate .row{display:flex;flex-wrap:wrap;gap:8px}
@media (max-width:820px){
  .lk-cols{grid-template-columns:minmax(0,1fr)}
  .lk-gwrap{position:static;max-height:42vh}
  .sheet.lk{padding:12px}
}
@media (pointer:coarse){
  .lk-form input:not([type=checkbox]):not([type=range]),.lk-form select{min-height:44px}
  .lk-form .btn,.lk-form .sq-btn{min-height:44px}
  .lk-form .sq-btn{min-width:44px}
  .lk-form input[type=checkbox]{width:22px;height:22px}
}
body.phone .vp-bar #lk-open-bar{display:none}/* на телефоне строка над картой — столбик масштаба: окно открывается из Мастерской */
