:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f3f6fb;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 20% 0%, #e8f0ff 0, transparent 38%), #f3f6fb; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 72px; }
.brand { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: #2f6fec; color: white; font-size: 26px; font-weight: 800; box-shadow: 0 10px 28px rgba(47,111,236,.25); }
.eyebrow, .step { color: #56709a; font-size: 12px; letter-spacing: .12em; font-weight: 750; }
h1 { margin: 3px 0 0; font-size: clamp(25px, 4vw, 36px); letter-spacing: -.035em; }
h2 { margin: 5px 0 7px; font-size: 22px; letter-spacing: -.02em; }
p { color: #65728a; line-height: 1.5; }

.card { background: rgba(255,255,255,.95); border: 1px solid #dfe6f2; border-radius: 20px; box-shadow: 0 18px 50px rgba(33,54,91,.08); padding: 24px; }
.auth-card { max-width: 460px; margin: 70px auto 0; }
.card-heading { margin-bottom: 22px; }
.card-heading p { margin: 0; }
.card-heading.compact { margin-bottom: 16px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding: 16px 20px; }
.toolbar > div { display: flex; align-items: center; gap: 10px; }
.pill { border-radius: 999px; padding: 5px 10px; background: #edf3ff; color: #235fcf; font-size: 12px; font-weight: 750; }
.grid { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.3fr); gap: 18px; align-items: start; }

form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; color: #3c4961; font-size: 13px; font-weight: 700; }
input, select { width: 100%; border: 1px solid #ccd6e6; border-radius: 11px; padding: 11px 12px; background: white; color: #172033; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus { border-color: #4d83e8; box-shadow: 0 0 0 3px rgba(77,131,232,.14); }
.address-row { display: grid; grid-template-columns: 1fr auto; align-items: center; border: 1px solid #ccd6e6; border-radius: 11px; background: white; overflow: hidden; }
.address-row:focus-within { border-color: #4d83e8; box-shadow: 0 0 0 3px rgba(77,131,232,.14); }
.address-row input { border: 0; box-shadow: none; }
.address-row span { padding: 0 12px; color: #6e7a91; font-weight: 600; }
.optional { color: #8994a8; font-weight: 500; }
.policy-note, .endpoint-note { border-radius: 11px; padding: 11px 12px; background: #f2f6ff; color: #415a84; font-size: 13px; }

.primary, .secondary { border-radius: 11px; padding: 11px 15px; font-weight: 750; }
.primary { border: 1px solid #2f6fec; background: #2f6fec; color: white; box-shadow: 0 8px 18px rgba(47,111,236,.2); }
.primary:hover { background: #255fce; }
.secondary { border: 1px solid #d4dce9; background: white; color: #35445e; }
button:disabled { opacity: .55; cursor: wait; }
.error { min-height: 20px; margin: 13px 0 0; color: #bd2d42; font-size: 13px; font-weight: 650; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 10px; border-bottom: 1px solid #e8edf5; text-align: left; vertical-align: top; }
th { color: #7a879d; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
td strong { color: #293b59; }
.muted { color: #8994a8; text-align: center; padding: 30px; }
.error-cell { color: #bd2d42; }

.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(20,31,50,.56); backdrop-filter: blur(6px); }
.modal { width: min(560px, 100%); }
.modal > p { margin-top: 5px; }
.success-badge { display: inline-flex; border-radius: 999px; padding: 6px 10px; background: #e8f8ef; color: #15824a; font-size: 12px; font-weight: 800; }
.secret-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 7px 0 15px; }
.secret-row code { overflow-wrap: anywhere; border-radius: 10px; padding: 12px; background: #101827; color: #e9f1ff; font-size: 14px; }
.copy { padding: 8px 10px; font-size: 12px; }
.modal > .primary { width: 100%; margin-top: 18px; }

@media (max-width: 820px) {
  .shell { width: min(100% - 20px, 620px); padding-top: 24px; }
  .grid { grid-template-columns: 1fr; }
  .brand { align-items: flex-start; }
  .toolbar { align-items: flex-start; gap: 14px; }
  .toolbar > div { align-items: flex-start; flex-direction: column; }
}

