:root {
  --bg: #07130f;
  --surface: #0d1d17;
  --surface2: #12271f;
  --line: #234337;
  --text: #effff7;
  --muted: #94b3a5;
  --accent: #5ee1a2;
  --accent2: #b9f56d;
  --warn: #ffd47a;
  --danger: #ff8a85;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 82% -10%, rgba(94, 225, 162, 0.12), transparent 34%), var(--bg);
  color: var(--text);
  min-width: 320px;
  font-size: 16px;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.shell {
  max-width: 1440px;
  margin: auto;
  padding: 0 28px;
}
header {
  height: 74px;
  border-bottom: 1px solid rgba(148, 179, 165, 0.18);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  background: rgba(7, 19, 15, 0.88);
  backdrop-filter: blur(18px);
  z-index: 20;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 850;
  letter-spacing: -0.04em;
  font-size: 1.25rem;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #06140e;
}
.brand-mark svg {
  width: 21px;
}
.navlinks {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 0.94rem;
}
.navlinks a {
  color: inherit;
  text-decoration: none;
}
.navlinks a:first-child {
  color: var(--text);
}
main {
  padding: 46px 0 70px;
}
.intro {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 30px;
}
.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.intro h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  letter-spacing: -0.065em;
  line-height: 0.95;
  max-width: 780px;
  margin: 0;
}
.intro h1 span {
  color: var(--accent);
}
.intro-copy {
  max-width: 370px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 4px;
}
.workspace {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 22px;
}
.filters {
  background: rgba(13, 29, 23, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  align-self: start;
  position: sticky;
  top: 94px;
}
.filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.filter-head h2 {
  font-size: 1rem;
  margin: 0;
}
.reset {
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 0.83rem;
  padding: 4px;
}
.field {
  display: block;
  margin-bottom: 18px;
}
.field > span {
  display: block;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.control {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #091711;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}
.field small,
.filter-note {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
  margin-top: 8px;
}
.filter-note {
  grid-column: 1/-1;
  margin-bottom: 0;
}
.control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(94, 225, 162, 0.12);
}
.checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c9ddd3;
  font-size: 0.9rem;
}
.check input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
.range-line {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 7px;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}
.catalog-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.search-wrap {
  position: relative;
  flex: 1;
}
.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 13px;
  width: 19px;
  color: var(--muted);
}
.search {
  padding-left: 43px;
  height: 46px;
}
.sort {
  width: 205px;
  height: 46px;
}
.result-count {
  font-size: 0.84rem;
  color: var(--muted);
  flex-basis: 100%;
}
.server-list {
  display: grid;
  gap: 12px;
}
.card {
  background: linear-gradient(115deg, rgba(18, 39, 31, 0.96), rgba(10, 24, 18, 0.96));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 19px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 110px;
  gap: 20px;
  align-items: center;
  transition: 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: #346650;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
}
.server-main {
  display: flex;
  gap: 14px;
  min-width: 0;
}
.server-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.05rem;
  color: #07130f;
  flex: 0 0 auto;
}
.server-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.server-title h3 {
  font-size: 1rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.verified {
  color: var(--accent);
  width: 17px;
}
.status {
  font-size: 0.875rem;
  color: #9ae8c2;
  border: 1px solid rgba(94, 225, 162, 0.28);
  border-radius: 99px;
  padding: 3px 7px;
}
.desc {
  color: var(--muted);
  font-size: 0.83rem;
  margin: 6px 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.7rem;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(148, 179, 165, 0.1);
  color: #bdd2c8;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  margin-bottom: 5px;
}
.metric strong {
  font-size: 0.93rem;
}
.online strong {
  color: var(--accent);
}
.spark {
  height: 32px;
  margin-top: 5px;
}
.spark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.spark path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}
.spark .area {
  fill: url(#grad);
  stroke: none;
  opacity: 0.18;
}
.details {
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  padding: 10px 13px;
  font-weight: 700;
  font-size: 0.82rem;
}
.details:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.empty {
  padding: 50px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 16px;
  display: block;
}
.catalog-notice {
  color: var(--warn);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
dialog {
  width: min(860px, calc(100% - 28px));
  max-height: 88vh;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #0b1b15;
  color: var(--text);
  padding: 0;
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: rgba(1, 8, 5, 0.78);
  backdrop-filter: blur(4px);
}
.modal-head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.modal-head h2 {
  margin: 0 0 5px;
  font-size: 1.45rem;
}
.modal-head p {
  color: var(--muted);
  margin: 0;
  font-size: 0.85rem;
}
.close {
  border: 0;
  background: var(--surface2);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1.25rem;
}
.modal-body {
  padding: 24px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
}
.panel {
  background: #0f241b;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.panel h3 {
  font-size: 0.88rem;
  margin: 0 0 16px;
}
.big-chart {
  height: 200px;
  display: flex;
  align-items: end;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  padding-top: 20px;
}
.bar {
  flex: 1;
  background: linear-gradient(to top, rgba(94, 225, 162, 0.2), var(--accent));
  border-radius: 4px 4px 0 0;
  min-width: 4px;
}
.big-chart[data-period="7d"] {
  gap: 1px;
}
.big-chart[data-period="30d"] {
  gap: 3px;
}
.big-chart[data-period="7d"] .bar,
.big-chart[data-period="30d"] .bar {
  min-width: 0;
}
.history-period {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.875rem;
}
.history-methodology {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.history-methodology h4 {
  font-size: 0.88rem;
  margin: 0 0 12px;
}
.history-methodology p:last-child {
  margin-bottom: 0;
}
.detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat {
  background: #091711;
  border-radius: 11px;
  padding: 13px;
}
.stat span {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.stat strong {
  font-size: 1.05rem;
}
.server-facts {
  display: grid;
  gap: 12px;
}
.fact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
  min-width: 0;
}
.fact span:first-child {
  color: var(--muted);
}
.connect {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}
.connect input {
  flex: 1;
}
.copy {
  border: 0;
  background: var(--accent);
  color: #06140e;
  border-radius: 10px;
  padding: 0 16px;
  font-weight: 800;
}
footer {
  border-top: 1px solid rgba(148, 179, 165, 0.16);
  color: var(--muted);
  padding: 26px 0;
  font-size: 0.82rem;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.legal-note {
  margin-top: 16px;
  margin-bottom: 0;
  line-height: 1.5;
}
#discoveryHistory {
  scroll-margin-top: 90px;
}
#discoveryHistoryLink {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 8px 0;
}
#discoveryHistory table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.85rem;
  line-height: 1.5;
}
#discoveryHistory th,
#discoveryHistory td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
}
#discoveryHistory th:first-child,
#discoveryHistory th:last-child {
  width: 30%;
}
#discoveryHistory tbody tr:last-child td {
  border-bottom: 0;
}
.discovery-activity {
  margin: 18px 0;
  min-width: 0;
}
.discovery-activity h3 {
  margin-bottom: 8px;
}
.discovery-activity-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 0;
  margin: 8px 0;
  list-style: none;
  font-size: 0.8rem;
}
.discovery-activity-key li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.discovery-activity-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--accent);
}
.discovery-activity-swatch.zero,
.discovery-activity-bar.zero {
  background: transparent;
  border: 1px solid var(--accent);
}
.discovery-activity-swatch.failure,
.discovery-activity-bar.failure {
  background: repeating-linear-gradient(45deg, var(--warn) 0 2px, transparent 2px 4px);
}
.discovery-activity-swatch.gap,
.discovery-activity-bar.gap {
  background: transparent;
  border-top: 2px dotted var(--muted);
}
.discovery-activity-bars {
  display: flex;
  align-items: end;
  gap: 1px;
  width: 100%;
  height: 132px;
  padding-top: 6px;
  border-bottom: 1px solid var(--muted);
}
.discovery-activity-bar {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  border: 0;
  background: var(--accent);
  cursor: pointer;
}
.discovery-activity-bar.zero {
  height: 6px;
}
.discovery-activity-bar.failure {
  height: 14px;
}
.discovery-activity-bar.gap {
  height: 3px;
}
.discovery-activity-bar.selected {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}
#discoveryActivityHour {
  display: block;
  width: 100%;
  height: 44px;
  margin: 8px 0;
}
.discovery-activity-axis {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--muted);
}
#discoveryActivityDetail {
  display: block;
  min-height: 2.5em;
  font-weight: 700;
}
.demo-note {
  color: var(--warn);
}
@media (max-width: 1000px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .filters {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .filter-head {
    grid-column: 1/-1;
    margin: 0;
  }
  .field {
    margin: 0;
  }
  .checks {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .card {
    grid-template-columns: 1fr 1fr;
  }
  .details {
    grid-column: 2;
    justify-self: end;
  }
  .metrics {
    grid-row: 1/3;
    grid-column: 2;
  }
  .server-main {
    grid-row: 1/3;
  }
  .intro {
    align-items: start;
  }
  .intro-copy {
    display: none;
  }
}
@media (max-width: 700px) {
  .shell {
    padding: 0 16px;
  }
  header {
    height: 64px;
  }
  .navlinks {
    display: none;
  }
  main {
    padding-top: 30px;
  }
  .intro h1 {
    font-size: 2.55rem;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .catalog-head {
    flex-wrap: wrap;
  }
  .search-wrap {
    flex-basis: 100%;
  }
  .sort {
    flex: 1;
  }
  .card {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .server-main,
  .metrics,
  .details {
    grid-column: 1;
    grid-row: auto;
  }
  .metrics {
    border-top: 1px solid var(--line);
    padding-top: 14px;
  }
  .details {
    justify-self: stretch;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .foot {
    flex-direction: column;
  }
}
.status.offline {
  color: var(--danger);
  border-color: rgba(255, 138, 133, 0.35);
}

.status.unknown {
  color: var(--muted);
  border-color: rgba(166, 185, 175, 0.35);
}

[hidden] {
  display: none !important;
}
.signals,
.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
  align-items: center;
}
.metric strong,
#modalTitle,
.panel {
  overflow-wrap: anywhere;
  min-width: 0;
}
.panel p,
#historyRows {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.85rem;
}
#historyRows {
  padding-left: 22px;
}
.bar.gap {
  background: transparent;
  border-bottom: 1px dashed var(--muted);
}
.details:disabled {
  opacity: 0.6;
  cursor: wait;
}
summary {
  cursor: pointer;
}
