/* Same palette as mndev.io */
:root {
  --bg: #17191e; --panel: #1f2229; --panel-2: #262a32; --line: #353a44;
  --text: #e6edf3; --text-2: #b1bac4; --text-3: #8b949e;
  --accent: #58a6ff; --accent-bg: rgba(88,166,255,.12);
  --ok: #3fb950; --bad: #f85149;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f3f4f6; --panel: #fff; --panel-2: #eceef1; --line: #d6dae0;
  --text: #1f2328; --text-2: #424a53; --text-3: #59636e;
  --accent: #0969da; --accent-bg: rgba(9,105,218,.08);
  --ok: #1a7f37; --bad: #cf222e;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text-2); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--text); margin: 0; line-height: 1.2; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dim { color: var(--text-3); }

.top { display: flex; justify-content: space-between; align-items: center; padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 700; color: var(--text); }
.actions { display: flex; align-items: center; gap: 12px; }
.link { font-family: var(--mono); font-size: 14px; color: var(--text-3); }
.link:hover { color: var(--accent); }
.icon-btn { background: var(--panel); border: 1px solid var(--line); color: var(--text); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 16px; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); flex: 1; }
.hero { padding: 48px 0 24px; }
.hero h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -.02em; }
.sub { margin: 6px 0 0; font-family: var(--mono); font-size: 14px; color: var(--text-3); }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.search { flex: 1 1 260px; }
.search input { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { font-family: var(--mono); font-size: 13px; padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2); cursor: pointer; }
.filters button[aria-selected='true'] { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-head { display: flex; align-items: center; gap: 12px; }
.logo { flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; color: var(--accent); overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.card h2 { font-size: 17px; }
.host { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desc { margin: 0; font-size: 14.5px; flex: 1; }
.meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 7px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); }
.status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.status[data-s='up']::before { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.status[data-s='down']::before { background: var(--bad); }
.empty { text-align: center; color: var(--text-3); padding: 40px 0; }
.foot { text-align: center; padding: 32px 0; font-size: 13px; color: var(--text-3); font-family: var(--mono); }

@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
