:root {
  color-scheme: light dark;
  --bg: var(--tg-theme-bg-color, #0f1115);
  --text: var(--tg-theme-text-color, #f3f5f7);
  --hint: var(--tg-theme-hint-color, #8b93a7);
  --btn: var(--tg-theme-button-color, #2aabee);
  --btn-text: var(--tg-theme-button-text-color, #ffffff);
  --card: color-mix(in srgb, var(--tg-theme-secondary-bg-color, #1c1f26) 92%, white 8%);
  --border: color-mix(in srgb, var(--hint) 35%, transparent);
  --ok: #2ecc71;
  --bad: #e74c3c;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  display: grid;
  place-items: start center;
  padding: 24px 16px 40px;
}

.card {
  width: min(440px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

h1 { margin: 0 0 6px; font-size: 1.35rem; }
h2.section { margin: 18px 0 10px; font-size: 1.05rem; }
.muted, .hint, .sub, small { color: var(--hint); }
.hint { margin: 12px 0 0; font-size: 0.9rem; line-height: 1.4; }

.user {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 18px 0;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--btn);
  color: var(--btn-text);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.name { font-weight: 700; }

button, .button-link {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--btn);
  color: var(--btn-text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  margin-top: 10px;
}

button.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.checks li {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.badge {
  display: inline-block;
  min-width: 34px;
  text-align: center;
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 6px;
}

.badge.ok { background: color-mix(in srgb, var(--ok) 25%, transparent); color: var(--ok); }
.badge.bad { background: color-mix(in srgb, var(--bad) 25%, transparent); color: var(--bad); }
