/* System Atlas inside the authenticated Command Center; all values from guarded RPC. */
.ysg-atlas{--a-line:#205a75;--a-ink:#e9f5fc;--a-sub:#a5c4d4;margin:11px 0 14px;border:1px solid #23617b;border-radius:12px;background:#061c30;color:var(--a-ink);overflow:hidden;box-shadow:0 16px 38px rgba(0,0,0,.18)}
.ysg-atlas *{box-sizing:border-box}
.ysg-atlas-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 19px;border-bottom:1px solid #1a4a66;background:#09243a}
.ysg-atlas-eyebrow{font-size:11px;letter-spacing:.14em;font-weight:800;color:#e8bd72}
.ysg-atlas-head h3{font-size:21px;line-height:1.3;letter-spacing:0;margin:6px 0;color:#f1f8ff}
.ysg-atlas-head p{font-size:14px;line-height:1.6;margin:0;color:var(--a-sub)}
.ysg-atlas-reload{font-size:14px;min-height:43px;white-space:nowrap;background:#0d3550;color:#e6f5ff;border:1px solid #4685a0;border-radius:7px;padding:8px 12px;cursor:pointer}
.ysg-atlas-reload:hover{border-color:#b8d8ec;background:#114464}
.ysg-atlas-reload:disabled{opacity:.5;cursor:wait}
.ysg-atlas-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid #18435b}
.ysg-atlas-metrics>div{padding:14px 17px;border-right:1px solid #18435b;display:flex;flex-direction:column;gap:4px}
.ysg-atlas-metrics>div:last-child{border-right:0}
.ysg-atlas-metrics strong{font-size:25px;line-height:1.1;color:#fff;font-variant-numeric:tabular-nums}
.ysg-atlas-metrics span{font-size:13px;color:#b1cfde}
.ysg-atlas-warning{padding:11px 17px;border-bottom:1px solid #705b39;background:#1b2631;color:#d9e7ec;font-size:13px;line-height:1.7}
.ysg-atlas-warning b{color:#f5d59d}
.ysg-atlas-warning p{margin:4px 0 0;color:#bed0d8;font-size:13px}
.ysg-atlas-hub{display:flex;justify-content:center;position:relative;padding:22px 12px 31px;background:radial-gradient(ellipse at top,#0e3e54 0%,#061c30 68%)}
.ysg-atlas-hub:after{content:"";position:absolute;bottom:0;left:50%;height:30px;border-left:2px solid #409bb5;box-shadow:0 0 8px #1d87a9}
.ysg-atlas-hub-inner{min-width:230px;text-align:center;padding:13px 24px;border:1px solid #d6ab67;border-radius:10px;background:#10283e;box-shadow:0 0 18px rgba(40,174,219,.11),inset 0 1px 0 rgba(255,255,255,.08);display:flex;flex-direction:column;gap:5px}
.ysg-atlas-hub small{font-size:11px;color:#f0c987;letter-spacing:.11em}
.ysg-atlas-hub strong{font-size:21px;color:#f8fcff}
.ysg-atlas-hub span{font-size:13px;color:#c2d7e3}
.ysg-atlas-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:13px 16px;border-top:1px solid #225672;border-bottom:1px solid #225672;background:#092337}
.ysg-atlas-tools>label:first-child{font-weight:700;font-size:14px;color:#e4f4ff}
.ysg-atlas-tools input[type=search]{min-width:205px;max-width:420px;flex:1;padding:10px 11px;min-height:44px;background:#061625;border:1px solid #467f9b;border-radius:8px;color:#fff;font-size:16px;outline-offset:3px}
.ysg-atlas-check{display:flex;align-items:center;gap:8px;color:#d2e5ef;font-size:14px;cursor:pointer}
.ysg-atlas-check input{width:18px;height:18px;accent-color:#d3b06b}
.ysg-atlas-network{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:24px 16px 18px;position:relative}
.ysg-atlas-network:before{content:"";position:absolute;top:0;left:10%;right:10%;border-top:1px solid #23718b;pointer-events:none}
.ysg-atlas-node{min-width:0;border:1px solid #2b5e79;border-radius:9px;overflow:hidden;background:#0b2a42;box-shadow:0 3px 15px rgba(0,0,0,.12);align-self:start}
.ysg-atlas-node.bad{border-color:#ab665c;background:#342a32}
.ysg-atlas-node.active{border-color:#3b8c92}
.ysg-atlas-node.muted{opacity:.85}
.ysg-atlas-node.open{grid-column:span 2;border-color:#c8a764}
.ysg-atlas-node-main{width:100%;display:flex;align-items:center;gap:10px;text-align:left;cursor:pointer;background:transparent;border:0;color:#f3faff;padding:12px;min-height:76px;font-size:14px}
.ysg-atlas-node-main:focus-visible{outline:3px solid #d5ac66;outline-offset:-3px}
.ysg-atlas-node-main:hover{background:rgba(90,179,207,.075)}
.ysg-atlas-node-identity{min-width:0;flex:1;display:flex;align-items:center;gap:11px}
.ysg-atlas-monogram{width:40px;height:40px;min-width:40px;display:flex;align-items:center;justify-content:center;border:1px solid #4b8195;border-radius:8px;background:#102e42;color:#ebce8e;font-weight:800;font-size:15px;letter-spacing:.01em}
.ysg-atlas-node-identity>span:last-child{min-width:0;display:flex;flex-direction:column;gap:4px}
.ysg-atlas-node-identity strong{font-size:15px;font-weight:750;line-height:1.4;color:#f4fbff;overflow-wrap:anywhere}
.ysg-atlas-node-identity small{font-size:13px;font-weight:400;line-height:1.45;color:#aecbd9}
.ysg-atlas-node-result{display:flex;align-items:flex-end;flex-direction:column;gap:3px;min-width:110px}
.ysg-atlas-node-count{font-size:20px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.2}
.ysg-atlas-state{font-size:12px;color:#bed8e4;text-align:right}
.ysg-atlas-node.bad .ysg-atlas-state{color:#ffc0b8}
.ysg-atlas-node.active .ysg-atlas-state{color:#b9e8d7}
.ysg-atlas-caret{font-size:20px;line-height:1;color:#e0c78e;margin-left:2px}
.ysg-atlas-expanded{border-top:1px solid #275671;padding:15px 17px;background:#061e30}
.ysg-atlas-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.ysg-atlas-detail-group{padding:12px;border:1px solid #224e6a;border-radius:6px}
.ysg-atlas-detail-group h5,.ysg-atlas-flow h5{font-size:14px;color:#f0d39a;margin:0 0 9px}
.ysg-atlas-detail-group small{font-weight:500;color:#b5d0dd}
.ysg-atlas-detail-group p{font-size:13px;color:#b5cad4;margin:0}
.ysg-atlas-tags{display:flex;flex-wrap:wrap;gap:5px}
.ysg-atlas-tags code{font:13px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;background:#0b3651;border:1px solid #225c77;border-radius:4px;padding:5px 7px;color:#d9eefa}
.ysg-atlas-flow{margin-top:13px;padding:12px;border:1px solid #34556b;border-radius:6px}
.ysg-atlas-flow>div{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.ysg-atlas-flow span{font-size:13px;color:#eef7fc;background:#11354b;border:1px solid #2c5f77;border-radius:5px;padding:6px 8px}
.ysg-atlas-flow b{font-size:15px;color:#e6bd7a}
.ysg-atlas-source-note{font-size:13px;line-height:1.7;color:#aecbd7;margin:8px 0 12px}
.ysg-atlas-empty{padding:25px 16px;text-align:center;color:#c2d8e4;font-size:14px;grid-column:1/-1}
.ysg-atlas-footer{padding:12px 15px;border-top:1px solid #26546c;font-size:12px;line-height:1.6;color:#afc4d0}
@media(max-width:850px){.ysg-atlas-network{grid-template-columns:1fr}.ysg-atlas-node.open{grid-column:auto}.ysg-atlas-detail-grid{grid-template-columns:1fr}.ysg-atlas-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ysg-atlas-metrics>div:nth-child(2){border-right:0}.ysg-atlas-metrics>div:nth-child(-n+2){border-bottom:1px solid #18435b}}
@media(max-width:600px){.ysg-atlas-head{align-items:flex-start;flex-direction:column;padding:14px}.ysg-atlas-head h3{font-size:19px}.ysg-atlas-reload{width:100%}.ysg-atlas-tools{flex-direction:column;align-items:stretch}.ysg-atlas-network{padding:19px 10px 12px}.ysg-atlas-node-main{padding:10px;gap:8px}.ysg-atlas-node-identity{gap:8px}.ysg-atlas-node-result{min-width:88px}.ysg-atlas-state{font-size:11px}.ysg-atlas-monogram{width:34px;height:34px;min-width:34px}.ysg-atlas-tags code{font-size:12px}}
@media(prefers-reduced-motion:no-preference){.ysg-atlas-hub:after{animation:ysg-atlas-beam 3s ease-in-out infinite}@keyframes ysg-atlas-beam{0%,100%{opacity:.3;box-shadow:0 0 2px #1d87a9}50%{opacity:1;box-shadow:0 0 15px #4bc7ec}}}
