:root{color-scheme:light;--page:#f5f6f7;--surface:#fff;--soft:#f7f8fa;--ink:#202a31;--muted:#64717a;--line:#e1e6ea;--brand:#176b56;--brand-soft:#eaf3ee;--green:#13925d;--danger:#df3c55;--warning:#b8780a;--radius:12px;--shadow:0 1px 3px #16222e04;--bar:#edf0f2;--bs-primary:#176b56;--bs-body-bg:var(--surface);--bs-body-color:var(--ink);--bs-border-color:var(--line);font-size:14px}
:root[data-theme=dark]{color-scheme:dark;--page:#171b20;--surface:#21262d;--soft:#292f38;--ink:#edf1f5;--muted:#a7b1be;--line:#39414c;--brand:#76cbb0;--brand-soft:#263b36;--green:#73cfaa;--danger:#ff8797;--warning:#e9bd72;--bar:#39414c;--shadow:0 2px 8px #0001}
*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.6;font-variant-numeric:tabular-nums}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:var(--brand);text-decoration:none}a:hover{color:var(--brand);text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid color-mix(in srgb,var(--brand) 35%,transparent);outline-offset:3px}button{color:inherit}h1,h2,h3,h4,p{margin:0}h1{font-size:28px;line-height:1.4;letter-spacing:-.6px}h2{font-size:18px}h3{font-size:16px}small,.muted{color:var(--muted)}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}.logo{display:inline-flex;align-items:center;justify-content:center;background:#176b56;color:#fff;border-radius:9px;width:52px;height:36px;font-size:19px;font-weight:750;letter-spacing:.5px}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);font-size:19px;font-weight:700;white-space:nowrap}.topbar{height:68px;border-bottom:1px solid var(--line);background:var(--surface);display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:24px}.top-left,.top-actions,.top-nav{display:flex;align-items:center;gap:26px}.top-nav a{height:68px;display:flex;align-items:center;color:var(--muted);font-weight:600;border-bottom:3px solid transparent}.top-nav a.active{color:var(--brand);border-bottom-color:var(--brand)}.top-actions{gap:12px}.icon-btn,.button{min-height:40px;padding:8px 14px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:500}.icon-btn{width:40px;padding:8px}.icon-btn:hover,.button:hover{background:var(--soft)}.button.primary,.icon-btn.active{background:var(--brand);color:var(--surface);border-color:var(--brand)}.connection{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;font-size:12px;color:var(--muted)}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--green);flex-shrink:0}.connection[data-state=error] .dot{background:var(--danger)}.connection[data-state=loading] .dot{background:var(--warning)}.content{max-width:1600px;margin:auto;padding:28px 36px 36px}.page-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.page-title p{color:var(--muted);margin-top:5px}.summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:22px 12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.summary-item{display:flex;gap:18px;align-items:center;min-width:0;padding:0 24px;border-right:1px solid var(--line)}.summary-item:last-child{border:0}.summary-icon{background:var(--brand-soft);color:var(--brand);width:42px;height:42px;border-radius:50%;display:grid;place-items:center;font-size:20px;flex-shrink:0}.summary-label{font-size:13px;color:var(--muted)}.summary-value{font-size:28px;line-height:1.4;font-weight:700;letter-spacing:-.6px;white-space:nowrap}.summary-value small{font-size:16px;font-weight:500;color:var(--ink)}.summary-foot{font-size:11px;margin-left:8px;color:var(--muted);font-weight:400;letter-spacing:0}.summary-foot.has-offline{color:var(--danger)}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:22px 0 16px;min-width:0}.filter-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;max-width:65%;padding:3px}.filter-btn{background:var(--surface);border:1px solid var(--line);padding:8px 16px;border-radius:9px;white-space:nowrap;color:var(--muted)}.filter-btn.active{background:var(--brand);color:var(--surface);border-color:var(--brand)}.filter-btn small{margin-left:8px;color:inherit;opacity:.85}.toolbar-right{display:flex;gap:8px;align-items:center}.search{position:relative;display:flex;align-items:center;min-width:0}.search i{position:absolute;left:13px;color:var(--muted);pointer-events:none}.search input{height:40px;width:220px;border:1px solid var(--line);border-radius:9px;padding:8px 12px 8px 38px;background:var(--surface);color:var(--ink)}.select{height:40px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);padding:6px 28px 6px 12px}.node-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.node-card{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px 18px 0;box-shadow:var(--shadow);transition:border-color .16s}.node-card:hover{border-color:color-mix(in srgb,var(--brand) 36%,var(--line))}.node-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:15px}.flag{width:36px;height:26px;object-fit:cover;border-radius:4px;box-shadow:0 0 0 1px #0000000b;flex-shrink:0;margin-top:3px}.flag-placeholder{background:var(--soft);display:grid;place-items:center;color:var(--muted);box-shadow:none}.node-title{min-width:0;flex:1}.node-title h2{font-size:16px;overflow-wrap:anywhere;line-height:1.45}.node-title p{font-size:12px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}.node-state{font-size:12px;color:var(--green);white-space:nowrap;display:flex;gap:6px;align-items:center;padding-top:2px}.offline .node-state{color:var(--danger)}.offline .dot{background:var(--danger)}.badge-warning{font-size:11px;font-weight:500;border-radius:20px;background:color-mix(in srgb,var(--warning) 10%,var(--surface));color:var(--warning);padding:2px 8px;white-space:nowrap}.resource-row{display:grid;grid-template-columns:44px 1fr 40px;align-items:center;gap:12px;font-size:12px;color:var(--muted);margin-bottom:7px}.resource-row strong{font-weight:500;text-align:right}.meter{height:7px;border-radius:8px;background:var(--bar);overflow:hidden;min-width:0}.meter span{height:100%;display:block;border-radius:8px;background:var(--brand)}.meter span.warn{background:var(--warning)}.meter span.high{background:var(--danger)}.speed-row{display:grid;grid-template-columns:1fr 1fr;margin:18px 0 16px}.speed{display:flex;gap:16px;align-items:center;min-width:0}.speed+.speed{border-left:1px solid var(--line);padding-left:22px}.speed>i{color:var(--brand);font-size:19px}.speed strong{display:block;font-size:18px;line-height:1.4;white-space:nowrap}.speed small{font-size:11px;display:block}.traffic-row{display:flex;align-items:center;gap:9px;margin:0 0 12px;font-size:11px;color:var(--muted)}.traffic-row .meter{flex:1}.traffic-row .amount{white-space:nowrap}.latency-row{display:flex;gap:8px;padding:11px 0;border-top:1px solid var(--line);font-size:11px;justify-content:space-between;flex-wrap:wrap}.latency-row span{display:flex;gap:7px;align-items:center}.latency-row b{font-weight:500}.node-footer{padding:11px 0;margin-top:1px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:10px;flex-wrap:wrap}.node-footer .meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;flex:1}.node-footer .details{border:0;background:transparent;padding:2px 0 2px 6px;color:var(--brand);font-size:12px;min-height:30px;white-space:nowrap}.custom-code{overflow-wrap:anywhere;max-width:100%;overflow:auto}.custom-code:empty{display:none}.page-footer{text-align:center;margin-top:26px;color:var(--muted);font-size:12px}.empty-state{grid-column:1/-1;text-align:center;background:var(--surface);border:1px dashed var(--line);padding:70px 24px;border-radius:14px}.empty-state i{font-size:30px;color:var(--muted);margin-bottom:14px}.empty-state p{color:var(--muted);margin:8px 0 18px}.data-notice{margin:12px 0;color:var(--warning);background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:10px 14px}.compact .node-card .resource-group,.compact .node-card .latency-row{display:none}.list-view{grid-template-columns:1fr}.list-view .node-card{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:20px;align-items:center;padding:16px 20px}.list-view .node-head,.list-view .speed-row,.list-view .traffic-row{margin:0}.list-view .latency-row{grid-column:2/4}.list-view .node-footer{grid-column:4;grid-row:1/3;border:0;margin:0;padding:0}.list-view .custom-code{grid-column:1/-1}.detail-dialog{width:600px;max-width:100vw;height:100dvh;max-height:100dvh;margin:0 0 0 auto;border:0;border-left:1px solid var(--line);padding:0;background:var(--page);color:var(--ink);box-shadow:-15px 0 50px #0002}.detail-dialog::backdrop{background:#10182038}.detail-header{display:flex;align-items:center;gap:16px;padding:16px 22px;border-bottom:1px solid var(--line);background:var(--surface);position:sticky;top:0;z-index:3}.detail-header h2{flex:1}.detail-body{padding:22px}.detail-tabs{display:flex;gap:8px;margin:20px 0;border-bottom:1px solid var(--line)}.detail-tabs button{flex:1;padding:10px;border:0;border-bottom:3px solid transparent;background:none;color:var(--muted)}.detail-tabs .active{color:var(--brand);border-color:var(--brand);font-weight:650}.detail-panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:20px;margin-bottom:16px}.detail-panel h3{margin-bottom:18px}.detail-panel .resource-row{font-size:14px;margin-bottom:12px}.detail-panel .speed-row{margin:0 0 20px}.detail-panel .traffic-row{font-size:13px;margin-top:18px}.info-line{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--line)}.info-line:last-child{border:0}.info-line span{color:var(--muted)}.info-line strong{font-weight:500;overflow-wrap:anywhere;text-align:right}.segmented{display:inline-flex;padding:3px;border-radius:7px;background:var(--soft);border:1px solid var(--line)}.segmented button{border:0;background:none;padding:4px 14px;border-radius:5px;color:var(--muted);font-size:12px}.segmented .active{background:var(--brand);color:var(--surface)}.detail-panel .section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}.detail-panel .section-title h3{margin:0}.detail-total{font-size:27px;font-weight:700}.auth-page{min-height:100dvh;display:grid;place-items:center;padding:30px 18px}.auth-shell{width:100%;max-width:440px}.auth-brand{justify-content:center;margin-bottom:32px}.auth-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:34px;box-shadow:var(--shadow)}.auth-card h1{font-size:24px}.auth-card p{color:var(--muted);margin:8px 0 26px}.auth-card label{display:block;margin:18px 0 7px;font-weight:550}.auth-card input{height:46px;border:1px solid var(--line);border-radius:9px;background:var(--surface);padding:10px 13px;color:var(--ink);width:100%}.auth-card .button{width:100%;margin-top:24px;min-height:46px}.auth-footer{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:22px}.auth-message{padding:10px 14px;border:1px solid var(--line);border-radius:9px;margin-bottom:12px;color:var(--danger)}.password-wrap{position:relative}.password-wrap input{padding-right:48px}.password-wrap button{position:absolute;right:4px;top:4px;background:transparent;border:0;width:38px;height:38px;color:var(--muted)}
@media(min-width:1700px){.node-card{padding:23px 23px 0}.node-head{margin-bottom:22px}.speed-row{margin:22px 0}.node-footer{padding:14px 0}.latency-row{padding:15px 0}}
@media(max-width:1200px){.top-nav{gap:18px}.top-actions .connection{display:none}.summary-item{padding:0 16px;gap:12px}.summary-value{font-size:24px}.node-grid:not(.list-view){grid-template-columns:repeat(2,minmax(0,1fr))}.toolbar{flex-wrap:wrap}.filter-tabs{max-width:100%}.topbar{padding-inline:24px}.content{padding-inline:24px}.list-view .node-card{grid-template-columns:1fr 1fr}.list-view .latency-row{grid-column:1}.list-view .node-footer{grid-column:2;grid-row:auto}}
@media(max-width:700px){body{font-size:14px}.topbar{height:64px;padding:0 16px;gap:10px}.brand{gap:10px;font-size:18px}.logo{width:47px;height:34px;font-size:18px}.top-nav,.top-actions .clock,.top-actions .admin-label,.desktop-only{display:none}.top-actions{gap:5px}.top-actions .icon-btn{border:0;background:none}.top-actions .button{padding:8px 10px}.content{padding:22px 14px 26px}.page-title{margin-bottom:16px}.page-title h1{font-size:26px}.page-title p{display:none}.page-title .connection{font-size:11px;background:var(--brand-soft);color:var(--brand);padding:5px 10px;border-radius:20px}.summary{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px 6px}.summary-item{padding:12px;gap:11px;border-right:0}.summary-item:nth-child(1),.summary-item:nth-child(2){border-right:1px solid var(--line)}.summary-item:nth-child(1),.summary-item:nth-child(4){border-bottom:1px solid var(--line)}.summary-item:nth-child(4){grid-column:2;grid-row:1}.summary-item:nth-child(2){grid-column:1;grid-row:2}.summary-item:nth-child(3){grid-column:2;grid-row:2}.summary-icon{width:35px;height:35px;font-size:17px}.summary-label{font-size:12px}.summary-value{font-size:22px;letter-spacing:-.4px}.summary-value small{font-size:12px}.summary-foot{font-size:10px;margin-left:4px}.toolbar{margin:14px 0 12px;gap:10px;flex-direction:column;align-items:stretch}.toolbar-right{order:-1}.search{flex:1}.search input{width:100%;height:42px}.toolbar-right .select{width:105px;font-size:12px;padding-left:8px}.toolbar-right .view-toggle{display:none}.filter-tabs{width:100%;padding:2px 0;scrollbar-width:none;gap:8px}.filter-btn{padding:7px 13px;font-size:13px;min-height:38px}.node-grid:not(.list-view),.node-grid{grid-template-columns:1fr;gap:12px}.node-card{padding:17px 17px 0}.node-head{margin-bottom:16px}.node-title h2{font-size:17px}.node-title p{font-size:12px}.resource-row{font-size:13px;grid-template-columns:42px 1fr 36px;margin-bottom:9px}.speed-row{margin:19px 0 17px}.speed{gap:14px}.speed strong{font-size:18px}.speed small{font-size:12px}.traffic-row{font-size:11px}.latency-row{font-size:11px;gap:6px;padding:12px 0}.node-footer{padding:11px 0;font-size:11px}.node-footer .meta .extra-meta{display:none}.node-footer .details{font-size:13px;min-height:38px}.detail-dialog{width:100%;border:0}.detail-header{padding:12px 16px}.detail-body{padding:14px}.detail-panel{padding:18px 16px}.detail-panel .node-title h2{font-size:20px}.detail-panel .node-head{margin:0}.detail-panel .speed strong{font-size:20px}.detail-total{font-size:24px}.auth-card{padding:28px}.list-view .node-card{display:block}.list-view .node-head{margin-bottom:16px}.list-view .speed-row{margin:18px 0}.list-view .node-footer{border-top:1px solid var(--line);padding:12px 0;margin-top:10px}.list-view .traffic-row{margin:12px 0}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(min-width:701px){.topbar,.top-nav a{height:60px}.content{padding-top:20px}.page-title{margin-bottom:14px}.page-title h1{line-height:1.3}.page-title p{margin-top:4px;line-height:1.4}.page-title>.connection{display:none}.summary{padding-block:18px}.toolbar{margin-top:18px;margin-bottom:14px}.resource-row{margin-bottom:5px}.speed-row{margin-top:14px;margin-bottom:12px}.node-footer{padding-block:9px}}
/* Persistent local OS icons and responsive 24-hour latency chart. */
.os-label{display:inline-flex;align-items:center;gap:6px;min-width:0}.os-icon{width:16px;height:16px;object-fit:contain;flex:none}.detail-panel .os-label{display:flex}.chart-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:12px}.chart-target{max-width:200px;font-size:12px;height:34px}.latency-chart{min-width:0}.latency-plot{display:block;width:100%;height:auto;touch-action:pan-y}.chart-label{fill:var(--muted);font-size:11px}.chart-grid{stroke:var(--line);stroke-width:1}.chart-cursor{stroke:var(--muted);stroke-width:1;stroke-dasharray:3 3}.plot-wrap{position:relative}.chart-legend{display:flex;gap:8px 20px;flex-wrap:wrap;font-size:12px;margin:4px 0 12px}.chart-legend span{display:inline-flex;align-items:center;gap:6px;overflow-wrap:anywhere}.chart-legend i{height:8px;width:8px;border-radius:50%;flex:none}.chart-legend b{font-weight:400;color:var(--muted)}.chart-note{display:block;font-size:11px;color:var(--muted)}.chart-empty{padding:4px 0 12px;font-size:12px}.latency-chart .chart-toolbar+small{display:block}
@media(max-width:700px){.content{padding-top:18px}.topbar .desktop-connection{display:inline-flex;background:none;padding:0}.topbar .desktop-connection [data-connection-text]{display:none}.top-actions{gap:8px}.chart-target{max-width:150px}.detail-panel .section-title{flex-wrap:wrap}}
.detail-identity .node-head{margin:0}.detail-spec{margin:-10px 0 18px;font-size:12px}.billing-badge{font-size:11px;color:var(--brand);background:var(--brand-soft);padding:4px 8px;border-radius:6px}.detail-quota{font-size:12px;margin:5px 0 12px}.traffic-breakdown{margin-top:15px}.chart-key{display:flex;gap:6px 14px;flex-wrap:wrap;color:var(--muted);font-size:10px;margin:0 0 15px}.probe-summaries{display:grid;gap:10px;margin-bottom:16px}.probe-summary{border:1px solid var(--line);border-radius:10px;padding:12px;background:var(--soft)}.probe-summary-title{display:flex;gap:7px;align-items:center;font-size:12px;min-width:0}.probe-summary-title strong{overflow-wrap:anywhere;min-width:0}.probe-summary-title i{height:8px;width:8px;border-radius:50%;flex:none}.probe-summary-title small{margin-left:auto;font-size:10px;white-space:nowrap}.probe-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 6px}.probe-stats small,.probe-stats b{display:block}.probe-stats small{font-size:10px}.probe-stats b{font-size:14px;font-weight:600}.probe-stats .has-loss{color:var(--warning)}.probe-count{font-size:10px;display:block}.chart-notice{color:var(--muted);background:var(--soft);border-radius:8px;padding:10px;font-size:11px;margin-top:12px}.chart-fetch-error .button{font-size:12px;margin-top:8px}.detail-panel strong.os-label{display:inline-flex}
@media(max-width:360px){.detail-body{padding:10px}.detail-panel{padding:16px 12px}.probe-summary{padding:9px}.probe-stats b{font-size:12px}}

.share-link-box{margin:14px 14px 0;padding:12px;background:var(--brand-soft);border:1px solid var(--line);border-radius:9px;font-size:12px}.share-link-box input{margin-top:8px;width:100%;min-width:0;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:6px;padding:8px;font-size:12px}.node-footer a.details{display:inline-flex;align-items:center;gap:6px}.detail-header{gap:10px}

/* Latency explorer: the time windows are slices of the same 24-hour history. */
.chart-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.chart-period{flex-shrink:0}
.chart-period button{min-height:31px;padding:4px 11px}
.chart-scale{border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--muted);font-size:12px;padding:6px 10px;min-height:34px}
.chart-scale:hover,.chart-scale.active{color:var(--brand);border-color:color-mix(in srgb,var(--brand) 35%,var(--line));background:var(--brand-soft)}
.chart-targets{display:flex;align-items:center;gap:7px;flex-wrap:wrap;max-height:115px;overflow-y:auto;margin:15px 0 12px;scrollbar-width:thin}
.chart-target-chip{display:inline-flex;align-items:center;gap:7px;max-width:100%;min-height:32px;padding:5px 10px;border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--ink);font-size:12px;text-align:left}
.chart-target-chip span{overflow-wrap:anywhere}.chart-target-chip i,.chart-tooltip-row i{width:8px;height:8px;border-radius:50%;flex:none}
.chart-target-chip.is-hidden{opacity:.48;background:var(--surface)}.chart-target-chip.is-hidden span{text-decoration:line-through}
.chart-select-all{border:0;background:transparent;color:var(--brand);font-size:11px;min-height:32px;padding:4px 3px}
.chart-caption{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px;margin:10px 0 3px}
.chart-key{margin:1px 0 10px;gap:6px 13px}.chart-key span{display:inline-flex;align-items:center;gap:5px}
.chart-key-line{display:block;width:15px;border-top:2px solid var(--brand)}.chart-key-range{display:block;width:14px;height:8px;background:color-mix(in srgb,var(--brand) 20%,transparent);border-radius:2px}
.chart-scale-note{margin:0 0 10px;font-size:11px;color:var(--warning);line-height:1.55}
.chart-tooltip{position:absolute;top:8px;min-width:145px;max-width:calc(100% - 8px);max-height:calc(100% - 16px);overflow-y:auto;overscroll-behavior:contain;pointer-events:none;padding:9px 11px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);box-shadow:0 6px 20px #10261b1c;font-size:12px;line-height:1.4;z-index:2}.chart-tooltip.is-scrollable{pointer-events:auto;touch-action:pan-y}
.chart-tooltip-time{color:var(--muted);font-size:11px;font-weight:600;margin-bottom:6px}.chart-tooltip-row{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-top:5px}.chart-tooltip-row span{display:flex;align-items:center;gap:6px;min-width:0;overflow-wrap:anywhere}.chart-tooltip-row strong{font-weight:650;white-space:nowrap}.chart-point{stroke:var(--surface);stroke-width:1.5}
.chart-summary-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 0 9px;font-size:13px}.chart-summary-heading small{font-size:11px}
.probe-summary{background:var(--surface)}.probe-summaries{margin-bottom:12px}.probe-count{overflow-wrap:anywhere}
.latency-plot{outline:none;outline-offset:2px}.latency-plot:focus-visible{outline:3px solid color-mix(in srgb,var(--brand) 35%,transparent);border-radius:5px}
@media(max-width:360px){.chart-period button{padding-inline:8px}.chart-scale{padding-inline:8px}.chart-targets{gap:6px}.chart-target-chip{padding-inline:8px}}

/* A compact, persistent public navigation bar and text-only node labels. */
.topbar{position:sticky;top:0;z-index:20;box-shadow:0 1px 8px #14291b0b}
.top-left{min-width:0}.top-actions{gap:8px;flex-shrink:0}
.top-actions .icon-btn,.top-actions .button{min-height:38px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink)}
.top-actions .icon-btn:hover,.top-actions .button:hover{background:var(--soft)}
.top-actions #compactToggle[aria-pressed=true]{background:var(--brand-soft);border-color:color-mix(in srgb,var(--brand) 24%,var(--line));color:var(--brand)}
.node-labels{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:8px;min-width:0}
.node-label{display:inline-flex;align-items:center;max-width:100%;padding:2px 8px;border-radius:6px;background:var(--brand-soft);color:var(--brand);font-size:11px;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:700px){
 .topbar{padding-inline:14px;gap:6px}.top-left{flex:1}.brand{min-width:0;gap:8px;font-size:17px}.brand>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .top-actions{gap:5px}.top-actions .icon-btn,.top-actions .button{width:36px;min-width:36px;min-height:38px;padding:7px}
 .topbar .desktop-connection{display:inline-flex;margin-right:2px}.node-labels{gap:5px;margin-top:7px}
}
@media(max-width:360px){.topbar{padding-inline:10px}.brand{font-size:16px;gap:7px}.logo{width:43px;height:33px;font-size:17px}.top-actions{gap:3px}.top-actions .icon-btn,.top-actions .button{width:34px;min-width:34px;padding:6px}}

/* 3.7: preserve the public layout, refine its shared controls and surfaces. */
.icon-btn,.button{border-radius:8px;transition:background-color .12s,border-color .12s}
.node-card,.detail-panel{border-radius:12px}.node-title strong{line-height:1.45}
.node-footer{font-size:11px}.node-footer .details{border-radius:6px;padding-inline:7px}.node-footer .details:hover{background:var(--brand-soft)}
.topbar{box-shadow:none}.summary-value{letter-spacing:-.35px}.meter{background:var(--bar)}
.button.primary,.icon-btn.active,.segmented .active,.filter-tabs button.active{background:#176b56;color:#fff;border-color:#176b56}
@media(prefers-reduced-motion:reduce){.icon-btn,.button{transition:none}}

/* Navbar connection text can remain on desktop; mobile needs no indicator slot. */
.topbar .top-actions .connection .dot{display:none!important}
@media(max-width:700px){.topbar .top-actions .desktop-connection{display:none!important}}

.renewal-costs{position:relative;margin:10px 0 18px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink)}
.renewal-costs .cost-head{padding:12px 18px;display:grid;grid-template-columns:minmax(0,1fr) auto auto 32px;align-items:center;gap:clamp(12px,3vw,40px);min-height:44px;box-sizing:border-box;list-style:none}
.renewal-costs .cost-head::-webkit-details-marker{display:none}
.renewal-costs .cost-title,.renewal-costs .cost-metric{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 9px;min-width:0}
.renewal-costs .cost-title{font-size:14px;font-weight:600}
.renewal-costs small,.renewal-costs .cost-content{font-size:12px;color:var(--muted);font-weight:400}
.renewal-costs b{font-size:17px;line-height:1.25;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.renewal-costs .cost-help{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}
.renewal-costs .cost-help span{display:grid;place-items:center;box-sizing:border-box;width:13px;height:13px;border:1px solid currentColor;border-radius:50%;font:600 10px/1 sans-serif}
.renewal-costs .cost-help:hover,.renewal-costs .cost-help[aria-expanded=true]{color:var(--brand);background:var(--soft)}
.renewal-costs .cost-content:not([hidden]){position:absolute;z-index:8;inset-inline-end:12px;top:calc(100% - 3px);width:max-content;max-width:calc(100% - 24px);box-sizing:border-box;padding:12px 15px;white-space:pre-line;line-height:1.7;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);box-shadow:0 6px 24px #0002}
@media(max-width:700px){
 .renewal-costs .cost-head{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;padding:12px 15px}
 .renewal-costs .cost-title{grid-column:1/-1;grid-row:1;padding-right:36px}
 .renewal-costs .cost-help{grid-column:2;grid-row:1;justify-self:end}
 .renewal-costs .cost-metric{grid-row:2}
 .renewal-costs .cost-metric:nth-child(3){padding-left:12px;border-left:1px solid var(--line)}
}

/* Individual cards can expand without leaving compact mode. */
.compact #nodes .node-card{cursor:pointer;align-self:start}
.compact #nodes .node-card:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.compact #nodes .node-card.card-expanded .resource-group{display:block!important}
.compact #nodes .node-card.card-expanded .latency-row{display:flex!important}
.jade-theme.compact #nodes .node-card.card-expanded .resource-group{display:grid!important}
.jade-theme.compact #nodes.list-view .node-card.card-expanded{grid-template-columns:minmax(210px,1.15fr) minmax(190px,1fr) minmax(170px,.9fr) minmax(205px,1.05fr)!important;grid-template-areas:"identity resources speed traffic" "latency latency footer footer"!important}
@media(max-width:1099px) and (min-width:761px){.jade-theme.compact #nodes.list-view .node-card.card-expanded{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-areas:"identity resources" "speed traffic" "latency footer"!important}}
@media(max-width:760px){.jade-theme.compact #nodes.list-view .node-card.card-expanded{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"identity" "speed" "resources" "traffic" "latency" "footer"!important}}

#nodes .node-footer .node-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-left:auto;flex-wrap:wrap}
#nodes .node-actions .purchase-link{display:inline-flex;align-items:center;gap:5px}

/* Group price with purchase; keep the footer visually quiet. */
body #nodes .node-card .node-footer{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:6px 14px;padding-block:10px;flex-wrap:wrap}
body #nodes .node-footer .meta{display:flex;flex-direction:column;align-items:flex-start;flex:1 1 100px;gap:3px;min-width:0}
body #nodes .node-meta-main{display:flex;align-items:center;gap:5px 8px;flex-wrap:wrap}
body #nodes .node-meta-secondary{display:flex;gap:4px 10px;flex-wrap:wrap;font-size:10px;color:var(--muted)}
body #nodes .node-meta-secondary:empty{display:none}
body #nodes .node-footer .node-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-left:auto}
body #nodes .node-offer{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:11px}
body #nodes .node-offer:empty{display:none}
body #nodes .node-offer .node-price{white-space:nowrap;color:var(--ink);font-weight:500}
body #nodes .node-offer .node-price:has(+a)::after{content:'·';margin-left:7px;color:var(--muted);font-weight:400}
body #nodes .node-footer .node-actions .details{display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:11px;font-weight:500;line-height:1.4;min-height:34px;min-width:0;padding:4px 0;border:0;border-radius:0;background:transparent;color:var(--brand)}
body #nodes .node-footer .node-actions>.details{border-left:1px solid var(--line);padding-left:12px}
body #nodes .node-footer .node-offer:empty+.details{border-left:0;padding-left:0}
body #nodes .node-footer .node-actions .details:hover{text-decoration:underline;text-underline-offset:4px;background:transparent}
body #nodes .node-footer .node-actions>.details span{font-size:16px;font-weight:400}
@media(max-width:700px){body #nodes .node-meta-secondary:not(:has(>span:not(.extra-meta))){display:none}body #nodes .node-footer .node-actions{gap:10px}body #nodes .node-footer .node-actions>.details{padding-left:10px}}

/* Configuration and secondary metadata share the card header. */
body #nodes .node-title p .header-meta{display:inline-block;margin-left:10px;white-space:nowrap}
body #nodes .node-title>.badge-warning{display:inline-block;margin-top:4px}
body #nodes .node-card .node-footer{flex-wrap:nowrap;gap:10px}
body #nodes .node-footer .meta{flex:0 0 auto}
body #nodes .node-footer .node-meta-main{flex-wrap:nowrap}
body #nodes .node-footer .node-actions{flex-wrap:nowrap;min-width:0}
body #nodes .node-footer .node-offer{flex-wrap:nowrap;min-width:0}
body #nodes .node-offer .node-price{overflow:hidden;text-overflow:ellipsis;max-width:24ch}
body #nodes .node-footer .node-actions .details{flex-shrink:0}
@media(max-width:380px){body #nodes .node-card .node-footer{gap:6px}body #nodes .node-footer .node-actions{gap:7px}body #nodes .node-footer .node-actions>.details{padding-left:7px}body #nodes .node-offer{gap:4px}body #nodes .node-footer .os-label{gap:4px}}

body #nodes .node-footer .card-uptime{font-size:10px;color:var(--muted);white-space:nowrap;font-weight:400}
body #nodes .node-footer .node-meta-main{gap:7px}
@media(max-width:700px){body #nodes .node-footer .uptime-prefix{display:none}body #nodes .node-footer .node-actions{gap:7px}body #nodes .node-footer .node-actions>.details{padding-left:7px}body #nodes .node-footer .node-offer{gap:4px}body #nodes .node-offer .node-price:has(+a)::after{margin-left:4px}}

/* Final shared link treatment: no button blocks or vertical dividers. */
body #nodes .node-footer .node-meta-main{gap:6px;font-size:11px;color:var(--muted)}
body #nodes .node-footer .card-uptime{font-size:inherit}
body #nodes .node-footer .card-uptime::before{content:'·';margin-right:6px;color:var(--muted)}
body #nodes .node-footer .uptime-prefix{display:none}
body #nodes .node-footer .node-actions{gap:12px}
body #nodes .node-footer .node-actions>.details{border:0;padding-left:0}
body #nodes .node-footer .node-actions .details{font-weight:500}
body #nodes .node-offer .node-price{font-weight:400}
body #nodes .node-offer .node-price:has(+a)::after{content:none}
body #nodes .node-footer .node-offer{gap:9px}
.renewal-info{align-items:center}
.renewal-value{display:flex;justify-content:flex-end;align-items:center;gap:14px;flex-wrap:wrap;min-width:0}
.renewal-value strong{overflow-wrap:anywhere;min-width:0}
.renewal-info .detail-purchase-link{display:inline-flex;align-items:center;gap:4px;min-height:34px;color:var(--brand);font-size:13px;white-space:nowrap;font-weight:500}
.renewal-info .detail-purchase-link span{color:inherit;font-size:12px}
.renewal-info .detail-purchase-link:hover{text-decoration:underline;text-underline-offset:4px}
@media(max-width:380px){body #nodes .node-footer .node-actions{gap:8px}body #nodes .node-footer .node-offer{gap:6px}}

/* Refine hierarchy while preserving card structure and theme layouts. */
body #nodes .speed strong small{display:inline;font-size:.68em;font-weight:500;line-height:inherit;color:var(--muted);white-space:nowrap}
body:not(.jade-theme) #nodes:not(.list-view) .node-card{padding-top:16px}
body:not(.jade-theme) #nodes:not(.list-view) .node-head{margin-bottom:16px;align-items:center}
body:not(.jade-theme) #nodes:not(.list-view) .flag{margin-top:0}
body:not(.jade-theme) #nodes:not(.list-view) .resource-row{margin-bottom:6px;gap:10px}
body:not(.jade-theme) #nodes:not(.list-view) .resource-row strong{font-weight:500;color:var(--ink)}
body:not(.jade-theme) #nodes:not(.list-view) .resource-row .meter{height:5px}
body:not(.jade-theme) #nodes:not(.list-view) .speed-row{margin:16px 0}
body:not(.jade-theme) #nodes:not(.list-view) .speed{gap:12px}
body:not(.jade-theme) #nodes:not(.list-view) .speed strong{font-size:21px;letter-spacing:-.3px}
body:not(.jade-theme) #nodes:not(.list-view) .speed>i{font-size:18px}
body:not(.jade-theme) #nodes:not(.list-view) .traffic-row{margin-bottom:12px;gap:9px}
body:not(.jade-theme) #nodes:not(.list-view) .traffic-row .meter{height:5px}
body:not(.jade-theme) #nodes:not(.list-view) .latency-row{padding-block:10px;gap:6px 10px}
body #nodes .latency-row small{font-size:10px}
body #nodes .latency-row b{font-weight:500;font-size:11px}
body #nodes .node-offer .node-price{font-size:11px;color:var(--muted)}
body #nodes .node-footer .node-actions .purchase-link{color:var(--muted)}
body #nodes .node-footer .node-actions .purchase-link:hover{color:var(--brand)}
@media(max-width:700px){body:not(.jade-theme) #nodes:not(.list-view) .node-title h2{font-size:16px}body:not(.jade-theme) #nodes:not(.list-view) .node-card{padding-top:15px}body:not(.jade-theme) #nodes:not(.list-view) .node-footer{padding-block:8px}}

/* Keep the footer as a compact metadata strip. */
body #nodes .node-card .node-footer{padding-block:5px;margin-top:0;min-height:0;line-height:1.4}
body #nodes .node-footer .node-actions .details{min-height:26px;padding-block:2px;line-height:1.4}
body #nodes .node-footer .node-meta-main{line-height:1.4}
body #nodes .node-footer .os-label{line-height:1.4}
body #nodes .node-footer .node-actions>.details span{font-size:14px;line-height:1}

/* Center each live speed group within its equal-width half. */
body #nodes .node-card .speed-row{grid-template-columns:repeat(2,minmax(0,1fr))}
body #nodes .node-card .speed-row .speed{justify-content:center;min-width:0;padding-inline:8px}
body #nodes .node-card .speed-row .speed+.speed{padding-inline:8px}
body #nodes .node-card .speed-row .speed>div{text-align:center}

/* Use direction icons for speed labels and center detail speed groups. */
body .detail-dialog .speed-row{grid-template-columns:repeat(2,minmax(0,1fr))}
body .detail-dialog .speed-row .speed{justify-content:center;min-width:0;padding-inline:8px}
body .detail-dialog .speed-row .speed+.speed{padding-inline:8px}
body .detail-dialog .speed-row .speed>div{text-align:center}
body .detail-dialog .speed strong small{display:inline;font-size:.68em;font-weight:500;line-height:inherit;color:var(--muted);white-space:nowrap}

/* Loss timelines share the latency plot's SVG width and time coordinates. */
.loss-panel{border-top:1px solid var(--line);padding-top:15px;margin:16px 0 20px}
.loss-wrap{position:relative;min-width:0}
.loss-target{margin:10px 0 6px}
.loss-row-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}
.loss-row-heading>span{display:inline-flex;align-items:center;gap:7px;min-width:0;overflow-wrap:anywhere}
.loss-row-heading i,.probe-table-name i{width:8px;height:8px;border-radius:50%;flex:none;display:inline-block}
.loss-row-heading b{font-size:12px;font-weight:500;white-space:nowrap}
.loss-strip,.loss-axis{display:block;width:100%;height:auto;touch-action:pan-y}
.loss-strip{outline-offset:2px}
.loss-strip:focus-visible{outline:2px solid var(--brand)}
.loss-cell{stroke:var(--surface);stroke-width:.3}
.loss-cell.clear,.loss-key i.clear{fill:color-mix(in srgb,var(--brand) 18%,var(--surface));background:color-mix(in srgb,var(--brand) 18%,var(--surface))}
.loss-cell.low,.loss-key i.low{fill:#eeb665;background:#eeb665}
.loss-cell.medium,.loss-key i.medium{fill:#e7813e;background:#e7813e}
.loss-cell.high,.loss-key i.high{fill:#db5060;background:#db5060}
.loss-cell.unknown,.loss-key i.unknown{fill:var(--line);background:var(--line)}
.loss-cursor{stroke:var(--ink);stroke-width:1.2;pointer-events:none}
.loss-key{display:flex;gap:5px 12px;flex-wrap:wrap;margin-top:8px;font-size:10px;color:var(--muted)}
.loss-key span{display:inline-flex;align-items:center;gap:5px}
.loss-key i{width:12px;height:8px;border-radius:2px;display:inline-block}
.loss-tooltip{z-index:5;max-width:100%;pointer-events:none}
.loss-tooltip small{font-size:10px}
.probe-table-wrap{width:100%;margin-bottom:12px;overflow-x:auto}
.probe-table{width:100%;border-collapse:collapse;font-size:11px;line-height:1.5}
.probe-table th,.probe-table td{padding:9px 5px;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle}
.probe-table thead th{background:var(--soft);color:var(--muted);font-size:10px;font-weight:500}
.probe-table tbody th{font-weight:500;overflow-wrap:anywhere}
.probe-table th:first-child{padding-left:7px}
.probe-table th:last-child,.probe-table td:last-child{text-align:right}
.probe-table-name{display:inline-flex;align-items:center;gap:6px}
.probe-table small{display:block;color:var(--muted);font-size:9px;font-weight:400;margin-top:2px}
.probe-table .has-loss{color:var(--warning)}
@media(max-width:380px){.probe-table{font-size:10px}.probe-table th,.probe-table td{padding-inline:3px}.loss-key{gap:5px 8px}}

/* Traffic detail: compact cycle totals and shared usage/rate colors. */
.traffic-cycle .section-title{margin-bottom:12px}
.cycle-total-row{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.traffic-cycle .detail-total{color:var(--brand);font-size:28px;white-space:nowrap}
.traffic-cycle .detail-total small{font-size:14px;font-weight:400}
.cycle-total-row>span{font-size:12px}
.cycle-total-row>span b{color:var(--ink);font-weight:500}
.cycle-directions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0 10px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding-block:10px;font-size:12px}
.cycle-directions>span{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.cycle-directions>span+span{border-left:1px solid var(--line);padding-left:12px}
.cycle-directions b{font-weight:500;margin-left:auto;white-space:nowrap}
.cycle-directions i,.traffic-legend i{width:8px;height:8px;display:inline-block;border-radius:50%;flex:none}
.cycle-directions .sent,.traffic-legend .sent{background:var(--brand)}
.cycle-directions .recv,.traffic-legend .recv{background:#4c8ed9}
.traffic-cycle .chart-note+.chart-note{margin-top:5px}
.traffic-trend .section-title{margin-bottom:10px}
.traffic-trend .section-title h3{margin-bottom:2px}
.traffic-trend .section-title small{font-size:10px}
.traffic-legend{display:flex;gap:10px;font-size:11px;color:var(--muted);white-space:nowrap}
.traffic-legend span{display:inline-flex;gap:5px;align-items:center}
.traffic-ranges{margin-bottom:12px}
.traffic-ranges button{padding:4px 10px}
.traffic-plot-wrap{position:relative;min-width:0}
.traffic-plot{display:block;width:100%;height:auto;touch-action:pan-y;outline-offset:2px}
.traffic-plot:focus-visible{outline:2px solid var(--brand);border-radius:3px}
.traffic-sent{fill:var(--brand)}
.traffic-recv{fill:#4c8ed9}
.traffic-line{fill:none;stroke-linejoin:round;stroke-linecap:round}
.traffic-line.traffic-sent{stroke:var(--brand)}
.traffic-line.traffic-recv{stroke:#4c8ed9}
.traffic-missing{stroke:var(--muted);stroke-width:2}
.traffic-plot-wrap .chart-tooltip{pointer-events:none;max-width:100%}
.traffic-plot-wrap .chart-tooltip small{font-size:9px}
.traffic-period-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-block:10px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:6px 0 9px}
.traffic-period-totals>div+div{padding-left:12px;border-left:1px solid var(--line)}
.traffic-period-totals small,.traffic-period-totals strong{display:block}
.traffic-period-totals small{font-size:10px}
.traffic-period-totals strong{color:var(--brand);font-size:19px;font-weight:650}
.traffic-period-totals>div+div strong{color:#4c8ed9}
.traffic-realtime .section-title small{font-size:10px}
body .detail-dialog .traffic-realtime .speed-row{margin-bottom:16px}
.traffic-realtime .speed{gap:8px}
.traffic-realtime .speed strong{font-size:19px;color:var(--brand)}
.traffic-realtime .speed+.speed strong,.traffic-realtime .speed+.speed>i{color:#4c8ed9}
.traffic-boot-totals{display:flex;gap:7px 14px;align-items:center;flex-wrap:wrap;margin-top:6px;padding-top:10px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}
@media(max-width:380px){.cycle-directions{gap:8px}.cycle-directions>span+span{padding-left:8px}.traffic-realtime .speed strong{font-size:16px}.traffic-realtime .speed>i{font-size:16px}.traffic-legend{gap:7px}}

/* Overview keeps resource configuration beside its metric, with compact facts. */
.overview-panel .section-title{margin-bottom:14px}
.overview-panel .section-title small{font-size:10px;text-align:right}
.overview-panel>h3{margin-bottom:12px}
.overview-resources{display:grid;gap:13px}
.overview-resource-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px;font-size:12px}
.overview-resource-heading>span{display:inline-flex;align-items:baseline;gap:9px;flex-wrap:wrap}
.overview-resource-heading small{font-size:11px;font-weight:400}
.overview-resource-heading strong{font-size:13px;font-weight:600;white-space:nowrap}
.overview-resource .meter{height:5px}
.overview-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 18px}
.overview-fact{min-width:0}
.overview-fact>small{display:block;font-size:11px;margin-bottom:4px}
.overview-fact>strong{display:block;font-size:13px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}
.overview-fact .os-label{display:inline-flex;align-items:center}
.overview-basics .renewal-info{margin-top:14px;border-top:1px solid var(--line);padding:9px 0 0;font-size:12px}
.overview-basics .renewal-value{gap:10px}
.overview-basics .detail-purchase-link{min-height:28px;font-size:12px}
@media(max-width:360px){.overview-facts{gap:12px}.overview-fact>strong{font-size:12px}}
