:root { 
  --primary: #0f172a; 
  --accent: #2563eb; 
  --bg: #f3f4f6; 
  --card: #ffffff; 
  --text: #1f2937; 
  --muted: #4b5563; 
  --border: #e5e7eb;
}

body { 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; 
  background: var(--bg); 
  color: var(--text); 
  line-height: 1.5; 
  margin: 0; 
  padding: 24px; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  min-height: 100vh; 
}

.shell { width: 100%; max-width: 520px; }
.hero { text-align: left; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.badge { background: #dbeafe; color: #1e40af; padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; }
h1 { font-size: 1.35rem; margin: 0.6rem 0 0.2rem; color: #111827; font-weight: 700; }
.subtitle { font-size: 0.85rem; color: var(--muted); margin: 0; }
.card { background: var(--card); padding: 1.25rem 1.5rem; border-radius: 8px; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03); margin-bottom: 1rem; border: 1px solid var(--border); }
.card h2 { font-size: 0.95rem; margin-top: 0; margin-bottom: 0.75rem; color: #111827; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card h2 span.step-num { display: inline-flex; width: 20px; height: 20px; background: #e0e7ff; color: #3730a3; border-radius: 50%; font-size: 0.75rem; align-items: center; justify-content: center; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 0.8rem; margin-bottom: 3px; font-weight: 500; color: var(--muted); }
.form-group input, .form-group select { width: 100%; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 0.85rem; background: #fff; box-sizing: border-box; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--accent); }
button { width: 100%; padding: 10px 14px; border: none; border-radius: 6px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: background 0.15s ease; margin-top: 8px; }
.primary { background: var(--accent); color: white; }
.primary:hover { background: #1d4ed8; }
button:disabled { background: #e5e7eb; color: #9ca3af; cursor: not-allowed; }
.row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 6px 0; border-bottom: 1px solid #f9fafb; }
.row code { word-break: break-all; max-width: 60%; text-align: right; color: var(--muted); }
.muted { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; line-height: 1.4; }
#userMsg { margin-top: 8px; font-size: 0.8rem; word-break: break-all; color: #dc2626; font-weight: 500; }
footer { text-align: center; font-size: 0.75rem; color: #9ca3af; margin-top: 1.5rem; line-height: 1.4; }