/* Pier landing page. Design from the "Pier landing page" canvas; tokens kept as in the design. */
:root {
  --bg: #eef0f3;
  --ink: #0b0c0e;
  --muted: #5d6470;
  --soft: #3a4049;
  --line: #e2e5ea;
  --accent: #1f2de6;
  --accent-dark: #1722b8;
  --code-bg: #0f1115;
  --code-ink: #d4d7dd;
  --ok-bg: #ddf1e6;
  --ok: #11603a;
  --hold-bg: #fbe3d3;
  --hold: #8a2e08;
  --rep-bg: #e3e6fc;
  --rep: #1a23a8;
  --pad: clamp(20px, 5vw, 32px);
  --h2: clamp(32px, 1.3rem + 3.2vw, 64px);
  --lead: clamp(20px, 1.1rem + 0.7vw, 26px);
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Albert Sans", "Helvetica Neue", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  overflow-x: clip;
}
a {
  color: var(--ink);
}
a:hover {
  color: var(--accent);
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
code,
pre {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.muted {
  color: var(--muted);
}

.btn {
  display: inline-block;
  text-decoration: none;
  font: inherit;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  padding: 17px 26px;
  border: 0;
  cursor: pointer;
  transition:
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.18s ease;
}
.btn:hover {
  background-color: var(--accent-dark);
  color: #fff;
}
.btn:active {
  transform: scale(0.97);
}
.btn.small {
  padding: 12px 18px;
}
.lnk {
  text-decoration: none;
  transition: color 0.15s ease;
}

header.top {
  padding: 24px var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 15px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
  text-decoration: none;
}
header.top nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}

section {
  padding: clamp(120px, 14vw, 200px) var(--pad) 0;
}
h2 {
  margin: 0;
  font-weight: 600;
  font-size: var(--h2);
  line-height: 1;
  letter-spacing: -0.035em;
}
h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lead {
  margin: 0;
  font-size: var(--lead);
  line-height: 1.35;
}
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 48px;
  align-items: flex-start;
}
.split > .copy {
  flex: 5 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.split > .panel {
  flex: 7 1 520px;
  min-width: 0;
  max-width: 100%;
}

.points p,
.cols p {
  margin: 0;
}
.points strong,
.cols strong {
  font-weight: 600;
  color: var(--ink);
}

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 40px 24px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--muted);
  align-items: start;
}

/* Hero */
#top {
  padding-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 48px 64px;
  align-items: start;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 24px;
  max-width: 620px;
}
h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(40px, 9.6vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.cta-row span {
  font-size: 16px;
  color: var(--muted);
}

/* UI panels */
.ui {
  background: #fff;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.console-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 16px 20px 14px;
}
.console-head .name {
  font-weight: 600;
  font-size: 15px;
}
.ticker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 190px;
}
.bar {
  display: block;
  width: 100%;
  min-width: 190px;
  height: 4px;
  background: var(--line);
  overflow: hidden;
}
.bar > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: left center;
  transition: transform 0.5s linear;
}
.lane {
  border-top: 1px solid var(--line);
  padding: 14px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  transition: background-color 0.35s ease;
}
.lane.off {
  background: #fff8f4;
}

.target {
  color: var(--soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.switch {
  position: relative;
  width: 44px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  flex: none;
  background: var(--accent);
  transition: background-color 0.25s ease;
}
.switch[aria-checked="false"] {
  background: #b9bfc8;
}
.switch .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #fff;
  transform: translateX(18px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.switch[aria-checked="false"] .knob {
  transform: none;
}

.row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
}
.row > :first-child {
  color: var(--muted);
}
.row > :nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Footer */
footer {
  padding: 96px var(--pad) 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 15px;
  align-items: baseline;
}

/* Motion */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes rowin {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .row.new {
    animation: rowin 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @supports (animation-timeline: view()) {
    .rv {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 45%;
    }
    .rv.d1 {
      animation-range: entry 12% entry 52%;
    }
    .rv.d2 {
      animation-range: entry 19% entry 59%;
    }
    .rv.d3 {
      animation-range: entry 26% entry 66%;
    }
  }
}

/* Live console (T-028): stream toggles and one continuous feed */
.live-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #1a7f4b;
  vertical-align: middle;
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #1a7f4b;
}
/* One row of equal chips: label over count, switch on the right. */
.streams {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 20px 14px;
}
@media (max-width: 560px) {
  .streams {
    grid-template-columns: minmax(0, 1fr);
  }
}
.stream {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 8px 8px 12px;
  border-radius: 6px;
  background: var(--bg);
  font-size: 13px;
  line-height: 1.3;
}
.stream .label {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-right: auto;
}
.stream .label > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stream .tag {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex: none;
}
.stream .count {
  font-size: 12px;
  color: var(--muted);
}
.stream.off {
  background: #fff8f4;
}
.stream.off .count {
  color: var(--hold);
  font-weight: 500;
}
.stream .switch {
  flex: none;
  width: 36px;
  height: 22px;
}
.stream .switch .knob {
  width: 16px;
  height: 16px;
  transform: translateX(14px);
}
.stream .switch[aria-checked="false"] .knob {
  transform: none;
}
.feed {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  height: 448px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.feed li {
  border-bottom: 1px solid #f3f4f6;
}
/* Each row is a button that opens the event (T-070). */
.feed .row {
  display: grid;
  grid-template-columns: 10px 40px 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  width: 100%;
  padding: 7px 20px;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.feed .row:hover {
  background: #f6f7fb;
}
.feed .row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.feed .tag {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  align-self: center;
}
/* Albert Sans has no tabular figures, so numeric columns use the mono face to stay aligned. */
.feed .age,
.feed .pos,
.feed .note {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
}
.feed .what {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed .note {
  white-space: nowrap;
  text-align: right;
}
.feed .note.rep {
  color: var(--rep);
}
@media (max-width: 560px) {
  .feed .row {
    grid-template-columns: 10px 40px minmax(0, 1fr);
  }
  .feed .pos,
  .feed .note {
    display: none;
  }
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(-14px);
    background: #e8eafd;
  }
  to {
    opacity: 1;
    transform: none;
    background: transparent;
  }
}
@keyframes ping {
  75%,
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .feed li.new {
    animation: enter 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .live-dot::after {
    animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
  }
  .bar > span {
    transition: none;
  }
}
fieldset.streams {
  border: 0;
  margin: 0;
  min-width: 0;
}

/* Lean sections after the hero */
section.lean {
  padding-top: clamp(80px, 9vw, 128px);
}
section.lean h2 {
  margin-bottom: 40px;
  font-size: clamp(28px, 1rem + 2.4vw, 48px);
}

.steps p,
.steps code,
.later-line {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  max-width: 60em;
}
.later-line strong {
  color: var(--ink);
  font-weight: 600;
}
section.final {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
section.final h2 {
  margin: 0;
}
section.final p {
  margin: 0;
}

/* Landing v3 (T-058): install line, delivery strip, quickstart tabs, destinations, features, limits, FAQ, footer. */
.eyebrow {
  margin: 0 0 -20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.hero-note {
  margin: -12px 0 0;
  font-size: 15px;
  color: var(--muted);
  max-width: 34em;
}
/* Link to the exchange deposit demo (T-075). */
.hero-demo {
  margin: -20px 0 0;
  max-width: 34em;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--rep-bg);
  font-size: 15px;
  color: var(--soft);
}
.hero-demo .lnk {
  font-weight: 600;
  color: var(--rep);
}
.install {
  display: inline-flex;
  align-items: stretch;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: 6px;
  overflow: hidden;
  font-size: 16px;
}
.install code {
  padding: 14px 18px;
  white-space: nowrap;
  overflow-x: auto;
}
.install code::before {
  content: "$ ";
  color: #7f8794;
}
.install-copy {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  border: 0;
  border-left: 1px solid #262a33;
  background: #171a21;
  color: var(--code-ink);
  padding: 0 16px;
  cursor: pointer;
}
.install-copy:hover {
  background: #20242d;
}
.install-copy[data-done] {
  color: #8be0ad;
}

.strip {
  padding: clamp(56px, 7vw, 88px) var(--pad) 0;
}
.strip-label {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--muted);
}
.strip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.strip-list li {
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 15px;
  font-weight: 500;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  max-width: 46em;
}
section.lean .section-head h2 {
  margin-bottom: 0;
}
.sub {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
}

/* VS Code Dark+ chrome around the Shiki-rendered code (T-066). */
.tabs {
  background: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 0 #2b2b2b inset;
}
.tab-list {
  display: flex;
  gap: 1px;
  padding: 0;
  background: #252526;
  overflow-x: auto;
}
.tab-list button {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #969696;
  background: #2d2d2d;
  border: 0;
  border-top: 1px solid transparent;
  padding: 10px 18px;
  cursor: pointer;
  white-space: nowrap;
}
.tab-list button[aria-selected="true"] {
  color: #fff;
  background: #1e1e1e;
  border-top-color: #3794ff;
}
.tab-panel pre {
  margin: 0;
  padding: 22px 24px;
  font-size: 14px;
  line-height: 1.65;
  overflow-x: auto;
}

.dest-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  align-items: start;
}
.dest-group {
  background: #fff;
  border-radius: 8px;
  padding: 22px 22px 8px;
}
.dest-group h3 {
  margin-bottom: 10px;
}
.dest-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dest-group li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.dest-group .dest-what {
  color: var(--muted);
  font-size: 15px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 36px 32px;
}
.feature-grid h3 {
  margin-bottom: 8px;
}
.feature-grid div p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.table-wrap {
  overflow-x: auto;
}
.limits {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  font-size: 16px;
}
.limits th,
.limits td {
  text-align: left;
  vertical-align: top;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.limits th {
  width: 11em;
  font-weight: 600;
  white-space: nowrap;
}
.limits td {
  color: var(--soft);
}
.limits tr:first-child th,
.limits tr:first-child td {
  border-top: 0;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 52em;
}
.faq details {
  background: #fff;
  border-radius: 8px;
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 500;
  font-size: 17px;
}
.faq details p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 32px;
  padding: 48px var(--pad) 40px;
  margin-top: clamp(80px, 9vw, 128px);
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-cols {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}
.footer-cols div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-cols h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-cols a {
  color: var(--ink);
  text-decoration: none;
}
.footer-cols a:hover {
  color: var(--accent);
}
.footer-copy {
  align-self: end;
}
@media (max-width: 720px) {
  .footer-cols {
    grid-column: auto;
  }
  .install {
    font-size: 14px;
  }
  .limits th,
  .limits td {
    display: block;
    width: auto;
  }
  .limits th {
    padding-bottom: 4px;
  }
  .limits td {
    border-top: 0;
    padding-top: 0;
  }
}

/* 404 page (T-067). */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding: clamp(64px, 12vw, 160px) var(--pad);
  max-width: 1200px;
  margin: 0 auto;
}
.not-found .eyebrow {
  margin: 0 0 -16px;
}

/* Event view (T-070): the whole event in a dialog over the page. JSON colours are VS Code Dark+, like the quickstart. */
.event-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(86vh, 900px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px rgb(11 12 14 / 28%);
}
.event-dialog::backdrop {
  background: rgb(11 12 14 / 45%);
}
.event-dialog[open] {
  display: flex;
  flex-direction: column;
}
.ev-close-form {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
}
.ev-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #f1f2f5;
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ev-close:hover {
  background: #e6e8ee;
}
.ev-body {
  overflow-y: auto;
  padding: 28px 28px 32px;
}
.ev-head {
  padding-right: 40px;
}
.ev-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
}
#ev-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.ev-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.ev-section {
  margin-top: 26px;
}
.ev-body h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ev-grid {
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.ev-grid div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.ev-grid dt {
  color: var(--muted);
  font-size: 14px;
}
.ev-grid dd {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.ev-grid dd.mono,
.ev-code code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
}
.ev-code {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
}
.ev-code code {
  overflow-wrap: anywhere;
}
.ev-copy {
  flex: none;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--soft);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.ev-copy:hover {
  background: #f6f7fb;
}
.ev-topics {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
}
.ev-decoded {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ev-xdr {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.ev-xdr > span:first-child {
  margin-right: 6px;
  font-weight: 600;
}
.ev-json-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.ev-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}
.ev-note code {
  font-size: 13px;
}
.json {
  margin: 0;
  padding: 16px 18px;
  border-radius: 8px;
  background: #1e1e1e;
  color: #d4d4d4;
  font-size: 13px;
  line-height: 1.55;
  overflow: auto;
  max-height: 340px;
}
/* Dark+ inside the JSON block; a light-background variant for values shown inline. */
.json .j-key {
  color: #9cdcfe;
}
.json .j-str {
  color: #ce9178;
}
.json .j-num {
  color: #b5cea8;
}
.json .j-lit {
  color: #569cd6;
}
.ev-decoded .j-key {
  color: #1f5f99;
}
.ev-decoded .j-str {
  color: #a3501c;
}
.ev-decoded .j-num {
  color: #116644;
}
.ev-decoded .j-lit {
  color: #1f2de6;
}
@media (max-width: 560px) {
  .event-dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 92vh;
    margin: auto 0 0;
    border-radius: 12px 12px 0 0;
  }
  .ev-body {
    padding: 22px 16px 28px;
  }
  .ev-grid div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Withdrawal demo (T-071, unlisted page /withdrawal). */
.wd-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--rep-bg);
  color: var(--rep);
  font-size: 13px;
  font-weight: 500;
}
.wd {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) var(--pad) 96px;
}
.wd .small {
  font-size: 14px;
}
.wd-intro h1 {
  font-size: clamp(34px, 1.2rem + 3vw, 56px);
  line-height: 1.02;
}
.wd-intro .lead {
  max-width: 40em;
  margin-top: 16px;
}
.wd-note {
  margin: 0;
}
.wd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 40px;
  align-items: start;
}
.wd-card {
  padding: 28px;
  border-radius: 10px;
  background: #fff;
}
#wd-form-h,
#wd-behind-h {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.wd-card h3 {
  margin: 24px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.wd-exchange-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.wd-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.wd-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.wd-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}
.wd-input {
  display: flex;
  align-items: center;
  border: 1px solid #d4d8df;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.wd-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--rep-bg);
}
.wd-input input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  outline: none;
  font:
    400 16px "JetBrains Mono",
    ui-monospace,
    monospace;
  color: var(--ink);
  background: none;
}
.wd-unit {
  padding: 0 14px;
  color: var(--muted);
}
.wd-address {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f4f5f8;
  font:
    400 14px "JetBrains Mono",
    ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}
.wd-hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.wd-submit {
  justify-self: start;
  border: 0;
  cursor: pointer;
}
.wd-submit:disabled {
  opacity: 0.6;
  cursor: default;
}
.wd-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--hold-bg);
  color: var(--hold);
  font-size: 14px;
}
.wd-steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}
.wd-steps li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
  color: var(--muted);
}
.wd-steps li div {
  display: grid;
  gap: 2px;
}
.wd-steps li strong {
  font-weight: 500;
}
.wd-detail {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.wd-dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  border: 2px solid #c8ccd4;
}
.wd-steps li.now,
.wd-steps li.done {
  color: var(--ink);
}
.wd-steps li.now .wd-dot {
  border-color: var(--accent);
  animation: wd-pulse 1s ease-in-out infinite;
}
.wd-steps li.done .wd-dot {
  border-color: var(--ok);
  background: var(--ok);
}
.wd-steps li[data-step="confirmed"].done strong {
  color: var(--ok);
}
.wd-timer {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--ink);
}
@keyframes wd-pulse {
  50% {
    box-shadow: 0 0 0 5px var(--rep-bg);
  }
}
.wd-result {
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  background: var(--ok-bg);
}
.wd-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.wd-checks li.ok > span {
  color: var(--ok);
  font-weight: 600;
}
.wd-checks li.bad > span {
  color: var(--hold);
}
.wd-checks code {
  font-size: 13px;
}
.wd-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}
.wd-actions .btn {
  border: 0;
  cursor: pointer;
}
.wd-actions .lnk {
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.wd-behind code {
  font-size: 13px;
}
.wd-filter {
  max-height: 260px;
  margin-top: 10px;
}
.wd-live {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.wd-live li {
  border-bottom: 1px solid var(--line);
}
.wd-live li.mine {
  background: var(--ok-bg);
}
.wd-live-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  width: 100%;
  padding: 9px 6px;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.wd-live-row:hover {
  background: #f6f7fb;
}
.wd-live-what {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.wd-live-memo,
.wd-live-ledger {
  font:
    400 12px "JetBrains Mono",
    ui-monospace,
    monospace;
  color: var(--muted);
}
.wd-live-ledger {
  grid-column: 1 / -1;
}
@media (max-width: 860px) {
  .wd-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .wd-card {
    padding: 20px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wd-steps li.now .wd-dot {
    animation: none;
  }
}
/* The withdrawal's path, from the network to this page (T-072). */
.wd-flow {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.wd-flow li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 8px 0 8px 22px;
  font-size: 14px;
}
.wd-flow li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.wd-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 24px;
  bottom: -10px;
  width: 2px;
  background: var(--rep-bg);
}
.wd-flow-note {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.ev-amqp {
  margin-top: 0;
  margin-bottom: 26px;
}
