:root {
  color-scheme: light;
  --paper: #f5f7f5;
  --ink: #18362f;
  --muted: #66766f;
  --line: #d4ddd8;
  --accent: #1c6b54;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 "Avenir Next", "PingFang SC", sans-serif; }
header { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding: 22px max(24px, calc((100vw - 1040px) / 2)); }
header a { color: inherit; text-decoration: none; font-size: 20px; font-weight: 650; letter-spacing: -.6px; }
header span, .eyebrow { color: var(--muted); font-size: 12px; }
main { max-width: 1040px; margin: auto; padding: 44px 24px 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.intro, .notice, .full, footer { grid-column: 1 / -1; }
.intro { max-width: 640px; margin-bottom: 8px; }
h1 { margin: 8px 0 14px; font: 500 clamp(34px, 5vw, 48px)/1.2 "Iowan Old Style", "Songti SC", serif; letter-spacing: -1px; }
h2 { margin: 0 0 14px; font-size: 17px; font-weight: 650; }
h3 { margin: 22px 0 8px; font-size: 14px; }
p { margin: 8px 0 16px; color: var(--muted); font-size: 13px; }
section.card, details.card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.notice { margin: 0; padding: 14px 18px; background: #e0eee8; border-radius: 6px; color: var(--ink); overflow-wrap: anywhere; }
dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 20px; }
dt { font-size: 12px; color: var(--muted); }
dd { margin: 0; text-align: right; font-size: 13px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.actions, #wallet-list, #account-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
#account-list button { font: 12px/1.5 "SFMono-Regular", monospace; overflow-wrap: anywhere; text-align: left; }
button { border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #fff; font: inherit; font-size: 13px; padding: 10px 14px; cursor: pointer; }
button.quiet { background: transparent; border-color: var(--line); color: var(--ink); }
button:disabled { opacity: .42; cursor: not-allowed; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #80b8a4; outline-offset: 3px; }
label { display: block; margin: 16px 0 6px; font-size: 12px; color: var(--muted); }
select, input { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; }
input { font-family: "SFMono-Regular", monospace; }
summary { cursor: pointer; font-size: 14px; font-weight: 600; }
pre { margin: 16px 0 0; padding: 16px; background: var(--paper); border-radius: 6px; font: 12px/1.6 "SFMono-Regular", monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 280px; overflow: auto; }
footer { color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; font-size: 12px; }
@media (max-width: 680px) {
  header { padding: 18px; }
  header span { max-width: 120px; text-align: right; }
  main { grid-template-columns: 1fr; padding: 28px 16px; gap: 16px; }
  section.card, details.card { padding: 20px; }
}
