:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #18253a;
  background: #edf1f7;
  line-height: 1.5;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body { margin: 0; }

.page {
  width: min(100% - 2rem, 40rem);
  margin: clamp(2.25rem, 9vh, 6rem) auto 2rem;
}

.brand {
  width: fit-content;
  margin: 0 0 .9rem .2rem;
  color: #264e9a;
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -.035em;
}

.surface {
  padding: clamp(1rem, 5vw, 2rem);
  border: 1px solid #dae2ef;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1rem 3rem rgb(27 48 80 / 7%);
}

h1 {
  margin: 0;
  font-size: clamp(1.65rem, 7vw, 2.2rem);
  font-weight: 720;
  letter-spacing: -.04em;
  line-height: 1.15;
}

h2 {
  margin: 0;
  color: #344b6c;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

p { margin: .75rem 0; }

.status, .account-email { color: #4e5e73; }
.status:empty, .feedback:empty { margin: 0; }

form { margin-top: 1.25rem; }
label { display: block; font-weight: 640; }

input, button { font: inherit; }

input {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  margin: .35rem 0 .9rem;
  padding: .6rem .75rem;
  color: inherit;
  border: 1px solid #8e9fba;
  border-radius: .55rem;
  background: #fafbfd;
}

button {
  min-height: 2.75rem;
  padding: .55rem .95rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  color: #fff;
  background: #254c9e;
  font-weight: 650;
  cursor: pointer;
}

button:hover { background: #1d3c81; }
button:disabled { cursor: wait; opacity: .65; }

button.secondary {
  border-color: #c0cce0;
  color: #234686;
  background: #f7f9fd;
}

button.secondary:hover { background: #e9f0fc; }

button:focus-visible, input:focus-visible {
  outline: 3px solid #497bdc;
  outline-offset: 2px;
}

.alternate { margin: 1.15rem 0 0; font-size: .9rem; }
.alternate a { color: #264e9a; text-underline-offset: .18em; }

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.account-header > div { min-width: 0; }
.account-email { margin-bottom: 0; overflow-wrap: anywhere; }

.code-group { margin-top: 1.45rem; }
.code-group table { margin-top: .6rem; }

table {
  width: 100%;
  margin-top: 1.25rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th, td {
  padding: .6rem .4rem;
  text-align: left;
  border-top: 1px solid #e4eaf2;
}

th { color: #4e5e73; font-size: .85rem; font-weight: 640; }
td:last-child { text-align: right; }
td time { color: #40516a; }

code {
  color: #18253a;
  font: 680 1.1rem ui-monospace, monospace;
  letter-spacing: .05em;
  user-select: all;
}

.feedback { font-size: .92rem; color: #425872; }
.feedback.error { color: #9b252e; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 420px) {
  th, td { padding-inline: .28rem; }
  td time { font-size: .86rem; }
  td button { font-size: .82rem; padding-inline: .45rem; }
  code { font-size: 1rem; }
}
