/* Connect Telemetry: what connect.css does not have. Colours come from its tokens, plus the
   three base station series (Connect Sessions' Compare hues; dark steps chosen for its panel). */
:root { --s1: #1F55C4; --s2: #B25E09; --s3: #A8327E; --gap: #F1F2F5; --ink-line: #555C69; }
:root[data-theme="dark"] { --s1: #5b8be6; --s2: #c9822b; --s3: #cf5ba4; --gap: #1e1e24; --ink-line: #8f8f99; }

.demo { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 4px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); font-size: 12px; white-space: nowrap; }
.demo .b { letter-spacing: .04em; }
.demo time { font-variant-numeric: tabular-nums; }
.demo .btn { height: 24px; padding: 0 8px; font-size: 12px; }
.nav { font-size: 13px; }
th:first-child > button { padding-left: 14px; }
.side { overflow-y: auto; }

/* freshness: shape and fill, never red or green. Absence is not a fault. */
.fresh { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-weight: 500; }
.fd { width: 9px; height: 9px; border-radius: 50%; flex: none; border: 2px solid var(--rail); }
.fd-recent { background: var(--accent); border-color: var(--accent); }
.fd-seen { border-color: var(--accent); }
.fresh-not { color: var(--muted); }
.age { display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.age small { font-size: 11px; color: var(--muted); font-weight: 400; padding-left: 16px; }
.stale { color: var(--muted); }
.hb { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; }
.hb-ok svg { color: var(--ok); } .hb-late { color: var(--warn-fg); } .hb-lapsed { color: var(--bad); }
.tag-bad { border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, transparent); }
.tag-plan { border: 1px dashed var(--line); color: var(--muted); font-weight: 500; }
.tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.mono-sm { font-size: 11px; }
td small { color: var(--muted); font-size: 11px; }
td.two { line-height: 1.3; }
td.two small { display: block; }
.delta { color: var(--muted); font-size: 11px; }
td a.idt { color: inherit; }
tbody tr:hover td a.idt { color: var(--accent); }
tbody.plain td { cursor: default; }
tr.gap td { background: var(--gap); color: var(--muted); font-size: 12px; cursor: default; padding: 5px 14px; }
tr.sess td { background: var(--acc-soft); color: var(--acc-text); font-size: 12px; cursor: default; padding: 5px 14px; }
tr.gap:hover td { background: var(--gap); } tr.sess:hover td { background: var(--acc-soft); }
tr.gap span, tr.sess span { display: inline-flex; align-items: center; gap: 6px; }
.strip { display: block; }

/* summary cards */
.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 0 16px 12px; }
.sum { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; text-align: left; cursor: pointer; min-width: 0; }
.sum:hover { border-color: var(--acc-line); background: var(--hover); }
.sum[aria-pressed="true"] { border-color: var(--acc-line); background: var(--acc-soft); }
.sum .k { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sum .v { font-size: 22px; font-weight: 600; line-height: 1.15; }
.sum .v small { font-size: 12px; font-weight: 400; color: var(--muted); }
.sum .s { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sum .bad { color: var(--bad); display: inline-flex; }

/* quick panel */
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 14px; font-size: 12.5px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.note { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel2); font-size: 12px; line-height: 1.45; }
.note svg { flex: none; margin-top: 1px; color: var(--muted); }
.note-warn { background: var(--warn-bg); color: var(--warn-fg); border-color: transparent; } .note-warn svg { color: inherit; }
.sight { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; }
.sight .r { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sw { width: 9px; height: 9px; border-radius: 2px; flex: none; display: inline-block; }

/* detail pages */
.page { flex: 1; min-width: 0; overflow: auto; display: flex; flex-direction: column; gap: 12px; padding-bottom: 14px; position: relative; }
.page > * { flex: none; }
.crumb { display: flex; align-items: center; gap: 6px; padding: 10px 16px 0; font-size: 12px; }
.crumb + .toolbar { padding-top: 4px; }
.toolbar h1.mono { font-size: 17px; font-weight: 600; }
.sect { display: flex; flex-direction: column; }
.sect-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 11px 14px 9px; border-bottom: 1px solid var(--line2); }
.sect-h h2 { margin: 0; font-size: 13.5px; font-weight: 600; }
.sect-h .end { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.latest { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr) minmax(0, 1.05fr); }
.latest > div { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.latest > div + div { border-left: 1px solid var(--line2); }
.tiles3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile .wl { font-size: 11px; color: var(--muted); line-height: 14px; }
.tile .big { font-size: 18px; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.tile .big.bad { color: var(--bad); }
.tile .gline { display: flex; align-items: center; gap: 8px; }

.ctl { position: sticky; top: 0; z-index: 8; padding: 8px 14px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; box-shadow: 0 4px 12px rgba(20, 23, 31, .05); }
.ctl .span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ctl .ib { width: 28px; height: 28px; border: 1px solid var(--line); }
.ctl .ib:disabled { opacity: .4; cursor: not-allowed; }
.charts { position: relative; outline: none; touch-action: pan-y; overflow: hidden; }
.charts:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); border-radius: 8px; }
.ch { padding: 10px 0 2px; border-top: 1px solid var(--line2); }
.ch:first-child { border-top: 0; }
.ch-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 0 14px 2px; font-size: 12px; }
.ch-h b { font-size: 12.5px; } .ch-h .mut { font-size: 12px; } .ch-h .r { margin-left: auto; font-variant-numeric: tabular-nums; }
.ch svg { display: block; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.ch .grid { stroke: var(--line2); } .ch .ln { fill: none; stroke: var(--s1); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ch .gapr { fill: var(--gap); } .ch .ln.thin { stroke-width: 1.1; } .ch .thr { stroke: var(--bad); }
.ch-n { padding: 0 14px 2px; font-size: 11.5px; color: var(--muted); } .ch .ses { stroke: var(--ink-line); stroke-opacity: .75; }
.ch .axis { stroke: var(--line); }
.svg-mut { font-variant-numeric: tabular-nums; }
.svg-txt { fill: var(--text); font: 500 11px 'IBM Plex Sans', sans-serif; }
.keys { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.keys span { display: inline-flex; align-items: center; gap: 5px; }
.xh { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink-line); pointer-events: none; opacity: .8; }
.brush { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--accent) 14%, transparent); border: solid var(--accent); border-width: 0 1px; pointer-events: none; }
.tip { position: absolute; z-index: 6; pointer-events: none; min-width: 190px; max-width: 250px; padding: 8px 10px; box-shadow: var(--shadow); font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.tip .tr { display: flex; gap: 10px; justify-content: space-between; } .tip .tr span { color: var(--muted); } .tip .tr b { font-weight: 600; font-variant-numeric: tabular-nums; }
.charts-foot { padding: 6px 14px 10px; font-size: 11.5px; color: var(--muted); line-height: 1.5; border-top: 1px solid var(--line2); }
.hist-empty { padding: 28px; text-align: center; color: var(--muted); }
.tscroll { overflow: auto; max-height: 560px; }
details.diag > summary { cursor: pointer; padding: 11px 14px; font-weight: 600; font-size: 13.5px; }
details.diag[open] > summary { border-bottom: 1px solid var(--line2); }
.diag-b { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.hex { font: 12px/1.7 'IBM Plex Mono', monospace; background: var(--panel2); border: 1px solid var(--line2); border-radius: 6px; padding: 10px 12px; overflow-wrap: anywhere; }
.page .tablecard { flex: none; }
.foot-note { padding: 8px 14px; border-top: 1px solid var(--line); background: var(--panel2); font-size: 12px; color: var(--muted); line-height: 1.45; }
footer.pager.one > span { flex: 1; }
.sect-h .btn, .ctl .btn { height: 28px; padding: 0 10px; font-size: 12px; }
.opt .fd { margin-right: -2px; }

@container (max-width: 1080px) { .c-fw { display: none; } }
@container (max-width: 990px) { .c-dep { display: none; } }
@container (max-width: 900px) { .c-strip { display: none; } }
@container (max-width: 780px) { .c-dur { display: none; } }
@container (max-width: 690px) { .c-ev { display: none; } }
/* Logo (js/logo.js) */
:root { --lm-tile: #1F55C4; --lm-ink: #FFFFFF; --lm-sky: #7AD3F2; }
:root[data-theme="dark"] { --lm-tile: #1E2C50; --lm-ink: #E8EEFC; --lm-sky: #52C1E9; }
.lm-tile { fill: var(--lm-tile); }
.lm-dot { fill: var(--lm-sky); }
.lm-arc { fill: none; stroke: var(--lm-ink); stroke-width: 1.75; stroke-linecap: round; }
.lm-tick { fill: var(--lm-ink); }
.lm-gap { fill: var(--lm-ink); opacity: .5; }

@media (max-width: 1280px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .latest { grid-template-columns: 1fr 1fr; } .latest > div:nth-child(2) { grid-column: 1 / -1; grid-row: 1; border-left: 0; border-bottom: 1px solid var(--line2); } .latest > div:nth-child(1) { border-left: 0; } }
@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 .wordmark { 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, .crumb { padding-left: 8px; padding-right: 8px; } .cards { padding: 0 8px 8px; }
}
@media (max-width: 760px) {
  .top { flex-wrap: wrap; } .top-actions { display: contents; } .top-actions > .seg { margin-left: auto; } .search { order: 5; flex-basis: 100%; }
  .demo { order: 4; flex-basis: 100%; } .demo .btn { margin-left: auto; }
  .demo .clock-l { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .sum { padding: 8px 10px; } .sum .v { font-size: 18px; } .sum .s { display: none; }
  .latest { grid-template-columns: 1fr; } .latest > div + div { border-left: 0; border-top: 1px solid var(--line2); } .latest > div:nth-child(2) { grid-row: auto; }
  .tiles3 { grid-template-columns: 1fr 1fr; }
  .app.fleet { height: auto; min-height: 100vh; overflow: visible; } .app.fleet .work { min-height: 420px; } .app.fleet .scroll { overflow: auto; }
  .ctl { position: static; }
}
@media (prefers-reduced-motion: no-preference) { .feed-on .fd-recent { animation: pulse 2s ease-in-out infinite; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); } }
