*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* .btn, .panel button below is an author-normal rule (display: inline-block)
   that otherwise beats the UA-normal `[hidden] { display: none }` rule in
   the cascade regardless of specificity — leaving hidden nav buttons
   visible and clickable. !important is the correct, idiomatic fix: hidden
   must always win over any other display rule on the same element. */
[hidden] { display: none !important; }
:root {
  --bg: #0a0f1e;
  --surface: #1a2744;
  --surface2: #243156;
  --accent: #3b82f6;
  --text: #e8dcc8;
  --text-dim: #9aa3b8;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius: 14px;
  --radius-sm: 8px;
}
html, body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.7; min-height: 100%; }
.page { max-width: 640px; margin: 0 auto; padding: 40px 24px 80px; }
.page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.page-header h1 { font-size: 24px; font-weight: 700; }

.panel { background: var(--surface); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.panel p { color: var(--text-dim); margin-bottom: 12px; line-height: 1.6; }
.panel p strong { color: var(--text); }
.panel label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin: 14px 0 6px; }
.panel input[type="text"] {
  width: 100%; background: var(--surface2); border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 10px 12px; color: var(--text); font-size: 15px;
}
.panel input:focus { outline: none; border-color: var(--accent); }
.panel ol, .panel ul { margin: 8px 0 12px 22px; color: var(--text-dim); line-height: 1.65; }
.panel ol li strong, .panel ul li strong { color: var(--text); }

.btn, .panel button {
  background: var(--accent); color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 8px;
  display: inline-block; text-decoration: none;
}
.btn:hover, .panel button:hover { background: #2563eb; }
.panel button:disabled { background: var(--surface2); color: var(--text-dim); cursor: not-allowed; }
.panel button.secondary { background: transparent; border: 1px solid var(--surface2); color: var(--text-dim); }

.panel hr { border: none; border-top: 1px solid var(--surface2); margin: 20px 0; }
.panel label.checkbox-label { display: flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.panel label.checkbox-label input[type="checkbox"] { width: auto; margin: 0; }

.note { font-size: 13px; color: var(--text-dim); background: rgba(245,158,11,0.08); border-left: 3px solid var(--amber); border-radius: var(--radius-sm); padding: 10px 14px; margin: 12px 0; }
.error { color: var(--red); font-size: 14px; margin-top: 10px; }
.text-dim { color: var(--text-dim); font-size: 14px; }
code { font-family: "SF Mono", "Fira Code", monospace; font-size: 13px; background: var(--surface2); padding: 2px 6px; border-radius: 4px; color: var(--green); }

.step-indicator { display: flex; gap: 8px; list-style: none; margin-bottom: 20px; }
.step-dot { flex: 1; text-align: center; font-size: 12px; font-weight: 600; padding: 8px 4px; border-radius: var(--radius-sm); background: var(--surface2); color: var(--text-dim); }
.step-dot--current { background: var(--accent); color: #fff; }
.step-dot--done { background: rgba(34,197,94,0.15); color: var(--green); }

.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
/* Back is hidden (now actually removed from layout, since the [hidden] fix
   above) on the first step. Without this, Next/Deploy would render
   left-aligned there instead of pinned to the right like on every other
   step — margin-left: auto claims all remaining flex space regardless of
   whether Back is present. */
#next-btn, #deploy-btn { margin-left: auto; }
