:root {
  --bg: #f4f6f9;
  --panel: #ffffff;
  --ink: #1a2230;
  --muted: #66707e;
  --line: #e2e7ee;
  --accent: #0b7ec2;
  --accent-ink: #08557f;
  --shadow: 0 1px 2px rgba(20, 30, 45, .06), 0 6px 18px rgba(20, 30, 45, .07);
  --shadow-hover: 0 2px 6px rgba(20, 30, 45, .10), 0 14px 32px rgba(20, 30, 45, .14);
  --warn-bg: #fff4e0;
  --warn-ink: #8a5a00;
  --warn-line: #f0d49a;
  --error: #c0392b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10141b;
    --panel: #1a212c;
    --ink: #e7ecf3;
    --muted: #93a0b2;
    --line: #2a3340;
    --accent: #3aa8e6;
    --accent-ink: #8fd0f2;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .35);
    --shadow-hover: 0 2px 6px rgba(0, 0, 0, .4), 0 14px 32px rgba(0, 0, 0, .5);
    --warn-bg: #3a2e12;
    --warn-ink: #f0c874;
    --warn-line: #5c4a1e;
    --error: #ff7a6b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 650; font-size: 1.05rem; }
.brand .logo { font-size: 1.3rem; }
.who { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .9rem; }
.link {
  background: none; border: none; color: var(--accent-ink); cursor: pointer;
  font: inherit; padding: 0; text-decoration: underline; text-underline-offset: 2px;
}
.link:hover { color: var(--accent); }

main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.status { color: var(--muted); margin: .25rem 0 1.5rem; }
.status.error { color: var(--error); }
.status.muted { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1.05rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
a.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}
a.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card--dead { opacity: .62; }

.card-icon {
  flex: 0 0 auto;
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  font-size: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.card-body { min-width: 0; }
.card-name { font-weight: 640; font-size: 1.02rem; }
.card-host { color: var(--muted); font-size: .82rem; margin-top: .1rem; word-break: break-all; }
.card-desc { margin-top: .45rem; font-size: .9rem; color: var(--ink); }
.card-desc--empty { color: var(--muted); font-style: italic; opacity: .8; }

.pill {
  position: absolute;
  top: .7rem; right: .7rem;
  font-size: .68rem; font-weight: 600;
  padding: .12rem .45rem;
  border-radius: 999px;
  letter-spacing: .02em;
}
.pill--verify { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); }

.foot {
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem);
  color: var(--muted);
  font-size: .82rem;
  border-top: 1px solid var(--line);
}
