:root {
  --bg: #0b0d12; --surface: rgba(255,255,255,.045); --surface-2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.09); --border-strong: rgba(255,255,255,.18);
  --text: #eef0f6; --text-2: #a7adbd; --text-3: #8890a3;
  --good: #34d399; --bad: #f87171; --wait: #8890a3;
  --shadow: 0 30px 70px -25px rgba(0,0,0,.75);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f5f9; --surface: #fff; --surface-2: rgba(15,23,42,.05);
    --border: rgba(15,23,42,.09); --border-strong: rgba(15,23,42,.2);
    --text: #0f172a; --text-2: #475069; --text-3: #5f6880;
    --good: #047857; --bad: #b91c1c; --wait: #5f6880;
    --shadow: 0 25px 60px -25px rgba(15,23,42,.3);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 15px/1.5 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 500px at 0% -10%, rgba(139,92,246,.22), transparent 60%),
              radial-gradient(800px 500px at 100% 0%, rgba(34,211,238,.14), transparent 60%);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: #8b5cf6; color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 3px; border-radius: 10px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.top {
  max-width: 1100px; margin: 0 auto; padding: clamp(28px, 6vw, 56px) 16px 12px;
  display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
}
.brand { display: flex; gap: 14px; align-items: center; }
.mark { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #22d3ee); box-shadow: 0 12px 28px -12px #8b5cf6; }
.mark svg { width: 26px; height: 26px; }
h1 { margin: 0; font-size: clamp(26px, 4vw, 34px); letter-spacing: -.03em; line-height: 1.1; }
.brand p { margin: 2px 0 0; color: var(--text-2); }
.search { position: relative; flex: 0 1 320px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search input {
  width: 100%; height: 44px; padding: 0 14px 0 40px; border-radius: 12px; font: inherit; color: inherit;
  background: var(--surface-2); border: 1px solid var(--border);
}
.search input:focus { outline: none; border-color: #8b5cf6; box-shadow: 0 0 0 4px rgba(139,92,246,.2); }

main { max-width: 1100px; margin: 0 auto; padding: 8px 16px 40px; }
.group h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin: 26px 0 12px; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.app {
  --c: #8b5cf6;
  position: relative; display: flex; gap: 14px; align-items: center; padding: 18px; min-height: 96px;
  border-radius: 18px; text-decoration: none; color: inherit; overflow: hidden; isolation: isolate;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, border-color .18s;
}
.app::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(380px 160px at 100% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); }
.app:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.ico { width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); box-shadow: 0 10px 24px -12px var(--c); }
.ico svg { width: 24px; height: 24px; }
.txt { min-width: 0; flex: 1; }
.name { font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; }
.desc { color: var(--text-2); font-size: 13.5px; }
.host { color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.key { position: absolute; top: 10px; right: 12px; font-size: 11px; color: var(--text-3); border: 1px solid var(--border-strong); border-radius: 6px; padding: 0 6px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); margin-top: 4px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wait); }
.status[data-s="on"]::before { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 25%, transparent); }
.status[data-s="off"]::before { background: var(--bad); }
.status[data-s="off"] { color: var(--bad); }
.loading, .empty { color: var(--text-2); }
.foot { max-width: 1100px; margin: 0 auto; padding: 0 16px 40px; color: var(--text-3); font-size: 13px; }
kbd { font: 11px ui-monospace, Consolas, monospace; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; }
@media (max-width: 560px) { .key { display: none; } .foot { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
