:root { --bg: #0b1016; --panel: #141b23; --panel2: #1c2530; --line: #26323f; --text: #f5f7fa; --muted: #93a2b2; --brand: #f26201; --glow: rgba(242, 98, 1, .34);
  --ok: #38c98a; --warn: #f2b53b; --bad: #ff6b76; color-scheme: dark; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
[data-theme="light"] { --bg: #f2f4f7; --panel: #ffffff; --panel2: #eef1f5; --line: #dde3ea; --text: #101820; --muted: #5d6b79; --glow: rgba(242, 98, 1, .18);
  --ok: #0d8a5a; --warn: #9c6a00; --bad: #c62d3a; color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.4; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
main { display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin: 0 auto; padding: 16px; outline: none; }
h1 { margin: 2px 0 0; font-size: 21px; font-weight: 800; }
h2 { margin: 8px 0 0; font-size: 15px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; } .pad { padding: 40px 12px; } .bad { color: var(--bad); } .ok { color: var(--ok); } .warn { color: var(--warn); }
.num { font-variant-numeric: tabular-nums; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; min-width: 0; }
.hero { position: relative; overflow: hidden; padding: 18px; background: radial-gradient(120% 130% at 100% 0, var(--glow), transparent 58%), radial-gradient(110% 130% at 0 100%, var(--glow), transparent 55%), var(--panel); }
.hero .total { margin-top: 4px; font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.grow { flex: 1; min-width: 0; }
.actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
button { font: inherit; color: inherit; cursor: pointer; }
.action { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 76px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--panel) 84%, transparent); font-size: 13px; font-weight: 600; }
.action img { width: 32px; height: 32px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chip { flex: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-weight: 600; }
.chip[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); }
.list { display: flex; flex-direction: column; margin-top: 10px; }
.item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); min-width: 0; }
.item:first-child { border-top: 0; padding-top: 0; } .item:last-child { padding-bottom: 0; }
.logo { width: 34px; height: 34px; flex: none; border-radius: 50%; }
.icon { width: 34px; height: 34px; flex: none; }
.end { text-align: right; flex: none; max-width: 56%; overflow-wrap: anywhere; }
.title { font-weight: 600; overflow-wrap: anywhere; }
.addr { font: 500 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; color: var(--muted); }
.copy { flex: none; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--panel2); font-size: 13px; font-weight: 600; }
.banner { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--brand); border-radius: 16px; background: var(--panel); padding: 12px 14px; }
.banner.danger { border-color: var(--bad); }
.more { min-height: 44px; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-weight: 600; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 58px; padding: 6px 2px; border: 0; border-radius: 12px; background: none; color: var(--muted); font-size: 12px; font-weight: 600; }
.tab img { width: 28px; height: 28px; opacity: .72; }
.tab[aria-current="page"] { color: var(--text); }
.tab[aria-current="page"] img { opacity: 1; filter: drop-shadow(0 0 7px var(--glow)); }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); max-width: 528px; margin: 0 auto; padding: 11px 14px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); text-align: center; font-weight: 600; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { button { transition: filter .12s; } button:active { filter: brightness(1.2); } }
.more-plain { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; min-height: 52px; }
.chip-logo { display: grid; place-items: center; background: var(--panel2); font-size: 12px; font-weight: 800; color: var(--muted); }
