:root {
  --bg: #0f1319;
  --surface: #161b23;
  --line: #262e3a;
  --ink: #e8ecf2;
  --muted: #8b95a6;
  --signal: #4ba5ff;
  --signal-dim: #86add3;
  --radius: 16px;
  --tap: 56px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;

  /* center everything, mobile-first, respecting notches */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + 24px) 20px
    calc(env(safe-area-inset-bottom, 0px) + 24px);
}

.card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px 28px;
  text-align: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal-dim);
  margin: 0 auto 20px;
  transition: background 0.3s, box-shadow 0.3s;
}
.dot.live {
  background: var(--signal);
  box-shadow: 0 0 0 6px rgba(77, 214, 193, 0.14);
}

h1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.sub {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.status {
  min-height: 1.2em;
  margin: 0 0 22px;
  color: var(--signal);
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  font: inherit;
  font-size: 1rem;
  margin-bottom: 20px;
}
textarea::placeholder {
  color: var(--muted);
}
textarea:focus {
  outline: none;
  border-color: var(--signal-dim);
  box-shadow: 0 0 0 3px rgba(77, 214, 193, 0.12);
}

button {
  width: 100%;
  min-height: var(--tap);
  border: none;
  border-radius: 12px;
  background: var(--signal);
  color: #08110f;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 650;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.05s;
}
button:active {
  transform: scale(0.99);
}
button:disabled {
  cursor: default;
  opacity: 0.65;
  background: var(--signal-dim);
  color: var(--ink);
}

/* small inline spinner */
.spin {
  display: inline-block;
  width: 15px;
  height: 15px;
  vertical-align: -2px;
  margin-right: 8px;
  border: 2px solid rgba(232, 236, 242, 0.35);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.done .dot {
  background: var(--signal);
  box-shadow: 0 0 0 6px rgba(77, 214, 193, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .spin {
    animation: none;
  }
  * {
    transition: none !important;
  }
}

.logo-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  text-align: center;
  flex-wrap: wrap;
}
