.setup-page {
  min-height: 100vh;
  background: #faf9f7; /* Anthropic warm off-white */
  display: flex;
  flex-direction: column;
}
.setup-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 24px; font-family: var(--font-serif); font-size: 22px; color: #1a1a1a;
}
.setup-topbar .icon {
  width: 22px; height: 22px; background: #1a1a1a; border-radius: 4px;
  display: grid; place-items: center; color: white; font-family: var(--font-sans); font-size: 13px; font-weight: 700;
}

.setup-main { flex: 1; display: grid; place-items: center; padding: 32px 16px 64px; }

.setup-card {
  background: white;
  border: 1px solid #e7e5e4;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.setup-card .eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #57534e;
  margin-bottom: 20px;
}
.setup-card .eyebrow .verified {
  display: inline-flex; align-items: center; gap: 4px;
  background: #ecfdf5; color: #047857;
  padding: 2px 8px; border-radius: 999px; font-weight: 500; font-size: 12px;
}

.setup-card h1 {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 8px;
  color: #1a1a1a;
  font-weight: 500;
}
.setup-card .sub { font-size: 14px; color: #57534e; line-height: 1.55; margin: 0 0 20px; }

.kv-list { border-top: 1px solid #f0eeec; margin: 16px 0 20px; }
.kv-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid #f0eeec;
  font-size: 14px;
}
.kv-row .k { color: #78716c; }
.kv-row .v { color: #1a1a1a; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.kv-row .v code, .kv-row .v .editable {
  font-family: var(--font-mono); font-size: 13px;
  background: #faf9f7; border: 1px solid #e7e5e4; border-radius: 6px; padding: 4px 8px;
  color: #1a1a1a;
}
.kv-row .v .editable { display: inline-flex; align-items: center; gap: 6px; cursor: text; }

.banner {
  display: flex; gap: 10px; padding: 12px 14px;
  background: #fef9c3; border: 1px solid #fde68a; border-radius: 10px;
  font-size: 13px; color: #713f12; margin: 16px 0 20px;
}
.banner .emoji { font-size: 18px; line-height: 1; }

.fineprint { font-size: 12px; color: #78716c; line-height: 1.55; margin: 16px 0 24px; }

.btn-row { display: flex; gap: 12px; justify-content: flex-end; }
.btn {
  padding: 10px 18px; border-radius: 8px; font-weight: 500; font-size: 14px;
  border: 1px solid transparent; cursor: pointer;
}
.btn-secondary { background: white; color: #1a1a1a; border-color: #d6d3d1; }
.btn-primary { background: #1a1a1a; color: white; }

.device-line {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #78716c; margin-top: 4px;
}

.success-eyebrow {
  display: flex; align-items: center; gap: 8px;
  color: #047857; font-weight: 500; font-size: 14px; margin-bottom: 8px;
}
.credits-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #ecfdf5; color: #047857;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500;
  margin-bottom: 20px;
}

.key-name { font-family: var(--font-mono); font-size: 13px; color: #57534e; margin: 4px 0 8px; }

.key-field {
  display: flex; align-items: center; gap: 8px;
  background: #faf9f7; border: 1px solid #e7e5e4; border-radius: 8px;
  padding: 10px 12px; margin: 8px 0 16px;
}
.key-field code {
  flex: 1; font-family: var(--font-mono); font-size: 13px; color: #1a1a1a;
  letter-spacing: 0.02em;
}
.key-field .reveal-btn {
  background: transparent; border: none; padding: 4px; color: #78716c;
  display: grid; place-items: center;
}

.action-row { display: flex; gap: 10px; margin: 16px 0 24px; }
.action-row .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

.next-steps {
  background: #faf9f7; border: 1px solid #f0eeec; border-radius: 10px;
  padding: 14px 16px; margin: 16px 0;
}
.next-steps h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #1a1a1a; }
.next-steps ol { margin: 0; padding-left: 20px; color: #57534e; font-size: 13px; line-height: 1.7; }
.next-steps a { color: #0f766e; text-decoration: underline; }

.footer-links { display: flex; gap: 16px; justify-content: flex-end; margin-top: 16px; font-size: 13px; }
.footer-links a {
  display: inline-flex; align-items: center; gap: 4px;
  color: #1a1a1a; text-decoration: none; padding: 8px 14px;
  border: 1px solid #d6d3d1; border-radius: 8px;
}

.primary-cta {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  margin-top: 8px;
}
.primary-cta i { transition: transform 120ms; }
.primary-cta:hover i { transform: translateX(2px); }

.subtle-link {
  text-align: center; margin-top: 16px;
  font-size: 13px;
}
.subtle-link a {
  color: #78716c; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.subtle-link a:hover { color: #1a1a1a; }

/* ----- Action button states (success screen) ----- */
.btn-success {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
  cursor: default;
}
.btn-success i { color: #047857; }

.is-disabled {
  background: #f5f5f4;
  color: #a8a29e;
  border-color: #e7e5e4;
  pointer-events: none;
  cursor: not-allowed;
}

.is-pulsing {
  animation: ctaPulse 1.4s ease-in-out 2;
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 26, 26, 0.0); }
  50%      { box-shadow: 0 0 0 6px rgba(26, 26, 26, 0.08); }
}
