:root {
  --paper: #f7f8f2;
  --ink: #192c26;
  --muted: #53665e;
  --line: #d5ddd0;
  --green: #163c32;
  --deep: #102f28;
  --lime: #dcec93;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --sans:
    "Inter", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", Arial,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.65 var(--sans);
  font-variant-numeric: tabular-nums;
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #32856b;
  outline-offset: 4px;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1170px, calc(100% - 92px));
  margin: auto;
}
.mast {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.top {
  display: flex;
  align-items: center;
  gap: 19px;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1.8px;
}
.brand img {
  width: 33px;
  height: 33px;
}
.top-sep {
  height: 22px;
  width: 1px;
  background: #aebbae;
}
.product {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
nav {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-left: auto;
}
nav a,
aside a,
.quiet-link,
.footer-row a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
nav a:hover,
.quiet-link:hover,
.footer-row a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.spec-link {
  border: 1px solid #acbbaf;
  border-radius: 5px;
  padding: 7px 12px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 8px;
  top: 8px;
  background: #fff;
  z-index: 9;
  padding: 8px;
}
.hero {
  padding: 65px 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 62px;
  align-items: center;
}
.network {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 600 11px/1.5 var(--mono);
  letter-spacing: 0.12em;
  color: #35634e;
}
.network > span:not(.dot) {
  color: #8a9b8d;
}
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #5e995c;
  border-radius: 50%;
}
h1,
h2,
h3,
h4,
p,
pre,
dl {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  line-height: 1.28;
}
h1 {
  font-weight: 650;
  letter-spacing: -0.05em;
}
.intro h1 {
  font-size: clamp(41px, 5.25vw, 76px);
  margin: 17px 0 18px;
  white-space: nowrap;
}
.intro h1 em {
  font-style: normal;
  color: #54725d;
  font-weight: 500;
}
.lede {
  max-width: 31em;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}
.hero-actions,
.op-tools {
  display: flex;
  gap: 19px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-actions {
  margin-top: 25px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 16px;
  border: 1px solid #a9b8ab;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.button:hover {
  background: #e7eddd;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.primary:hover {
  background: #245640;
}
.terminal {
  background: var(--deep);
  color: #e6eadf;
  border: 1px solid #264338;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px #1d38200c;
}
.term-head,
.sample-head,
.term-foot {
  display: flex;
  align-items: center;
  gap: 10px;
}
.term-head {
  font: 500 13px var(--sans);
  padding: 15px 19px;
  border-bottom: 1px solid #3e584d;
}
.term-head .copy {
  color: #cddaca;
  border-color: #4a6657;
}
.code-mark {
  font-size: 20px;
  line-height: 1;
  color: var(--lime);
}
.copy {
  margin-left: auto;
  color: var(--muted);
  border: 1px solid #b8c4b5;
  padding: 3px 10px;
  border-radius: 4px;
  font: 500 12px var(--sans);
  background: transparent;
}
.copy:hover {
  box-shadow: inset 0 0 0 1px currentColor;
}
.terminal pre {
  padding: 21px 20px 19px;
  overflow: auto;
  font: 12.5px/1.8 var(--mono);
}
.c-verb,
.c-key {
  color: #dcec93;
}
.c-value {
  color: #9bd6ae;
}
.term-foot {
  justify-content: space-between;
  border-top: 1px solid #365448;
  padding: 9px 18px;
  font: 11px/1.6 var(--mono);
  color: #adc3ad;
}
.content {
  border-top: 1px solid #bbc7b9;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 58px;
  align-items: start;
  padding: 43px 0 68px;
}
aside {
  display: grid;
  gap: 4px;
  position: sticky;
  top: 23px;
  padding-top: 2px;
}
.side-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
aside a {
  padding: 7px 10px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  line-height: 1.5;
}
aside a:hover,
aside a.current {
  color: var(--green);
  border-color: #5e815e;
  background: #edf1e4;
}
article {
  max-width: 818px;
  min-width: 0;
}
article section {
  padding: 0 0 32px;
  border-bottom: 1px solid var(--line);
  scroll-margin: 22px;
}
article section + section {
  padding-top: 32px;
}
article h2 {
  font-size: 28px;
  letter-spacing: -0.035em;
}
article h3 {
  font-size: 19px;
  margin: 25px 0 6px;
}
article h4 {
  font-size: 16px;
}
article p {
  color: #40564b;
  margin-top: 10px;
  font-size: 15px;
}
article a {
  color: var(--green);
}
p code,
dd code,
td code {
  background: #e6ecdf;
  border-radius: 3px;
  padding: 2px 4px;
  color: #234a37;
  font: 0.9em var(--mono);
  overflow-wrap: anywhere;
}
.sample {
  background: #f0f3e9;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 15px 0;
  overflow: hidden;
}
.sample-head {
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  color: #3b574a;
  font: 12px/1.5 var(--mono);
}
.sample-head b {
  color: #32634b;
}
.sample pre {
  overflow: auto;
  padding: 14px;
  font: 13px/1.7 var(--mono);
  color: #273e32;
}
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 14px;
}
.mode-grid > div {
  padding: 15px 17px;
}
.mode-grid > div + div {
  border-left: 1px solid var(--line);
}
.mode-grid p {
  font-size: 14px;
}
.rule {
  display: grid;
  grid-template-columns: 102px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.rule-num {
  font-size: 33px;
  font-weight: 600;
  letter-spacing: -0.06em;
  color: #45694e;
  line-height: 1.2;
}
.rule-num small {
  font: 500 12px var(--sans);
}
.rule p {
  margin: 4px 0 0;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 14px;
  text-align: left;
}
th {
  font-size: 12px;
  color: var(--muted);
}
td,
th {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px 8px 0;
  white-space: nowrap;
}
td:first-child,
td:nth-child(2) {
  font-family: var(--mono);
  font-size: 12px;
}
.errors {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  margin: 14px 0 0;
}
.errors dt {
  font-family: var(--mono);
  font-weight: bold;
}
.errors dd {
  margin: 0;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}
.small-brand {
  font-size: 20px;
}
.checkout-shell,
.op-shell {
  width: min(100% - 36px, 535px);
  margin: 38px auto 80px;
}
.checkout-card,
.sign-prompt {
  background: #fcfdf8;
  border: 1px solid var(--line);
  padding: 27px;
  border-radius: 12px;
  box-shadow: 0 4px 20px #234d2607;
}
.receipt-head,
.op-head,
.refresh-row,
.address-label,
.countdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.status-tag {
  background: #e6efd7;
  color: var(--green);
  padding: 4px 9px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
}
.checkout-card h1 {
  font-size: 26px;
  margin: 20px 0 5px;
  overflow-wrap: anywhere;
}
.order-ref {
  font: 12px var(--mono);
  overflow-wrap: anywhere;
  color: var(--muted);
}
.amount-line {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
  padding: 13px 0 2px;
  line-height: 1.2;
}
.amount-line span:first-child {
  font-size: clamp(30px, 7vw, 53px);
  letter-spacing: -0.06em;
  overflow-wrap: anywhere;
}
.amount-line span:last-child {
  color: #50785e;
  font: 600 16px var(--mono);
}
.checkout-message {
  margin: 8px 0 15px;
  color: var(--muted);
}
.qr-box {
  display: flex;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 18px 0;
  padding: 8px;
}
.address-label {
  font-size: 14px;
}
.address-text {
  font: 13px/1.6 var(--mono);
  word-break: break-all;
}
.address-label + .address-text {
  padding: 9px 0 11px;
}
.countdown {
  border-top: 1px solid var(--line);
  padding: 12px 0 6px;
  font-size: 14px;
}
.countdown strong {
  font: 600 17px var(--mono);
}
.subtle,
.refresh-row {
  font-size: 13px;
  color: var(--muted);
}
.summary {
  border-top: 1px solid var(--line);
  margin: 18px 0 15px;
  padding-top: 12px;
}
.summary > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  margin: 5px 0;
  font-size: 14px;
}
.summary dt {
  color: var(--muted);
}
.pool-row {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: min-content minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  padding: .75rem 0;
}
.pool-row .status-tag { white-space: nowrap; }
.pool-row code { font-size: .85rem; overflow-wrap: anywhere; }
.pool-row .button { padding: .35rem .6rem; }
.summary dd {
  text-align: right;
  overflow-wrap: anywhere;
  margin: 0;
  font-weight: 600;
}
.refresh-row {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.quiet-action {
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--green);
  padding: 4px;
  font-size: 14px;
}
.op-shell {
  max-width: 640px;
  width: min(100% - 36px, 640px);
}
.op-head h1 {
  font-size: 36px;
  margin: 6px 0 11px;
}
.op-tools {
  gap: 9px;
  margin: 12px 0;
}
.payout,
.sign-prompt,
.empty-state {
  margin: 16px 0;
}
.payout h2,
.sign-prompt h2 {
  margin: 15px 0;
  font-size: 26px;
}
.sign-prompt {
  border: 2px solid #4f765b;
}
.sign-prompt .button {
  margin: 12px 0 0;
}
.empty-state {
  padding: 24px 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
}
form {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
form label {
  font-weight: 600;
  font-size: 14px;
}
input {
  width: 100%;
  background: white;
  border: 1px solid #8eaa93;
  border-radius: 4px;
  padding: 9px;
}
form .button {
  justify-self: start;
}
.feedback {
  min-height: 1em;
  color: var(--green);
  margin: 13px 0;
  font-weight: 600;
}
@media (max-width: 920px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .hero {
    gap: 28px;
    padding: 44px 0;
  }
  .content {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 26px;
  }
  nav {
    gap: 16px;
  }
  .terminal pre {
    font-size: 11px;
  }
}
@media (max-width: 690px) {
  .wrap {
    width: calc(100% - 34px);
  }
  .top {
    min-height: 59px;
    gap: 9px;
  }
  .brand {
    font-size: 23px;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .top-sep {
    height: 17px;
  }
  .product {
    font-size: 12px;
  }
  nav a:not(.spec-link) {
    display: none;
  }
  .spec-link {
    padding: 4px 7px;
  }
  nav a {
    font-size: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 23px;
    padding: 32px 0;
  }
  .intro h1 {
    font-size: clamp(38px, 9vw, 52px);
    margin: 11px 0;
  }
  .lede {
    font-size: 15px;
  }
  .hero-actions {
    margin-top: 17px;
  }
  .term-head {
    padding: 9px 14px;
  }
  .terminal pre {
    padding: 13px 14px;
    font-size: 12px;
  }
  .content {
    display: block;
    padding-top: 23px;
  }
  .content aside {
    display: none;
  }
  article h2 {
    font-size: 24px;
  }
  .mode-grid {
    grid-template-columns: 1fr;
  }
  .mode-grid > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .checkout-shell,
  .op-shell {
    margin-top: 23px;
  }
  .checkout-card,
  .sign-prompt {
    padding: 18px;
  }
  .rule {
    grid-template-columns: 77px 1fr;
    gap: 8px;
  }
  .rule-num {
    font-size: 25px;
  }
  .receipt-head {
    align-items: start;
  }
  .summary > div {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
