:root {
  --void: #0b0a1c;
  --deep: #07061a;
  --panel: #121130;
  --panel-2: #191840;
  --line: #2e2c6c;
  --line-soft: #201f50;
  --gold: #e9b949;
  --gold-deep: #b8862b;
  --ink: #17153a;
  --text: #eceaf7;
  --muted: #a5a2cf;
  --dim: #716ea6;
  --up: #58d6a3;
  --down: #f2637e;
  --shadow: rgba(4, 3, 14, 0.75);
  --serif: "STIX Two Text", "Cambria Math", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, Consolas, monospace;
  --top-h: 62px;
  --ket-w: 108px;
  --gate-x: 28px;
  --wire-h: 46px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--top-h) + 20px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--void);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

input,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul,
pre,
fieldset {
  margin: 0;
  padding: 0;
}

fieldset {
  min-width: 0;
  border: 0;
}

img,
svg {
  display: block;
}

[hidden],
[data-site-hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.defs {
  position: absolute;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 8px 12px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

.up {
  color: var(--up);
}

.down {
  color: var(--down);
}

.flat {
  color: var(--dim);
}

.mono {
  font-family: var(--mono);
  font-size: 11.5px;
  font-stretch: 85%;
  overflow-wrap: anywhere;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  font-stretch: 87.5%;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.lede {
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
}

.lede b {
  font-weight: 600;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.btn-big {
  min-height: 46px;
  padding: 0 22px;
  font-size: 15px;
}

.btn-solid {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--shadow);
}

.btn-solid:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--shadow);
}

.btn-solid:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--shadow);
}

.btn-line {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.btn-line:hover {
  border-color: var(--gold);
}

.btn[disabled] {
  border-color: var(--line);
  background: var(--panel-2);
  color: var(--dim);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-soft);
  background: var(--void);
}

.top-in {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--top-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
}

.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-self: stretch;
  gap: 4px;
}

.nav a {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

.nav a[aria-current] {
  border-bottom-color: var(--gold);
  color: var(--text);
}

.top-side {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.chip {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 11px;
  font-stretch: 85%;
  text-decoration: none;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--line);
}

.chip b {
  font-weight: 600;
  color: var(--gold);
}

.wallet {
  position: relative;
}

.wallet-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 300px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  box-shadow: 6px 6px 0 var(--shadow);
}

.menu-title {
  font-family: var(--mono);
  font-size: 10px;
  font-stretch: 87.5%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.menu-note {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

.menu-note.is-bad {
  color: var(--down);
}

.menu-note a {
  color: var(--gold);
}

.wallet-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.wallet-list:empty {
  display: none;
}

.wallet-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel-2);
  font-weight: 600;
  text-align: left;
}

.wallet-opt:hover {
  border-color: var(--gold);
}

.wallet-opt img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
}

.menu-address {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-stretch: 82%;
  overflow-wrap: anywhere;
}

.menu-facts {
  margin: 12px 0 14px;
  border-top: 1px solid var(--line-soft);
}

.menu-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}

.menu-facts dt {
  color: var(--muted);
}

.menu-facts dd {
  font-family: var(--mono);
  font-size: 11px;
  font-stretch: 85%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 60px;
  padding-block: 76px 60px;
}

.hero h1 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(38px, 5.1vw, 64px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero h1 em {
  color: var(--gold);
}

.hero .lede {
  margin-top: 22px;
}

.hero .acts {
  margin-top: 30px;
}

.ca {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  width: fit-content;
  margin-top: 30px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: var(--deep);
}

.ca-label {
  flex: none;
  font-family: var(--mono);
  font-size: 9.5px;
  font-stretch: 87.5%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.ca-value {
  min-width: 0;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11.5px;
  font-stretch: 82%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca-copy {
  flex: none;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ca-copy:hover {
  border-color: var(--gold);
}

.ca-copy .when-copied,
.ca-copy[data-copied] .when-idle {
  display: none;
}

.ca-copy[data-copied] .when-copied {
  display: inline;
  color: var(--up);
}

.ca-wait {
  margin-top: 30px;
  padding-left: 12px;
  border-left: 2px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.ca-wait b {
  color: var(--text);
}

.circ {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  box-shadow: 8px 8px 0 var(--deep);
}

.circ-head,
.circ-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 10px;
  font-stretch: 87.5%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.circ-head {
  border-bottom: 1px solid var(--line-soft);
}

.circ-head span:first-child {
  color: var(--muted);
}

.circ-foot {
  border-top: 1px solid var(--line-soft);
  letter-spacing: 0.04em;
  text-transform: none;
}

.circ-foot span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.circ-foot b {
  font-weight: 500;
  color: var(--muted);
}

.circ-rows {
  position: relative;
  padding: 8px 16px;
}

.circ-rows::before {
  content: "";
  position: absolute;
  left: calc(16px + var(--ket-w) + var(--gate-x));
  top: calc(8px + var(--wire-h) / 2);
  bottom: calc(8px + var(--wire-h) / 2);
  width: 1px;
  background: var(--gold);
  transform-origin: top;
  animation: drop 0.7s 0.15s ease-out both;
}

.circ-rows.is-idle::before {
  background: var(--line);
}

.wire {
  display: grid;
  grid-template-columns: var(--ket-w) minmax(0, 1fr) auto;
  align-items: center;
  height: var(--wire-h);
  text-decoration: none;
}

a.wire:hover .ket b,
a.wire:hover .wire-read {
  color: var(--gold);
}

.ket {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11.5px;
  font-stretch: 82%;
  color: var(--dim);
  white-space: nowrap;
}

.ket b {
  font-weight: 500;
  color: var(--text);
}

.wire-line {
  position: relative;
  align-self: stretch;
}

.wire-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--line);
  transform-origin: left;
  animation: run 0.6s ease-out both;
}

.wire-main .wire-line::before {
  background: var(--gold);
}

.wire-open .wire-line::before {
  background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 9px);
}

.wire-open .ket b,
.wire-open .wire-read {
  color: var(--dim);
}

.wire:nth-child(2) .wire-line::before {
  animation-delay: 0.08s;
}

.wire:nth-child(3) .wire-line::before {
  animation-delay: 0.16s;
}

.wire:nth-child(4) .wire-line::before {
  animation-delay: 0.24s;
}

.wire:nth-child(5) .wire-line::before {
  animation-delay: 0.32s;
}

.wire:nth-child(6) .wire-line::before {
  animation-delay: 0.4s;
}

.g-ctrl,
.g-x,
.g-m,
.key-ctrl,
.key-x {
  display: block;
  font-style: normal;
}

.g-ctrl,
.g-x,
.g-m {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.g-ctrl,
.key-ctrl {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
}

.g-ctrl {
  left: var(--gate-x);
}

.g-x,
.key-x {
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 1.5px 100% no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 100% 1.5px no-repeat,
    var(--panel);
}

.g-x {
  left: var(--gate-x);
}

.key-ctrl,
.key-x {
  flex: none;
  transform: scale(0.8);
}

.wire-open .g-x,
.circ-rows.is-idle .g-x {
  border-color: var(--line);
  background: var(--panel);
}

.circ-rows.is-idle .g-ctrl {
  background: var(--line);
}

.circ-rows.is-idle .wire-main .wire-line::before {
  background: var(--line);
}

.g-m {
  left: calc(100% - 26px);
  width: 26px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel-2);
}

.g-m::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  height: 7px;
  border: 1.5px solid var(--dim);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}

.g-m.is-signed {
  border-color: var(--gold);
}

.g-m.is-signed::before {
  border-color: var(--gold);
}

.wire-read {
  min-width: 78px;
  padding-left: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-stretch: 85%;
  text-align: right;
  white-space: nowrap;
}

@keyframes run {
  from {
    transform: scaleX(0);
  }
}

@keyframes drop {
  from {
    transform: scaleY(0);
  }
}

.facts-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line-soft);
}

.facts-row > div {
  padding: 20px 20px 20px 0;
}

.facts-row > div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line-soft);
}

.facts-row dt,
.facts dt,
.card-stats dt,
.label,
.spec dt,
.tbl th,
.bytes-name,
.bytes-axis {
  font-family: var(--mono);
  font-size: 9.5px;
  font-stretch: 87.5%;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.facts-row dd {
  margin-top: 6px;
  font-size: 15px;
}

.facts-row dd b {
  color: var(--gold);
}

.coins {
  padding-block: 56px 90px;
}

.coins-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
}

.coins-head h2,
.page-head h1,
.receipt h2,
.mine h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.coins-head h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 34px;
  line-height: 1.1;
}

.count {
  font-family: var(--mono);
  font-size: 12px;
  font-stretch: 85%;
  letter-spacing: 0;
  color: var(--dim);
}

.tabs,
.sorts {
  display: flex;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
}

.tabs button,
.sorts button {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.tabs button + button,
.sorts button + button {
  border-left: 1px solid var(--line-soft);
}

.tabs button:hover,
.sorts button:hover {
  color: var(--text);
}

.tabs button[aria-selected="true"],
.sorts button[aria-pressed="true"] {
  background: var(--panel-2);
  color: var(--gold);
}

.coins-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 22px;
}

.search {
  flex: 1 1 260px;
  max-width: 400px;
}

.search input,
.vf-form input,
.field input,
.field textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--deep);
  font-size: 14.5px;
}

.search input::placeholder,
.vf-form input::placeholder,
.field input::placeholder,
.field textarea::placeholder {
  color: var(--dim);
}

.search input:focus-visible,
.vf-form input:focus-visible,
.field input:focus-visible,
.field textarea:focus-visible {
  outline-offset: 0;
  border-color: var(--gold);
}

.coins-status {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  font-stretch: 87.5%;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-top: 2px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}

.card.is-signed {
  border-top-color: var(--gold);
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--panel-2);
}

.avatar-blank {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--muted);
}

.card-id {
  flex: 1;
  min-width: 0;
}

.card-name {
  display: block;
  overflow: hidden;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-pair {
  display: flex;
  gap: 6px;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-stretch: 85%;
  color: var(--muted);
}

.card-pair b {
  font-weight: 500;
  color: var(--text);
}

.card-pair i {
  font-style: normal;
  color: var(--dim);
}

.card-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.tag {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 8.5px;
  font-stretch: 87.5%;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--muted);
}

.tag-q {
  border-color: var(--gold);
  color: var(--gold);
}

.card-sig {
  margin-top: 16px;
}

.fringe {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 30px;
}

.fringe i {
  flex: 1;
  min-width: 0;
  height: 30%;
  background: var(--gold);
}

.fringe.is-blank i {
  height: 12%;
  background: var(--line);
}

.card-sigline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-stretch: 85%;
  letter-spacing: 0.04em;
  color: var(--dim);
}

.card-sigline code {
  font: inherit;
  color: var(--muted);
}

.card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.card-stats dd {
  margin-top: 4px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12.5px;
  font-stretch: 85%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-curve {
  margin-top: 16px;
}

.card-curvehead {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9.5px;
  font-stretch: 87.5%;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.bar {
  height: 4px;
  margin-top: 6px;
  background: var(--line-soft);
}

.bar i {
  display: block;
  height: 100%;
  background: var(--gold);
}

.card > :nth-last-child(2) {
  margin-bottom: 16px;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 10px;
  font-stretch: 87.5%;
}

.card-age {
  color: var(--dim);
}

.card-links {
  display: flex;
  gap: 14px;
}

.card-links a,
.mine-links a {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-underline-offset: 3px;
  color: var(--gold);
}

.empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 54px 20px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  color: var(--muted);
  text-align: center;
}

.empty-title {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--text);
}

.empty .btn {
  margin-top: 10px;
}

.page {
  padding-block: 56px 90px;
}

.page-narrow {
  max-width: 820px;
}

.page-head h1 {
  margin-top: 12px;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.08;
}

.page-head .lede {
  margin-top: 14px;
}

.note {
  margin-top: 24px;
  padding: 12px 16px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold);
  border-radius: 3px;
  background: var(--deep);
  font-size: 14.5px;
}

.note.is-bad {
  border-left-color: var(--down);
}

.note.is-quiet {
  border-left-color: var(--dim);
  color: var(--muted);
}

.ln-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  align-items: start;
  gap: 44px;
  margin-top: 32px;
}

.ln-fields {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  gap: 16px;
}

.ln-fields:disabled {
  opacity: 0.55;
}

.field {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  gap: 7px;
  min-width: 0;
}

.field-image {
  grid-row: span 2;
}

.field-wide {
  grid-column: span 4;
}

.field-half {
  grid-column: span 3;
}

.field-full {
  grid-column: 1 / -1;
}

.label i {
  margin-left: 6px;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: none;
  opacity: 0.7;
}

.field textarea {
  flex: 1;
  min-height: 96px;
  resize: vertical;
}

.field small {
  font-size: 12.5px;
  color: var(--muted);
}

.field small.is-bad {
  color: var(--down);
}

.drop {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px dashed var(--line);
  border-radius: 3px;
  background: var(--deep);
  cursor: pointer;
}

.drop:hover,
.drop.is-over {
  border-color: var(--gold);
}

.drop:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.drop-empty svg {
  width: 26px;
  height: 26px;
  color: var(--dim);
}

.drop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drop.has-image {
  border-style: solid;
}

.ln-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 26px;
}

.ln-hint {
  flex: 1;
  min-width: 200px;
  font-size: 13.5px;
  color: var(--muted);
}

.ln-hint.is-bad {
  color: var(--down);
}

.steps,
.seq {
  list-style: none;
  counter-reset: step;
}

.steps {
  margin-top: 26px;
  border-top: 1px solid var(--line-soft);
}

.steps li,
.seq li {
  position: relative;
  counter-increment: step;
}

.steps li {
  display: grid;
  gap: 2px;
  padding: 12px 0 12px 42px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--dim);
}

.steps li::before,
.seq li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  font-family: var(--mono);
  font-stretch: 85%;
  font-weight: 600;
}

.steps li::before {
  top: 13px;
  width: 24px;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.steps b {
  font-size: 14.5px;
}

.steps span {
  font-size: 13px;
}

.steps .is-now {
  color: var(--text);
}

.steps .is-now::before {
  border-color: var(--gold);
  color: var(--gold);
}

.steps .is-now span {
  color: var(--muted);
}

.steps .is-done b,
.steps .is-done::before {
  color: var(--up);
}

.steps .is-done::before {
  border-color: var(--up);
}

.ln-side {
  position: sticky;
  top: calc(var(--top-h) + 24px);
  display: grid;
  gap: 14px;
}

.facts {
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--deep);
}

.facts > div {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
}

.facts > div + div {
  border-top: 1px solid var(--line-soft);
}

.facts dd {
  min-width: 0;
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.facts dd a {
  color: var(--gold);
  text-underline-offset: 3px;
}

.receipt {
  margin-top: 32px;
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 4px;
  background: var(--panel);
}

.receipt h2 {
  margin-top: 10px;
  font-size: 32px;
  line-height: 1.12;
}

.receipt .lede {
  margin-top: 10px;
  font-size: 15.5px;
}

.receipt .facts {
  margin-top: 22px;
}

.receipt .acts {
  margin-top: 22px;
}

.mine {
  margin-top: 48px;
}

.mine h2 {
  font-size: 24px;
}

.mine-rows {
  margin-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.mine-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.mine-id {
  display: grid;
  min-width: 0;
}

.mine-id span {
  font-family: var(--mono);
  font-size: 10.5px;
  font-stretch: 85%;
  color: var(--muted);
}

.mine-links {
  display: flex;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  font-stretch: 87.5%;
}

.mine-wait {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.vf-form {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.vf-form input {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  font-stretch: 85%;
}

.verdict {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--down);
  border-radius: 4px;
  background: var(--panel);
}

.verdict.is-ok {
  border-left-color: var(--up);
}

.verdict-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}

.verdict-head b {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
}

.verdict.is-ok b {
  color: var(--up);
}

.verdict.is-bad b {
  color: var(--down);
}

.verdict-head span {
  color: var(--muted);
}

.checks {
  margin-top: 16px;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}

.check {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}

.check-mark {
  font-family: var(--mono);
  font-size: 9.5px;
  font-stretch: 87.5%;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.check.is-ok .check-mark {
  color: var(--up);
}

.check.is-bad .check-mark {
  color: var(--down);
}

.check-text {
  display: grid;
  gap: 1px;
}

.check-text span {
  font-size: 13px;
  color: var(--muted);
}

#vfOut > .facts,
#vfOut > .acts,
#vfOut > .eyebrow {
  margin-top: 22px;
}

.statement,
.spec pre {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  font-family: var(--mono);
  font-size: 11px;
  font-stretch: 85%;
  line-height: 1.7;
}

.statement {
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--deep);
  color: var(--muted);
}

.docs {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  gap: 60px;
}

.docs-nav {
  position: sticky;
  top: calc(var(--top-h) + 28px);
  display: grid;
  gap: 2px;
  padding-left: 14px;
  border-left: 1px solid var(--line-soft);
}

.docs-nav a {
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
}

.docs-nav a:hover {
  color: var(--gold);
}

.docs-body {
  max-width: 70ch;
}

.docs-body section {
  margin-top: 52px;
}

.docs-body h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.docs-body h3 {
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  font-stretch: 87.5%;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.docs-body .statement {
  margin-top: 16px;
}

.docs-body sup {
  font-size: 0.7em;
  line-height: 0;
}

.docs-body .seq a {
  white-space: nowrap;
}

.docs-body section p,
.docs-body section li {
  font-size: 15.5px;
  color: var(--muted);
}

.docs-body section p {
  margin-top: 14px;
}

.docs-body b {
  font-weight: 600;
  color: var(--text);
}

.docs-body section a {
  color: var(--gold);
  text-underline-offset: 3px;
}

.docs-body code {
  padding: 1px 5px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background: var(--deep);
  font-family: var(--mono);
  font-size: 0.74em;
  font-stretch: 85%;
  color: var(--text);
}

.seq {
  margin-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.seq li {
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid var(--line-soft);
}

.seq li::before {
  top: 15px;
  font-size: 12px;
  color: var(--gold);
}

.plain {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-left: 18px;
}

.spec {
  margin-top: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--deep);
}

.spec > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding: 11px 14px;
}

.spec > div + div {
  border-top: 1px solid var(--line-soft);
}

.spec dd {
  min-width: 0;
  font-size: 14px;
}

.spec pre {
  color: var(--muted);
}

.docs-sheet {
  margin-top: 30px;
}

.docs-body sub {
  font-size: 0.7em;
  line-height: 0;
}

.fig {
  margin: 18px 0 0;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--deep);
}

.fig-scroll,
.tbl-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.fig figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--dim);
}

.fig-art {
  width: 100%;
  min-width: 640px;
  height: auto;
}

.fig-art text {
  font-family: var(--mono);
  font-size: 10px;
  font-stretch: 85%;
  fill: var(--muted);
}

.fig-art .f-mid {
  text-anchor: middle;
}

.fig-art .f-end {
  text-anchor: end;
}

.fig-art .f-head {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  fill: var(--dim);
}

.fig-art .f-ket {
  font-size: 11px;
  fill: var(--text);
}

.fig-art .f-name {
  fill: var(--dim);
}

.fig-art .f-gate {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  fill: var(--text);
}

.fig-art .f-note {
  font-size: 9px;
  fill: var(--dim);
}

.fig-art .f-tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  fill: var(--gold-deep);
}

.fig-art .f-say {
  font-family: var(--sans);
  font-size: 12.5px;
  font-stretch: normal;
}

.fig-art .f-lit {
  fill: var(--text);
}

.fig-art .f-quiet {
  fill: var(--dim);
}

.fig-art .f-rule {
  stroke: var(--line-soft);
}

.fig-art .f-wire {
  stroke: var(--line);
}

.fig-art .f-wire-q {
  stroke: var(--gold);
}

.fig-art .f-wire-off {
  stroke-dasharray: 3 6;
}

.fig-art .f-link {
  stroke: var(--gold);
}

.fig-art .f-dot {
  fill: var(--gold);
}

.fig-art .f-box {
  fill: var(--panel-2);
  stroke: var(--line);
}

.fig-art .f-box-q {
  stroke: var(--gold);
}

.fig-art .f-tri {
  fill: var(--panel);
  stroke: var(--line);
  stroke-linejoin: round;
}

.fig-art .f-seg-a {
  fill: var(--gold);
}

.fig-art .f-seg-b {
  fill: var(--gold-deep);
}

.fig-art .f-seg-c {
  fill: var(--text);
}

.bytes-set {
  display: grid;
  gap: 8px;
  min-width: 600px;
  padding: 16px 14px;
}

.bytes-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.bytes {
  display: flex;
  gap: 1px;
  width: calc(var(--b, 64) / 64 * 100%);
  height: 26px;
  margin-left: calc(var(--o, 0) / 64 * 100%);
}

.bytes-axis,
.grp {
  display: flex;
  gap: 1px;
}

.bytes-axis span,
.grp,
.seg {
  flex: 1 1 0;
  min-width: 2px;
  overflow: hidden;
  white-space: nowrap;
}

.seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 9.5px;
  font-stretch: 85%;
  font-style: normal;
}

.seg-pub {
  background: var(--gold);
  color: var(--ink);
}

.seg-sec {
  background: repeating-linear-gradient(135deg, var(--panel-2) 0 5px, var(--line) 5px 6px);
  color: var(--text);
}

.seg-r {
  background: var(--text);
}

.seg-f {
  background: var(--gold-deep);
}

.seg-h {
  background: var(--gold);
}

.tbl-wrap {
  margin-top: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--deep);
}

.tbl {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.tbl-wide {
  min-width: 680px;
}

.tbl th,
.tbl td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.tbl td {
  color: var(--muted);
}

.tbl tbody tr {
  border-top: 1px solid var(--line-soft);
}

.tbl tbody th {
  padding-top: 13px;
  white-space: nowrap;
}

.tbl tbody td:first-child {
  color: var(--text);
}

.tbl .num {
  font-family: var(--mono);
  font-stretch: 85%;
  text-align: right;
  white-space: nowrap;
}

.tbl td.num {
  font-size: 11.5px;
}

.tbl-wide th,
.tbl-wide td {
  padding-inline: 11px;
}

.tbl-wide td:last-child {
  white-space: nowrap;
}

.foot {
  border-top: 1px solid var(--line-soft);
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding-block: 24px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
}

.foot-brand .brand-mark {
  width: 20px;
  height: 20px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13.5px;
}

.foot-links a {
  color: var(--muted);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--gold);
}

.foot-note {
  flex: 1 1 320px;
  font-size: 12.5px;
  color: var(--dim);
  text-align: right;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-block: 48px 44px;
  }

  .ln-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ln-side {
    position: static;
  }

  .docs {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .docs-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 16px;
  }

  .facts-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts-row > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .facts-row > div:nth-child(n + 3) {
    border-top: 1px solid var(--line-soft);
  }
}

@media (max-width: 720px) {
  :root {
    --top-h: 104px;
    --ket-w: 96px;
    --gate-x: 20px;
  }

  .top-in {
    flex-wrap: wrap;
    gap: 0 16px;
    padding-top: 10px;
  }

  .nav {
    order: 3;
    width: 100%;
    min-height: 44px;
    overflow-x: auto;
  }

  .nav a:first-child {
    padding-left: 0;
  }

  .chip {
    display: none;
  }

  .wallet-menu {
    width: min(300px, 100vw - 40px);
  }

  .ln-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .field,
  .field-wide,
  .field-half,
  .field-full {
    grid-column: 1 / -1;
  }

  .field-image {
    grid-row: auto;
  }

  .drop {
    max-width: 180px;
  }

  .vf-form {
    flex-direction: column;
  }

  .facts > div,
  .spec > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .foot-note {
    text-align: left;
  }
}

@media (max-width: 460px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts-row > div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
