@font-face { font-family: Plex; src: url("/plex-400.woff2?v=3b646991") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Plex; src: url("/plex-500.woff2?v=0717336f") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Plex; src: url("/plex-600.woff2?v=8960851d") format("woff2"); font-weight: 600 700; font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #0d1420; --side: #0a101a; --panel: #141c2b; --raise: #1c2637; --line: #28344a;
  --ink: #e9eef7; --ink-2: #a9b6c9; --ink-3: #7585a0; --accent: #5b9dff; --on-accent: #06101f; --soft: rgba(91, 157, 255, .14);
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #0ca30c; --s7: #9085e9; --s8: #e66767; --s9: #2fb3c2; --s10: #b08a5e; --other: #64738c;
  --good: #3fbf7f; --critical: #f07070; --warning: #e0a53a;
  --grid: var(--line); --surface-1: var(--panel); --text-muted: var(--ink-3);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f4f8; --side: #101828; --panel: #ffffff; --raise: #eef2f7; --line: #dde3ec;
  --ink: #131c2b; --ink-2: #4c5a70; --ink-3: #6d7b92; --accent: #1d63d8; --on-accent: #ffffff; --soft: rgba(29, 99, 216, .1);
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #4a3aa7; --s8: #e34948; --s9: #1597a8; --s10: #8d6a3f; --other: #98a4b6;
  --good: #0a7d32; --critical: #c02626; --warning: #955a00;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 Plex, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.muted, .note, .hint { color: var(--ink-3); }
.note { font-size: 14px; margin: 0 0 10px; font-weight: 400; }
td .note { margin: 0; }
.hint { font-size: 14px; }
.grow { flex: 1; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--soft); }

/* ---- frame */
#appView { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
aside { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 12px; background: var(--side); color: #c4cfdf; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 20px; background: none; border: 0; color: #fff; font-weight: 600; font-size: 18px; }
.brand svg { color: var(--accent); }
aside nav { display: flex; flex-direction: column; gap: 2px; flex: 0 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #33415a transparent; }
aside nav button { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: inherit; text-align: left; transition: background .15s, color .15s; }
aside nav button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
aside nav button[aria-current="page"] { background: rgba(91, 157, 255, .18); color: #fff; font-weight: 500; }
aside nav button[aria-current="page"] svg { color: #7db2ff; }
aside nav .gap { padding: 14px 10px 4px; color: #6f809b; font-size: 14px; }
aside nav .gap:first-child { padding-top: 0; }
.foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px; font-size: 14px; }
.foot select { background: rgba(255, 255, 255, .07); color: #dfe7f3; border-color: transparent; width: 100%; }
.foot select option { color: #111; }
.foot .row { display: flex; gap: 6px; }
.foot button { flex: 1 1 auto; padding: 7px 6px; font-size: 14px; white-space: nowrap; border: 0; border-radius: 7px; background: rgba(255, 255, 255, .07); color: #dfe7f3; }
.foot button:hover { background: rgba(255, 255, 255, .14); }
.who { color: #8fa0b8; }
.topbar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 26px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.search { flex: 1; max-width: 520px; }
.search input { width: 100%; height: 38px; padding: 0 12px 0 36px; border: 1px solid var(--line); border-radius: 8px; background-color: var(--panel); background-image: url("/search.svg?v=0041b51b"); background-repeat: no-repeat; background-position: 12px center; }
.search input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--soft); }
.rangebox { position: relative; margin-left: auto; }
.seg { display: inline-flex; padding: 3px; gap: 1px; border-radius: 8px; background: var(--raise); }
.seg.wrap { flex-wrap: wrap; max-width: 100%; }
.seg button { height: 32px; padding: 0 12px; border: 0; border-radius: 6px; background: none; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 500; }
.seg.icons button { display: grid; place-items: center; padding: 5px 9px; }
select { height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 9; display: grid; gap: 6px; width: 240px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px rgb(0 0 0 / .35); }
.pop label { font-size: 14px; color: var(--ink-2); }
.pop input { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); }
.primary:disabled { background: var(--raise); color: var(--ink-3); cursor: default; }
.primary { height: 38px; margin-top: 6px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 500; }
.banner { padding: 9px 16px; background: #5a4300; color: #ffe9b0; text-align: center; font-weight: 500; }
.banner.err { background: #5c1d1d; color: #ffd9d6; }
main { padding: 20px 26px 50px; max-width: 2100px; }

/* ---- page */
.page-head { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; min-height: 38px; margin-bottom: 16px; }
.page-head + .sub { margin: -8px 0 16px; }
h1 { font-size: 26px; line-height: 1.25; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
h2 { font-size: 18px; line-height: 1.35; font-weight: 600; margin: 0; }
.sub, .headline { color: var(--ink-2); margin: 4px 0 16px; max-width: 80ch; }
.headline b { color: var(--ink); }
.kind { color: var(--ink-3); margin-top: 8px; }
.path { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.path .sep { color: var(--ink-3); }
.path b { font-weight: 500; color: var(--ink-2); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.kpi { min-width: 0; padding: 16px 18px 13px 20px; box-shadow: -1px 0 0 var(--line); }
.kpi-l::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 3px; background: var(--k, var(--line)); }
.kpi-l { color: var(--ink-2); font-size: 14px; }
.kpi-v { font-size: 26px; line-height: 1.35; font-weight: 600; white-space: nowrap; }
.kpi-n { min-height: 21px; color: var(--ink-3); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel, .card { min-width: 0; margin-bottom: 16px; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.panel-h, .card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head { justify-content: space-between; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.tiles { display: flex; flex-wrap: wrap; gap: 10px 40px; margin-bottom: 16px; }
.tile .label { color: var(--ink-2); font-size: 14px; }
.tile .value { font-size: 26px; font-weight: 600; line-height: 1.3; }
.tile.warn .value { color: var(--warning); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(430px, 1fr)); gap: 0 16px; }
.subtabs { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: -4px; }
.subtabs button { background: none; border: 0; padding: 4px 0 8px; color: var(--ink-2); border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.subtabs button:hover { color: var(--ink); }
.subtabs button[aria-selected="true"] { color: var(--ink); font-weight: 500; border-color: var(--accent); }

/* ---- graph */
.tbar { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; margin-bottom: 12px; }
.graph { position: relative; width: 100%; cursor: crosshair; touch-action: pan-y; user-select: none; }
.graph canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.zoomsel { position: absolute; top: 12px; bottom: 26px; background: var(--soft); border: 1px solid var(--accent); border-width: 0 1px; pointer-events: none; }
.tip { position: absolute; z-index: 5; pointer-events: none; min-width: 220px; padding: 10px 12px; background: var(--raise); border: 1px solid var(--line); border-radius: 9px; font-size: 14px; box-shadow: 0 12px 32px rgb(0 0 0 / .35); }
.tip-t { color: var(--ink-2); margin-bottom: 5px; }
.tip-r { display: flex; justify-content: space-between; gap: 18px; line-height: 1.6; }
.tip-r span { color: var(--ink-2); }
.tip-r i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.tip-r b { font-weight: 500; }
.tip-sum { margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--line); }
.legend-t { margin-top: 8px; }
.legend-t th, .legend-t td { padding: 7px 12px; }
.legend-t .chk { width: 30px; padding-left: 2px; }
.legend-t .name { padding: 0; border: 0; background: none; text-align: left; font-weight: 500; }
.legend-t button.name:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legend-t .solo { margin-left: 10px; padding: 0 7px; border: 1px solid var(--line); border-radius: 5px; background: none; color: var(--ink-3); font-size: 14px; opacity: 0; transition: opacity .12s; }
.legend-t tr:hover .solo, .legend-t .solo:focus-visible { opacity: 1; }
.legend-t .solo:hover { color: var(--ink); border-color: var(--ink-3); }
.legend-t tr.off td:not(.chk) { opacity: .4; }
.legend-t tr.lg:hover td { background: var(--raise); }
.legend-t tr.sum td { border-bottom: 0; font-weight: 600; }
.legend-t input { appearance: none; display: block; width: 18px; height: 18px; margin: 0; border-radius: 4px; border: 2px solid var(--c); cursor: pointer; transition: background .15s; }
.legend-t input:checked { background: var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.spark { display: block; width: 160px; height: 36px; }
td.sparkcell { padding-top: 2px; padding-bottom: 2px; }
th.sparkcell button { text-align: left; }
.duo { display: flex; gap: 2px; height: 8px; min-width: 110px; }
.duo i { display: block; height: 100%; border-radius: 3px; transition: width .5s; }
.duo .cdn { background: var(--s1); }
.duo .real { background: var(--s2); }
.empty { color: var(--ink-3); padding: 38px 0; text-align: center; }
.err { color: var(--critical); }
.loading { position: relative; min-height: 120px; }

/* ---- tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: right; padding: 9px 12px; border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent); white-space: nowrap; }
th { color: var(--ink-3); font-weight: 500; font-size: 14px; }
th:first-child, td:first-child { text-align: left; padding-left: 2px; }
td.name { font-weight: 500; }
td.l, th.l { text-align: left; }
td.bar { width: 20%; min-width: 130px; }
td.bar .share { display: inline-block; width: calc(100% - 52px); vertical-align: middle; }
td.bar .pct { display: inline-block; width: 46px; text-align: right; color: var(--ink-3); font-size: 14px; }
.share { height: 6px; background: var(--raise); border-radius: 3px; overflow: hidden; }
.share > div { height: 100%; background: var(--accent); border-radius: 3px; }
.loadcell { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.loadcell .share { width: 80px; }
.share > .load.good { background: var(--good); } .share > .load.warning { background: var(--warning); } .share > .load.critical { background: var(--critical); }
.lvl { font-size: 14px; min-width: 56px; text-align: right; }
.lvl.good { color: var(--good); } .lvl.warning { color: var(--warning); } .lvl.critical { color: var(--critical); font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 6px; }
.status.up { color: var(--good); } .status.down { color: var(--critical); } .status.unknown { color: var(--ink-3); }
.tscroll { overflow: auto; max-height: 72vh; }
.tscroll thead th { position: sticky; top: 0; background: var(--panel); z-index: 1; }
.tscroll thead th:has(button) { padding: 0; }
th button { background: none; border: 0; padding: 8px 10px; width: 100%; text-align: right; color: inherit; white-space: nowrap; }
th:first-child button { padding-left: 2px; }
th.l button { text-align: left; }
th button:hover { color: var(--ink); }
th .q { color: var(--ink-3); }
tr.click { cursor: pointer; }
tr.click:hover td, tr.click:focus td { background: var(--raise); }
tr.click:hover td.name { color: var(--accent); }
.ttools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.ttools .filter { height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); min-width: 210px; }
.ttools .push { margin-left: auto; }
.linkbtn { background: none; border: 0; padding: 4px 2px; color: var(--accent); }
.linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.tfoot { padding-top: 10px; text-align: center; }
.warnline { color: var(--warning); margin: 0 0 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px 22px; margin: 0; }
.fact dt { font-size: 14px; color: var(--ink-3); }
.fact dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.app-users:not(:empty) { margin-top: 26px; scroll-margin-top: 80px; }
.app-users h2 { margin-bottom: 10px; }

/* ---- dashboard: two pies, two lines */
.quad { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.q, .panel.side { overflow: hidden; }
.q h2, .two h2 { margin-bottom: 14px; }

.q-body { min-height: 330px; }
.q-sum { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; padding-top: 12px; color: var(--ink-3); }
.q-sum b { color: var(--ink); font-weight: 600; }
.ring-box { display: flex; align-items: center; justify-content: center; gap: 30px; padding-top: 4px; }
.ring-c { flex: 1 1 330px; min-width: 230px; max-width: 430px; }
.ring-c { position: relative; isolation: isolate; aspect-ratio: 1; }
.ring { position: relative; z-index: 2; display: block; width: 100%; overflow: visible; }
.ring-s { transition: transform .28s cubic-bezier(.2, .9, .3, 1.3), opacity .22s, filter .22s; }
.ring-s.lit { transform: translate(var(--dx), var(--dy)); filter: brightness(1.1) drop-shadow(0 0 6px color-mix(in srgb, var(--lit) 70%, transparent)); }
.has-lit .ring-s:not(.lit) { opacity: .6; }
.ring text { text-anchor: middle; pointer-events: none; }
.pie-tags { pointer-events: none; }
.pie-sign { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pie-pct, .pie-name { fill: #fff; paint-order: stroke; stroke: rgb(0 0 0 / .22); stroke-width: 1.6px; stroke-linejoin: round; }
.pie-pct { font-weight: 700; }
.pie-name { font-size: 8.2px; font-weight: 600; }
.pie-shadow { fill: rgb(18 10 52 / .42); }
.ring-n { font-size: 20px; font-weight: 700; fill: #2c3650; }
.ring-u { font-size: 9.5px; font-weight: 500; fill: #55617a; }
.ring-p { font-size: 7.8px; fill: #6d788e; }
/* the lights: a soft glow in the colours of the slices, a light that turns around, two small lamps */
.ring-halo, .ring-sweep, .ring-orbit { position: absolute; border-radius: 50%; pointer-events: none; }
.ring-halo { inset: -4%; filter: blur(16px); opacity: calc(.3 * var(--in, 1)); -webkit-mask: radial-gradient(closest-side, transparent 60%, #000 74%, #000 80%, transparent 100%); mask: radial-gradient(closest-side, transparent 60%, #000 74%, #000 80%, transparent 100%); transition: opacity .3s; }
.is-lit .ring-halo { opacity: .14; }
.ring-c::before { content: ""; position: absolute; inset: -3%; border-radius: 50%; background: radial-gradient(closest-side, transparent 60%, var(--lit, transparent) 84%, transparent); filter: blur(16px); opacity: 0; transition: opacity .3s; pointer-events: none; }
.is-lit .ring-c::before { opacity: .38; }
.ring-sweep { inset: .5%; z-index: 1; background: conic-gradient(from 0deg, transparent 0 62%, color-mix(in srgb, var(--accent) 22%, transparent) 78%, #dfeaff 99%, transparent); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); opacity: .4; }
.ring-orbit { inset: .5%; z-index: 1; }
.ring-orbit i { position: absolute; left: 50%; top: 1.5px; width: 7px; height: 7px; margin: -3.500px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px #fff, 0 0 18px 5px var(--accent); }
.ring-orbit.back i { top: auto; bottom: 1.5px; width: 5px; height: 5px; margin: -2.500px; background: #ffe9d2; box-shadow: 0 0 5px 1px #ffe9d2, 0 0 15px 4px var(--s2); }
:root[data-theme="light"] .ring-halo { opacity: calc(.28 * var(--in, 1)); }
:root[data-theme="light"] .ring-sweep { background: conic-gradient(from 0deg, transparent 0 62%, color-mix(in srgb, var(--accent) 25%, transparent) 80%, var(--accent) 99%, transparent); }
:root[data-theme="light"] .ring-orbit i { background: var(--accent); box-shadow: 0 0 10px 2px color-mix(in srgb, var(--accent) 60%, transparent); }
:root[data-theme="light"] .ring-orbit.back i { background: var(--s2); box-shadow: 0 0 10px 2px color-mix(in srgb, var(--s2) 60%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .ring-sweep { animation: turn 7s linear infinite; }
  .ring-orbit { animation: turn 16s linear infinite; }
  .ring-orbit.back { animation: turn 23s linear infinite reverse; }
  .ring-c .ring { animation: ring-in .7s cubic-bezier(.2, .9, .3, 1.1); }
  .ring-halo { animation: breathe 5s ease-in-out infinite; }
}
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.045); } }
@keyframes ring-in { from { transform: scale(.9) rotate(-14deg); opacity: 0; } }
.ring-l { flex: 1 1 290px; min-width: 0; max-width: 440px; }
.ring-r { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; padding: 5px 9px 7px; border: 0; border-radius: 8px; background: none; text-align: left; transition: background .15s; }
.ring-r i { flex: none; width: 11px; height: 11px; border-radius: 50%; transition: box-shadow .2s; }
.ring-r.lit i { box-shadow: 0 0 10px 2px var(--lit); }
.ring-r span { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.ring-r b { font-weight: 600; white-space: nowrap; }
.ring-r em { width: 52px; text-align: right; font-style: normal; color: var(--ink-3); }
.ring-r u { position: absolute; left: 31px; right: 9px; bottom: 2px; height: 2px; border-radius: 2px; opacity: .75; transform-origin: left; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.ring-r.lit { background: var(--raise); }
button.ring-r:hover span { color: var(--accent); }
.ring-side .ring-box { flex-direction: column; align-items: stretch; gap: 14px; }
.ring-side .ring-c { align-self: center; flex: none; width: min(290px, 100%); }
.ring-side .ring-l { flex: none; max-width: none; }

/* ---- alerts, settings */
.exbtn { display: flex; align-items: center; gap: 18px; }
.conf { display: inline-block; padding: 1px 10px; border-radius: 20px; font-size: 14px; font-weight: 500; border: 1px solid currentColor; }
.conf.confirmed { color: var(--good); } .conf.estimated { color: var(--warning); } .conf.unknown { color: var(--ink-3); }
.rd { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--critical); box-shadow: 0 0 8px color-mix(in srgb, var(--critical) 65%, transparent); }
.rd.read { background: var(--good); box-shadow: none; }
tr.unread td.name { font-weight: 600; } tr.readrow td { color: var(--ink-2); }
.sev { display: inline-block; min-width: 82px; padding: 2px 12px; border-radius: 6px; text-align: center; font-size: 14px; font-weight: 600; }
.sev.critical { background: #c22f2f; color: #fff; } .sev.high { background: #b9501c; color: #fff; } .sev.medium { background: #7c5a06; color: #fff; } .sev.low { background: var(--raise); color: var(--ink-2); }
td.wraptext { white-space: normal; min-width: 220px; max-width: 720px; }
td.wrapok { white-space: normal; min-width: 150px; }
aside nav .count { margin-left: auto; min-width: 24px; padding: 0 7px; border-radius: 12px; background: #c22f2f; color: #fff; font-size: 14px; text-align: center; }
dialog.sheet { width: min(980px, 94vw); max-height: 88vh; padding: 24px 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / .5); }
dialog.sheet::backdrop { background: rgb(4 8 14 / .62); }
dialog.sheet h2 { font-size: 22px; }
dialog.sheet h3 { margin: 20px 0 8px; font-size: 16px; font-weight: 600; color: var(--ink-2); }

.page-head .primary { margin: 0; }
.danger { height: 38px; padding: 0 20px; border: 0; border-radius: 8px; background: #c22f2f; color: #fff; font-weight: 500; }
.linkbtn.bad { color: var(--critical); }
.acts { display: inline-flex; gap: 16px; }
.okline { color: var(--good); }
.banner .linkbtn { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.dform { display: grid; gap: 16px; }
.dform .two { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px 20px; }
.fld > span { display: block; margin-bottom: 5px; color: var(--ink-2); font-size: 14px; }
.fld small, .ticks small { display: block; margin-top: 4px; color: var(--ink-3); font-size: 14px; }
.fld input, .fld select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.fld input:focus, .fld select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--soft); }
.fld input:disabled { opacity: .6; }
.pw { position: relative; display: block; }
.pw input { padding-right: 46px !important; width: 100%; }
.pw input::-ms-reveal { display: none; }
.eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 38px !important; height: 34px; margin: 0 !important; padding: 0 !important; border: 0; border-radius: 7px; background: none !important; color: var(--ink-3) !important; }
.eye:hover, .eye[aria-pressed="true"] { color: var(--accent) !important; }
.eye svg { width: 20px; height: 20px; }
.dform .err { margin: 0; } .dform .err:empty { display: none; }
.tick1 { display: flex; gap: 11px; align-items: center; cursor: pointer; } .tick1 input { width: 19px; height: 19px; margin: 0; accent-color: var(--accent); }
.ticks { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px 20px; }
.ticks label { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.ticks input { flex: none; width: 19px; height: 19px; margin: 3px 0 0; accent-color: var(--accent); }
.ticks b { font-weight: 500; }
.snip { position: relative; margin: 8px 0; }
.snip pre { margin: 0; padding: 14px 70px 14px 14px; overflow: auto; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.snip .linkbtn { position: absolute; top: 10px; right: 12px; }
details summary { cursor: pointer; color: var(--accent); }

/* ---- one pie, big */
dialog.sheet.wide { width: 96vw; max-width: 1760px; height: 92vh; max-height: 92vh; }
.bigpie { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 1fr); gap: 34px; align-items: start; }
.bigpie .ring-box { display: block; }
.bigpie .ring-l { display: none; }
.bigpie .ring-c { width: min(100%, 74vh); max-width: none; margin: 0 auto; }
.bigpie .filter { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); font-size: 16px; }
.bigpie .filter:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--soft); }
.biglist { max-height: 34vh; overflow: auto; margin: 10px 0 4px; }
.bigrow { display: flex; align-items: center; gap: 13px; width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; background: none; text-align: left; font-size: 16px; }
.bigrow:hover { background: var(--raise); }
.bigrow[aria-pressed="true"] { background: var(--soft); box-shadow: inset 3px 0 0 var(--accent); }
.bigrow i { flex: none; width: 14px; height: 14px; border-radius: 50%; }
.bigrow span { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.bigrow b { font-weight: 600; white-space: nowrap; }
.bigrow em { width: 62px; text-align: right; font-style: normal; color: var(--ink-3); }
.bigone { padding-top: 14px; border-top: 1px solid var(--line); }
.bigone h3 { margin: 0 0 4px !important; font-size: 22px !important; color: var(--ink) !important; overflow-wrap: anywhere; }
@media (max-width: 700px) { .bigrow { gap: 8px; padding: 9px 6px; font-size: 16px; } .bigrow em { width: 46px; } dialog.sheet { padding: 18px 16px; } }
@media (max-width: 1050px) { .bigpie { grid-template-columns: minmax(0, 1fr); } .biglist { max-height: 300px; } dialog.sheet.wide { height: auto; } }

/* ---- subscribers */
.flagrow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.flagtile { position: relative; padding: 13px 16px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-align: left; transition: border-color .15s, background .15s; }
.flagtile::before { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px; background: var(--f, transparent); }
.flagtile:hover { border-color: var(--ink-3); }
.flagtile[aria-pressed="true"] { background: var(--soft); border-color: var(--accent); }
.flagtile b { display: block; font-size: 26px; line-height: 1.2; font-weight: 600; }
.flagtile span { display: block; color: var(--ink-2); font-size: 14px; line-height: 1.3; }
.flagtile.unstable, .fl.unstable { --f: var(--warning); } .flagtile.silent, .fl.silent { --f: var(--s1); } .flagtile.heavy, .fl.heavy { --f: var(--s7); } .flagtile.shared, .fl.shared { --f: var(--s9); } .flagtile.alert, .fl.alert { --f: var(--critical); } .flagtile.offline { --f: var(--ink-3); }
.fl { display: inline-block; margin-right: 6px; padding: 0 9px; border: 1px solid var(--f); border-radius: 20px; color: var(--ink); font-size: 14px; }
.dot.inl { display: inline-block; margin-right: 10px; }
.chip { padding: 5px 14px; border: 1px solid var(--accent); border-radius: 20px; background: var(--soft); }
.grid3 { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.3fr) minmax(0, 1.3fr); gap: 0 16px; align-items: start; }
.grid3 h2 { margin-bottom: 14px; }
.hbars > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin-bottom: 14px; }
.hbars small { color: var(--ink-3); }
.hbars u { grid-column: 1 / -1; height: 10px; border-radius: 5px; background: var(--raise); overflow: hidden; }
.hbars i { display: block; height: 100%; border-radius: 5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.hbars b { font-weight: 600; }
@media (max-width: 1500px) { .grid3 { grid-template-columns: minmax(0, 1fr); } }

/* ---- links */
.linkrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.linkchip { min-width: 0; padding: 13px 16px 12px; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 12px; background: var(--panel); text-align: left; transition: background .15s, border-color .15s; }
.linkchip:hover { background: var(--raise); }
.linkchip[aria-pressed="true"] { background: var(--soft); border-color: var(--accent); border-left-color: var(--c); }
.linkchip span { display: block; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linkchip b { display: block; font-size: 22px; line-height: 1.35; font-weight: 600; white-space: nowrap; }
.linkchip small { display: block; color: var(--ink-3); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.two.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.two.even .ring-box { flex-direction: row; align-items: center; }
.two.even .ring-l { flex: 1; }
.toolbar select { max-width: 230px; }

/* ---- details of one user */
.kpis.inner { margin: 4px 0 18px; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 24px 40px; }
.dpart h3, .dh { margin: 0 0 10px; font-size: 18px; font-weight: 600; }
.dh { margin-top: 28px; }
.drow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 46px; gap: 3px 14px; align-items: baseline; width: 100%; padding: 4px 6px 8px; border: 0; border-radius: 7px; background: none; text-align: left; }
button.drow:hover { background: var(--raise); }
.drow span { overflow-wrap: anywhere; }
.drow small { color: var(--ink-3); font-size: 14px; }
.drow b { font-weight: 500; white-space: nowrap; }
.drow em { text-align: right; font-style: normal; color: var(--ink-3); font-size: 14px; }
.drow u { grid-column: 1 / -1; height: 4px; border-radius: 3px; background: var(--raise); overflow: hidden; }
.drow i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transform-origin: left; }
.heat { overflow-x: auto; }
.hrow { display: grid; grid-template-columns: 110px repeat(24, minmax(18px, 1fr)); gap: 3px; align-items: center; margin-bottom: 3px; min-width: 620px; }
.hrow span { color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.hrow i { font-style: normal; }
.hrow.head i { color: var(--ink-3); font-size: 14px; }
.hrow .cell { height: 24px; border-radius: 4px; background: color-mix(in srgb, var(--accent) calc(var(--v) * 100%), var(--raise)); }

/* ---- live */
dialog.sheet.live { height: fit-content; }
.livegraph .graph { height: min(56vh, 620px) !important; }
dialog.sheet.live.withdpi .livegraph .graph { height: min(32vh, 340px) !important; }
.livedpi { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px 40px; margin-top: 8px; }
.liveapp { display: grid; grid-template-columns: minmax(0, 1fr) 112px 112px; gap: 3px 12px; align-items: baseline; margin-bottom: 10px; }
.liveapp span { overflow-wrap: anywhere; }
.liveapp small, .liveone small { color: var(--ink-3); font-size: 14px; }
.liveapp b { text-align: right; font-weight: 600; white-space: nowrap; }
.liveapp u { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--raise); overflow: hidden; }
.liveapp i { display: block; height: 100%; border-radius: 3px; transform-origin: left; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.liveopen { max-height: 38vh; overflow: auto; }
.liveone { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.liveone span { font-weight: 500; }
.liveone b { margin-left: auto; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.liveone .livedot { margin: 0; background: var(--ink-3); animation: none; }
.liveone.fresh .livedot { background: var(--good); }
.liveone.fresh b { color: var(--good); }
@media (max-width: 900px) { .livedpi { grid-template-columns: minmax(0, 1fr); } .liveapp { grid-template-columns: minmax(0, 1fr) auto auto; } }
.livehead { display: flex; flex-wrap: wrap; gap: 14px 44px; align-items: end; margin: 6px 0 14px; }
.livehead div b { display: block; font-size: 44px; line-height: 1.1; font-weight: 600; }
.livehead div span { color: var(--ink-2); }
.livehead .dn1 b { color: var(--s1); } .livehead .up1 b { color: var(--s6); }
.lsec { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin-bottom: 4px; }
.lsec h3 { margin: 0 !important; font-size: 18px !important; color: var(--ink) !important; }
.pinglog { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 18px; max-height: 150px; overflow: auto; margin-top: 12px; color: var(--ink-2); font-size: 14px; white-space: pre; }
.liveapps { max-height: 40vh; overflow: auto; padding-right: 8px; }
.livehead .fld { min-width: 300px; margin-left: auto; }
.livedot { display: inline-block; width: 11px; height: 11px; margin-right: 8px; border-radius: 50%; background: var(--critical); }
.livebtn { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: none; font-weight: 500; }
.livebtn:hover { border-color: var(--ink-3); }
.livebtn.on { border-color: var(--critical); background: color-mix(in srgb, var(--critical) 14%, transparent); }
.livebtn:not(.on) .livedot { animation: none; }
.livebtn.sq { width: 38px; padding: 0; justify-content: center; font-size: 18px; }
@media (prefers-reduced-motion: no-preference) { .livedot { animation: pulse 1.4s ease-in-out infinite; } }
@keyframes pulse { 50% { opacity: .25; } }

/* ---- DPI: users on the left, the chosen one on the right */
.dpi { display: grid; grid-template-columns: minmax(310px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.dpi-list { position: sticky; top: 76px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; padding: 14px; }
.dpi-list > div, .dpi-list > div > div { min-height: 0; }
.dpi-list > div, .dpi-list > div > div { display: flex; flex-direction: column; }
.dpi-list .filter { flex: none; width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); font-size: 16px; }
.dpi-list .filter:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--soft); }
.dpi-list div.utools { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 10px; }
.dpi-list div.seg { flex-direction: row; }
.dpi-list div.ulist { display: block; overflow: auto; margin: 10px -6px 0; min-height: 200px; }
.urow { display: flex; align-items: center; border-radius: 9px; transition: background .12s; }
.urow:hover { background: var(--raise); }
.umain { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; padding: 10px 4px 10px 10px; border: 0; background: none; text-align: left; }
.ulive { flex: none; display: grid; place-items: center; width: 34px; height: 38px; margin-right: 4px; border: 0; border-radius: 8px; background: none; }
.ulive .livedot { margin: 0; animation: none; opacity: .5; }
.ulive:hover, .ulive:focus-visible { background: var(--soft); } .ulive:hover .livedot { opacity: 1; }
.urow[aria-current="true"] { background: var(--soft); box-shadow: inset 3px 0 0 var(--accent); }
.urow b { display: block; font-weight: 600; font-size: 16px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.urow span span { display: block; color: var(--ink-3); font-size: 14px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-id { flex: 1; min-width: 0; }
.u-use { flex: none; max-width: 40%; text-align: right; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dot.on { background: var(--good); } .dot.off { background: none; border: 2px solid var(--ink-3); }
.who-h { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.who-h h2 { font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
dialog .who-h { margin-bottom: 16px; }
.who-f { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 8px 0 0 24px; color: var(--ink-3); }
.who-f b { color: var(--ink); font-weight: 500; }
.two { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0 16px; }
.two > .panel { display: flex; flex-direction: column; overflow: hidden; }
.two .ring-box { flex-direction: column; align-items: stretch; gap: 10px; }
.two .ring-c { align-self: center; flex: none; width: min(330px, 100%); }
.two .ring-l { flex: none; max-width: none; }
.two .q-body { flex: 1; }

/* ---- sign in */
/* sign-in: the network at work behind a glass form (always dark: it is the picture of the network) */
.login { position: relative; min-height: 100vh; overflow: hidden; display: grid; grid-template-columns: 1fr minmax(320px, 400px); align-items: center; gap: 40px;
  padding: 48px clamp(24px, 6vw, 96px); background: radial-gradient(120% 90% at 30% 50%, #12203a 0%, #0a1222 55%, #060b16 100%); color: #e6edf7; }
.login.hidden { display: none; }
#netfield { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.login-copy, .login form { position: relative; z-index: 1; }
.login-copy { align-self: end; max-width: 34ch; padding-bottom: 8vh; }
.login-brand { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.login-brand svg { color: #7db2ff; }
.login-copy p { margin: 14px 0 0; font-size: 18px; line-height: 1.5; color: #b6c3d8; }
.login-copy .login-key { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: #8fa0b8; }
.login-key i { width: 18px; height: 3px; border-radius: 2px; } .login-key .k-cdn { background: #5b9dff; } .login-key .k-real { background: #ff8a4c; margin-left: 10px; }
.login form { width: 100%; padding: 32px 30px 26px; border: 1px solid rgba(160, 185, 225, .18); border-radius: 16px;
  background: rgba(14, 22, 38, .72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  animation: login-in .7s cubic-bezier(.2, .8, .2, 1) both; }
.login h1 { margin: 0 0 8px; font-size: 22px; font-weight: 600; color: #fff; }
.login label { display: block; color: #b6c3d8; margin: 14px 0 6px; font-size: 14px; }
.login input { width: 100%; padding: 11px 12px; border: 1px solid rgba(160, 185, 225, .22); border-radius: 9px; background: rgba(6, 11, 22, .7); color: #fff; font-size: 16px; }
.login input:focus { outline: none; border-color: #5b9dff; box-shadow: 0 0 0 3px rgba(91, 157, 255, .25); }
.login button { margin-top: 22px; width: 100%; padding: 12px; border: 0; border-radius: 9px; background: #5b9dff; color: #06101f; font-size: 16px; font-weight: 600; transition: background .15s; }
.login button:hover { background: #7db2ff; } .login button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.login .err { min-height: 1.4em; margin: 12px 0 0; color: #ff8c8c; }
@keyframes login-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* centred: the name above, the form in the middle of the network, a light turning around it like the rings of the charts */
.login { grid-template-columns: minmax(0, 400px); justify-content: center; align-content: center; gap: 26px; }
.login-copy { align-self: auto; max-width: none; width: min(560px, 92vw); justify-self: center; padding: 0; text-align: center; }
.login-brand { justify-content: center; }
.login-copy p { font-size: 16px; }
.login-copy .login-key { position: fixed; left: 0; right: 0; bottom: 22px; justify-content: center; margin: 0; z-index: 1; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.login form { isolation: isolate; }
.login form::before, .login form::after { content: ""; position: absolute; border-radius: 17px; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0 58%, rgba(91, 157, 255, .25) 74%, #5b9dff 90%, #dfeaff 98%, transparent); animation: turn-light 6s linear infinite; }
.login form::before { inset: -1.5px; z-index: -1; padding: 1.5px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.login form::after { inset: -5px; z-index: -2; padding: 5px; filter: blur(9px); opacity: .8; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
@keyframes turn-light { to { --spin: 360deg; } }
@media (prefers-reduced-motion: reduce) { .login form, .login form::before, .login form::after { animation: none; } }
@media (max-width: 860px) { .login { padding: 32px 18px; gap: 22px; } .login-copy .login-key { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  main > .view { animation: arrive .28s cubic-bezier(.2, .8, .2, 1); }
  .pop:not(.hidden) { animation: arrive .16s; }
}
@keyframes arrive { from { opacity: 0; transform: translateY(5px); } }
@media (max-width: 1250px) { .quad, .two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1640px) { .quad .ring-box { flex-direction: column; align-items: stretch; gap: 16px; } .quad .ring-c { align-self: center; flex: none; width: min(350px, 100%); } .quad .ring-l { flex: none; max-width: none; } }
@media (max-width: 2000px) { .dpi-main .quad .ring-box { flex-direction: column; align-items: stretch; gap: 16px; } .dpi-main .quad .ring-c { align-self: center; flex: none; width: min(350px, 100%); } .dpi-main .quad .ring-l { flex: none; max-width: none; } }
@media (max-width: 1400px) { .cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1100px) { .dpi { grid-template-columns: minmax(0, 1fr); } .dpi-list { position: static; max-height: 62vh; } .dpi-main { scroll-margin-top: 80px; } }
@media (max-width: 860px) {
  #appView { grid-template-columns: minmax(0, 1fr); }
  aside { position: static; height: auto; padding: 10px 14px; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .brand { padding: 4px 6px; }
  aside nav { order: 3; flex-basis: 100%; flex-direction: row; overflow-x: auto; }
  aside nav button { white-space: nowrap; }
  aside nav .gap { display: none; }
  .foot { margin: 0 0 0 auto; flex-direction: row; padding: 0; } .foot select, .who { display: none; }
  .topbar { padding: 10px 14px; } .search { flex-basis: 100%; max-width: none; } .rangebox { margin: 0; overflow-x: auto; max-width: 100%; }
  .pop { position: fixed; left: 14px; top: 170px; }
  main { padding: 16px 14px 40px; }
  .panel, .card { padding: 14px; }
  .grid2 { grid-template-columns: 1fr; }
  
  .hint { display: none; }
}
@media (max-height: 900px) and (min-width: 861px) { aside { padding-top: 12px; } .brand { padding-bottom: 12px; } aside nav button { padding: 6px 10px; } aside nav .gap { padding: 7px 10px 1px; flex: none; } .foot { padding: 8px 10px 0; gap: 6px; } }
aside nav button { flex: none; }
@media (max-width: 1250px) { .flagrow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 620px) { .flagrow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .who-f { margin-left: 0; } }
/* what does not fit goes, the least useful first */
.dt, .tpanel { container-type: inline-size; }
@container (max-width: 1640px) { .opt1 { display: none; } }
@container (max-width: 1180px) { .opt2 { display: none; } }
@container (max-width: 1080px) { .opt3 { display: none; } }
@container (max-width: 640px) { .opt4, .legend-t th:nth-child(5), .legend-t td:nth-child(5) { display: none; } }
@container (max-width: 860px) { .legend-t th:nth-child(6), .legend-t td:nth-child(6) { display: none; } }
@container (max-width: 760px) { .legend-t th:nth-child(4), .legend-t td:nth-child(4) { display: none; } }
@container (max-width: 560px) { .legend-t th:nth-child(4), .legend-t td:nth-child(4), .legend-t th:nth-child(7), .legend-t td:nth-child(7) { display: none; } th, td { padding-left: 7px; padding-right: 7px; } }
@media (max-width: 1500px) { .dpi-main .two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1500px) and (min-width: 1200px) { .dpi-main .two .ring-box { flex-direction: row; align-items: center; gap: 20px; } .dpi-main .two .ring-c { width: 310px; } .dpi-main .two .ring-l { flex: 1; } }
.dpi-main, .dpi-main > .view { min-width: 0; }
@media (max-width: 1640px) { .two.even .ring-box { flex-direction: column; align-items: stretch; } }
@media (max-width: 1100px) { .two.even { grid-template-columns: minmax(0, 1fr); } }

/* TCP: what to do */
.advice { display: grid; gap: 12px; }
.adv { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 12px 14px; }
.adv.warning { border-left-color: var(--warning); }
.adv h3 { margin: 0 0 6px; font-size: 14px; }
.adv p { margin: 0 0 8px; color: var(--ink-2); max-width: 80ch; }
details.panel > summary { cursor: pointer; font-weight: 600; }
#ranges .liveb::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--ink-3, #888); vertical-align: 1px; }
#ranges .liveb[aria-pressed="true"]::before { background: var(--good); animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { #ranges .liveb[aria-pressed="true"]::before { animation: none; } }
/* a user's traffic split between Real, CDN and peering */
.viabar { display: flex; gap: 2px; height: 12px; margin: 4px 0 12px; border-radius: 6px; overflow: hidden; background: var(--line); }
.viabar i { min-width: 3px; }
.kpi.click { cursor: pointer; }
.kpi.click:hover, .kpi.click:focus-visible { background: var(--hover, rgba(127,127,127,.08)); outline: none; }
/* Top users: the two date fields */
.toolbar .dates { display: inline-flex; align-items: center; gap: 8px; }
.toolbar .dates .filter { height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: inherit; font: inherit; }
.tickline { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 8px; }
.tickline small { display: block; color: var(--ink-3); }
.filter.num { width: 110px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: inherit; font: inherit; }
.warn-v { color: var(--warning, #c98a00); font-weight: 600; }
.bad-v { color: var(--critical); font-weight: 700; }
ul.plain { margin: 8px 0 0; padding-left: 18px; line-height: 1.6; }
.source { margin: -4px 0 14px; font-size: 14px; color: var(--ink-2); }
.source b { font-weight: 600; }
.source.est b { color: var(--warning, #c98a00); }
.source.meas b { color: var(--good); }
.rulebox { padding: 10px 0; border-top: 1px solid var(--line); }
/* Shaping planner: 24 bars, one per hour of the day */
.hbars { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; height: 150px; align-items: end; margin: 6px 0 18px; }
.hbars > div { display: flex; flex-direction: column; height: 100%; }
.hbars span { position: relative; flex: 1; display: flex; align-items: flex-end; }
.hbars i { display: block; width: 100%; background: var(--s1); border-radius: 3px 3px 0 0; min-height: 1px; }
.hbars u { position: absolute; left: 0; right: 0; border-top: 2px solid var(--critical); }
.hbars small { text-align: center; color: var(--ink-3); font-size: 12px; height: 16px; }
.liveinline .livegraph .graph { height: min(34vh, 300px) !important; }
.liveinline .panel-h h2 { display: flex; align-items: center; gap: 6px; }
/* DPI list: tick PPPoE servers */
.dpi-list details.nasbox { flex: none; margin-top: 10px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; }
.dpi-list details.nasbox summary { cursor: pointer; font-weight: 600; }
.nasticks { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 8px 0 4px; max-height: 260px; overflow: auto; }
.nasticks label { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nasticks label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nasticks small { margin-left: auto; white-space: nowrap; }

/* sidebar: every page fits at 900 px high; the list scrolls with a fade when the screen is shorter */
aside nav { font-size: 14px; -webkit-mask: linear-gradient(#000 calc(100% - 18px), transparent); mask: linear-gradient(#000 calc(100% - 18px), transparent); padding-bottom: 12px; }
aside nav button { padding: 6px 10px; line-height: 20px; }
aside nav .gap { padding: 12px 10px 3px; font-size: 13px; letter-spacing: .02em; }
aside nav .count { font-size: 13px; line-height: 20px; }
.foot { border-top: 1px solid rgba(255, 255, 255, .08); padding: 10px 4px 0; }
.foot .row { align-items: center; gap: 4px; }
.foot .who { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 4px; }
.foot button.ib { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; }
.foot button.ib:focus-visible { outline: 2px solid #7db2ff; outline-offset: 1px; }
@media (max-height: 900px) and (min-width: 861px) { aside nav button { padding: 4px 10px; } aside nav .gap { padding: 8px 10px 2px; } }
@media (max-width: 860px) { aside nav { -webkit-mask: none; mask: none; padding-bottom: 0; } .foot { border: 0; padding: 0; } .foot .who { display: none; } }
/* a button after a value in a table cell (Capacity: change) */
td span > .linkbtn { margin-left: 10px; }
@container (max-width: 640px) { td.name { white-space: normal; overflow-wrap: anywhere; min-width: 120px; } }
/* alerts: read and delete in each row */
.alact { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; white-space: nowrap; }
.linkbtn.del { color: var(--critical); }
.page-head button.quiet { height: 38px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--raise); color: var(--ink); }
.page-head button.quiet:hover:not(:disabled) { color: var(--critical); }
.page-head button.quiet:disabled { color: var(--ink-3); cursor: default; }

/* customer care pages */
.cstack { display: flex; flex-direction: column; gap: 18px; }
.cstack .kpis { margin: 0; }
.dot.big { width: 14px; height: 14px; }
.cpill { padding: 2px 10px; border-radius: 12px; background: var(--raise); color: var(--ink-2); font-size: 14px; }
.cpill.good { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.cverdict { margin: 6px 0 14px; padding: 10px 14px; border-radius: 8px; border-left: 4px solid var(--good); background: var(--raise); }
.cverdict.warn { border-color: var(--warning); } .cverdict.bad { border-color: var(--critical); }
.cbars { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.cbar { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.cbar .v { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ctrack { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--raise); overflow: hidden; }
.cfill { display: block; height: 100%; border-radius: 4px; background: var(--s1); }
.calerts { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.clv.warn { color: var(--warning); font-weight: 600; } .clv.bad { color: var(--critical); font-weight: 600; }
.filter.cwide { width: min(420px, 100%); }
.clegend { display: inline-flex; align-items: center; gap: 6px; margin-left: 16px; color: var(--ink-2); }
.clegend i { width: 12px; height: 12px; border-radius: 3px; } .clegend .sw1 { background: var(--s1); } .clegend .sw2 { background: var(--s2); }
.daybars { width: 100%; height: auto; display: block; margin-top: 8px; }
.daybars .grid { stroke: var(--grid); stroke-width: 1; } .daybars .axis { fill: var(--ink-3); font-size: 12px; }
.daybars .bar:hover rect { opacity: .8; }
.rtitle { font-size: 22px; margin: 0 0 12px; }
@media print {
  aside, .topbar, .noprint, .source, .dt input.filter, .dt .csv, .page-head .seg { display: none !important; }
  body, #appView, main, .panel, .card { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  #appView { display: block !important; } .panel { border: 1px solid #ccc !important; break-inside: avoid; }
  .tscroll { max-height: none !important; overflow: visible !important; }
  .kpis, .kpis *, .tscroll thead th { background: #fff !important; color: #000 !important; }
  .dt .linkbtn, .dt .filter, .dt .rows { display: none !important; }
  .daybars .axis { fill: #333; } .daybars .grid { stroke: #ccc; }
}
.who-h button:not(.primary):not(.linkbtn) { height: 38px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--raise); color: var(--ink); }
.who-h button:not(.primary):not(.linkbtn):hover { background: color-mix(in srgb, var(--raise) 70%, var(--ink-3)); }
td .dot { display: inline-block; vertical-align: middle; }
/* menu groups fold */
aside nav button.gap { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: none; color: #6f809b; text-align: left; border-radius: 6px; cursor: pointer; }
aside nav button.gap:hover { background: none; } aside nav button.gap:hover:not(:disabled) { color: #c4cfdf; }
aside nav button.gap:disabled { cursor: default; opacity: 1; }
aside nav button.gap .chev { font-size: 12px; opacity: .8; }
aside nav button.gap:disabled .chev { visibility: hidden; }
/* accounts: what an account manager may give */
.grantbox { margin: 16px 0; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--raise); }
.grantbox h3 { margin: 0 0 4px; font-size: 16px; }
/* phone: a menu button, and the menu slides in from the left over a shade */
.menubtn, .navshade { display: none; }
@media (max-width: 860px) {
  aside { position: sticky; top: 0; z-index: 30; flex-wrap: nowrap; padding: 8px 12px; gap: 6px; }
  .menubtn { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .07); color: #dfe7f3; }
  .menubtn:focus-visible { outline: 2px solid #7db2ff; outline-offset: 1px; }
  aside nav { position: fixed; top: 0; left: 0; bottom: 0; z-index: 40; order: 0; width: min(290px, 82vw); flex-basis: auto; flex-direction: column; overflow-x: hidden; overflow-y: auto;
    padding: 18px 12px 28px; background: var(--side); box-shadow: 0 0 48px rgba(0, 0, 0, .55); transform: translateX(-104%); visibility: hidden; transition: transform .26s cubic-bezier(.2, .8, .2, 1), visibility 0s .26s; }
  body.navopen aside nav { transform: none; visibility: visible; transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
  aside nav button { white-space: normal; padding: 10px 10px; }
  aside nav .gap, aside nav button.gap { display: flex; padding: 14px 10px 4px; }
  aside nav button.gap .chev { display: none; }
  .navshade { display: block; position: fixed; inset: 0; z-index: 29; background: rgba(2, 6, 14, .55); opacity: 0; pointer-events: none; transition: opacity .26s; }
  body.navopen .navshade { opacity: 1; pointer-events: auto; }
  body.navopen { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { aside nav, body.navopen aside nav, .navshade { transition: none; } }
.compick { height: 38px; padding: 0 34px 0 12px; border-radius: 8px; font-weight: 500; }
