:root {
  --blue: #2B7BC2;
  --blue-dark: #1E5A8E;
  --ink: #111827;
  --body: #374151;
  --muted: #6B7280;
  --line: #E5E7EB;
  --field: #F9FAFB;
  --error: #B42318;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: radial-gradient(ellipse at 30% 30%, #133a5e 0%, #0a1f35 65%, #060d18 100%) fixed;
  background-color: #0a1f35;
  color: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

.shell {
  max-width: 620px;
  margin: 0 auto;
  padding: 48px 16px 40px;
}

.brand {
  display: block;
  width: 120px;
  margin: 0 auto 28px;
}

.brand img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

h1 {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 8px;
}

.lede {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--body);
  margin-bottom: 6px;
}

textarea,
input[type="text"],
select {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea {
  resize: vertical;
  min-height: 140px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

textarea:focus,
input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 123, 194, 0.18);
  background: #fff;
}

.field-meta {
  text-align: right;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 6px 0 18px;
}

.row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.field { flex: 1; min-width: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover { background: var(--blue-dark); }

.btn-primary:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn-ghost {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--blue); }

.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.copy-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.copy-row input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

.hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.error {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--error);
}

.footnote {
  margin-top: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

@media (max-width: 540px) {
  .shell { padding-top: 28px; }
  .brand, .brand img { width: 96px; height: 96px; }
  .brand { margin-bottom: 20px; }
  .card { padding: 24px 20px; }
  .row,
  .copy-row { flex-direction: column; align-items: stretch; }
}
