/* 地址查 — 白卡片 · 薄荷绿
   Content sits on opaque white cards; the mint ribbons live only in the page background, behind everything.
   Change the look here: the tokens below are the whole palette (light, then dark). */
:root {
  --bg: #e9efeb;  --surface: #ffffff;  --tone: #f2f6f3;  --active: #e6ece8;
  --border: #d9e3dd;  --rule: #ebf0ec;  --control: #c8d3cc;
  --ink: #111412;  --muted: #555d58;  --faint: #68706b;
  --primary: #151917;  --on-primary: #ffffff;
  --accent: #1a8a6a;  --accent-ink: #0f6b51;  --accent-tint: #e1f3ea;
  --pos: #0b7a55;  --neg: #c4242a;  --warn: #8a4b07;
  --pos-bg: #ddf3e8;  --pos-ink: #064431;
  --neg-bg: #ffedea;  --neg-ink: #831c1e;
  --warn-bg: #fff6e0;  --warn-ink: #8a4b07;
  --skeleton: #e8ece9;
  --nav-bg: rgba(233, 239, 235, .82);
  --card-shadow: 0 1px 2px rgba(16, 48, 34, .05), 0 10px 28px -16px rgba(16, 48, 34, .22);
  --scroll-shade: rgba(16, 48, 34, .14);
  --float: 0 12px 32px rgba(17, 20, 18, .14), 0 2px 6px rgba(17, 20, 18, .06);
  /* ribbons */
  --rb-1: #8edbb9; --rb-2: #bdeed7; --rb-3: #4fbf93; --rb-op: .85;

  --r-card: 16px; --r-ctl: 10px;
  --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080a09;  --surface: #151916;  --tone: #1c201d;  --active: #252a26;
    --border: #29302b;  --rule: #1f2420;  --control: #3d443f;
    --ink: #f2f5f3;  --muted: #b1b9b3;  --faint: #939b95;
    --primary: #f2f5f3;  --on-primary: #0b0d0c;
    --accent: #34b98f;  --accent-ink: #55d3a9;  --accent-tint: #13271f;
    --pos: #55d3a9;  --neg: #f06a72;  --warn: #f0c16a;
    --pos-bg: #13271f;  --pos-ink: #55d3a9;  --neg-bg: #2c1719;  --neg-ink: #f59aa0;  --warn-bg: #2a2110;  --warn-ink: #f0c16a;
    --skeleton: #1f2420;  --nav-bg: rgba(8, 10, 9, .8);
    --card-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -16px rgba(0, 0, 0, .7);
    --scroll-shade: rgba(0, 0, 0, .55);
    --float: 0 12px 32px rgba(0, 0, 0, .5), 0 0 0 1px #2a302b;
    --rb-1: #1f7a5c; --rb-2: #134a39; --rb-3: #2fa37c; --rb-op: .5;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #080a09;  --surface: #151916;  --tone: #1c201d;  --active: #252a26;
  --border: #29302b;  --rule: #1f2420;  --control: #3d443f;
  --ink: #f2f5f3;  --muted: #b1b9b3;  --faint: #939b95;
  --primary: #f2f5f3;  --on-primary: #0b0d0c;
  --accent: #34b98f;  --accent-ink: #55d3a9;  --accent-tint: #13271f;
  --pos: #55d3a9;  --neg: #f06a72;  --warn: #f0c16a;
  --pos-bg: #13271f;  --pos-ink: #55d3a9;  --neg-bg: #2c1719;  --neg-ink: #f59aa0;  --warn-bg: #2a2110;  --warn-ink: #f0c16a;
  --skeleton: #1f2420;  --nav-bg: rgba(8, 10, 9, .8);
    --card-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -16px rgba(0, 0, 0, .7);
    --scroll-shade: rgba(0, 0, 0, .55);
  --float: 0 12px 32px rgba(0, 0, 0, .5), 0 0 0 1px #2a302b;
  --rb-1: #1f7a5c; --rb-2: #134a39; --rb-3: #2fa37c; --rb-op: .5;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--ink); font: 400 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; transition: color .3s var(--ease); }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); letter-spacing: -.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -48px; z-index: 50; background: var(--primary); color: var(--on-primary); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-tint); color: var(--ink); }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
svg.i { width: 16px; height: 16px; flex: none; }

/* ---------------- mint ribbons (background only) ---------------- */
.ribbons { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: var(--rb-op); transition: opacity .4s var(--ease); }
.ribbons svg { position: absolute; display: block; }
.ribbons .rb-top { top: -140px; right: -220px; width: min(1100px, 95vw); height: auto; animation: driftA 38s ease-in-out infinite alternate; }
.ribbons .rb-bottom { bottom: -220px; left: -260px; width: min(1000px, 92vw); height: auto; animation: driftB 44s ease-in-out infinite alternate; }
@keyframes driftA { to { transform: translate3d(-40px, 26px, 0) rotate(-2deg); } }
@keyframes driftB { to { transform: translate3d(36px, -22px, 0) rotate(2deg); } }
.stop-1 { stop-color: var(--rb-1); } .stop-2 { stop-color: var(--rb-2); } .stop-3 { stop-color: var(--rb-3); }
.nav, main { position: relative; z-index: 1; }

/* ---------------- primitives ---------------- */
.raised { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--card-shadow); }
.btn {
  height: 38px; padding: 0 15px; border: 1px solid var(--control); border-radius: var(--r-ctl); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 500; font-size: 14px; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .12s var(--ease), opacity .15s;
}
.btn:hover { background: var(--tone); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 600; }
.btn.primary:hover { opacity: .9; background: var(--primary); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.icon { width: 38px; padding: 0; }
.field { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: var(--r-ctl); background: var(--surface); border: 1px solid var(--border); transition: border-color .15s, box-shadow .15s; }
.field input, .field select { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; }
.field input::placeholder { color: var(--faint); font-family: var(--font); }
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.field.invalid { border-color: var(--neg); box-shadow: 0 0 0 3px var(--neg-bg); }
.label { display: block; font-size: 12px; color: var(--muted); margin: 0 0 6px 2px; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; flex: none; background: var(--tone); color: var(--muted); }
.pill.in, .pill.ok { background: var(--pos-bg); color: var(--pos-ink); }
.pill.out, .pill.bad { background: var(--neg-bg); color: var(--neg-ink); }
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); }
.chip { height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-weight: 500; font-size: 13px; color: var(--muted); white-space: nowrap; flex: none; transition: border-color .15s, color .15s, background .15s, transform .12s var(--ease); }
.chip:hover { color: var(--ink); border-color: var(--control); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid var(--control); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); font: 500 11px var(--mono); color: var(--muted); }
.sk { display: inline-block; border-radius: 6px; background: var(--skeleton); color: transparent !important; animation: pulse 1.4s ease-in-out infinite; vertical-align: middle; }
@keyframes pulse { 50% { opacity: .55; } }
.view-in { animation: viewIn .35s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--active); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------------- nav ---------------- */
.nav { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); transition: box-shadow .2s; }
.nav.scrolled { box-shadow: 0 1px 0 var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; flex: none; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }
.brand-logo { height: 34px; width: auto; display: block; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px; color: var(--muted); font-weight: 500; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--active); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--active); }
.nav-links a svg { width: 15px; height: 15px; }
.nav-links a.hot svg { color: var(--accent); }
.nav .grow { flex: 1; }
.nav-search { width: 360px; height: 38px; }
.nav-search input { font-family: var(--mono); font-size: 13px; }

/* ---------------- flash strip ---------------- */
.flash { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px; margin: 4px 0 24px; }
.flash .bolt { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); flex: none; }
.flash .bolt svg { width: 19px; height: 19px; }
.flash .t b { font-size: 15px; }
.flash .t p { font-size: 13px; color: var(--muted); }
.flash .addr { margin-left: auto; font: 500 13px var(--mono); padding: 8px 12px; border-radius: 9px; background: var(--tone); white-space: nowrap; }
.flash .acts { display: flex; gap: 8px; flex: none; }
.flash .t + .acts { margin-left: auto; }
.frac { font-size: .86em; font-weight: 500; opacity: .62; }

/* ---------------- home ---------------- */
.hero { max-width: 780px; margin: 0 auto; padding: 60px 0 48px; text-align: center; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.04; letter-spacing: -.035em; }
.hero p { margin: 18px auto 0; max-width: 34em; font-size: 17px; line-height: 1.6; color: var(--muted); }
.search { margin-top: 38px; text-align: left; }
.search .field { height: 62px; padding: 0 8px 0 18px; border-radius: 16px; box-shadow: 0 1px 2px rgba(17, 20, 18, .04); }
.search .field:focus-within { box-shadow: 0 0 0 4px var(--accent-tint); }
.search .field input { font: 400 15px var(--mono); }
.search .field input::placeholder { font-size: 15px; }
.search .btn.primary { height: 46px; padding: 0 24px; border-radius: 11px; }
.net { display: none; flex: none; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; align-items: center; gap: 5px; background: var(--tone); color: var(--muted); }
.net.on { display: inline-flex; animation: pop .25s var(--ease); }
.net.ok { background: var(--pos-bg); color: var(--pos-ink); }
.net.bad { background: var(--neg-bg); color: var(--neg-ink); }
.net svg { width: 12px; height: 12px; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.field.shake { animation: shake .36s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.hint { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; min-height: 22px; }
.hint.err { color: var(--neg); }
.recent { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.recent > span { font-size: 13px; color: var(--muted); margin-right: 4px; }
.recent a { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font: 400 13px var(--mono); transition: border-color .15s, transform .12s var(--ease); }
.recent a:hover { border-color: var(--control); }
.recent a:active { transform: scale(.97); }
.recent .dot { width: 9px; height: 9px; border-radius: 50%; }
.recent .btn { height: 34px; border-radius: 999px; }
.rates { padding: 20px 22px 8px; }
.rates-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.rates-head h2 { font-size: 16px; }
.rates-head p { font-size: 13px; color: var(--muted); }
.ticker { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); margin: 6px 0 8px; }
.ticker li { padding: 12px 14px 14px; border-left: 1px solid var(--rule); }
.ticker li:first-child { border-left: 0; padding-left: 0; }
.ticker .sym { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ticker .px { margin-top: 4px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.ticker .chg { font-size: 12px; font-weight: 500; color: var(--faint); }
.ticker .chg.up { color: var(--pos); }
.ticker .chg.down { color: var(--neg); }
.flashy { animation: flashy 1s var(--ease); }
@keyframes flashy { 0% { background: var(--accent-tint); } }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 22px 0 80px; }
.fact { padding: 22px; }
.fact .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-tint); display: grid; place-items: center; color: var(--accent); margin-bottom: 14px; }
.fact .ic svg { width: 18px; height: 18px; }
.fact h2 { font-size: 17px; }
.fact p { margin-top: 8px; font-size: 14px; line-height: 1.7; }

/* ---------------- address page (dizhicha layout) ---------------- */
.r-head { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 22px; padding: 24px; }
.kicker { display: flex; align-items: center; gap: 10px; color: var(--accent-ink); font-size: 12px; font-weight: 700; letter-spacing: .04em; flex-wrap: wrap; }
.kicker .chain { width: 30px; height: 30px; border-radius: 9px; background: var(--tone); display: grid; place-items: center; color: #c23631; }
.kicker .chain svg { width: 16px; height: 16px; }
.r-head h1 { margin: 12px 0 16px; font: 600 clamp(18px, 2.3vw, 28px)/1.3 var(--mono); letter-spacing: -.02em; word-break: break-all; }
.tiles { display: flex; gap: 12px; flex-wrap: wrap; }
.tile { padding: 10px 14px; border-radius: 12px; background: var(--tone); min-width: 150px; }
.tile span { display: block; font-size: 12px; color: var(--muted); }
.tile b { font-weight: 700; font-size: 15px; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.qr-card { padding: 16px; border-radius: 14px; background: var(--tone); text-align: center; align-self: start; }
.qr-card b { display: block; font-size: 14px; }
.qr-card span { font-size: 12px; color: var(--muted); }
.qr-card .qr { width: 150px; height: 150px; margin: 12px auto 0; padding: 10px; border-radius: 12px; background: #fff; }
.qr svg, .qr img { width: 100%; height: 100%; display: block; }

.alerts { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.alerts:empty { display: none; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; background: var(--neg-bg); color: var(--neg-ink); }
.alert.warn { background: var(--warn-bg); color: var(--warn-ink); }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.alert b { font-weight: 600; }

.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; align-items: start; }
.three > * { min-width: 0; }
.panel { padding: 20px 22px; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; min-height: 24px; }
.panel-h h2 { font-size: 16px; font-weight: 700; }
.panel-h .meta { font-size: 12px; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.big-l { font-size: 12px; color: var(--muted); }
.big { font-size: 36px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin: 2px 0; }
.kv { margin-top: 12px; }
.kv > div { padding: 10px 0; border-top: 1px solid var(--rule); font-size: 13px; }
.kv .r { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kv .r > span:first-child { color: var(--muted); }
.kv b { font-weight: 600; }
.kv .key > span:first-child { color: var(--ink); font-weight: 600; }
.kv .key b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.kv .r b { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.gauge { height: 6px; border-radius: 99px; background: var(--tone); margin-top: 7px; overflow: hidden; }
.gauge i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transform-origin: left; animation: grow .8s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
a.link { color: var(--accent-ink); font-weight: 600; }
.tok { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); }
.tok:first-child { border-top: 0; }
.tok .nm { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tok .nm .pill { height: 18px; font-size: 11px; padding: 0 7px; }
.tok .ct { font: 400 11px var(--mono); color: var(--faint); background: none; border: 0; padding: 0; text-align: left; }
.tok .ct:hover { color: var(--accent-ink); }
.tok .v { text-align: right; font-weight: 700; font-size: 15px; }
.tok .u { text-align: right; font-size: 12px; color: var(--faint); }
/* all tokens, scrolling inside the card; shadows at the edges say there is more */
.tok-scroll {
  max-height: 452px; overflow-y: auto; overscroll-behavior: contain; margin: 0 -8px; padding: 0 8px; scrollbar-width: thin;
  background:
    linear-gradient(var(--surface) 30%, transparent) top / 100% 28px no-repeat local,
    linear-gradient(transparent, var(--surface) 70%) bottom / 100% 28px no-repeat local,
    radial-gradient(farthest-side at 50% 0, var(--scroll-shade), transparent) top / 100% 12px no-repeat scroll,
    radial-gradient(farthest-side at 50% 100%, var(--scroll-shade), transparent) bottom / 100% 12px no-repeat scroll;
}
.tok-scroll::-webkit-scrollbar { width: 6px; }
.tok-scroll::-webkit-scrollbar-thumb { background: var(--control); border-radius: 6px; }
.tok.unpriced .nm, .tok.unpriced .v { color: var(--muted); font-weight: 600; }
.tok.unpriced .ticon { opacity: .75; }
.tok-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); }
.ticon { width: 32px; height: 32px; border-radius: 50%; background: var(--tone); display: grid; place-items: center; font: 700 12px var(--font); flex: none; overflow: hidden; }
.ticon img { width: 100%; height: 100%; object-fit: cover; }
.ticon.sm { width: 22px; height: 22px; font-size: 10px; }
.fold { margin-top: 6px; border-top: 1px solid var(--rule); }
.fold summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0 4px; font-size: 13px; color: var(--muted); }
.fold summary::-webkit-details-marker { display: none; }
.fold summary svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.fold[open] summary svg { transform: rotate(180deg); }
.fold ul { max-height: 280px; overflow: auto; margin-top: 6px; }
.fold li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 13px; color: var(--muted); }
.fold li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-well { padding: 12px 14px; border-radius: 10px; background: var(--tone); font-size: 13px; color: var(--muted); }
.perm-name { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.perm-name + .perm-key { margin-top: 8px; }
.perm-key + .perm-name { margin-top: 14px; }
.perm-key { padding: 8px 12px; border-radius: 10px; background: var(--tone); display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.perm-key + .perm-key { margin-top: 6px; }

/* transfers */
.tx { margin-top: 18px; padding: 22px; }
.tx .panel-h h2 { font-size: 18px; font-weight: 700; }
.tx .panel-h .acts { margin: 0; gap: 10px; align-items: center; }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; margin-top: 4px; }
.filters > div { min-width: 0; }
.filters .field { height: 40px; padding: 0 12px; }
.filters .field input { font-size: 13px; }
.filters .field input.mono { font-size: 12px; }
.filters .f-acts { display: flex; gap: 10px; align-items: flex-end; }
.filters .f-acts .btn { flex: 1; height: 40px; }
.quick { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 6px; margin-top: 14px; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.cp-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--tone); font-size: 13px; animation: viewIn .25s var(--ease); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; border-radius: 12px; background: var(--tone); border: 1px solid var(--rule); }
.stat { padding: 12px 16px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat span { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat b { display: block; font-size: 22px; font-weight: 700; margin: 2px 0; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat small { font-size: 12px; color: var(--faint); }
.stat .pos { color: var(--pos); } .stat .neg { color: var(--neg); }
.byToken { margin-top: 10px; font-size: 13px; color: var(--muted); display: flex; gap: 6px 18px; flex-wrap: wrap; }
.byToken:empty { display: none; }
.table-well { margin-top: 10px; overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; min-width: 960px; }
.t th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 12px 8px 10px; white-space: nowrap; border-bottom: 1px solid var(--border); }
.t th.r, .t td.r { text-align: right; }
.t td { padding: 0 8px; height: 50px; border-top: 1px solid var(--rule); white-space: nowrap; font-size: 13px; }
.t tbody tr { transition: background .12s; animation: rowIn .3s var(--ease) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(4px); } }
.t tbody tr:hover { background: var(--tone); }
.t tbody tr.risk { background: color-mix(in srgb, var(--neg-bg) 55%, transparent); }
.t td .amt { font-weight: 700; font-size: 15px; }
.t td .amt.in { color: var(--pos); }
.t td .amt.out { color: var(--neg); }
.t td .coin { display: inline-flex; align-items: center; gap: 8px; }
.t td .coin small { display: block; font-size: 11px; color: var(--faint); line-height: 1.2; }
.t td .coin.fake b { color: var(--neg); }
.hash { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; margin: -5px -7px; border-radius: 7px; font: 400 12px var(--mono); color: var(--muted); transition: background .12s, color .12s; }
.hash:hover { background: var(--active); color: var(--ink); }
.hash svg { width: 12px; height: 12px; }
.t td.c-cp { display: none; }
.pager { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.pager .info { margin-right: auto; font-size: 13px; color: var(--muted); }
.pager .on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); min-width: 36px; opacity: 1; }
.pager .field { height: 34px; padding: 0 10px; border-radius: 9px; }
.pager select { font-size: 13px; }
.err-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--tone); font-size: 14px; white-space: normal; }
.empty-row { padding: 28px 10px; text-align: center; color: var(--muted); white-space: normal; }

/* address token (counterparty) */
.at { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 3px 7px 3px 4px; margin: -3px -7px -3px -4px; border: 0; border-radius: 7px; background: transparent; font: 400 12.5px var(--mono); white-space: nowrap; transition: background .12s; }
.at:hover { background: var(--active); }
.at .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.at .k { font-weight: 600; }
.at .m { color: var(--faint); }
.at.self { color: var(--muted); }
.at.self .k { font-weight: 400; }
.at.risk { box-shadow: inset 0 0 0 1px var(--neg); }
.flag { margin-left: 6px; font: 500 11px var(--font); color: var(--neg-ink); background: var(--neg-bg); padding: 3px 6px; border-radius: 5px; }

.evm-total { padding: 22px; margin-top: 18px; }

/* ---------------- energy page ---------------- */
.page-h { padding: 18px 0 24px; }
.page-h h1 { font-size: 30px; letter-spacing: -.025em; }
.page-h p { margin-top: 8px; font-size: 15px; color: var(--muted); max-width: 40em; }
.energy { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; margin-bottom: 80px; align-items: start; }
.price-rows { border-radius: 12px; background: var(--tone); padding: 2px 16px; }
.price-rows .row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 10px; padding: 13px 0; border-top: 1px solid var(--bg); font-size: 14px; align-items: center; }
.price-rows .row:first-child { border-top: 0; color: var(--muted); font-size: 12px; }
.price-rows .row b { font-size: 17px; }
.price-rows .row .r { text-align: right; }
.steps { margin-top: 20px; counter-reset: s; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.steps li::before { counter-increment: s; content: counter(s); width: 32px; height: 32px; border-radius: 10px; background: var(--accent-tint); display: grid; place-items: center; font-weight: 700; color: var(--accent-ink); }
.steps b { display: block; font-size: 14px; }
.steps span { font-size: 13px; color: var(--muted); }
.pay { text-align: center; }
.pay .qr { width: 190px; height: 190px; margin: 4px auto 0; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--border); }
.pay .addr { margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: var(--tone); font: 500 14px var(--mono); word-break: break-all; }
.pay .addr .key { color: var(--accent-ink); font-weight: 600; }
.pay .btn { width: 100%; margin-top: 12px; height: 46px; }
.rules { margin-top: 20px; display: grid; gap: 12px; text-align: left; }
.rules li { padding-left: 16px; position: relative; font-size: 13px; line-height: 1.65; }
.rules li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.rules li.bad::before { background: var(--neg); }
.rules li.bad b { color: var(--neg); }

/* ---------------- floating ---------------- */
.menu { position: fixed; z-index: 40; min-width: 220px; padding: 6px; border-radius: 12px; background: var(--surface); box-shadow: var(--float); transform-origin: top left; animation: menuIn .16s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.menu .mh { padding: 8px 10px 6px; font: 400 11px/1.5 var(--mono); color: var(--muted); word-break: break-all; max-width: 280px; }
.menu .mh.bad { color: var(--neg); font-family: var(--font); }
.menu button, .menu a { display: flex; width: 100%; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: 14px; }
.menu button:hover, .menu a:hover, .menu button:focus-visible, .menu a:focus-visible { background: var(--active); outline: 0; }
.menu svg { width: 16px; height: 16px; color: var(--muted); }
.menu hr { border: 0; border-top: 1px solid var(--rule); margin: 4px 0; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 500; box-shadow: var(--float); transition: opacity .2s var(--ease), transform .25s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 16px; height: 16px; }

/* ---------------- responsive ---------------- */
@media (max-width: 1100px) {
  .three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .three > :last-child { grid-column: 1 / -1; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .ticker { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ticker li:nth-child(5) { border-left: 0; padding-left: 0; }
  .ticker li:nth-child(n+5) { border-top: 1px solid var(--rule); }
  .nav-search { width: 260px; }
  .energy { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav .wrap { height: 60px; gap: 10px; }
  .brand > span:not(.brand-mark) { display: none; }
  .nav-links a { padding: 7px 9px; font-size: 13px; }
  .nav-links a:not(.hot):not([aria-current="page"]) { display: none; }
  .nav-search { width: auto; flex: 1; height: 38px; }
  .nav-search .kbd { display: none; }
  .nav .grow { display: none; }

  .ribbons .rb-top { width: 190vw; top: -30px; right: -95vw; }
  .ribbons .rb-bottom { width: 200vw; bottom: -120px; left: -90vw; }
  .flash { flex-wrap: wrap; gap: 12px; }
  .flash .t { flex: 1 1 200px; }
  .flash .addr { margin-left: 0; flex: 1 1 100%; overflow: hidden; text-overflow: ellipsis; }
  .flash .acts { flex: 1 1 100%; }
  .flash .acts .btn { flex: 1; }
  .hero { padding: 30px 0 32px; }
  .hero p { font-size: 15px; }
  .search .field { flex-wrap: wrap; height: auto; padding: 8px; gap: 8px; }
  .search .field input { flex: 1 1 100%; order: -1; height: 46px; padding: 0 8px; font-size: 14px; }
  .search .field .net { margin-left: 6px; }
  .search .field .btn.sm { margin-left: auto; height: 44px; }
  .search .field .btn.primary { flex: 1; }
  .ticker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticker li { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--rule); }
  .ticker li:nth-child(even) { padding-left: 14px !important; border-left: 1px solid var(--rule) !important; }
  .ticker li:nth-child(-n+2) { border-top: 0; }
  .facts { grid-template-columns: 1fr; gap: 14px; }
  .r-head { grid-template-columns: 1fr; padding: 18px; }
  .qr-card { display: none; }
  .tile { min-width: 0; flex: 1 1 140px; }
  .acts .btn { flex: 1 1 calc(50% - 4px); }
  .three { grid-template-columns: 1fr; gap: 14px; }
  .stack { gap: 14px; }
  .panel, .tx { padding: 18px; }
  .filters { gap: 12px; }
  .filters > .f-time, .filters > .f-contract { grid-column: 1 / -1; }
  .stat b { font-size: 17px; }
  .tx .panel-h { flex-wrap: wrap; }
  /* table → two-line rows: counterparty + amount, then time + hash */
  .table-well { overflow: visible; }
  table.t, .t tbody { display: block; min-width: 0; }
  .t thead { display: none; }
  .t tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 11px 0; border-top: 1px solid var(--rule); }
  .t tbody tr:first-child { border-top: 0; }
  .t td { display: none; height: auto; padding: 0; border: 0; }
  .t td.c-cp { display: block; grid-column: 1; order: 1; overflow: hidden; }
  .t td.c-amt { display: block; grid-column: 2; order: 2; text-align: right; }
  .t td.c-time { display: block; grid-column: 1; order: 3; font-size: 12px; color: var(--muted); }
  .t td.c-hash { display: block; grid-column: 2; order: 4; text-align: right; }
  .t td.c-hash .hash { padding: 0; margin: 0; font-size: 11px; }
  .t .empty-row, .t .loading td { display: block; }
  .pager .info { flex: 1 1 100%; }
  .energy { gap: 14px; }
  .price-rows .row { grid-template-columns: .8fr 1fr 1.2fr .8fr; font-size: 13px; }
  .page-h h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------------- hero rotating word ----------------
   "USDT" stays; the word in the mint box cycles. Characters rise in one by one (last first) with a small
   overshoot, the old word leaves upwards, and the box eases to the new width. */
:root { --rot-bg: linear-gradient(120deg, #c8f1de 0%, #9fe3c6 55%, #7fd6b2 100%); --rot-ink: #0b4d3a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --rot-bg: linear-gradient(120deg, #16523f 0%, #1f7a5c 55%, #2b9b75 100%); --rot-ink: #effff8; } }
:root[data-theme="dark"] { --rot-bg: linear-gradient(120deg, #16523f 0%, #1f7a5c 55%, #2b9b75 100%); --rot-ink: #effff8; }
.rot-title { display: flex; justify-content: center; align-items: center; gap: .24em; flex-wrap: wrap; font-weight: 800; }
.rot { position: relative; display: inline-grid; justify-items: center; align-items: center; overflow: hidden; padding: .1em .3em .12em; border-radius: .18em; background: var(--rot-bg); color: var(--rot-ink); box-shadow: 0 10px 30px -12px rgba(26, 138, 106, .45); transition: width .6s cubic-bezier(.34, 1.4, .64, 1); }
.rot-word { grid-area: 1 / 1; display: inline-flex; white-space: nowrap; }
.rot-ch { display: inline-block; transform: translateY(105%); opacity: 0; will-change: transform; }
.rot-word.in .rot-ch { transform: none; opacity: 1; transition: transform .62s cubic-bezier(.34, 1.45, .64, 1) var(--d, 0ms), opacity .2s linear var(--d, 0ms); }
.rot-word.out .rot-ch { transform: translateY(-120%); opacity: 0; transition: transform .34s cubic-bezier(.55, 0, .7, .3) var(--d, 0ms), opacity .22s ease-in var(--d, 0ms); }
.rot-word.static .rot-ch { transform: none; opacity: 1; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .rot { transition: none; }
  .rot-word.in .rot-ch, .rot-word.out .rot-ch { transform: none; transition: opacity .3s linear; }
  .rot-word.out .rot-ch { opacity: 0; }
}
.tok .nm { flex-wrap: nowrap; min-width: 0; }
.tok .nm .tn, .tok .nm > :first-child:not(.pill) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nav-links { flex: none; }
.nav-links a { white-space: nowrap; }
.nav-search { min-width: 0; }
@media (max-width: 760px) { .nav .wrap { gap: 8px; } .nav-links a { padding: 7px 6px; } }
/* token logos: the letter sits underneath; a detected logo covers it once loaded */
.ticon { position: relative; }
.ticon img { position: absolute; inset: 0; background: var(--surface); }

/* the overview, token and permission cards share one height: the overview card sets it,
   the token list fills what is left and scrolls, the approvals card stretches to the bottom */
.three { align-items: stretch; }
.three > .stack > .raised:last-child { flex: 1; }
.tok-panel { display: flex; flex-direction: column; height: 0; min-height: 100%; }
.tok-panel .tok-scroll { flex: 1 1 auto; min-height: 160px; max-height: none; }
@media (max-width: 760px) {
  .tok-panel { height: auto; min-height: 0; }
  .tok-panel .tok-scroll { flex: none; max-height: 452px; }
}

/* energy page: delivery speed and delivery tracking */
.page-h .speed { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--ink); font-weight: 500; }
.page-h .speed svg { width: 14px; height: 14px; color: var(--accent); }
.energy .track { grid-column: 1 / -1; }
.track-form { display: flex; gap: 10px; }
.track-form .field { flex: 1; min-width: 0; }
.track-form .field input { font-size: 13px; }
.track-form .btn { height: 44px; padding: 0 22px; }
.track-hint { margin-top: 10px; font-size: 13px; color: var(--muted); }
.pays { margin-top: 12px; display: grid; gap: 10px; }
.pays > li { padding: 12px 14px; border-radius: 12px; background: var(--tone); border: 1px solid var(--rule); }
.pays > li.empty-well { border: 0; }
.pay-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; }
.pay-sub { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); align-items: center; }
.pay-sub .hash { margin: 0; padding: 0; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.2s ease-in-out infinite; }
@media (max-width: 760px) { .track-form { flex-direction: column; } .track-form .btn { width: 100%; } }

/* animated token icons: the emoji keeps its own shape, no circle behind it */
.ticon.anim { background: transparent; overflow: visible; }
.ticon.anim svg { width: 100% !important; height: 100% !important; display: block; }
.ticon.anim.ready .tl { display: none; }
/* animated brand mark */
.brand-mark.anim { position: relative; width: 38px; height: 38px; }
.brand-mark.anim svg { width: 100% !important; height: 100% !important; display: block; }
.brand-mark.anim.ready .tl { display: none; }
/* token approvals */
.appr { padding: 10px 12px; border-radius: 10px; background: var(--tone); }
.appr + .appr { margin-top: 8px; }
.appr-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.appr-who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.appr-who b { font-weight: 600; white-space: nowrap; }
.appr-sub { margin-top: 6px; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.appr-sub > span:first-child { display: inline-flex; align-items: center; gap: 6px; }

/* ---------------- 两个地址的往来 ---------------- */
/* 首页：查一个 / 查两个 */
.seg { display: inline-flex; gap: 4px; padding: 4px; margin-top: 30px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.seg button { height: 36px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; transition: background .15s, color .15s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.seg + .search, .seg ~ .pair-form { margin-top: 16px; }
.search.pair-form { padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.pair-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.search.pair-form .field { height: 56px; padding: 0 8px 0 10px; gap: 10px; border-radius: 13px; background: var(--tone); border-color: transparent; box-shadow: none; }
.search.pair-form .field:focus-within { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.search.pair-form .field.invalid { border-color: var(--neg); }
.search.pair-form .field input { font-size: 14px; }
.badge-ab { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; font: 700 13px var(--font); background: var(--primary); color: var(--on-primary); }
.badge-ab.b { background: var(--accent); color: #fff; }
.swap { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; color: var(--muted); transition: color .15s, transform .25s var(--ease); }
.swap:hover { color: var(--ink); }
.swap:active { transform: rotate(180deg); }
.pair-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding: 0 4px; }
.pair-foot .hint { margin: 0; max-width: none; font-size: 13px; line-height: 1.5; text-align: left; min-height: 0; }
.pair-foot .btn.primary { height: 46px; padding: 0 26px; border-radius: 11px; flex: none; }

/* 结果页 */
.pv { display: grid; gap: 18px; padding-bottom: 70px; }
.pv .card { padding: 20px 22px; }
.ph { padding: 24px; }
.ph-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ph-top h1 { font-size: 22px; letter-spacing: -.02em; }
.ph-top p { margin-top: 4px; font-size: 13px; color: var(--muted); }
.ph-top .tools { display: flex; gap: 8px; flex: none; }
.ph-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .9fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.party { padding: 16px; border-radius: 14px; background: var(--tone); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.party-h { display: flex; align-items: center; gap: 10px; }
.party-h b { font-size: 15px; }
.party-h .pill { margin-left: auto; background: var(--surface); }
.party .addr { font: 500 15px/1.45 var(--mono); word-break: break-all; letter-spacing: -.01em; }
.party .addr .k { font-weight: 700; }
.party .bal { display: flex; gap: 14px; font-size: 13px; color: var(--muted); flex-wrap: wrap; min-height: 20px; }
.party .bal b { color: var(--ink); font-weight: 600; }
.party .links { display: flex; gap: 8px; margin-top: auto; }
.party .links .btn { flex: 1; background: var(--surface); }
.flow { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.lane { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.lane-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.lane-h .cnt { margin-left: auto; font-weight: 500; color: var(--muted); }
.lane .arrow { display: flex; align-items: center; margin: 8px 0 6px; color: var(--neg); }
.lane .arrow i { flex: 1; height: 2px; border-radius: 2px; background: currentColor; }
.lane .arrow svg { width: 12px; height: 12px; flex: none; }
.lane.back .arrow { color: var(--pos); flex-direction: row-reverse; }
.lane.back .arrow svg { transform: scaleX(-1); }
.lane.empty .arrow { color: var(--control); }
.lane.empty .arrow i { background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 11px); }
.lane .sums { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 14px; min-height: 21px; }
.lane .sums b { font-weight: 700; font-variant-numeric: tabular-nums; }
.lane .sums small { color: var(--muted); font-size: 12px; margin-left: 3px; }
.lane.empty .sums { color: var(--faint); font-size: 13px; }
.ph .stats { margin-top: 16px; }
.ph-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.ph .alerts { margin-top: 16px; }
.two { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; }
.sum-scroll { max-height: 320px; overflow-y: auto; }
.sum-t { width: 100%; border-collapse: collapse; }
.sum-t th { text-align: right; font-size: 12px; font-weight: 500; color: var(--muted); padding: 0 6px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; position: sticky; top: 0; background: var(--surface); }
.sum-t th:first-child, .sum-t td:first-child { text-align: left; }
.sum-t td { text-align: right; padding: 0 6px; height: 54px; border-top: 1px solid var(--rule); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum-t tbody tr:first-child td { border-top: 0; }
.sum-t td b { font-weight: 700; }
.sum-t .neg { color: var(--neg); } .sum-t .pos { color: var(--pos); } .sum-t .zero { color: var(--faint); }
.pv .coin { display: inline-flex; align-items: center; gap: 9px; max-width: 180px; }
.pv .coin > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pv .coin small { display: block; font-size: 11px; color: var(--faint); line-height: 1.2; }
.pv .coin.fake b { color: var(--neg); }
.months { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; align-items: end; height: 160px; padding-top: 6px; }
.mo { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.mo .bars { width: 100%; max-width: 38px; display: flex; flex-direction: column-reverse; border-radius: 7px 7px 3px 3px; overflow: hidden; }
.mo .bars i { display: block; background: var(--neg); }
.mo .bars i.b { background: var(--pos); }
.mo .bars.none { height: 4px; background: var(--rule); border-radius: 3px; }
.mo .n { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; min-height: 18px; }
.mo .m { font-size: 12px; color: var(--muted); white-space: nowrap; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.filters-row { display: flex; gap: 8px; align-items: center; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.filters-row::-webkit-scrollbar { display: none; }
.filters-row .sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; flex: none; }
.chip .c { margin-left: 5px; opacity: .65; font-variant-numeric: tabular-nums; }
.dirp { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--neg-bg); color: var(--neg-ink); white-space: nowrap; }
.dirp.back { background: var(--pos-bg); color: var(--pos-ink); }
.pt td { height: 54px; }
.pt td .amt .u { display: none; margin-left: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.more-row { display: flex; justify-content: center; margin-top: 14px; }
.pv .empty-big { padding: 34px 20px; text-align: center; color: var(--muted); }
.pv .empty-big b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }

@media (max-width: 900px) {
  .ph-grid, .two { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .seg { display: flex; width: 100%; }
  .seg button { flex: 1; justify-content: center; padding: 0 8px; font-size: 13px; }
  .pair-row { grid-template-columns: 1fr; gap: 8px; }
  .swap { justify-self: center; transform: rotate(90deg); margin: -2px 0; }
  .swap:active { transform: rotate(270deg); }
  .search.pair-form .field { flex-wrap: nowrap; height: 54px; padding: 0 6px 0 10px; gap: 8px; }
  .search.pair-form .field input { flex: 1; order: 0; height: 100%; padding: 0; font-size: 13px; }
  .search.pair-form .field .btn.sm { margin-left: 0; height: 36px; }
  .pair-foot { flex-direction: column; align-items: stretch; }
  .pair-foot .btn.primary { width: 100%; }
  .ph { padding: 18px; }
  .ph-top { flex-direction: column; }
  .ph-acts .btn { flex: 1 1 calc(50% - 4px); }
  .ph .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph .stat:nth-child(3) { border-left: 0; }
  .ph .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .pv .card { padding: 18px 16px; }
  .pv .panel-h { flex-wrap: wrap; row-gap: 4px; }
  .sum-t th:nth-child(4), .sum-t td:nth-child(4) { display: none; }
  .pt thead { display: none; }
  .pt tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 0; border-top: 1px solid var(--rule); }
  .pt td { display: block; height: auto; padding: 0; border: 0; }
  .pt td.c-dir { order: 1; }
  .pt td.c-amt { order: 2; text-align: right; }
  .pt td.c-time { order: 3; font-size: 12px; color: var(--muted); }
  .pt td.c-hash { order: 4; text-align: right; }
  .pt td.c-coin { display: none; }
  .pt td .amt .u { display: inline; }
}
