* {
  box-sizing: border-box;
}

:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background: var(--tg-theme-bg-color, #f4f5f7);
  color: var(--tg-theme-text-color, #17212b);
}

body {
  margin: 0;
  min-height: 100vh;
}

.page {
  width: min(100% - 40px, 480px);
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 0 max(24px, env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 34px;
}

.mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: #6557d2;
  color: white;
  font-size: 23px;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--tg-theme-hint-color, #718096);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
}

.card {
  padding: 28px 24px 24px;
  border: 1px solid color-mix(in srgb, var(--tg-theme-hint-color, #718096) 18%, transparent);
  border-radius: 24px;
  background: var(--tg-theme-secondary-bg-color, #fff);
  text-align: center;
}

.icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 21px;
  background: #eeecff;
  color: #6557d2;
  font-size: 38px;
}

h2 {
  margin: 12px 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.message {
  margin: 0 auto;
  max-width: 330px;
  color: var(--tg-theme-hint-color, #718096);
  font-size: 14px;
  line-height: 1.55;
}

.status {
  display: inline-flex;
  margin-top: 22px;
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, #d28a25 14%, transparent);
  color: #986313;
  font-size: 12px;
  font-weight: 650;
}


footer {
  padding: 22px 16px;
  color: var(--tg-theme-hint-color, #718096);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

[hidden] {
  display: none !important;
}

form {
  margin-top: 24px;
  text-align: left;
}

label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}

input, button {
  width: 100%;
  min-width: 0;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
}

input {
  border: 1px solid var(--tg-theme-hint-color, #718096);
  background: var(--tg-theme-bg-color, #f4f5f7);
  color: inherit;
}

button {
  margin-top: 12px;
  border: 0;
  background: var(--tg-theme-button-color, #6557d2);
  color: var(--tg-theme-button-text-color, #fff);
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}
