:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #111215;
  color: #f5f5f7;
  font-size: 14px;
  line-height: 1.3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

main {
  width: min(400px, 100%);
  background: #1c1d21;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
}

[hidden] {
  display: none !important;
}

.stack {
  display: grid;
  gap: 18px;
}

.hero {
  gap: 12px;
  justify-items: center;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

p {
  margin: 0;
}

.muted {
  color: #b4b4bb;
  font-size: 13px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #4a3a17;
  color: #ffc861;
  font-size: 16px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.rows {
  list-style: none;
  margin: 0;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}

.rows li {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.rows li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rows li > :first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rows .muted {
  font-size: 12px;
  font-weight: 400;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #b4b4bb;
}

.field-caption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.field-with-action {
  position: relative;
  display: block;
}

input {
  font: inherit;
  font-size: 14px;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: #f5f5f7;
}

input[readonly] {
  background: rgba(255, 255, 255, 0.04);
  color: #b4b4bb;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(10, 132, 255, 0.55);
  outline-offset: 1px;
}

.field-with-action input {
  padding-right: 64px;
}

.field-action {
  position: absolute;
  top: 0;
  right: 0;
  height: 44px;
  min-width: 56px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: #5aa9ff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.primary,
.secondary {
  font: inherit;
  font-weight: 600;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.primary {
  border: 0;
  background: #0a6fe0;
  color: #fff;
  font-size: 15px;
}

.secondary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: none;
  color: #f5f5f7;
}

.link {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
  border: 0;
  background: none;
  color: #5aa9ff;
  cursor: pointer;
}

button[disabled] {
  cursor: default;
  opacity: 0.6;
}

.status,
.notice {
  font-size: 13px;
  text-align: center;
  color: #ff8a84;
}

.notice.info {
  color: #b4b4bb;
}

.notice.success {
  color: #3ddc68;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #b4b4bb;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
