/*
 * ArbiFinder — the new Pool Tracker design (public/v2/v2.css): near-black graphite, hairline cards, Onest text, every figure
 * in Geist, one orange accent and slow orbital light behind the title; the light theme is warm paper with the same accent.
 */
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap; src: url("/fonts/onest-cyr.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap; src: url("/fonts/onest-lat.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-weight: 400 700; font-display: swap; src: url("/fonts/geist-lat.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 100 800; font-display: swap; src: url("/fonts/jbm-cyr.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-weight: 100 800; font-display: swap; src: url("/fonts/jbm-lat.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2212, U+FEFF, U+FFFD; }

:root {
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --num: "Geist", "Onest", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 12px;
  --r-s: 8px;
  --side-w: 236px;
  --bar-h: 60px;
  --pad: 36px;
  --max: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --cta: linear-gradient(180deg, #ff6a3d, #f0461d);
  color-scheme: dark;
  --bg: #0a0a0b; --side-bg: #0d0d0f; --card: #121315; --card2: #17181b; --card3: #1e2024;
  --line: #222429; --line2: #2e3137; --sep: #1d1f23;
  --fg: #ecebe6; --fg2: #adb0b5; --muted: #80858c; --faint: #5a5e65;
  --acc: #ff6a3d; --acc-tint: rgba(255, 106, 61, 0.12);
  --cream: #eee3ca; --cream-ink: #1b1a16;
  --fill2: rgba(255, 255, 255, 0.045); --hover: rgba(255, 255, 255, 0.028);
  --up: #79c95a; --up-bg: rgba(121, 201, 90, 0.13);
  --down: #f06a5f; --down-bg: rgba(240, 106, 95, 0.13);
  --warn: #e6ae48; --warn-bg: rgba(230, 174, 72, 0.13);
  --violet: #a77bff; --blue: #8c9df0;
  --glass: rgba(10, 10, 11, 0.82);
  --fx1: #ff6a2b; --fx2: #ffd0a6; --fx-op: 1;
  --glow: rgba(255, 90, 46, 0.16);
  --av-l: 58%; --av-a: 0.2; --av-ink: 78%;
}
:root.t-light {
  color-scheme: light;
  --bg: #f5f3ee; --side-bg: #efece5; --card: #ffffff; --card2: #faf9f6; --card3: #f0ede6;
  --line: #e4e0d7; --line2: #d6d1c6; --sep: #ece8e0;
  --fg: #17171a; --fg2: #46464c; --muted: #6f6d68; --faint: #8f8b84;
  --acc: #e8461e; --acc-tint: rgba(232, 70, 30, 0.09);
  --cream: #17171a; --cream-ink: #f5f3ee;
  --fill2: rgba(23, 23, 26, 0.045); --hover: rgba(23, 23, 26, 0.025);
  --up: #2f8f2a; --up-bg: rgba(47, 143, 42, 0.1);
  --down: #d23c30; --down-bg: rgba(210, 60, 48, 0.09);
  --warn: #b7780d; --warn-bg: rgba(183, 120, 13, 0.1);
  --violet: #7444e0; --blue: #4659c9;
  --glass: rgba(245, 243, 238, 0.86);
  --fx1: #ff6a2b; --fx2: #ffb27d; --fx-op: 0.55;
  --glow: rgba(255, 106, 61, 0.1);
  --av-l: 55%; --av-a: 0.14; --av-ink: 34%;
}

* { box-sizing: border-box; }
html { background: var(--bg); scrollbar-color: var(--line2) transparent; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body::before { content: ""; position: fixed; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(60vw 50vh at 92% -14%, var(--glow), transparent 70%), radial-gradient(40vw 40vh at 30% 120%, rgba(255, 90, 46, 0.04), transparent 70%); }
::selection { background: rgba(255, 106, 61, 0.32); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.r { text-align: right; }
.up { color: var(--up); }
.down { color: var(--down); }
kbd { font: 11px var(--mono); padding: 1px 6px; border: 1px solid var(--line2); border-radius: 5px; color: var(--muted); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; background: transparent; color: var(--fg); font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn:hover { border-color: var(--faint); background: var(--fill2); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.primary { position: relative; overflow: hidden; border: 0; background: var(--cta); color: #fff; font-weight: 600; box-shadow: 0 6px 20px -8px rgba(255, 80, 30, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.32) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
.btn.primary:hover::after { transform: translateX(120%); transition: transform 0.7s var(--ease); }
.act { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; vertical-align: middle; }
.act:hover { color: var(--fg); background: var(--fill2); }
.act .i-ok { display: none; color: var(--up); }
.act.ok .i-ok { display: block; }
.act.ok .i-copy { display: none; }

/* switch drawn on a native checkbox */
.sw { display: inline-flex; align-items: center; gap: 9px; color: var(--fg2); font-size: 13px; cursor: pointer; user-select: none; }
.sw input { appearance: none; position: relative; width: 30px; height: 18px; margin: 0; border-radius: 999px; background: var(--card3); box-shadow: inset 0 0 0 1px var(--line2); cursor: pointer; transition: background 0.2s; }
.sw input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); transition: transform 0.25s var(--spring), background 0.2s; }
.sw input:checked { background: var(--acc); box-shadow: none; }
.sw input:checked::after { transform: translateX(12px); background: #fff; }

/* ---------- the mark ---------- */
.mark { display: grid; place-items: center; flex: none; width: 30px; height: 30px; color: var(--acc); }
.mark svg { width: 30px; height: 30px; overflow: visible; fill: none; stroke-linecap: round; }
.mark-ring { stroke: var(--acc); stroke-width: 2.2; stroke-dasharray: 3.2 2.6; transform-origin: 14px 14px; animation: spin 26s linear infinite; }
.mark-line { stroke: var(--fg); stroke-width: 2; }
.mark-dot { fill: var(--acc); stroke: none; }

/* ---------- sidebar ---------- */
.side { position: fixed; z-index: 35; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; gap: 18px; width: var(--side-w); padding: 16px 12px; border-right: 1px solid var(--line); background: var(--side-bg); }
.side-brand { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px; margin-bottom: 4px; }
.mark-t { font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.mark-t b { margin-left: 0.35em; color: var(--acc); font-weight: 700; }
.side-nav { display: grid; gap: 2px; min-height: 0; overflow: auto; }
.nav-l { padding: 14px 10px 6px; color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.nav-l:first-child { padding-top: 0; }
.side-nav .tab { position: relative; display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px; border-radius: 9px; color: var(--fg2); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.side-nav .tab:hover { background: var(--hover); color: var(--fg); }
.side-nav .tab.active { background: var(--card3); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); }
.side-nav .tab.active::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--acc); box-shadow: 0 0 12px var(--acc); }
.side-nav .tab-i { width: 18px; height: 18px; stroke-width: 1.6; }
.side-nav .tab.active .tab-i { color: var(--acc); }
.tab-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.count { color: var(--faint); font: 500 12px/20px var(--num); font-variant-numeric: tabular-nums; }
.recent { display: grid; gap: 1px; }
.recent a { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px; border-radius: 8px; color: var(--fg2); font: 12.5px var(--mono); }
.recent a:hover { background: var(--hover); color: var(--fg); }
.recent a.on { color: var(--fg); background: var(--fill2); }
.recent i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); flex: none; }
.recent a.on i { background: var(--acc); }
.recent .empty { padding: 4px 10px; color: var(--faint); font-size: 12.5px; text-align: left; }
.side-foot { display: grid; gap: 12px; margin-top: auto; }
.side-stat { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--fg2); font-size: 12.5px; }
.side-stat .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--up-bg); }
.theme-seg { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.theme-seg button { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 28px; padding: 0 8px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: background 0.2s, color 0.2s; }
.theme-seg button svg { width: 14px; height: 14px; }
.theme-seg button:hover { color: var(--fg); }
.theme-seg button[aria-pressed="true"] { background: var(--card3); color: var(--fg); }

/* ---------- main column, top bar ---------- */
.main { min-height: 100vh; margin-left: var(--side-w); padding: 0 var(--pad) 40px; overflow-x: clip; display: flex; flex-direction: column; }
.main > * { width: 100%; max-width: var(--max); margin-inline: auto; }
.bar { position: sticky; z-index: 30; top: 0; display: flex; align-items: center; gap: 18px; height: var(--bar-h); }
.bar::before { content: ""; position: absolute; z-index: -1; inset: 0 -100vw; border-bottom: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(14px) saturate(140%); opacity: 0; transition: opacity 0.25s; }
.scrolled .bar::before { opacity: 1; }
.bar-mark { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; flex: none; color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.crumb-sep { color: var(--faint); }
.bar-t { color: var(--fg); font-weight: 500; font-family: var(--num); }
.search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 8px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); transition: border-color 0.15s; }
.search:focus-within { border-color: color-mix(in srgb, var(--acc) 55%, var(--line)); }
.search svg { color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 13px var(--mono); }
.search input::placeholder { color: var(--faint); font-family: var(--sans); }
.bar-r { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.live { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--fg2); font-size: 12.5px; font-weight: 500; }
.live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); animation: pulse 1.6s ease-out infinite; }

/* ---------- the head: title over orbital light ---------- */
.head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 30px 0; isolation: isolate; }
.hero-fx { position: fixed; z-index: -1; top: -80px; right: 0; width: min(1200px, 78vw); height: 380px; opacity: calc(var(--fx-op) * 0.75); pointer-events: none; transition: opacity 0.5s; mask-image: radial-gradient(65% 75% at 72% 38%, #000 18%, transparent 70%); -webkit-mask-image: radial-gradient(65% 75% at 72% 38%, #000 18%, transparent 70%); transform-origin: 70% 65%; will-change: transform; animation: orbit 22s ease-in-out infinite alternate; }
.scrolled .hero-fx { opacity: 0; }
.scrolled .hero-fx, .scrolled .hero-fx * { animation-play-state: paused; }
.hero-fx ellipse { fill: none; stroke: url(#fx-g); stroke-width: 1.1; }
.hero-fx g[filter] ellipse { stroke-width: 10; }
.fx-orbit { transform-box: view-box; transform-origin: 70% 65%; transform: rotate(-9deg); }
.hero-fx .fx-run { stroke: var(--fx2); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 70 2400; animation: run 9s steps(540) infinite; }
.hero-fx .fx-run2 { stroke-dasharray: 40 1500; animation-duration: 6.5s; animation-delay: -3s; animation-timing-function: steps(390); }
.head-t { min-width: 0; flex: 1 1 420px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--acc); }
.lt { margin: 0; font-size: 48px; font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; }
#total { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.lt-s { margin: 10px 0 0; max-width: 640px; color: var(--fg2); font-size: 14px; }
.addr { font: 13px var(--mono); color: var(--fg2); word-break: break-all; margin-right: 4px; }
.prog { margin: 8px 0 0; min-height: 20px; color: var(--muted); font-size: 12.5px; }
.prog .dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--acc); vertical-align: 1px; animation: pulse 1.6s ease-out infinite; }
.search.big { max-width: 640px; height: 52px; margin-top: 26px; padding: 0 6px 0 16px; border-radius: 14px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(6px); }
.search.big input { font-size: 15px; }
.search.big .btn { height: 40px; padding: 0 20px; }
.hint { margin: 12px 0 0; color: var(--faint); font-size: 12.5px; }

/* KPI tiles */
.hkpis { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(130px, 1fr)); gap: 10px; flex: 1 1 560px; max-width: 720px; }
.kp { position: relative; min-width: 0; padding: 14px 16px 13px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.kp::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 106, 61, 0.12), transparent 62%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.kp:hover::after { opacity: 1; }
.kp:hover { border-color: var(--line2); }
.kp-l { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.kp-v { margin-top: 4px; overflow: hidden; font: 500 20px var(--num); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.kp-s { margin-top: 2px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-bar { display: flex; gap: 2px; height: 4px; margin-top: 10px; overflow: hidden; border-radius: 2px; background: var(--card3); }
.kp-bar i { display: block; height: 100%; min-width: 2px; background: var(--c); transition: flex-grow 0.6s var(--ease); }
.kp-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 7px; color: var(--muted); font-size: 11.5px; }
.kp-leg span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-family: var(--num); }
.kp-leg span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }

.panel { animation: rise 0.45s var(--ease); }

/* ---------- chains as quiet pills ---------- */
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.seg button { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--fg2); font-size: 13px; font-weight: 500; cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.seg button:hover { border-color: var(--line2); color: var(--fg); }
.seg button.on { border-color: var(--line2); background: var(--card3); color: var(--fg); font-weight: 600; }
.seg button i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--muted)); }
.seg button b { font: 500 12.5px var(--num); color: var(--muted); font-variant-numeric: tabular-nums; }
.seg button.on b { color: var(--fg2); }

/* ---------- cards and tables ---------- */
.card { margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-h h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.grid { width: 100%; border-collapse: collapse; }
.grid th { padding: 11px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 500; text-align: left; white-space: nowrap; }
.grid th.r { text-align: right; }
.grid td { padding: 8px 18px; border-bottom: 1px solid var(--sep); vertical-align: middle; font: 13.5px var(--num); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.grid tr:last-child td { border-bottom: 0; }
.grid tbody tr { transition: box-shadow 0.15s; }
.grid tbody tr:hover { box-shadow: inset 2px 0 0 color-mix(in srgb, var(--acc) 70%, transparent); }
.grid td.v { font-weight: 600; }
.grid .amt-m { display: none; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; white-space: nowrap; }
.tok { display: flex; align-items: center; gap: 8px; min-width: 0; font-family: var(--sans); letter-spacing: 0; white-space: nowrap; }
.tok b { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; max-width: 220px; }
.tok a { overflow: hidden; color: var(--faint); font: 11.5px var(--mono); text-overflow: ellipsis; }
.tok a:hover { color: var(--acc); }
.tok-more td { padding: 8px 18px; text-align: center; }
.btn.sm { height: 28px; padding: 0 12px; font-size: 12.5px; }
.fake { display: inline-flex; align-items: center; height: 17px; margin-left: 7px; padding: 0 6px; border-radius: 5px; background: var(--down-bg); color: var(--down); font-size: 10.5px; font-weight: 600; vertical-align: 1px; }
.cm { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; background: color-mix(in srgb, var(--c, var(--muted)) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--muted)) 30%, transparent); color: var(--c, var(--fg2)); font: 700 9.5px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.unpriced { border-top: 1px solid var(--line); }
.unpriced summary { padding: 12px 18px; color: var(--muted); font-size: 13px; cursor: pointer; list-style: none; }
.unpriced summary::before { content: "›"; display: inline-block; width: 14px; transition: transform 0.2s; }
.unpriced[open] summary::before { transform: rotate(90deg); }
.unpriced summary:hover { color: var(--fg); }
.unpriced .grid td { opacity: 0.75; }

/* ---------- transactions as a tape ---------- */
.txs { display: flex; flex-direction: column; }
.day { padding: 16px 20px 8px; border-bottom: 1px solid var(--sep); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.day:first-child { padding-top: 12px; }
.tx { display: grid; grid-template-columns: 210px minmax(0, 1fr) 150px; grid-template-areas: "amts op when" ". full ."; align-items: center; column-gap: 24px; padding: 11px 20px; border-bottom: 1px solid var(--sep); cursor: pointer; transition: background 0.12s; }
.tx:hover { background: var(--hover); }
.tx:last-child { border-bottom: 0; }
.tx.dim { opacity: 0.45; }
.tx .amts { grid-area: amts; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tx .fl { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; font: 14px var(--num); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.tx .fl b { overflow: hidden; font-weight: 600; text-overflow: ellipsis; }
.tx .fl.in b { color: var(--up); }
.tx .fl.out b { color: var(--fg); }
.tx .fl .usd { flex: none; color: var(--muted); font-size: 12.5px; }
.tx .amts .none { color: var(--faint); }
.tx .op { grid-area: op; display: flex; align-items: center; gap: 12px; min-width: 0; }
.tx .ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--c); }
.tx .ic svg { width: 17px; height: 17px; stroke-width: 1.9; }
.tx .op-t { min-width: 0; }
.tx .t1 { overflow: hidden; color: var(--fg); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.tx .t2 { overflow: hidden; margin-top: 1px; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.tx .when { grid-area: when; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.tx .when .ch { display: flex; align-items: center; gap: 6px; color: var(--fg2); }
.tx .when .ch i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.tx .when .tm { display: flex; align-items: center; gap: 6px; font-family: var(--num); font-variant-numeric: tabular-nums; }
.tx .when .ext { color: var(--faint); opacity: 0; transition: opacity 0.12s; }
.tx:hover .when .ext { opacity: 1; }
.tx .when .ext:hover { color: var(--acc); }
.tx .full { grid-area: full; display: none; margin: 8px 0 2px 46px; color: var(--fg2); font-size: 12.5px; line-height: 1.55; overflow-wrap: anywhere; }
.tx .full > * + * { margin-top: 4px; }
.tx .full .muted { font-size: 12px; }
.tx .full a { color: var(--muted); font-size: 11.5px; }
.tx .full a:hover { color: var(--acc); }
.tx.open { background: var(--hover); }
.tx.open .full { display: block; }
.tx.open .t2 { white-space: normal; }
.type { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; background: var(--fill2); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.type.swap, .type.bridge-in, .type.bridge-out, .type.bridge { background: color-mix(in srgb, var(--blue) 13%, transparent); box-shadow: none; color: var(--blue); }
.type.receive, .type.cex-out, .type.unwrap, .type.lp-remove { background: var(--up-bg); box-shadow: none; color: var(--up); }
.type.send, .type.cex-in, .type.lp-add, .type.wrap { background: var(--acc-tint); box-shadow: none; color: var(--acc); }
.type.failed, .type.scam, .type.pulled { background: var(--down-bg); box-shadow: none; color: var(--down); }
.type.spam, .type.airdrop { background: var(--warn-bg); box-shadow: none; color: var(--warn); }
.type.lending, .type.lp, .type.nft-in, .type.nft-out, .type.mint { background: color-mix(in srgb, var(--violet) 14%, transparent); box-shadow: none; color: var(--violet); }
.more { display: flex; justify-content: center; padding: 14px; border-top: 1px solid var(--line); }
.more:has(.btn[hidden]) { display: none; }
.empty { padding: 28px 18px; color: var(--muted); text-align: center; }
.empty.small { padding: 12px 18px; font-size: 12.5px; }
.skel { height: 14px; margin: 6px 0; border-radius: 6px; background: linear-gradient(90deg, var(--card2), var(--card3), var(--card2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }

/* ---------- sign-in ---------- */
.login-body { display: grid; place-items: center; min-height: 100vh; }
.login-wrap { width: 100%; max-width: 400px; padding: 24px 16px; }
.login-card { display: grid; gap: 14px; padding: 28px 26px 22px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6); }
.login-card .side-brand { padding: 0 0 6px; margin: 0; }
.fld { display: grid; gap: 6px; color: var(--fg2); font-size: 12.5px; }
.fld input, .adm-new input { height: 42px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--card2); color: var(--fg); font-size: 14px; outline: 0; transition: border-color 0.15s; }
.fld input:focus, .adm-new input:focus { border-color: color-mix(in srgb, var(--acc) 60%, var(--line2)); }
.btn.wide { width: 100%; height: 42px; font-size: 14.5px; }
.login-err, .adm-err { min-height: 18px; color: var(--down); font-size: 13px; }
.login-note { margin: 0; color: var(--faint); font-size: 12px; text-align: center; }
.side-user { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--fg2); font: 12.5px var(--mono); }
.side-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- users (owner only) ---------- */
.adm-new { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(200px, 2fr) auto; gap: 10px; padding: 16px 18px 6px; }
.adm-new .btn { height: 42px; }
.adm-cred { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 10px 18px 4px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--acc) 45%, var(--line)); border-radius: 12px; background: var(--acc-tint); }
.adm-cred div { display: grid; gap: 2px; font-size: 12px; }
.adm-cred code { font: 600 15px var(--mono); color: var(--fg); user-select: all; }
.adm-err { padding: 4px 18px 12px; }
.adm-list td { font-family: var(--sans); font-size: 13.5px; }
.adm-list td.mono { font-family: var(--mono); }
.adm-list .acts { display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.adm-list .btn { height: 28px; padding: 0 10px; font-size: 12px; }
.adm-list .btn.danger { color: var(--down); border-color: color-mix(in srgb, var(--down) 40%, var(--line2)); }
.adm-list tr.off td:not(:last-child) { opacity: 0.45; }
.badge-off { display: inline-flex; margin-left: 6px; padding: 0 6px; border-radius: 5px; background: var(--down-bg); color: var(--down); font-size: 10.5px; font-weight: 600; }

.foot { margin-top: auto; padding: 24px 0 0; color: var(--faint); font-size: 12px; text-align: center; }

/* ---------- motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 106, 61, 0.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(255, 106, 61, 0); } }
@keyframes orbit { from { transform: rotate(-11deg) scale(1); } to { transform: rotate(-6deg) scale(1.04) translateX(-14px); } }
@keyframes run { to { stroke-dashoffset: -2470; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- widths ---------- */
@media (max-width: 1100px) {
  :root { --pad: 24px; }
  .hkpis { flex-basis: 100%; max-width: none; }
}
@media (max-width: 860px) {
  .side { display: none; }
  .main { margin-left: 0; padding: 0 16px 32px; }
  .bar { gap: 10px; }
  .bar-mark { display: grid; }
  .crumbs { display: none; }
  .search { max-width: none; }
  .search kbd { display: none; }
  .lt { font-size: 34px; }
  .head { padding: 20px 0; gap: 18px; }
  .hkpis { grid-template-columns: 1fr 1fr; }
  .hkpis .kp:first-child { grid-column: 1 / -1; }
  .tx { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "op amts" "when when" "full full"; row-gap: 4px; column-gap: 12px; padding: 10px 14px; }
  .tx .amts { align-items: flex-end; }
  .tx .fl { justify-content: flex-end; }
  .tx .fl .usd { display: none; }
  .tx .ic { width: 30px; height: 30px; }
  .tx .when { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; padding-left: 42px; font-size: 11.5px; }
  .tx .full { margin-left: 42px; }
  .day { padding: 14px 14px 6px; }
  .hero-fx { width: 100vw; opacity: calc(var(--fx-op) * 0.5); }
  .grid th, .grid td { padding: 10px 12px; }
  .grid th:nth-child(2), .grid td:nth-child(2), .grid th:nth-child(3), .grid td:nth-child(3) { display: none; }
  .grid .amt-m { display: block; }
  .tok b { max-width: 110px; }
  .tok a { display: none; }
  .card-h { padding: 12px 14px; flex-wrap: wrap; }
  .adm-new { grid-template-columns: 1fr; padding: 12px 14px 4px; }
  .adm-list th:nth-child(2), .adm-list td:nth-child(2), .adm-list th:nth-child(3), .adm-list td:nth-child(3), .adm-list th:nth-child(5), .adm-list td:nth-child(5) { display: none; }
}
