* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  font-family: system-ui, Segoe UI, Arial, sans-serif; background: #f3f4f6; color: #111827; padding: 16px;
}
.card { width: 100%; max-width: 420px; background: #fff; padding: 28px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
h1 { margin: 0 0 20px; font-size: 22px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
.phone { display: flex; border: 1px solid #d1d5db; border-radius: 8px; overflow: hidden; }
.phone:focus-within { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.2); }
.prefix { background: #f3f4f6; padding: 11px 12px; color: #4b5563; border-right: 1px solid #d1d5db; }
input { flex: 1; border: 0; padding: 11px 12px; font-size: 16px; outline: none; min-width: 0; }
small { display: block; color: #6b7280; margin: 6px 0 16px; }
button { width: 100%; padding: 12px; font-size: 16px; font-weight: 600; border: 0; border-radius: 8px; background: #2563eb; color: #fff; cursor: pointer; margin-top: 4px; }
button:disabled { background: #9ca3af; cursor: not-allowed; }
button.post { background: #16a34a; }
[hidden] { display: none !important; }
#status { margin-top: 16px; font-size: 14px; font-weight: 600; }
#status.ok { color: #16a34a; }
#status.err { color: #dc2626; }
#status.info { color: #2563eb; }
pre { background: #111827; color: #e5e7eb; padding: 12px; border-radius: 8px; font-size: 12px; overflow: auto; max-height: 260px; }
