:root {
  color-scheme: light dark;
  --ink: #182033;
  --muted: #5e687f;
  --paper: #f7f8fc;
  --panel: #ffffff;
  --line: #d8deea;
  --navy: #172848;
  --orange: #f06f32;
  --orange-dark: #b93f0f;
  --danger: #a82828;
  --danger-soft: #fff0ed;
  --success: #166534;
  --success-soft: #ecfdf3;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 280px;
  background:
    radial-gradient(circle at 8% 0%, rgb(240 111 50 / 12%), transparent 28rem),
    linear-gradient(180deg, #f4f6fb 0, var(--paper) 22rem);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: #075fc7;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #03468f;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #1d78d2;
  outline-offset: 3px;
}

.topbar {
  background: var(--navy);
  border-bottom: 5px solid var(--orange);
  color: #fff;
}

.topbar__inner,
main,
.footer__inner {
  width: min(100% - 2rem, 60rem);
  margin-inline: auto;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1rem;
}

.brand {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.environment {
  padding: 0.25rem 0.65rem;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main {
  padding-block: clamp(2rem, 5vw, 4.5rem);
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--orange-dark);
  font-size: 0.85rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.18;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 4rem);
  letter-spacing: -0.045em;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

h3 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1.05rem;
}

.lede {
  max-width: 48rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.meta {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.stack {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.panel {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
  box-shadow: 0 1rem 2.8rem rgb(23 40 72 / 7%);
}

.panel > :first-child {
  margin-top: 0;
}

.panel > :last-child {
  margin-bottom: 0;
}

.panel--danger {
  border-color: #efb8ad;
  background: var(--danger-soft);
}

.notice {
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--orange);
  border-radius: 0.35rem;
  background: #fff7ed;
}

.notice strong {
  color: var(--navy);
}

ul,
ol {
  padding-left: 1.4rem;
}

li + li {
  margin-top: 0.45rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.05rem;
  border: 2px solid var(--navy);
  border-radius: 0.65rem;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
}

.button:hover {
  background: #243c67;
  color: #fff;
}

.button--danger {
  border-color: var(--danger);
  background: var(--danger);
}

.button--danger:hover {
  background: #7e1d1d;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.confirm-form {
  margin-top: 1.4rem;
}

.verified-identity {
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid #d28b4d;
  border-radius: 0.55rem;
  background: #fff;
}

.verified-identity h3 {
  margin: 0;
}

.verified-identity p {
  margin: 0.45rem 0 0;
}

.identity-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}

.profile-portrait {
  position: relative;
  display: grid;
  width: 6.4rem;
  height: 6.4rem;
  place-items: center;
}

.profile-portrait__avatar,
.profile-portrait__fallback {
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 50%;
}

.profile-portrait__avatar {
  display: block;
  object-fit: cover;
}

.profile-portrait__fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-size: 1.8rem;
  font-weight: 900;
}

.profile-portrait__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.verified-pill {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.identity-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 0;
}

.identity-details div {
  display: grid;
  gap: 0.1rem;
}

.identity-details dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.identity-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--navy);
  font-weight: 800;
}

.identity-details__notice {
  color: var(--muted);
  font-size: 0.9rem;
}

.field-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--navy);
  font-weight: 800;
}

.text-input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  border: 2px solid #9ca8bd;
  border-radius: 0.55rem;
  background: #fff;
  color: #172033;
  font: inherit;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1rem;
}

.check-row input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
}

.status {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 0.55rem;
  background: #edf3fb;
  color: var(--navy);
  font-weight: 700;
}

.status--error {
  background: var(--danger-soft);
  color: var(--danger);
}

.status--success {
  background: var(--success-soft);
  color: var(--success);
}

[hidden] {
  display: none !important;
}

.footer {
  border-top: 1px solid var(--line);
  background: #eef1f7;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #edf2ff;
    --muted: #b4bfd4;
    --paper: #0e1628;
    --panel: #18243b;
    --line: #35445e;
    --navy: #f0f4ff;
    --orange-dark: #ff9a69;
    --danger-soft: #391b22;
    --success: #79e29c;
    --success-soft: #12331f;
  }

  body {
    background:
      radial-gradient(circle at 8% 0%, rgb(240 111 50 / 13%), transparent 28rem),
      linear-gradient(180deg, #111c31 0, var(--paper) 22rem);
  }

  .topbar {
    background: #111c31;
  }

  .brand,
  .environment,
  .button,
  .button:hover {
    color: #fff;
  }

  .button {
    border-color: #42669b;
    background: #294b7e;
  }

  .panel--danger,
  .notice {
    border-color: #8b4336;
    background: #2d2024;
  }

  .verified-identity {
    background: #162238;
  }

  .text-input {
    border-color: #61708a;
    background: #101a2c;
    color: #fff;
  }

  .status {
    background: #213556;
    color: #e8efff;
  }

  .footer {
    background: #111a2b;
  }
}

@media (max-width: 36rem) {
  .topbar__inner,
  main,
  .footer__inner {
    width: min(100% - 1.25rem, 60rem);
  }

  .topbar__inner {
    min-height: 4rem;
  }

  .panel {
    border-radius: 0.75rem;
  }

  .actions,
  .button {
    width: 100%;
  }

  .identity-summary,
  .identity-details {
    grid-template-columns: 1fr;
  }

  .profile-portrait {
    justify-self: center;
  }
}
