:root {
  --bg: #0d0d10; --panel: #17171c; --line: #2a2a32;
  --text: #e8e8ec; --muted: #9a9aa6; --accent: #7c5cff;
  --ok: #35c46f; --warn: #e0a93c; --err: #e5595f;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: var(--panel); padding: 1px 5px; border-radius: 4px; font-size: 0.92em; }
.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px; border-bottom: 1px solid var(--line);
}
.brand { color: var(--text); font-weight: 700; }
.brand span { color: var(--muted); font-weight: 400; }
.crumbs .sep { color: var(--muted); margin: 0 8px; }
.me { display: flex; gap: 16px; align-items: center; }
.me a, .muted { color: var(--muted); }
main { max-width: 880px; margin: 0 auto; padding: 32px 24px 80px; }
h1 { font-size: 1.5rem; margin: 0 0 12px; }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.hero { text-align: center; padding-top: 12vh; }
.hero h1 { font-size: 2.2rem; }
.btn {
  display: inline-block; padding: 9px 18px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); cursor: pointer; font-size: 15px;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.1); text-decoration: none; }
.btn.ghost { background: none; }
.btn.big { padding: 12px 32px; font-size: 16px; margin-top: 20px; }
table.apps { width: 100%; border-collapse: collapse; }
table.apps th { text-align: left; color: var(--muted); font-weight: 500; font-size: 13px; padding: 8px 12px; }
table.apps td { padding: 10px 12px; border-top: 1px solid var(--line); }
td.name { font-weight: 600; }
.pill { padding: 2px 10px; border-radius: 999px; font-size: 12.5px; background: var(--panel); }
.pill.ok { color: var(--ok); border: 1px solid var(--ok); }
.pill.warn { color: var(--warn); border: 1px solid var(--warn); }
fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 22px; padding: 18px 20px; }
legend { padding: 0 8px; color: var(--muted); font-size: 13.5px; }
label { display: block; margin: 10px 0 4px; font-weight: 500; }
label .muted { font-weight: 400; font-size: 13px; }
input {
  width: 100%; margin-top: 5px; padding: 9px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 15px;
}
input:focus { outline: none; border-color: var(--accent); }
.cards { display: grid; gap: 12px; margin-top: 10px; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.card {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; margin: 0;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 400;
}
.card:has(input:checked) { border-color: var(--accent); background: rgba(124, 92, 255, 0.08); }
.card input { display: none; }
.card strong { font-size: 15px; }
.card span { font-size: 13px; color: var(--text); }
.card span.muted { color: var(--muted); }
.env-row { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-bottom: 8px; }
.box { padding: 14px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); margin: 16px 0; }
.error { color: var(--err); }
.error.box { border-color: var(--err); }
.ok { color: var(--ok); }
.big { font-size: 1.15rem; }
.spinner {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite; vertical-align: -2px; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
