:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #191b20;
  background: #f7f7f8;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}
section { width: min(100%, 408px); }
#splash { text-align: center; }
img { object-fit: contain; }
h1 { margin: 0; font-size: clamp(2rem, 8vw, 2.6rem); line-height: 1.05; letter-spacing: -.05em; }
#splash h1 { margin-top: 18px; }
p { line-height: 1.5; }
.muted, small { color: #555c66; }
.loader {
  width: 36px;
  height: 3px;
  margin: 24px auto 0;
  border-radius: 2px;
  background: #d71935;
  animation: pulse 1s ease-in-out infinite alternate;
}
@keyframes pulse { from { opacity: .35; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .loader { animation: none; } }
header { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
header strong, header small { display: block; }
header small { margin-top: 2px; }
.panel { background: white; border: 1px solid #e2e4e8; border-radius: 12px; padding: clamp(20px, 6vw, 32px); }
.status { font-size: .875rem; font-weight: 600; color: #176443; }
.status.failed, .error { color: #a41c30; }
label { display: block; margin: 20px 0 8px; font-weight: 600; }
input, button { font: inherit; min-height: 48px; border-radius: 7px; width: 100%; }
input { border: 1px solid #c8cbd2; padding: 10px 12px; letter-spacing: .2em; font-size: 1.125rem; }
button { margin-top: 14px; padding: 10px 12px; border: 1px solid #c81c35; background: #c81c35; color: white; font-weight: 650; cursor: pointer; }
button.secondary { background: #fff; color: #191b20; border-color: #d6d9de; }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 2px solid #a91a31; outline-offset: 3px; }
#success { margin-top: 22px; border-top: 1px solid #e2e4e8; padding-top: 20px; }
