/* power, network, wifi, vpn, web, containers, storage, tools */
.pw-flow { display: block; width: 100%; height: auto; max-height: 420px; }
.pw-wire { fill: none; stroke: var(--track); stroke-width: 10; stroke-linecap: round; }
.pw-dash { fill: none; stroke: var(--good); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 8 14; filter: drop-shadow(0 0 5px var(--good)); animation: nx-flow .9s linear infinite; }
.pw-dash.rev { animation-direction: reverse; }
.pw-dash.batt { stroke: var(--accent2); filter: drop-shadow(0 0 5px var(--accent2)); }
.pw-flow.onbatt .pw-dash { stroke: var(--warn); filter: drop-shadow(0 0 6px var(--warn)); }
.pw-dash.idle, .pw-flow.onbatt .pw-dash.idle { stroke: var(--line-strong); animation: none; filter: none; }
.pw-dash.cut, .pw-flow.onbatt .pw-dash.cut { stroke: var(--bad); animation: none; stroke-dasharray: 3 16; }
@keyframes nx-flow { to { stroke-dashoffset: -22; } }
.pw-node { color: var(--accent); }
.pw-node.good { color: var(--good); } .pw-node.warn { color: var(--warn); } .pw-node.bad { color: var(--bad); }
.pw-node rect { fill: var(--field); stroke: currentColor; stroke-width: 1.5; transition: stroke .4s, filter .3s; }
.pw-node:hover rect { filter: drop-shadow(0 0 10px currentColor); }
.pw-node text { text-anchor: middle; fill: var(--fg); }
.pw-node .pw-t { fill: currentColor; font-size: 14px; letter-spacing: .16em; font-weight: 700; }
.pw-node .pw-v { font-size: 25px; font-weight: 750; }
.pw-node .pw-s { fill: var(--muted); font-size: 14px; }
.pw-gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--gap); margin-bottom: var(--gap); }
.pw-gauge { display: grid; place-items: center; padding: 12px 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card-base); }
.pw-gauge .ring-mid b { font-size: 1.15rem !important; }
.pw-nut { max-height: 340px; }
.pw-cell { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pw-cell b { font-size: 1.7rem; flex: 1; }

.nx-peers, .wf-clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.nx-matrix { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 10px; margin-top: 12px; }
.nx-peer, .nx-tile, .wf-client { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--field); padding: 10px 12px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.nx-peer:hover, .nx-tile:hover, .wf-client:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 26px -16px rgba(var(--tint), .8); }
.nx-peer { display: flex; flex-direction: column; gap: 5px; }
.nx-tile { display: flex; flex-direction: column; }
.nx-tile b { font-size: 1.2rem; }
.nx-tile.warn b { color: var(--warn); } .nx-tile.bad b { color: var(--bad); }
.nx-lat { display: flex; gap: 8px; height: 230px; margin-top: 12px; }
.nx-lat-y { display: flex; flex-direction: column; justify-content: space-between; font-size: .68rem; color: var(--faint); text-align: right; white-space: nowrap; }
.nx-lat-plot { position: relative; flex: 1; min-width: 0; border-bottom: 1px solid var(--line); }
.nx-lat-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.nx-line { fill: none; stroke-width: 1.8; stroke-linejoin: round; transition: d .7s linear; animation: nx-in .9s ease; }
@keyframes nx-in { from { opacity: 0; } }
.nx-addr { display: inline-block; margin: 2px 4px 2px 0; padding: 0 6px; border-radius: 6px; background: var(--field); }
.row-end.nx-rates { flex-direction: column; align-items: flex-end; gap: 0; }

.wf-radio { position: relative; display: grid; place-items: center; height: 124px; color: var(--faint); overflow: hidden; }
.wf-radio i { position: absolute; top: 50%; left: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px; border: 1px solid var(--line); border-radius: 50%; transform: scale(.45); }
.wf-radio i:nth-child(2) { transform: scale(.72); }
.wf-radio i:nth-child(3) { transform: scale(1); }
.wf-radio.on { color: var(--accent); }
.wf-radio.on i { border-color: var(--accent); animation: wf-wave 2.4s ease-out infinite; }
.wf-radio.on i:nth-child(2) { animation-delay: .8s; }
.wf-radio.on i:nth-child(3) { animation-delay: 1.6s; }
@keyframes wf-wave { from { transform: scale(.3); opacity: .9; } to { transform: scale(1.15); opacity: 0; } }
.wf-radio .bar { position: absolute; bottom: 0; width: 60%; }
.wf-ssid { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; }
.wf-client { display: flex; align-items: center; gap: 10px; opacity: .65; }
.wf-client.on { opacity: 1; }
.wf-ava { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line-strong); font-weight: 750; }
.wf-client.on .wf-ava { border-color: var(--good); box-shadow: 0 0 12px -2px var(--good); }
.row.wf-vpn { flex-wrap: wrap; }
.wf-vpn .row-main { min-width: 150px; }
.wf-vpn .row-end { flex-wrap: wrap; }

.vp-h { display: flex; justify-content: space-between; margin: 14px 0 6px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.vp-spark { width: min(180px, 50%); }
.vp-peers { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.vp-peer { font: .72rem var(--mono); padding: 2px 7px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.vp-peer.on { color: var(--good); border-color: var(--good); }
.vp-list { max-height: 260px; overflow-y: auto; overflow-x: hidden; }
.vp-acts { display: inline-flex; gap: 4px; }
.stat-val b.vp-big { font-size: 1.35rem; overflow-wrap: anywhere; min-width: 0; }
.vp-bars { display: flex; align-items: flex-end; gap: 3px; height: 190px; }
.vp-bars i { flex: 1; min-width: 0; min-height: 2px; border-radius: 6px 6px 2px 2px; background: linear-gradient(var(--accent), var(--accent2)); transition: height .8s cubic-bezier(.2,.8,.2,1), filter .2s; animation: vp-grow .8s cubic-bezier(.2,.9,.3,1.2); transform-origin: bottom; }
.vp-bars i:hover { filter: brightness(1.35) drop-shadow(0 0 8px var(--accent)); }
@keyframes vp-grow { from { transform: scaleY(0); } }

.wb-site { display: flex; align-items: center; gap: 14px; }
.wb-info { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.wb-err, .card-foot a { overflow-wrap: anywhere; }

.ct-card .card-body { display: flex; flex-direction: column; gap: 7px; padding-top: var(--pad); }
.ct-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ct-nums span { display: flex; flex-direction: column; padding: 5px 9px; border-radius: 10px; background: var(--field); }
.ct-nums small, .ct-ports { color: var(--faint); }

.st-map { position: relative; height: 340px; }
.st-box { position: absolute; display: flex; flex-direction: column; overflow: hidden; padding: 5px 7px; border: 2px solid var(--solid); border-radius: 10px; background: var(--track); cursor: pointer; transition: filter .2s, box-shadow .2s; }
.st-box:hover { filter: brightness(1.25); box-shadow: inset 0 0 0 1px var(--accent); z-index: 2; }
.st-box i { position: absolute; left: 0; right: 0; bottom: 0; opacity: .38; transition: height .9s; animation: vp-grow .9s ease; transform-origin: bottom; }
.st-box b, .st-box small { position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tl-h { margin: 12px 0 7px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.tl-h:first-child { margin-top: 0; }
.tl-go { margin-top: 14px; }
.tl-console { min-height: 200px; }
.chip:disabled { opacity: .4; }
