/* Connect family tokens and components, copied from Connect Sessions
   (devops/ConnectSessions/src/connectsessions/web/static/app.css, a740645). Change them there
   first: anything specific to this app belongs in telemetry.css. */
:root {
  --bg: #F4F5F7; --panel: #FFFFFF; --panel2: #F8F9FB; --hover: #F1F4F9; --line: #DDE1E7;
  --line2: #ECEEF2; --text: #14171F; --muted: #555C69; --accent: #1F55C4; --btn: #1F55C4;
  --on-accent: #FFFFFF; --acc-soft: #EAF0FC; --acc-line: #9DB4E8; --acc-text: #163C8C;
  --warn-bg: #FCEBD3; --warn-fg: #7F4505; --cloud: #2160C8; --ok: #23804A; --bad: #B42318;
  --dis-bg: #F1F2F4; --dis-fg: #5B6270; --shadow: 0 10px 28px rgba(20, 23, 31, .16);
  --rail: #A3A9B4; --mark: #FFF0B8;
  --local: #23804A; --local-bg: #EAF6EE; --local-line: #A9D6B8; --local-text: #185A33;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #101013; --panel: #17171c; --panel2: #1b1b20; --hover: #202027; --line: #2a2a32;
  --line2: #222228; --text: #e8e8ec; --muted: #8f8f99; --accent: #7ea6f0; --btn: #2a5bc8;
  --on-accent: #FFFFFF; --acc-soft: #1e2433; --acc-line: #34466e; --acc-text: #b4c8f2;
  --warn-bg: rgba(217, 177, 59, .12); --warn-fg: #e2bf55; --cloud: #7ea6f0; --ok: #5bbf7a;
  --bad: #f07a6e; --dis-bg: #1d1d23; --dis-fg: #8a8a94; --shadow: 0 10px 28px rgba(0, 0, 0, .55);
  --rail: #4C4C56; --mark: #5a4a12;
  --local: #5bbf7a; --local-bg: rgba(91, 191, 122, .10); --local-line: #2f5a3d; --local-text: #9bd9ad;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text); font: 13px 'IBM Plex Sans', system-ui, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; }
.mut { color: var(--muted); }
.lbl { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .03em; }
.sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.miss { color: var(--muted); font-style: italic; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.app { height: 100vh; min-height: 560px; display: flex; flex-direction: column; overflow: hidden; }
.side {
  flex: 0 0 216px; min-width: 0; display: flex; flex-direction: column; gap: 1px;
  padding: 8px 6px; overflow: auto;
}
.side .nav > svg { color: var(--muted); flex: 0 0 auto; }
.side .nav[aria-current="true"] > svg { color: var(--accent); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.wordmark { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.brand svg { color: var(--accent); }
.brand-icon { flex: none; display: block; }
.nav {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 6px 10px; border: 0; border-radius: 6px; background: none; color: var(--text);
  text-align: left; cursor: pointer;
}
.nav:hover { background: var(--hover); }
.nav[aria-current="true"] { background: var(--acc-soft); color: var(--acc-text); font-weight: 600; }
.nav .n { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 400; }
.nav[aria-current="true"] .n { color: var(--acc-text); }
.sec { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: .08em; padding: 16px 10px 4px; }
.side .hint { font-size: 11.5px; line-height: 1.45; padding: 8px 10px 0; color: var(--muted); }
.ib {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; flex: 0 0 auto;
}
.ib:hover { background: var(--hover); color: var(--text); }
.ib[aria-pressed="true"] { background: var(--acc-soft); color: var(--acc-text); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px;
  padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel);
  color: var(--text); font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--hover); text-decoration: none; }
.btnp { background: var(--btn); border-color: var(--btn); color: var(--on-accent); font-weight: 600; }
.btnp:hover { background: var(--btn); filter: brightness(1.1); }
.btng { background: transparent; border-color: transparent; }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--dis-bg); color: var(--dis-fg); border-color: var(--line2); cursor: not-allowed; filter: none;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.chip:hover { background: var(--hover); }
.chip.on { background: var(--acc-soft); border-color: var(--acc-line); color: var(--acc-text); }
.b { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; line-height: 16px; }
.warn { background: var(--warn-bg); color: var(--warn-fg); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button {
  height: 26px; min-width: 34px; padding: 0 8px; border: 0; background: var(--panel);
  color: var(--muted); font-size: 12px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--acc-soft); color: var(--acc-text); font-weight: 600; }
.field {
  height: 32px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel2);
  color: var(--text); padding: 0 10px; outline: none;
}
.field:focus { border-color: var(--accent); }
input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; cursor: pointer; }
.err { color: var(--bad); font-size: 12px; }
.toolbar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pop.right { left: auto; right: 0; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font-size: inherit; }
.linkbtn:hover { text-decoration: underline; }
.lvl { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lvl-bar { width: 28px; height: 6px; border-radius: 3px; background: var(--line2); overflow: hidden; display: inline-block; }
.lvl-bar > span { display: block; height: 100%; background: var(--rail); }
.lvl-bad { color: var(--bad); }
.lvl-bad .lvl-bar > span { background: var(--bad); }
tr.divider td { padding: 6px 12px; font-size: 11.5px; color: var(--muted); background: var(--panel2); border-bottom: 1px solid var(--line); }
.res[aria-checked="true"] { font-weight: 600; }
.side-foot { margin-top: auto; padding: 12px 4px 2px; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line2); }
.set-row { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; font-size: 12px; color: var(--muted); cursor: pointer; }
.set-row:hover { background: var(--hover); color: var(--text); }
.set-row input { margin: 0; }
.side .nav.sub { padding-left: 28px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.top .brand { margin-right: 2px; }
.search { position: relative; flex: 1 1 auto; max-width: 680px; }
.search label {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel2);
}
.search label:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 14px; color: var(--text); outline: none; }
.key { border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font-size: 11px; }
.results { position: absolute; left: 0; right: 0; top: 40px; z-index: 20; padding-bottom: 6px; box-shadow: var(--shadow); max-height: 70vh; overflow: auto; }
.gt { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .08em; color: var(--muted); padding: 8px 12px 4px; }
.res {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 12px; border: 0;
  background: none; text-align: left; cursor: pointer; font-size: 13px;
}
.res:hover, .res[aria-selected="true"] { background: var(--acc-soft); }
.res .side-note { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
mark { background: var(--mark); color: inherit; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; }
.toolbar h1 { margin: 0; font-size: 17px; white-space: nowrap; }
.pop-anchor { position: relative; }
.pop {
  position: absolute; left: 0; top: 34px; z-index: 15; width: 300px; max-height: 420px;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.pop-head { padding: 10px 12px 6px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line2); }
.pop-list { overflow: auto; padding: 4px 0; }
.opt { display: flex; align-items: center; gap: 8px; padding: 5px 12px; cursor: pointer; font-size: 13px; }
.opt:hover { background: var(--hover); }
.opt .n { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.pop-foot { display: flex; justify-content: space-between; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--line2); }
.work { flex: 1; min-height: 0; display: flex; gap: 12px; padding: 0 16px 14px; }
.tablecard { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.toolbar-end .btn svg, .toolbar .btn svg { color: var(--muted); }
.scroll { flex: 1; min-height: 0; overflow: auto; container-type: inline-size; }
table { border-collapse: collapse; width: 100%; }
th {
  position: sticky; top: 0; z-index: 1; text-align: left; font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px; font-weight: 500; text-transform: uppercase; color: var(--muted);
  padding: 0; border-bottom: 1px solid var(--line); background: var(--panel2); white-space: nowrap; letter-spacing: .07em;
}
th > span, th > button { display: block; padding: 9px 8px; }
th button { border: 0; background: none; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; width: 100%; text-align: inherit; }
th button:hover { color: var(--text); }
th[aria-sort] { color: var(--text); }
td { padding: 7px 8px; border-bottom: 1px solid var(--line2); white-space: nowrap; cursor: pointer; }
td:first-child, th:first-child > span { padding-left: 14px; }
td:first-child { cursor: default; }
tbody tr:hover td { background: var(--hover); }
tr.on td { background: var(--acc-soft); }
tr.on td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
th.num { text-align: right; }
.trunc { display: block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.idt { font: 600 12px 'IBM Plex Mono', monospace; }
tr:hover .idt { color: var(--accent); }
.empty { padding: 40px; text-align: center; }
footer.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--panel2); font-size: 12px; }
.pg {
  min-width: 30px; height: 28px; padding: 0 6px; border: 1px solid transparent; border-radius: 6px;
  background: none; font-size: 12px; font-weight: 500; cursor: pointer; font-variant-numeric: tabular-nums;
}
.pg:hover { background: var(--hover); }
.pg:disabled { color: var(--dis-fg); opacity: .5; cursor: not-allowed; background: none; }
.pg[aria-current="page"] { border-color: var(--acc-line); background: var(--acc-soft); color: var(--acc-text); font-weight: 600; }
.ok { color: var(--ok); }
.svg-mut { fill: var(--muted); font-size: 11px; font-family: 'IBM Plex Sans', sans-serif; }
.svg-lbl { font-size: 11px; font-weight: 600; font-family: 'IBM Plex Sans', sans-serif; }
.insp { flex: 0 0 344px; min-width: 0; display: flex; flex-direction: column; overflow: auto; }
.isec { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line2); }
.isec:last-of-type { border-bottom: 0; }
.ilbl { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: .08em; }
.ihint { font-family: 'IBM Plex Sans', sans-serif; letter-spacing: 0; font-weight: 400; margin-left: 4px; }
.gv { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.meter { width: 100%; height: 6px; border-radius: 3px; background: var(--line2); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent); }
.tile-l { display: flex; align-items: center; gap: 5px; }
.tile-l > span { display: inline-flex; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--line2); border-radius: 8px; background: var(--panel2); min-width: 0; }
.sub { font-size: 11px; color: var(--muted); line-height: 1.35; }
.notice { padding: 40px; text-align: center; max-width: 520px; margin: 10vh auto; align-self: flex-start; }
.toast {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 40;
  background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 6px; font-size: 12px;
}
@media (max-width: 1100px) {
    .side { display: none; }
  .side.drawer {
    display: flex; position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 30;
    border-radius: 0; box-shadow: var(--shadow); padding-top: 12px;
  }
}
@media (max-width: 900px) {
  .brand span { display: none; }
  .insp { position: fixed; inset: 0 0 0 auto; width: min(100vw, 380px); z-index: 30; border-radius: 0; box-shadow: var(--shadow); }
  .work { padding: 0 8px 8px; }
  .top, .toolbar { padding-left: 8px; padding-right: 8px; }
}
footer.pager { flex-wrap: nowrap; }
footer.pager > span:first-child { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
footer.pager > div, footer.pager > nav, footer.pager > span { flex-shrink: 0; }
footer.pager > div { margin-left: 0 !important; }
