:root {
  color-scheme: dark;
  --bg: #24273a;
  --fg: #cad3f5;
  --muted: #a5adcb;
  --accent: #8aadf4;
  --accent-fg: #181926;
  --surface: #1e2030;
  --elevated: #363a4f;
  --border: #363a4f;
  --red: #ed8796;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    14px/1.5 ui-sans-serif,
    system-ui,
    sans-serif;
}
main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 1rem 18vh;
  text-align: center;
}
h1 {
  margin: 0;
  font-size: 3.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}
p {
  margin: 0;
}
.box {
  width: 100%;
  max-width: 20rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.muted {
  color: var(--muted);
}
.note {
  color: var(--muted);
  font-size: 0.8125rem;
}
.note:empty {
  display: none;
}
.note.red {
  color: var(--red);
}
label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
  font-size: 0.8125rem;
  color: var(--muted);
}
input {
  height: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0 0.75rem;
  color: var(--fg);
  font: inherit;
  font-size: 0.875rem;
  outline: 0;
}
input:focus {
  border-color: var(--accent);
}
button {
  height: 2.5rem;
  border: 0;
  border-radius: 0.375rem;
  padding: 0 1rem;
  font: inherit;
  font-weight: 500;
  background: var(--accent);
  color: var(--accent-fg);
  cursor: pointer;
}
button.quiet {
  background: var(--elevated);
  color: var(--fg);
}
button:hover {
  opacity: 0.9;
}
button:disabled {
  opacity: 0.5;
  pointer-events: none;
}
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
dl {
  margin: 0;
  padding: 0.75rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  text-align: left;
  font-size: 0.8125rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.asks {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.detail {
  margin: 0;
  padding: 0.5rem 0.75rem;
  max-height: 10rem;
  overflow-y: auto;
  list-style: none;
  text-align: left;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}
.terms {
  padding: 0.5rem 0.75rem;
  max-height: 12rem;
  overflow-y: auto;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.8125rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}
.terms:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
label.tick {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--fg);
}
label.tick input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: 0.15rem 0 0;
  padding: 0;
  accent-color: var(--accent);
}
.detail li {
  overflow-wrap: anywhere;
}
.detail li + li {
  margin-top: 0.25rem;
}
