* {
  box-sizing: border-box;
}
:root {
  color-scheme: light;
  --ink: #172e49;
  --soft: #51677e;
  --accent: #155c98;
  --sky: #e6f2fc;
  --line: #cddde9;
  --hairline: #e2ebf2;
  --paper: #f7fafd;
  --ok: #16694f;
  --warn: #875114;
  --bad: #a63845;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    14px/1.55 Inter,
    -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a,
button,
select {
  touch-action: manipulation;
}
input,
button,
select {
  font: inherit;
  color: inherit;
}
button,
select,
input {
  background: white;
  border: 1px solid #b7ccdd;
  border-radius: 7px;
  padding: 7px 11px;
}
button,
select {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.46;
}
button:hover:not(:disabled),
select:hover {
  background: #f0f7fd;
  border-color: #78a6c8;
}
:where(a, button, input, select):focus-visible {
  outline: 3px solid #397eae;
  outline-offset: 2px;
}
.icon,
.icon svg {
  display: inline-block;
  flex: none;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
.layout {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  padding: 31px 15px 19px;
  border-right: 1px solid #c8ddea;
  background: linear-gradient(160deg, #dceefa 0%, #edf6fc 57%, #dfedf8 100%);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 3px 31px;
  color: #183f64;
  font-size: 19px;
  font-weight: 710;
  letter-spacing: -0.65px;
  white-space: nowrap;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: none;
  width: 33px;
  height: 33px;
  border-radius: 10px 10px 10px 2px;
  background: linear-gradient(145deg, #508ec3, #205a91);
  color: white;
}
.brand-mark i {
  width: 3px;
  border-radius: 3px;
  background: currentColor;
  transform: skewX(-18deg);
}
.brand-mark i:nth-child(1) {
  height: 9px;
}
.brand-mark i:nth-child(2) {
  height: 18px;
}
.brand-mark i:nth-child(3) {
  height: 13px;
}
nav {
  min-height: 0;
  overflow: auto;
}
.navtitle {
  margin: 9px 12px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.platforms {
  margin-top: 23px;
  padding-top: 20px;
  border-top: 1px solid #c6dce9;
}
nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  margin: 2px 0;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #355874;
  overflow-wrap: anywhere;
  font-weight: 550;
}
nav a:hover {
  background: #d7eaf7;
}
nav a.active {
  background: #fff;
  border-color: #c1d9ea;
  color: #124f82;
  box-shadow: inset 3px 0 #3e87be;
}
.navdot,
.light-dot {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}
.navdot {
  margin: 0 5px;
}
.navdot.warning {
  background: #b67421;
}
.navdot.critical {
  background: #c34c59;
}
.navdot.setup,
.navdot.waiting {
  background: #778597;
}
.light-dot {
  background: #5390bc;
}
.sidebar-foot {
  margin-top: auto;
  padding: 16px 10px 0;
  border-top: 1px solid #c6dce9;
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--soft);
  font-size: 12px;
}
main {
  min-width: 0;
}
.topbar {
  height: 59px;
  padding: 0 clamp(20px, 3.6vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--hairline);
  background: #fff;
}
.breadcrumb {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--soft);
}
.tools,
.tools button,
.connection {
  display: inline-flex;
  align-items: center;
}
.tools {
  gap: 16px;
  flex: none;
}
.tools button {
  gap: 7px;
  font-size: 12px;
  color: var(--accent);
  background: #f2f8fe;
}
.tools .icon,
.tools svg {
  width: 15px;
  height: 15px;
}
.connection {
  gap: 6px;
  color: var(--soft);
  font-size: 12px;
}
.connection::before,
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}
.connection.off {
  color: var(--bad);
}
.connection.off::before,
.badge::before {
  background: currentColor;
}
#refresh-feedback:not(:empty) {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  max-width: calc(100vw - 36px);
  padding: 10px 15px;
  border-radius: 8px;
  background: #214766;
  color: white;
  box-shadow: 0 4px 18px #17364f24;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .refreshing .icon {
    animation: spin 0.8s linear infinite;
  }
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
}
#error,
.notice {
  border: 1px solid #e9c89a;
  border-radius: 8px;
  padding: 10px 14px;
  color: #754914;
  background: #fff6e6;
}
#error {
  margin: 15px 4% 0;
}
.notice {
  margin-bottom: 16px;
}
[hidden] {
  display: none !important;
}
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: linear-gradient(145deg, #daedfb, #f4f9fd 68%);
}
.login-card {
  width: min(100%, 380px);
  padding: clamp(24px, 5vw, 36px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.login-card .brand {
  padding: 0 0 26px;
}
.login-card h1 {
  font-size: 25px;
}
.login-card form {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}
.login-card input,
.login-card button {
  width: 100%;
  min-height: 42px;
}
.login-card button {
  margin-top: 8px;
  color: white;
  background: var(--accent);
  font-weight: 600;
}
.login-card button:hover:not(:disabled) {
  background: #124b79;
}
#login-error {
  color: var(--bad);
  font-size: 13px;
}
#content {
  max-width: 1530px;
  margin: auto;
  padding: 30px clamp(20px, 3.6vw, 60px) 50px;
}
.heading {
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(27px, 2.5vw, 38px);
  line-height: 1.23;
  font-weight: 680;
  letter-spacing: -0.045em;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 16px;
}
.heading p {
  margin-top: 6px;
  color: var(--soft);
  font-size: 13px;
}
.subtle,
small {
  color: var(--soft);
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 26px;
  border: 1px solid #bcd5e8;
  border-radius: 12px;
  background: linear-gradient(115deg, #d9ebfa, #edf6fe 63%, #f2f8fc);
}
.kpi {
  position: relative;
  padding: 16px clamp(14px, 1.7vw, 28px) 17px;
}
.kpi + .kpi::before {
  content: '';
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 0;
  width: 1px;
  background: #c4d9ea;
}
.kpihead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  color: #3f607c;
  font-size: 13px;
}
.kpihead .icon {
  color: #5082a9;
}
.kpi strong {
  display: block;
  margin-top: 7px;
  font-size: clamp(27px, 2.5vw, 40px);
  font-weight: 625;
  letter-spacing: -0.045em;
  line-height: 1.18;
  font-variant-numeric: tabular-nums;
  color: #1b496f;
}
.sectionhead,
.sectionhead h2 {
  display: flex;
  align-items: center;
}
.sectionhead {
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sectionhead h2 {
  gap: 8px;
}
.sectionhead a,
.link,
.back,
.eventmore {
  color: var(--accent);
  font-size: 13px;
  font-weight: 550;
}
.link:hover,
.back:hover,
.sectionhead a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.count {
  padding: 1px 7px;
  color: #315f83;
  background: #e6f0f9;
  border-radius: 5px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.panel,
.card,
.details {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}
.panel {
  overflow: hidden;
  margin-bottom: 25px;
}
.event {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px 17px;
}
.event + .event,
td {
  border-top: 1px solid var(--hairline);
}
.event:hover,
tbody tr:hover {
  background: #f4f9fd;
}
.event-title {
  font-size: 14px;
  font-weight: 630;
}
.event-reason,
.account-error {
  min-width: 0;
  border-inline-start: 3px solid #8cb4d4;
  border-radius: 3px;
  background: #eef6fc;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.event-reason {
  display: none;
  grid-column: 2 / -1;
}
.event-reason b {
  display: block;
  color: var(--soft);
  font-size: 12px;
}
@media (hover: hover) {
  .event:hover .event-reason {
    display: block;
  }
}
.event:focus .event-reason {
  display: block;
}
.account-error {
  margin-bottom: 12px;
}
.details .account-error p {
  margin-top: 3px;
}
.event-sub,
.event-time {
  color: var(--soft);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.event-time {
  text-align: right;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.chev {
  color: #6a889e;
  font-size: 20px;
  line-height: 1;
}
.tile {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--sky);
  color: var(--accent);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  vertical-align: middle;
}
.badge::before {
  width: 5px;
  height: 5px;
}
.badge.ok {
  color: var(--ok);
  background: #e6f4ee;
}
.badge.critical,
.tile.critical {
  color: var(--bad);
  background: #fbeaed;
}
.badge.warning,
.tile.warning {
  color: var(--warn);
  background: #fff1da;
}
.badge.neutral,
.badge.setup,
.badge.waiting,
.tile.setup {
  color: #516275;
  background: #eaf0f4;
}
.eventmore {
  display: block;
  border-top: 1px solid var(--hairline);
  padding: 9px;
  text-align: center;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.card {
  display: block;
  padding: 16px 18px 12px;
}
.card:hover {
  border-color: #7fa9c9;
  box-shadow: 0 3px 12px #3e6b8c0d;
}
.cardtop,
.cardfoot,
.chips {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cardtop .type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #406786;
  font-weight: 600;
  font-size: 12px;
}
.card h3 {
  margin: 12px 0 0;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.host {
  color: var(--soft);
  font:
    12px/1.6 'IBM Plex Mono',
    ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}
.chips {
  align-items: flex-start;
  margin: 13px 0;
}
.chips div {
  flex: 1;
  min-width: 0;
}
.chips b {
  display: block;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.chips small,
.cardfoot {
  font-size: 11px;
}
.cardfoot {
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
  color: var(--soft);
}
.cardfoot span:last-child {
  color: var(--accent);
}
.empty {
  padding: 23px;
  color: var(--soft);
  text-align: center;
}
.empty strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}
.tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.tabs a {
  padding: 6px 3px 8px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--soft);
}
.tabs .selected {
  border-bottom-color: #357eaf;
  color: var(--accent);
  font-weight: 650;
}
.account-groups,
.filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.account-groups button {
  padding: 4px 10px;
  font-size: 13px;
}
.account-groups button[aria-pressed='true'] {
  color: #174d78;
  background: #dfedfa;
  border-color: #96bad8;
}
.account-groups button span {
  margin-left: 4px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.filters {
  gap: 8px;
}
.filters select,
.filters input {
  font-size: 13px;
  height: 35px;
}
.searchbox {
  flex: 0 1 265px;
  min-width: 140px;
}
.searchbox input {
  width: 100%;
}
.scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
th {
  white-space: nowrap;
  text-align: left;
  background: #edf5fb;
  color: #45617a;
  font-size: 12px;
  font-weight: 600;
}
td,
th {
  padding: 10px 13px;
}
td:first-child {
  min-width: 136px;
  max-width: 300px;
  overflow-wrap: anywhere;
}
td:not(:first-child) {
  white-space: nowrap;
}
td small {
  display: block;
  font-size: 11px;
}
.meter {
  display: block;
  margin-top: 4px;
  width: 78px;
  height: 4px;
  border-radius: 9px;
  overflow: hidden;
  background: #e3edf5;
}
.meter i {
  display: block;
  height: 100%;
  background: #4e8dbd;
}
.meter.low i {
  background: #ad7023;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 7px;
  border-top: 1px solid var(--hairline);
  padding: 10px 13px;
  font-size: 12px;
}
.pagination span {
  margin-right: auto;
  color: var(--soft);
}
.pagination button {
  padding: 4px 9px;
}
.details {
  padding: 15px 17px;
  margin: 0 0 17px;
}
.details h3 {
  overflow-wrap: anywhere;
  margin-bottom: 12px;
}
.details .badge {
  margin-left: 4px;
}
.details .probe-times {
  margin: 0 0 12px;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}
.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 25px;
}
.metrics div {
  min-width: 95px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.metrics b {
  display: block;
}
.details p,
.details > .link {
  display: block;
  margin-top: 10px;
}
.back {
  display: inline-block;
  margin-bottom: 10px;
}
@media (min-width: 1600px) {
  .layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}
@media (min-width: 801px) and (max-width: 1100px) {
  .layout {
    grid-template-columns: 184px minmax(0, 1fr);
  }
  aside {
    padding-right: 9px;
    padding-left: 9px;
  }
  .brand {
    font-size: 17px;
    gap: 6px;
  }
  .card {
    padding: 12px;
  }
}
@media (max-width: 800px) {
  .layout {
    display: block;
  }
  aside {
    position: static;
    height: auto;
    min-height: 50px;
    border: 0;
    border-bottom: 1px solid #c8ddea;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    gap: 8px;
  }
  .brand {
    padding: 0;
    font-size: 16px;
    gap: 6px;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px 8px 8px 2px;
  }
  .navtitle,
  .sidebar-foot,
  #source-nav {
    display: none;
  }
  nav {
    display: flex;
    gap: 3px;
    overflow: visible;
  }
  nav a {
    gap: 5px;
    padding: 5px 8px;
    margin: 0;
    font-size: 12px;
    white-space: nowrap;
  }
  nav a.active {
    box-shadow: none;
  }
  .topbar {
    height: 46px;
    padding: 0 16px;
  }
  #content {
    padding: 21px 16px 36px;
  }
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .event {
    padding: 11px 12px;
  }
}
@media (max-width: 560px) {
  nav .icon {
    display: none;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 21px;
  }
  .kpi {
    padding: 12px 14px;
  }
  .kpi:nth-child(3)::before {
    display: none;
  }
  .kpi:nth-child(n + 3) {
    border-top: 1px solid #c4d9ea;
  }
  .kpihead {
    font-size: 12px;
  }
  .kpihead .icon,
  .kpihead svg {
    width: 15px;
    height: 15px;
  }
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .event {
    grid-template-columns: 28px minmax(0, 1fr) 10px;
    gap: 4px 9px;
  }
  .event > .tile {
    width: 28px;
    height: 28px;
  }
  .event > .chev {
    grid-column: 3;
    grid-row: 1;
  }
  .event-time {
    grid-column: 2;
    text-align: left;
    font-size: 11px;
  }
  .event-time br {
    display: none;
  }
  .event-time br::after {
    content: ' ';
  }
  .tools {
    gap: 9px;
  }
  .searchbox {
    flex-basis: 100%;
  }
  .filters select {
    flex: 1;
    min-width: 0;
  }
}
@media (max-width: 360px) {
  aside {
    padding-inline: 10px;
  }
  nav a {
    padding-inline: 5px;
  }
}
