:root {
  --bg-0: #020202;
  --bg-1: #070707;
  --card: #0b0b0b;
  --line: #1d1d1d;
  --text: #f1f1f1;
  --muted: #8b8b8b;
  --accent: #ffffff;
  --danger: #a43a3a;
  --ok: #2d8459;
  --radius: 12px;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, var(--bg-0), var(--bg-1));
}

a {
  color: #a6d4ff;
}

.shell {
  width: min(960px, 100vw);
  margin: 0 auto;
  min-height: 100svh;
  padding: 20px 14px 24px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
}

.grid-two {
  display: grid;
  gap: 14px;
}

@media (min-width: 850px) {
  .grid-two {
    grid-template-columns: 1fr 1fr;
  }
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
}

h2 {
  font-size: clamp(1.22rem, 3vw, 1.55rem);
}

h3 {
  font-size: 1.02rem;
}

p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.42;
}

.mono {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px;
  background: #060606;
  font-family: Consolas, Menlo, Monaco, "Courier New", monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.label {
  display: block;
  margin: 10px 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  color: var(--text);
  background: #050505;
}

.textarea {
  min-height: 90px;
  resize: vertical;
}

.row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: #040404;
  background: var(--accent);
}

.btn.secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: #111111;
}

.btn.danger {
  color: #fff;
  background: linear-gradient(180deg, #d05555, #9f3030);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #080808;
  color: var(--muted);
  padding: 6px 11px;
  font-size: 12px;
}

.status.ok {
  color: #bef7d7;
}

.status.warn {
  color: #ffe4ab;
}

.status.error {
  color: #ffbcbc;
}

.status:empty {
  display: none;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-btn {
  border: 1px solid var(--line);
  color: var(--muted);
  background: #0b0b0b;
}

.tab-btn.active {
  color: #f4f7ff;
  border-color: #5f7392;
}

.user-list {
  display: grid;
  gap: 8px;
}

.user-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #070707;
}

.inline-link {
  color: #9cccff;
  word-break: break-all;
}

.muted {
  color: var(--muted);
}

.mono:empty {
  display: none;
}

.center-shell {
  min-height: 100svh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 16px;
}

.center-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
  width: min(420px, 92vw);
}

.center-actions .btn {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
