:root { color-scheme: light dark; }
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  font: 16px/1.45 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--tg-theme-bg-color, #ffffff); color: var(--tg-theme-text-color, #16181c);
}
main { width: 100%; max-width: 420px; padding: 28px 20px 36px; text-align: center; }
h1 { margin: 14px 0 8px; font-size: 22px; line-height: 1.25; }
p { margin: 0 0 14px; }
.note { color: var(--tg-theme-hint-color, #7b8794); }
.warn { color: var(--tg-theme-destructive-text-color, #d93025); }
.mark { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--tg-theme-secondary-bg-color, #eef1f5); }
.mark svg { width: 44px; height: 44px; }
.mark.ok { animation: pop .45s ease-out; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.12); } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mark.ok { animation: none; } }
button.main, a.main {
  display: block; width: 100%; margin-top: 10px; padding: 14px 16px; border: 0; border-radius: 12px; cursor: pointer;
  font: inherit; font-weight: 600; text-decoration: none;
  background: var(--tg-theme-button-color, #2f7cf6); color: var(--tg-theme-button-text-color, #ffffff);
}
a.main.soft, button.main.soft { background: var(--tg-theme-secondary-bg-color, #eef1f5); color: var(--tg-theme-text-color, #16181c); }
button:disabled { opacity: .55; cursor: default; }
ul.list { list-style: none; margin: 0 0 6px; padding: 0; text-align: left; }
ul.list li { padding: 10px 12px; margin-bottom: 8px; border-radius: 10px; background: var(--tg-theme-secondary-bg-color, #eef1f5); }
.info { text-align: left; margin: 14px 0 6px; line-height: 1.6; }
.info b { font-weight: 600; }
.wrap { overflow-x: auto; margin: 10px 0 6px; border-radius: 10px; border: 1px solid var(--tg-theme-secondary-bg-color, #e3e7ee); }
table.res { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
table.res th { font-weight: 600; background: var(--tg-theme-secondary-bg-color, #eef1f5); }
table.res th, table.res td { padding: 9px 10px; border-bottom: 1px solid var(--tg-theme-secondary-bg-color, #e3e7ee); word-break: break-word; }
table.res td.id { font-family: ui-monospace, monospace; color: var(--tg-theme-hint-color, #707883); }
table.res a { color: var(--tg-theme-link-color, #2f7cf6); text-decoration: none; }
table.res tr.me td { font-weight: 600; }
.captcha { margin: 18px 0 6px; }
.captcha img { display: block; width: 200px; height: 70px; margin: 0 auto 12px; border-radius: 12px; }
.captcha input { display: block; width: 160px; margin: 0 auto; padding: 12px; font-size: 24px; letter-spacing: 8px; text-align: center;
  border: 1px solid var(--tg-theme-hint-color, #c9ced6); border-radius: 12px; background: var(--tg-theme-bg-color, #fff); color: var(--tg-theme-text-color, #16181c); }
