* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: #111827;
  color: #f9fafb;
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
}
[hidden] { display: none !important; }
main { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; }
#open {
  width: min(78vw, 320px);
  height: min(78vw, 320px);
  border-radius: 50%;
  border: 0;
  background: #16a34a;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(22, 163, 74, .45);
  -webkit-tap-highlight-color: transparent;
}
#open:active { transform: scale(.97); }
#open:disabled { background: #6b7280; box-shadow: none; }
#status { min-height: 1.5em; margin: 0; font-size: 18px; text-align: center; }
#status.ok { color: #4ade80; }
#status.err { color: #f87171; }
a { color: #9ca3af; font-size: 14px; }
form { display: flex; flex-direction: column; gap: 16px; width: min(100%, 360px); }
h1 { margin: 0 0 8px; font-size: 22px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #d1d5db; }
input { font-size: 17px; padding: 12px; border-radius: 10px; border: 1px solid #374151; background: #1f2937; color: #fff; }
form button { font-size: 17px; padding: 14px; border: 0; border-radius: 10px; background: #2563eb; color: #fff; font-weight: 600; }
