:root { color-scheme: light; font-family: system-ui, sans-serif; color: #20232b; background: #f7f8fa; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid #186d53; outline-offset: 3px; }
.topbar { border-bottom: 1px solid #dfe2e7; background: #fff; padding: 20px max(20px, calc((100% - 960px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; }
nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav a { padding: 10px 0; }
nav a[aria-current] { color: #186d53; font-weight: 600; }
main { max-width: 960px; margin: auto; padding: 32px 20px; }
.wallet-heading { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
h1 { font-size: 24px; margin: 0 auto 0 0; }
button { width: 44px; height: 44px; border: 1px solid #c5cbd3; border-radius: 6px; background: #fff; font-size: 24px; cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
#status { color: #535d6c; }
#ledger { list-style: none; padding: 0; }
#ledger li { padding: 20px 0; border-bottom: 1px solid #dfe2e7; }
.line, .meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.amount { font-variant-numeric: tabular-nums; color: #a33442; }
.refund .amount { color: #186d53; }
.meta { margin-top: 8px; color: #535d6c; font-size: 13px; }
code { overflow-wrap: anywhere; }
/* Match the video creator's compact header and mobile spacing. */
:root { font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; color: #171b24; letter-spacing: 0; }
:focus-visible { outline: 2px solid #1677ff; outline-offset: 3px; }
.topbar { height: 64px; padding: 0 32px; border: 0; background: transparent; flex-wrap: nowrap; gap: 12px; }
.home-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
.balance { display: flex; align-items: baseline; gap: 6px; color: #606978; font-size: 12px; }
.balance output { color: #1677ff; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
main { width: min(1120px, calc(100% - 48px)); max-width: none; margin: 28px auto 0; padding: 0 0 max(24px, env(safe-area-inset-bottom)); }
.wallet-heading { position: relative; justify-content: center; flex-wrap: nowrap; min-height: 44px; padding: 0 52px; }
h1 { margin: 0; color: #007597; font-size: 36px; line-height: 1.4; text-align: center; }
button { position: absolute; right: 0; border-color: #e6e9ee; border-radius: 8px; color: #606978; }
button svg { width: 18px; height: 18px; display: block; margin: auto; }
#status { margin: 10px 0 18px; color: #687385; text-align: center; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
#ledger { margin: 0; padding: 0 20px; border: 1px solid #e6e9ee; border-radius: 8px; background: #fff; }
#ledger:empty { display: none; }
#ledger li { padding: 18px 0; border-bottom-color: #e6e9ee; }
#ledger li:last-child { border-bottom: 0; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.line strong { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.amount { font-size: 14px; line-height: 1.6; white-space: nowrap; }
.meta { gap: 6px 12px; color: #687385; font-size: 12px; line-height: 1.5; }
code { font-size: 12px; }
@media (max-width: 860px) {
  .topbar { height: 52px; padding: 0 14px; }
  main { width: calc(100% - 24px); margin-top: 12px; }
  h1 { font-size: 24px; }
  #status { font-size: 12px; margin: 8px 0 14px; }
  #ledger { padding: 0 12px; }
  #ledger li { padding: 16px 0; }
}
