@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --bg: #080810;
  --surface: #101018;
  --line: #2c3448;
  --text: #d8e0ea;
  --muted: #8a96a8;
  --faint: #6b7588;
  --proxy: #56b8ad;
  --proxy-soft: rgba(86, 184, 173, 0.12);
  --proxy-border: rgba(86, 184, 173, 0.45);
  --ok: #86efac;
  --danger: #f0a0a0;
  --font: "IBM Plex Mono", ui-monospace, "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--proxy); text-decoration: none; }
a:hover { text-decoration: underline; }

.top {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1.25rem;
  text-align: center;
}

.brand {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.brand:hover { text-decoration: none; color: var(--text); }

.meta {
  display: block;
  margin-top: 0.25rem;
  color: var(--faint);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.grid + .intro { margin-top: 2rem; }

.intro h1,
.lead {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.intro p { margin: 0; color: var(--muted); font-size: 0.8125rem; }

.crumb { margin: 0 0 1.25rem; font-size: 0.8125rem; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--text); }

.row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }

.grid {
  display: grid;
  gap: 0;
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  background: rgba(16, 16, 24, 0.72);
}

.card {
  display: block;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  border-left: 2px solid transparent;
}

.card:last-child { border-bottom: none; }
.card:hover {
  text-decoration: none;
  background: var(--proxy-soft);
  border-left-color: var(--proxy);
}

.card h2 {
  margin: 0.35rem 0 0.2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.card p { margin: 0; color: var(--muted); font-size: 0.75rem; min-height: 0; }

.card-top, .card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-foot {
  margin-top: 0.65rem;
  color: var(--faint);
  font-size: 0.6875rem;
}

.tag, .pill {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--proxy);
  border: 1px solid var(--proxy-border);
  background: var(--proxy-soft);
  padding: 0.12rem 0.4rem;
}

.pill { color: var(--muted); border-color: var(--line); background: transparent; }
.pill.on { color: var(--ok); border-color: rgba(134, 239, 172, 0.35); }

.dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--danger);
}
.dot.on { background: var(--ok); }

.box {
  margin-top: 1.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.box h3 {
  margin: 0;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.issue { display: flex; gap: 0; padding: 1rem; }
.issue input { flex: 1; min-width: 0; }

input, button {
  font-family: inherit;
  font-size: 0.8125rem;
}

input {
  background: #080810;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  border-radius: 0;
}

input:focus {
  outline: none;
  border-color: var(--proxy-border);
}

button, .apps a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  background: var(--surface);
  color: var(--proxy);
  border: 1px solid var(--proxy-border);
  padding: 0.65rem 1rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 0;
}

button:hover, .apps a:hover {
  background: var(--proxy-soft);
  border-color: var(--proxy);
  text-decoration: none;
}

button.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

button.ghost:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: transparent;
}

.hint { margin: 0; padding: 1rem; color: var(--muted); font-size: 0.8125rem; }

.banner {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.8125rem;
}

.banner.ok { border-color: var(--proxy-border); }
.banner.bad { border-color: rgba(240, 160, 160, 0.45); color: var(--danger); }

.key {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.key:last-child { border-bottom: none; }

.key header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.key header strong { color: var(--text); font-weight: 500; }

.uri {
  margin: 0.65rem 0;
  white-space: pre-wrap;
  word-break: break-all;
  background: #080810;
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  font-size: 0.6875rem;
  overflow-x: auto;
}

.actions { display: flex; gap: 0.4rem; margin: 0.5rem 0; }
.qr { margin-top: 0.65rem; }
.revoke { margin-top: 0.65rem; }

.apps { list-style: none; padding: 0; margin: 0; }

.apps li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.apps li:last-child { border-bottom: none; }
.apps span { display: block; color: var(--muted); font-size: 0.75rem; }

.gate {
  max-width: 26rem;
  margin: 0 auto;
  padding: 2.5rem 0 0;
}

.gate .stack { padding: 0; }

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
}

.stack input,
.stack select,
.stack button {
  width: 100%;
}

select {
  font-family: inherit;
  font-size: 0.8125rem;
  background: #080810;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  border-radius: 0;
}

select:focus {
  outline: none;
  border-color: var(--proxy-border);
}

.top .meta a { color: var(--faint); }
.top .meta a:hover { color: var(--text); text-decoration: none; }

@media (max-width: 640px) {
  .issue { flex-direction: column; }
}
