:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
body {
  margin: 0;
  min-height: 100vh;
  background: #0f172a;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 48px;
  box-sizing: border-box;
}
h1 {
  font-size: 1.3rem;
  margin: 8px 0 4px;
  text-align: center;
}
p.subtitle {
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 0 0 20px;
  text-align: center;
}
.card {
  background: #1e293b;
  border-radius: 16px;
  padding: 16px;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
  margin-bottom: 16px;
}
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid #334155;
}
.status-row:last-child { border-bottom: none; }
.badge {
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 999px;
  background: #334155;
  color: #cbd5e1;
}
.badge.ok { background: #14532d; color: #86efac; }
.badge.no { background: #7f1d1d; color: #fca5a5; }
button {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  background: #2563eb;
  color: white;
  cursor: pointer;
  margin-top: 4px;
}
button:active { background: #1d4ed8; }
button.secondary {
  background: #334155;
}
button.secondary:active { background: #475569; }
button.spaced { margin-top: 8px; }
button:disabled {
  opacity: 0.5;
}
video {
  width: 100%;
  border-radius: 12px;
  background: #000;
  margin-top: 12px;
  display: block;
}
#log {
  font-size: 0.75rem;
  color: #64748b;
  white-space: pre-wrap;
  max-height: 120px;
  overflow-y: auto;
  margin-top: 8px;
}
#update-overlay {
  position: fixed;
  inset: 0;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 9999;
  transition: opacity 0.3s ease;
}
#update-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #334155;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
#update-overlay.done .spinner {
  display: none;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
#update-overlay-text {
  font-size: 0.9rem;
  color: #cbd5e1;
}
#update-overlay-reload {
  display: none;
  width: auto;
  padding: 10px 20px;
}
#update-overlay.done #update-overlay-reload {
  display: block;
}
