@charset "UTF-8";

:root {
  color-scheme: light;
  --page: #f5f8ff;
  --surface: #fff;
  --ink: #14243d;
  --muted: #52637b;
  --line: #dce5f1;
  --nav: #061943;
  --alternate: #eaf2ff;
  --accent: #0755d5;
  --focus: #0663f7;
  font-family: Inter, system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
  line-height: 1.5;
  scroll-padding-top: 1rem;
}

* { box-sizing: border-box; }

body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.wrap { width: min(1220px, calc(100% - 3rem)); margin-inline: auto; }
.skip {
  position: fixed;
  inset: .75rem auto auto .75rem;
  z-index: 1;
  transform: translateY(-180%);
  background: var(--surface);
  padding: .5rem 1rem;
}
.skip:focus { transform: translateY(0); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.masthead { background: var(--nav); color: #fff; }
.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 2rem;
  min-height: 65px;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: -.025em;
  color: #fff;
}
nav { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
nav a { color: #dce5f1; font-size: .9rem; }
.operator { color: #dce5f1; font-size: .8rem; }
.operator small {
  display: inline-block;
  margin-inline-start: .3rem;
  padding: .12rem .45rem;
  background: #23467c;
  border-radius: .25rem;
  font: inherit;
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: clamp(1.25rem, 4vw, 3rem);
  border-radius: 12px;
  background:
    linear-gradient(90deg, #061943 26%, rgb(6 25 67 / 78%)),
    #061943 url("/assets/brand/network.webp") right center / cover;
  color: #fff;
}
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.2; letter-spacing: -.02em; }
.hero p, .hero a { color: #eaf2ff; margin-top: .5rem; }
.hero .demo {
  display: inline-block;
  padding: .42rem .72rem;
  border: 1px solid #b8cdee;
  border-radius: .4rem;
  background: #eaf2ff;
  color: #061943;
  font-size: .86rem;
  font-weight: 700;
}
section { margin-top: 1.75rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem 1.25rem; margin-bottom: .7rem; }
.section-heading h2 { font-size: 1.4rem; letter-spacing: -.03em; }
.section-heading > span { color: var(--muted); font-size: .83rem; }
.report-line { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; color: var(--muted); margin: 0 0 .7rem; font-size: .84rem; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.cards.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .subpanel, .empty, .table-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.card { padding: .95rem 1rem; overflow-wrap: anywhere; }
.card h3 { font-size: .88rem; line-height: 1.35; color: var(--muted); font-weight: 700; }
.value { display: block; margin: .35rem 0; font-size: clamp(1.1rem, 2.2vw, 1.55rem); line-height: 1.24; letter-spacing: -.036em; }
.card p, .subpanel p, .subpanel li { font-size: .85rem; color: var(--muted); }
.card p + p { margin-top: .28rem; }
.meta { margin-top: .55rem; color: var(--muted); font-size: .76rem; }
.meta > span:last-child:not(.badge) { display: block; margin-top: .25rem; }

.badge {
  display: inline-block;
  padding: .1rem .46rem;
  border-radius: .32rem;
  background: #eaf2ff;
  color: #364962;
  font-size: .74rem;
  font-weight: 720;
  vertical-align: baseline;
  white-space: nowrap;
}
.badge.good { background: #e6f7ef; color: #067647; }
.badge.warn { background: #fff4dc; color: #875500; }
.badge.bad { background: #feedec; color: #b42318; }
.card p .badge { margin-inline-start: .22rem; }

.table-box { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
thead { background: var(--alternate); color: var(--ink); }
th { text-align: start; }
th, td { padding: .67rem .82rem; vertical-align: middle; }
thead th { font-size: .76rem; line-height: 1.3; white-space: nowrap; }
tbody tr + tr { border-top: 1px solid var(--line); }
td { color: var(--ink); }
td time, td .meta { white-space: nowrap; }
td .meta { margin-top: 0; }
tbody small, .history small { display: block; font-size: .75rem; color: var(--muted); font-weight: 400; }
tbody th small { font-family: ui-monospace, Consolas, monospace; }
details summary { cursor: pointer; font-weight: 700; }
.subpanel, .empty { margin-block: .8rem; padding: 1rem; }
.subpanel h3 { font-size: 1.04rem; margin-bottom: .5rem; }
.subpanel h4 { font-size: .88rem; margin-top: .75rem; }
.subpanel .table-box, .subpanel > p, .card details { margin-top: .45rem; }
.empty p { display: inline; margin-inline-start: .35rem; }

.pagination { margin-top: .65rem; }
.history-axis { display: flex; justify-content: space-between; gap: .4rem; margin-top: .8rem; color: var(--muted); font-size: .76rem; }
.history { list-style: none; margin: 0; padding: 0; }
.history li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); align-items: center; gap: .5rem 1rem; border-top: 1px solid var(--line); padding-block: .48rem; }
.bar { display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(7rem, auto); align-items: center; gap: .4rem; font-size: .76rem; font-variant-numeric: tabular-nums; }
.bar > :last-child { text-align: end; }
.bar meter { appearance: none; width: 100%; height: .7rem; }
.bar meter::-webkit-meter-bar { background: var(--alternate); box-shadow: none; border: 0; }
.bar meter::-webkit-meter-optimum-value { background: #0755d5; }
.bar + .bar meter::-webkit-meter-optimum-value { background: #087c83; }
.bar meter::-moz-meter-bar { background: #0755d5; }
.bar + .bar meter::-moz-meter-bar { background: #087c83; }
.changes { padding-inline-start: 1.1rem; }
.footer { margin-top: 1.8rem; padding-block: 1rem 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

@media (max-width: 880px) {
  .cards, .cards.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 1.6rem); }
  .topbar { grid-template-columns: minmax(0, 1fr) auto auto; gap: .5rem; padding-block: .65rem; }
  .topbar nav { grid-row: 2; grid-column: 1 / -1; }
  .hero, .section-heading { align-items: start; flex-direction: column; }
  .hero { gap: .75rem; }
  section { margin-top: 1.35rem; }
  .cards, .cards.compact { grid-template-columns: minmax(0, 1fr); }
  th, td { padding: .55rem .65rem; }
  .history li { grid-template-columns: minmax(0, 1fr); }
  .history small { display: inline; margin-inline-start: .55rem; }
  .bar { grid-template-columns: 3.4rem minmax(0, 1fr) minmax(5.4rem, auto); }
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.application { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem; }
.application-heading { display: flex; align-items: center; gap: .75rem; }
.application-heading h3 { color: var(--ink); font-size: 1.125rem; }
.application .application-host { font-size: .8rem; }
.application-status { margin-top: auto; padding-block: .75rem; }
.application-status p { margin-top: .35rem; }
.control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .5rem .85rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: var(--surface);
  font: 600 .875rem / 1.25 Inter, system-ui, sans-serif;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.control:hover { text-decoration: underline; }
.application .control { align-self: start; }
.topbar .control { border-color: #9bafcb; background: transparent; color: #fff; }
.masthead :focus-visible, .hero :focus-visible { outline-color: #6dd8ff; }
.auth-body { display: grid; min-height: 100vh; place-items: center; padding: 1rem; }
.auth-card { display: grid; gap: 1.5rem; width: min(100%, 28rem); padding: clamp(1.25rem, 5vw, 2rem); }
.auth-card .control { width: 100%; }

@media (max-width: 700px) {
  .application-grid { grid-template-columns: minmax(0, 1fr); }
  .topbar .operator { justify-self: end; }
}

@media (max-width: 390px) {
  .operator small { display: none; }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #061225;
    --surface: #14243d;
    --ink: #f5f8ff;
    --muted: #c3d0e3;
    --line: #364962;
    --alternate: #233752;
    --accent: #93c5fd;
    --focus: #6dd8ff;
  }
  .control { color: #061943; }
  .badge { background: #233752; color: #dce5f1; }
  .badge.good { background: #123a2b; color: #86efac; }
  .badge.warn { background: #3d2b12; color: #fcd34d; }
  .badge.bad { background: #481f28; color: #fca5a5; }
}
