* { box-sizing: border-box; }

:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  line-height: 1.35;
}

body {
  margin: 0;
  padding:
    max(20px, env(safe-area-inset-top))
    16px
    max(32px, env(safe-area-inset-bottom));
}

main {
  max-width: 760px;
  margin: 0 auto;
}

h1 { margin: 0 0 8px; }
h2 { margin-top: 0; }

.card {
  border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  border-radius: 16px;
  padding: 16px;
  margin: 14px 0;
}

.status {
  font-weight: 650;
  min-height: 1.4em;
}

label {
  display: block;
  margin: 10px 0;
  font-weight: 600;
}

input,
textarea,
select,
button {
  width: 100%;
  font: inherit;
  border-radius: 11px;
  padding: 12px;
  margin-top: 7px;
}

textarea,
pre {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

button {
  border: 0;
  font-weight: 700;
  cursor: pointer;
}

button + button { margin-top: 9px; }
button:disabled { opacity: .45; cursor: default; }
.danger { background: #b42318; color: white; }
.warning { border-color: #b54708; }
.small { font-size: .86rem; opacity: .82; }
.fingerprint { font-size: .88rem; }

.contact {
  border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  padding: 14px 0;
}

.contact:first-child { margin-top: 12px; }

.contact-title {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.badge {
  display: inline-block;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: .72rem;
  font-weight: 750;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.operation pre {
  max-height: 240px;
  overflow: auto;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 11px;
  padding: 10px;
}

@media (max-width: 520px) {
  .row { grid-template-columns: 1fr; }
}
