:root{--bg:#061019;--panel:#0a1b28;--panel2:#0d2331;--line:#1b3a4b;--text:#d8e8f1;--muted:#7894a5;--accent:#31c9f4;--ok:#42d8a0;--warn:#f2bd55;--danger:#ff7188;--violet:#9b8cff}
*{box-sizing:border-box}html{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(circle at 10% 0%,#103247 0,transparent 36%),radial-gradient(circle at 90% 26%,rgba(105,76,184,.1),transparent 26%),var(--bg)}body:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.12;background-image:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);background-size:34px 34px;mask-image:linear-gradient(to bottom,#000,transparent 90%)}button,select{font:inherit}.masthead{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.35rem max(1.4rem,calc((100vw - 1500px)/2));border-bottom:1px solid var(--line);background:#071823df;backdrop-filter:blur(14px)}.brand{display:flex;align-items:center;gap:.9rem}.brand strong{display:block;letter-spacing:.04em}.brand small{display:none}.masthead-tools{display:flex;align-items:center;justify-content:flex-end;gap:.65rem;min-width:0}.language-switch{display:flex;align-items:center;gap:.2rem;padding:.16rem .24rem;border:1px solid var(--line);border-radius:.55rem;background:rgba(6,18,28,.72);color:#49697a;font-size:.67rem;font-weight:800;letter-spacing:.06em}.language-switch button{border:0;border-radius:.35rem;padding:.25rem .38rem;background:transparent;color:var(--muted);cursor:pointer}.language-switch button:hover{color:var(--text)}.language-switch button[aria-pressed=true]{background:#16394b;color:var(--accent)}.mark{display:grid;place-items:center;width:2rem;height:2rem;border:1px solid var(--accent);border-radius:.6rem;color:var(--accent);font-weight:800;letter-spacing:.06em;box-shadow:0 0 24px rgba(49,201,244,.1)}.status{display:flex;gap:.6rem;flex-wrap:wrap}.status span{border:1px solid var(--line);border-radius:99px;padding:.44rem .75rem;color:var(--muted);font-size:.75rem;letter-spacing:.04em}#navigation{position:relative;z-index:2;display:flex;gap:.3rem;overflow:auto;padding:.18rem max(1.4rem,calc((100vw - 1500px)/2));border-bottom:1px solid var(--line);background:rgba(6,16,25,.72);scrollbar-width:thin}#navigation a{flex:none;color:var(--muted);text-decoration:none;padding:.3rem .55rem;border-radius:.5rem;font-size:.74rem;transition:color .16s ease,background .16s ease,box-shadow .16s ease}#navigation a:hover,#navigation a[aria-current=page]{background:#16394b;color:var(--text)}#navigation a[aria-current=page]{box-shadow:inset 0 -1px var(--accent)}main{position:relative;z-index:1;display:flex;flex:1;flex-direction:column;min-height:0;width:min(100%,1500px);margin:auto;padding:.3rem 1rem .4rem}.view-body{min-width:0}.page-header{display:flex;align-items:center;min-height:28px;margin:0 0 .32rem}.page-copy{display:flex;align-items:baseline;gap:.65rem;min-width:0}.page-header h1{flex:none;font-size:1.2rem;line-height:1.2;margin:0}.page-header p{min-width:0;color:var(--muted);font-size:.72rem;line-height:1.3;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.metric-strip{display:flex;align-items:center;gap:.5rem;height:32px;margin:0 0 .55rem;padding:0 .65rem;border:1px solid var(--line);border-radius:.65rem;background:linear-gradient(145deg,rgba(10,27,40,.95),rgba(13,34,48,.9));box-shadow:0 8px 24px rgba(0,0,0,.1);color:var(--muted);font-size:.68rem;white-space:nowrap;overflow:hidden}.metric-strip span{display:inline-flex;align-items:baseline;gap:.2rem}.metric-strip b{color:var(--accent);font-size:.82rem}.metric-strip i{color:#345568;font-style:normal}.panel,.card{background:linear-gradient(145deg,rgba(10,27,40,.95),rgba(13,34,48,.9));border:1px solid var(--line);border-radius:.8rem;box-shadow:0 12px 40px rgba(0,0,0,.12)}.panel{padding:1.1rem;margin-bottom:1rem}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:1rem}.panel-head>div:first-child{min-width:0}.panel-head h2{font-size:1.08rem;margin:0 0 .35rem}.panel-head p{color:var(--muted);font-size:.78rem;margin:0}.graph-actions{display:flex;align-items:center;gap:.35rem;flex:none}.graph-actions button,.flow-controls button{border:1px solid rgba(78,139,168,.32);background:rgba(8,25,37,.9);color:#b8d2df;border-radius:.5rem;padding:.42rem .62rem;cursor:pointer;transition:.15s ease}.graph-actions button:hover,.flow-controls button:hover{color:#fff;border-color:var(--accent);background:rgba(49,201,244,.08)}#zoomReadout{min-width:3.1rem;text-align:center;color:var(--muted);font-size:.72rem}.graph-layout{display:flex;flex-direction:column}.graph-wrap{position:relative;overflow:hidden;min-height:460px;border:1px solid #1a4052;border-radius:.7rem;background:radial-gradient(circle at 50% 45%,#113044 0,#081722 68%);margin-top:.75rem;cursor:grab;touch-action:none;isolation:isolate}.graph-wrap:before{content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;background-image:radial-gradient(circle,rgba(92,156,184,.22) 1px,transparent 1.5px);background-size:32px 32px;mask-image:radial-gradient(circle,#000 30%,transparent 86%)}.graph-wrap.dragging{cursor:grabbing}#graph{display:block;width:100%;height:100%;min-height:460px;user-select:none}#graphViewport{transform-origin:0 0;transition:transform .18s ease-out}.graph-wrap.dragging #graphViewport{transition:none}.cluster rect{fill:rgba(28,75,98,.08);stroke:rgba(83,144,171,.3);stroke-width:1.5;stroke-dasharray:7 6}.cluster.secretary rect{stroke:rgba(49,201,244,.32)}.cluster.operator rect{stroke:rgba(155,140,255,.3)}.cluster.external rect{stroke:rgba(66,216,160,.3)}.cluster-label{fill:#62879a;font-size:13px;font-weight:750;letter-spacing:.08em;text-transform:uppercase}.edge{pointer-events:stroke;fill:none;stroke:#557f91;stroke-width:2;opacity:.7;stroke-dasharray:8 5;animation:drawEdge .8s cubic-bezier(.22,.8,.3,1) both}.edge.observe{stroke:#8c82d8}.edge.boundary{stroke:var(--warn)}.edge.deploy{stroke:var(--ok)}.edge-label{fill:#8fb5c6;font-size:11px;paint-order:stroke;stroke:#081722;stroke-width:4px;stroke-linejoin:round;opacity:0;pointer-events:none;transition:opacity .14s ease}.edge:hover+.edge-label,.edge-label.node-hover,.edge-label.node-selected,.edge.flow-current+.edge-label{opacity:1}.arrow{fill:#6f98a9}.node{cursor:pointer;outline:none;opacity:0;animation:nodeEnter .42s cubic-bezier(.2,.8,.3,1) forwards;animation-delay:calc(var(--node-order)*22ms)}.node rect{fill:#123346;stroke:#5c91a4;stroke-width:1.6;filter:drop-shadow(0 8px 12px rgba(0,0,0,.24));transition:fill .16s ease,stroke .16s ease,stroke-width .16s ease,filter .16s ease}.node-label{fill:#e2f1f7;font-size:18.5px;font-weight:720;pointer-events:none}.node-sub{fill:#80a0b1;font-size:13px;pointer-events:none}.node:hover rect,.node:focus rect,.node.selected rect{stroke:var(--accent);stroke-width:3;fill:#174359;filter:drop-shadow(0 0 12px rgba(49,201,244,.28))}.node.running rect,.node.production rect{stroke:var(--ok)}.node.inactive rect,.node.partial rect,.node.planned rect{stroke:var(--warn)}.node.flow-active rect{stroke:var(--accent);stroke-width:4;filter:drop-shadow(0 0 18px rgba(49,201,244,.52))}.node.flow-complete rect{stroke:var(--ok);stroke-width:4;filter:drop-shadow(0 0 18px rgba(66,216,160,.48))}.edge.flow-current{stroke:var(--accent);stroke-width:5;opacity:1;stroke-dasharray:12 8;animation:flowPulse .65s linear infinite}.selection{padding:.7rem .15rem 0;color:var(--muted);font-size:.8rem}.flow-controls{position:absolute;z-index:5;left:.75rem;bottom:.75rem;display:flex;gap:.4rem;align-items:center;padding:.48rem;border:1px solid rgba(78,139,168,.28);border-radius:.65rem;background:rgba(6,18,28,.88);backdrop-filter:blur(12px);box-shadow:0 10px 25px rgba(0,0,0,.25)}.flow-controls[hidden]{display:none}.flow-controls select{max-width:260px;color:#bdd4df;background:#0b2130;border:1px solid #285064;border-radius:.45rem;padding:.42rem;font-size:.72rem}.flow-controls button{font-size:.72rem}.inspector{position:absolute;z-index:6;top:.75rem;right:.75rem;width:min(320px,calc(100% - 1.5rem));max-height:calc(100% - 4.8rem);overflow:auto;padding:1rem;border:1px solid rgba(81,148,178,.34);border-radius:.85rem;background:rgba(7,22,32,.94);backdrop-filter:blur(16px);box-shadow:0 18px 48px rgba(0,0,0,.38);opacity:0;transform:translateX(18px);pointer-events:none;transition:opacity .18s ease,transform .18s ease}.inspector.open{opacity:1;transform:none;pointer-events:auto}.inspector-close{position:absolute;right:.55rem;top:.45rem;border:0;background:transparent;color:#7694a5;font-size:1.25rem;cursor:pointer}.inspector-close:hover{color:#fff}.inspector-kicker{display:block;color:var(--accent);font-size:.63rem;font-weight:800;letter-spacing:.14em}.inspector h3{margin:.45rem 1.4rem .2rem 0;font-size:1rem}.inspector>p{margin:.2rem 0;color:var(--muted);font-size:.78rem;line-height:1.4}.inspector-badges{display:flex;gap:.35rem;flex-wrap:wrap;margin:.65rem 0}.inspector-badges span,.inspector-flow-list span{border:1px solid rgba(80,137,164,.26);border-radius:99px;padding:.2rem .42rem;color:#91b1c0;font-size:.64rem}.inspector-body dl{display:grid;grid-template-columns:1fr 1fr;gap:.45rem;margin:.6rem 0}.inspector-body dl div{padding:.48rem;border:1px solid rgba(80,137,164,.15);border-radius:.5rem}.inspector-body dt{color:#668696;font-size:.62rem;text-transform:uppercase}.inspector-body dd{margin:.2rem 0 0;color:#bad0db;font-size:.75rem}.inspector-body h4{margin:.85rem 0 .35rem;color:#7699aa;font-size:.65rem;letter-spacing:.08em;text-transform:uppercase}.inspector-body ul{list-style:none;padding:0;margin:0;display:grid;gap:.35rem}.inspector-body li{display:grid;gap:.15rem;padding:.45rem;border:1px solid rgba(80,137,164,.13);border-radius:.45rem}.inspector-body li b{font-size:.69rem;color:#bad1dc}.inspector-body li span,.inspector-body p{font-size:.67rem;color:#718f9f;margin:0}.inspector-flow-list{display:flex;gap:.3rem;flex-wrap:wrap}.content-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:.8rem}.content-grid .wide{grid-column:1/-1}.card{padding:1rem;min-width:0}.card h3{margin:0 0 .45rem;font-size:1rem}.card p{margin:.2rem 0;color:var(--muted);line-height:1.5;font-size:.86rem}.card .tag{display:inline-block;color:var(--accent);border:1px solid var(--line);border-radius:99px;padding:.18rem .48rem;font-size:.7rem;margin:.3rem .3rem .1rem 0}.muted{color:var(--muted)}.empty{grid-column:1/-1;padding:1.2rem;border:1px dashed var(--line);border-radius:.7rem;color:var(--muted)}.history-section[hidden],.graph-layout[hidden]{display:none}.history-controls{display:flex;flex-wrap:wrap;gap:.7rem;align-items:end}.history-controls label{display:grid;gap:.2rem;color:var(--muted);font-size:.75rem}.history-controls select,.history-controls button{padding:.5rem;background:var(--panel2);color:var(--text);border:1px solid var(--line);border-radius:.4rem;max-width:300px}#historyResult{margin-top:.8rem}.bars{display:flex;align-items:end;gap:3px;height:130px;margin-top:.8rem;border-bottom:1px solid var(--line)}.bar{flex:1;background:var(--accent);min-width:2px;opacity:.75}.bar.warn{background:var(--warn)}footer{position:relative;z-index:1;max-width:1500px;width:100%;margin:auto;padding:1rem 1.5rem 2rem;color:var(--muted);font-size:.74rem}@keyframes nodeEnter{from{opacity:0}to{opacity:1}}@keyframes drawEdge{from{stroke-dashoffset:75;opacity:0}to{stroke-dashoffset:0;opacity:.7}}@keyframes flowPulse{to{stroke-dashoffset:-20}}

@media(max-width:900px){.masthead{align-items:flex-start;flex-direction:column}.masthead-tools{width:100%;justify-content:space-between}.page-header{align-items:flex-start}.page-copy{align-items:flex-start;flex-direction:column;gap:.15rem}.page-header p{white-space:normal}.metric-strip{overflow-x:auto}main{padding:1rem}.panel-head{align-items:flex-start}.graph-actions{margin-left:auto}.graph-wrap,#graph{min-height:520px}.flow-controls{right:.65rem;flex-wrap:wrap}.flow-controls select{flex:1;max-width:none}.inspector{max-height:calc(100% - 7.5rem)}}
@media(max-width:560px){.status{display:none}.panel{padding:.7rem}.panel-head p{display:none}.graph-actions button{padding:.36rem .52rem}.cluster-label,.edge-label{display:none}.node-label{font-size:22px}.node-sub{font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}#graphViewport{transition:none}.edge{stroke-dasharray:none}}


/* Candidate desktop compaction: graph views prioritize the complete map. */
.content-grid{align-items:start;gap:.62rem}.card{height:auto;align-self:start;padding:.72rem .82rem}.card h3{margin-bottom:.3rem}.card p{line-height:1.38}.card .tag{margin-top:.22rem}.inspector{width:min(330px,calc(100% - 1.5rem))}
.control-grid{grid-auto-rows:116px}.control-card{display:grid;grid-template-rows:20px 36px 24px;gap:6px;height:116px;padding:11px 13px}.control-card h3{margin:0;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.control-card-body{display:-webkit-box;height:36px;margin:0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;line-height:18px}.control-card-tags{display:flex;align-items:center;gap:.3rem;height:24px;min-width:0;overflow:hidden;white-space:nowrap}.control-card .tag{flex:none;margin:0}
.trend-card{padding:1rem}.trend-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.trend-state{flex:none;border:1px solid rgba(66,216,160,.3);border-radius:99px;padding:.35rem .62rem;color:var(--ok);font-size:.72rem}.trend-state.changing{color:var(--warn);border-color:rgba(242,189,85,.3)}.trend-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;margin:.85rem 0}.trend-metrics span{display:grid;gap:.1rem;padding:.55rem .65rem;border:1px solid rgba(80,137,164,.18);border-radius:.55rem;color:var(--muted);font-size:.7rem}.trend-metrics b{color:var(--text);font-size:1.05rem}.trend-chart{height:112px;padding:.45rem;border:1px solid rgba(80,137,164,.16);border-radius:.6rem;background:linear-gradient(180deg,rgba(49,201,244,.05),transparent)}.trend-chart svg{display:block;width:100%;height:100%;overflow:visible}.trend-axis{stroke:rgba(120,148,165,.22);stroke-width:1}.trend-line{fill:none;stroke:var(--accent);stroke-width:3;vector-effect:non-scaling-stroke}.trend-chart.flat .trend-line{stroke:var(--ok)}.trend-range{display:flex;justify-content:space-between;gap:1rem;margin-top:.55rem;color:var(--muted);font-size:.7rem}.trend-range span{display:grid;gap:.1rem}.trend-range span:last-child{text-align:right}.trend-range b{color:#8eadbc;font-size:.62rem;text-transform:uppercase;letter-spacing:.06em}
@media(min-width:901px){
  body.graph-view{height:100dvh;min-height:0;overflow:hidden}
  .graph-view .view-body{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden}
  .graph-view .graph-layout{position:relative;display:flex;flex:1;min-height:0;padding:.4rem;margin:0}.graph-view .panel-head{position:absolute;z-index:7;top:.72rem;left:.72rem}.graph-view .panel-head>div:first-child{display:none}.graph-view .graph-actions{margin:0;padding:.25rem;border:1px solid rgba(78,139,168,.25);border-radius:.55rem;background:rgba(6,18,28,.88);backdrop-filter:blur(10px)}.graph-view .graph-actions button{padding:.3rem .48rem}.graph-view .graph-wrap{flex:1;min-height:0;height:auto;margin:0}.graph-view #graph{height:100%;min-height:0}.graph-view .selection{position:absolute;z-index:5;right:.72rem;bottom:.72rem;max-width:45%;padding:.3rem .5rem;border:1px solid rgba(78,139,168,.2);border-radius:.5rem;background:rgba(6,18,28,.82);font-size:.64rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.graph-view .flow-controls{left:.72rem;bottom:.72rem}.graph-view .inspector{width:min(330px,calc(100% - 1.5rem));max-height:calc(100% - 1.5rem)}
  .graph-view #content,.graph-view .history-section,.graph-view footer{display:none}
}
@media(max-width:700px){.trend-heading,.trend-range{flex-direction:column}.trend-state{align-self:flex-start}.trend-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.trend-range span:last-child{text-align:left}}

/* Candidate relationship cards reserve language-specific title space. */
.relationships-grid{grid-auto-rows:100px}
.relationship-card{display:grid;grid-template-rows:20px 20px 24px;gap:6px;height:100px;padding:11px 13px}
.relationship-card h3{display:block;height:20px;margin:0;overflow:hidden;line-height:20px;white-space:nowrap;text-overflow:ellipsis}
.relationship-card-route{height:20px;margin:0!important;overflow:hidden;line-height:20px!important;white-space:nowrap;text-overflow:ellipsis}
.relationship-card-chip{display:flex;align-items:center;height:24px;min-width:0;overflow:hidden;white-space:nowrap}
.relationship-card-chip .tag{flex:none;margin:0}
html[lang=ru] .relationships-grid{grid-auto-rows:120px}
html[lang=ru] .relationship-card{grid-template-rows:40px 20px 24px;height:120px}
html[lang=ru] .relationship-card h3{display:-webkit-box;height:40px;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;line-height:20px;white-space:normal;text-overflow:clip}
