:root {
  color-scheme: dark;
  --bg: #101412;
  --panel: #171d1a;
  --panel-2: #1e2622;
  --line: #334039;
  --text: #edf4ef;
  --muted: #a8b8ad;
  --accent: #62c77b;
  --accent-2: #70b7d9;
  --warn: #e1b85f;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(98, 199, 123, 0.08), transparent 340px),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a,
button,
input {
  font: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px 18px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.95;
}

.network-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(23, 29, 26, 0.82);
  color: var(--muted);
  white-space: nowrap;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(98, 199, 123, 0.15);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 44px;
}

.controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin: 18px 0;
}

.search {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: var(--panel);
  color: var(--text);
  padding: 0 15px;
}

.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(98, 199, 123, 0.15);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.segmented button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 16px;
}

.segmented button.active {
  background: var(--accent);
  color: #07100a;
  font-weight: 800;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 20px;
}

.summary > div {
  display: grid;
  gap: 3px;
  min-height: 78px;
  align-content: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(30, 38, 34, 0.78);
}

.summary strong {
  font-size: 1.08rem;
}

.summary span {
  color: var(--muted);
  font-size: 0.86rem;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}

.service-card {
  display: grid;
  gap: 14px;
  min-height: 248px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.service-card[hidden] {
  display: none;
}

.service-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.port {
  flex: 0 0 auto;
  align-self: start;
  border: 1px solid rgba(112, 183, 217, 0.45);
  border-radius: 999px;
  color: var(--accent-2);
  padding: 5px 9px;
  font-size: 0.8rem;
  font-weight: 800;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta span {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 5px 9px;
  font-size: 0.78rem;
}

.actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.primary-link,
.copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}

.primary-link {
  background: var(--accent);
  color: #07100a;
  font-weight: 850;
}

.copy {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  padding: 0 13px;
}

details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 0.84rem;
}

dl {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

dl div {
  display: grid;
  gap: 3px;
}

dt {
  color: var(--muted);
  font-size: 0.76rem;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

@media (max-width: 720px) {
  .topbar,
  .controls {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .summary {
    grid-template-columns: 1fr;
  }

  .segmented {
    width: 100%;
  }
}
