:root {
  --bg: #090c12;
  --bg-2: #0e131c;
  --card: #141b27;
  --line: #2a3548;
  --text: #eef3fb;
  --muted: #8b97ab;
  --ink: #4aa3ff;
  --sus: var(--c-watch, #673AB7);
  --up: #3dd68c;
  --down: #ff6b7a;
  --warn: #f5a524;
  --accent: #6ea8ff;
  --top: 96px;
  --touch: 44px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text);
  font: 15px/1.45 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
body { padding: var(--top) 14px 24px; }
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { min-height: var(--touch); border: 0; border-radius: 10px; padding: 0 14px;
  background: var(--accent); color: #081018; font-weight: 700; cursor: pointer; }
button.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
button.row-act { min-height: 32px; padding: 0 10px; margin-left: 6px; font-size: 12px; font-weight: 600; }
button:disabled { opacity: .4; cursor: not-allowed; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.mut { color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--down); }
.warn { color: var(--warn); }
.hide { display: none !important; }
.empty { color: var(--muted); text-align: center; padding: 28px 8px; }

.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 12; min-height: var(--top);
  padding: 8px 14px 0; background: #090c12ee; border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.top-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; min-height: 40px; }
.brand { font-weight: 800; letter-spacing: .04em; justify-self: start; }
.top-mid { justify-self: center; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.top-right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.sym-switch {
  min-height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid #3d4d68;
  background: #1c2636; color: var(--text); font-weight: 800; cursor: pointer;
  max-width: 120px;
}
.top .px { font-size: 16px; font-weight: 700; }
.top .day { color: var(--muted); font-size: 12px; white-space: nowrap; }
.pill { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line); white-space: nowrap; flex: none;
  display: inline-flex; align-items: center; gap: 6px; }
.pill.mock, .pill.sync { color: var(--warn); background: #2a1f0c; border-color: #6a4a18; }
.pill.mock::before, .pill.sync::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.pill.live { color: var(--up); background: #10261a; border-color: #1f6a40; }
.pill.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.pill.stop { color: var(--down); background: #2a1418; border-color: #6a2a32; }
.pill.stop::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--down); }
.pill.phase { color: var(--sus); background: #1c1426; border-color: #5b3d7a; }
.nav {
  display: flex; justify-content: center; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 6px 0 8px; margin: 0 -2px;
}
.nav a {
  flex: none; min-height: 40px; padding: 8px 16px; border-radius: 10px;
  color: var(--muted); font-size: 15px; font-weight: 650; white-space: nowrap;
}
.nav a.active { color: var(--text); background: #1c2636; }
.kw-in { color: var(--ink); font-weight: 700; }
.kw-out { color: var(--warn); font-weight: 700; }
.hit { color: var(--down); background: #2a1418; border: 1px solid #5a2a32; border-radius: 12px; padding: 10px; margin-bottom: 8px; }

.main { max-width: 1800px; margin: 0 auto; }
.hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 6px 0 14px; }
.hero h1 { margin: 0; font-size: 22px; }
.hero > :last-child { text-align: right; }
.hero .px { font-size: 26px; font-weight: 800; }
.home-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin: 6px 0 12px; flex-wrap: wrap; }
.home-head h1 { margin: 0; font-size: 20px; }
.home-win { margin: 0; }

.grid { display: grid; gap: 10px; margin-bottom: 12px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g-focus { grid-template-columns: 1fr 2fr; align-items: start; }
.watch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
.watch-grid .watch { min-width: 0; display: flex; flex-direction: column; height: 100%; }
.watch-grid .w-acts { max-height: 240px; overflow: auto; -webkit-overflow-scrolling: touch; }
.win-sum { display: grid; gap: 4px; margin-top: 8px; font-size: 13px; }
.mem-list { margin-top: 8px; display: grid; gap: 6px; }
.mem { font-size: 12px; }
.mem-bal { color: var(--muted); margin: 2px 0; }
.mem-acts { display: grid; gap: 2px; }
.mem-act { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
.feed-dim { margin-bottom: 4px; }
.feed-dim .tabs { margin-bottom: 8px; }
.g4 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px;
}
.card h2 { margin: 0 0 10px; font-size: 14px; color: var(--muted); font-weight: 650;
  display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card h2 .right { font-weight: 500; flex: none; }
.card h2.more { margin-top: 16px; }
.card[data-fold] > h2 { cursor: pointer; user-select: none; }
.card[data-fold] > h2 .fold-t { text-decoration: underline; text-underline-offset: 3px; }
.card.folded { padding-bottom: 12px; }
.card.folded > h2 { margin-bottom: 0; }
.card.folded > :not(h2) { display: none !important; }
.stat { background: #0c1118; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.stat .num { display: block; font-size: 16px; font-weight: 700; }
.stat .lab { color: var(--muted); font-size: 11px; }
.stat .pair { display: flex; align-items: baseline; gap: 6px; font-size: 16px; font-weight: 700; }
.stat .pair .num { display: inline; font-size: inherit; }

.tabs { display: flex; gap: 4px; flex-wrap: nowrap; align-items: center; overflow-x: auto;
  -webkit-overflow-scrolling: touch; margin-bottom: 10px; min-height: 36px; }
.tabs a {
  flex: none; min-height: 36px; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line);
  color: var(--muted); background: transparent; cursor: pointer; font-size: 13px; white-space: nowrap;
}
.tabs a.active { color: var(--text); border-color: #3d4d68; background: #1c2636; font-weight: 700; }
.role-tabs a.r-proj { color: var(--c-proj); background: #3a2e12; }
.role-tabs a.r-whale { color: var(--c-whale); background: #12323c; }
.role-tabs a.r-anchor { color: var(--c-anchor); background: #0f2c28; }
.role-tabs a.r-legacy { color: var(--c-legacy); background: #3a1a2c; }
.role-tabs a.r-smart { color: var(--c-smart); background: #2c1c10; }
.role-tabs a.r-titan { color: var(--c-titan); background: #0c2838; }
.role-tabs a.r-unk { color: var(--c-unk); background: #1a2030; }
.role-tabs a[class^="r-"].active { border-color: currentColor; font-weight: 700; }
.search { width: 100%; min-height: var(--touch); padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #0c1118; color: var(--text); margin-bottom: 10px; }
.search-wrap { position: relative; margin-bottom: 10px; }
.search-wrap .search { margin-bottom: 0; padding-right: 36px; }
.search-x {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  min-height: 28px; width: 28px; padding: 0; border-radius: 50%;
  background: #2a3548; color: var(--muted); font-weight: 700; line-height: 1; font-size: 16px;
}
.search-x:hover { color: var(--text); }

.book-sub { min-height: 36px; }
.book-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.book-rows { min-height: calc(var(--n, 0) * 36px); }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; font-size: 12px; }
.tr { display: grid; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: center; align-content: start; }
.tr > * { min-width: 0; overflow: hidden; white-space: nowrap; }
.tr.th { color: var(--muted); font-size: 11px; }
.tr.th a.on { font-weight: 700; }
.thf { grid-template-columns: 150px 44px minmax(0, 1fr) 72px 72px 64px 80px 80px; }
.thf > :nth-child(n + 4) { text-align: right; font-variant-numeric: tabular-nums; }
.ths { grid-template-columns: 158px minmax(0, 1fr) 48px 80px 72px 72px 88px; }
.thsw { grid-template-columns: 140px 148px 40px minmax(76px, 1fr) minmax(76px, 1fr) 64px minmax(80px, 1fr) minmax(88px, 1fr) minmax(84px, 1fr) minmax(72px, .8fr); }
.thsw > :nth-child(n + 4) { text-align: right; font-variant-numeric: tabular-nums; }
.thex { grid-template-columns: 32px 148px minmax(88px, 1fr) minmax(88px, 1fr) minmax(80px, 1fr) 48px 160px; }
.thold { grid-template-columns: 28px 148px minmax(72px, 1fr) 52px minmax(80px, 1fr) minmax(80px, 1fr) minmax(80px, 1fr) minmax(72px, 1fr) minmax(72px, 1fr) 72px 80px 100px; }

.addr-cell { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.addr-cell .role { flex: none; }
.addr { font-family: ui-monospace, Consolas, monospace; cursor: pointer; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addr:hover { color: var(--accent); }
.role { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.r-proj { color: var(--c-proj); background: #3a2e12; }
.r-link { color: var(--c-link); background: #3a1c0c; }
.r-sus { color: var(--c-watch); background: #2d1d40; }
.r-anchor { color: var(--c-anchor); background: #0f2c28; }
.r-lp { color: var(--c-lp); background: #32143a; }
.r-cex { color: var(--c-cex); background: #1c2240; }
.r-old { color: var(--c-old); background: #3a2412; }
.r-whale { color: var(--c-whale); background: #12323c; }
.r-legacy { color: var(--c-legacy); background: #3a1a2c; }
.r-smart { color: var(--c-smart); background: #2c1c10; }
.r-titan { color: var(--c-titan); background: #0c2838; }
.r-unk { color: var(--c-unk); background: #1a2030; }
.r-burn { color: var(--c-burn); background: #222830; }

.stack { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: #0c1118; }
.stack i { display: block; min-width: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 10px; font-size: 12px; }
.legend.ends { justify-content: space-between; flex-wrap: wrap; }
.legend.ends > :last-child { text-align: right; }
.legend b { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }

.chart { width: 100%; height: 240px; display: block; }
.chart.sm { height: 140px; }
.k-plot { position: relative; touch-action: none; }
.k-has-y { padding-left: 46px; }
.k-has-y .k-cross { left: 46px; }
.k-has-ypx { padding-left: 76px; }
.k-has-ypx .k-cross { left: 76px; }
.k-y { position: absolute; left: 0; top: 0; bottom: 0; width: 44px; pointer-events: none; }
.k-has-ypx .k-y { width: 74px; }
.k-y span {
  position: absolute; right: 4px; transform: translateY(-50%);
  font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.k-cross { position: absolute; inset: 0; pointer-events: none; }
.k-vx { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed #8b97ab; }
.k-hx { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed #8b97ab; }
.k-px {
  position: absolute; right: 0; transform: translateY(-50%);
  background: #1c2636; border: 1px solid var(--line); color: var(--text);
  font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.share-rows { display: grid; gap: 8px; }
.share-rows .row { display: grid; grid-template-columns: 80px 1fr 64px; gap: 10px; align-items: center; }
.share-rows .name { font-size: 13px; }
.share-rows .track { height: 10px; background: #0c1118; border-radius: 6px; overflow: hidden; }
.share-rows .track i { display: block; height: 100%; min-width: 2px; border-radius: 6px; }
.share-rows .num { text-align: right; font-size: 13px; }
.flow-cmp { display: grid; gap: 12px; }
.flow-cmp + .flow-cmp { margin-top: 8px; }
.sub { color: var(--muted); font-size: 11px; margin: 0 0 6px; }
.mt { margin-top: 8px; }
.group { background: #0c1118; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.group h3 { margin: 0 0 8px; font-size: 14px; }
.cmp3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.cmp3 .box { background: #0c1118; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.cmp3 .lab { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.chart-read { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.chart-read .up, .chart-read .down { font-weight: 600; }
.chart-read .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; margin-right: 4px; }
.flow-tight .legend { margin-top: 6px; }
.flow-mini { margin-top: 10px; }
.flow-leg { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 6px; font-size: 11px; color: var(--muted); }
.flow-leg .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; }
.throle { grid-template-columns: 72px 48px 80px 56px 72px 72px 72px 72px; min-width: 640px; }
.throle > :nth-child(n + 2) { text-align: right; font-variant-numeric: tabular-nums; }
.watch { background: #0c1118; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.watch h3 { margin: 0 0 6px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.watch h3 .right { margin-left: auto; font-weight: 500; }
.watch-sum { font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.watch-win { font-size: 12px; margin-top: 6px; }
.w-acts { margin-top: 8px; display: grid; gap: 8px; }
.w-act { font-size: 12px; padding-top: 8px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
#feedBox .w-act.hot {
  margin: 0 -6px; padding: 8px 6px 6px; border-radius: 8px; border-top-color: transparent;
  background: #1c2a3f; box-shadow: inset 3px 0 0 var(--accent);
}
#feedBox .w-act.hot .mut { color: #c5d0e0; }
.w-act .addr-cell { max-width: none; flex: none; }
.w-act.off { opacity: .45; pointer-events: none; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; border: 0; padding: 4px 0; }
.still { margin-top: auto; padding-top: 8px; font-size: 12px; }
.still summary { cursor: pointer; color: var(--muted); min-height: 36px; display: flex; align-items: center; gap: 4px; }
.still-n { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.w-still { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.scroll-box { max-height: 520px; overflow: auto; -webkit-overflow-scrolling: touch; }
.g-focus > .card { display: flex; flex-direction: column; min-height: 0; }
.g-focus .scroll-box { flex: 1; min-height: 0; overflow: auto; }
.tl { display: grid; gap: 0; }
.tl .item { display: grid; grid-template-columns: 16px 1fr; gap: 10px; }
.tl .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--accent); }
.tl .item.proj .dot { background: var(--c-proj); }
.tl .item.link .dot { background: var(--c-link); }
.tl .item.anchor .dot { background: var(--c-anchor); }
.tl .item.sus .dot { background: var(--c-watch); }
.tl .item.watch .dot { background: var(--c-watch); }
.tl .item.whale .dot { background: var(--c-whale); }
.tl .item.legacy .dot { background: var(--c-legacy); }
.tl .item.smart .dot { background: var(--c-smart); }
.tl .item.titan .dot { background: var(--c-titan); }
.tl .line { border-left: 1px solid var(--line); margin-left: 4px; padding: 0 0 16px 14px; }
.tl h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 14px; }
.form { display: grid; gap: 10px; }
.form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; min-height: var(--touch); padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #0c1118; color: var(--text);
}
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv b { color: var(--muted); font-weight: 500; }
.kv span { text-align: right; word-break: break-all; }

.banner { font-size: 12px; color: var(--warn); background: #2a1f0c; border: 1px solid #5a4318;
  border-radius: 10px; padding: 8px 10px; margin-bottom: 12px; }
.sheet { position: fixed; inset: 0; z-index: 30; display: none; }
.sheet.open { display: block; }
.sheet-mask { position: absolute; inset: 0; background: #000a; }
.sheet-body {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 86%; overflow: auto;
  background: var(--card); border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; padding: 14px;
}
.sheet-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.sheet-lead { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.sheet-top b { word-break: break-all; font-size: 13px; }

.when { display: inline-flex; align-items: baseline; gap: 8px; line-height: 1.25; white-space: nowrap; }
.when i { font-style: normal; color: var(--muted); font-size: 11px; font-weight: 500; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 0 2px; font-size: 13px; }
.pager a { min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.pager a.off { opacity: .35; pointer-events: none; }
.boot { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 80px 16px; color: var(--muted); }
.spin { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40;
  background: #1c2636; border: 1px solid var(--line); color: var(--text);
  padding: 8px 14px; border-radius: 999px; font-size: 13px; white-space: nowrap;
}

.graph-page {
  margin: -6px -14px -24px; height: calc(100dvh - var(--top));
  display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr minmax(180px, 32vh);
  background: #070a10; border-top: 1px solid var(--line);
}
.graph-stage { position: relative; min-height: 280px; overflow: hidden; background: #05060a; }
.graph-stage canvas { position: absolute; inset: 0; display: block; }
#gLive { z-index: 2; touch-action: none; cursor: grab; }
#gStatic { z-index: 1; }
.graph-toolbar {
  position: absolute; z-index: 3; left: 8px; right: 8px; top: 8px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.g-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.g-dyn { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.g-dyn[hidden] { display: none; }
.g-dyn-lab { font-size: 12px; color: var(--muted); white-space: nowrap; padding: 0 2px; }
.graph-toolbar .tabs { margin: 0; background: #090c12cc; border-radius: 10px; padding: 2px; }
.graph-toolbar .tabs[hidden] { display: none; }
.g-mode {
  display: inline-flex; align-items: center; gap: 2px; height: 36px;
  padding: 3px; border-radius: 999px;
  background: #11161fdd; border: 1px solid #3d4d68;
}
.g-mode a {
  min-height: 28px; padding: 4px 10px; border-radius: 999px; border: 0;
  color: var(--muted); font-size: 12px; font-weight: 650; white-space: nowrap; cursor: pointer;
}
.g-mode a.active { color: #081018; background: var(--accent); font-weight: 700; }
#gReset {
  min-height: 36px; height: 36px; padding: 0 12px; border-radius: 999px;
  background: #11161fdd; border: 1px solid #3d4d68; color: var(--muted);
  font-size: 12px; font-weight: 650;
}
.graph-tip {
  position: absolute; z-index: 12; pointer-events: none;
  background: #1c2636ee; border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 8px; font-size: 12px; max-width: 240px;
}
.graph-boot {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; color: var(--muted);
  background: #070a10aa;
}
.graph-boot[hidden] { display: none; }
.graph-side { overflow: auto; background: #0c1118; border-top: 1px solid var(--line); padding: 10px 12px; }
.g-side-top h2 {
  display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px;
  cursor: pointer; min-height: 36px; user-select: none;
}
.graph-page.side-off { grid-template-rows: 1fr auto; }
.graph-page.side-off .g-side-top h2 { margin: 0; }
.graph-page.side-off .search-wrap,
.graph-page.side-off #gCut,
.graph-page.side-off #gList { display: none; }
.g-cut { font-size: 11px; margin-bottom: 8px; }
.g-grp { margin-bottom: 8px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.g-grp-h { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 5px 0; }
.g-grp-h i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.g-grp-h b { flex: 1; font-size: 13px; }
.caret { flex: none; color: var(--muted); font-size: 10px; transition: transform .12s; }
.caret.on { transform: rotate(90deg); }

.g-chk { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.g-vis { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center;
  background: #090c12cc; border-radius: 10px; padding: 4px 8px; }
.g-size { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center;
  background: #090c12cc; border-radius: 10px; padding: 4px 8px; }
.g-size[hidden] { display: none; }
.graph-zoom { position: absolute; z-index: 3; right: 12px; bottom: 56px; display: flex; align-items: center;
  gap: 2px; background: #11161fdd; border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.graph-zoom button { width: 24px; height: 24px; background: none; border: 0; color: var(--fg);
  font-size: 15px; cursor: pointer; border-radius: 6px; }
.graph-zoom button:hover { background: #1d2635; }
.graph-zoom b { min-width: 46px; text-align: center; font-size: 11px; color: var(--muted); }
.g-zoom-scale { display: flex; align-items: flex-end; gap: 2px; height: 18px; padding: 0 4px; }
.g-zoom-scale i { width: 3px; height: 5px; background: #2b3548; border-radius: 1px; }
.g-zoom-scale i:nth-child(3n+1) { height: 9px; }
.g-zoom-scale i.on { background: var(--accent); }

.graph-legend { position: absolute; z-index: 3; left: 12px; bottom: 56px; max-width: 340px;
  background: #11161fee; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; }
.graph-legend.wide { max-width: min(720px, calc(100% - 24px)); }
.g-lg-tblw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.g-lg-tbl { width: 100%; border-collapse: collapse; white-space: nowrap; }
.g-lg-tbl th, .g-lg-tbl td { padding: 4px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.g-lg-tbl th { color: var(--muted); font-weight: 650; }
.g-lg-tbl td:first-child, .g-lg-tbl th:first-child { text-align: left; }
.g-lg-tbl td:first-child { color: var(--text); font-weight: 650; }
.g-lg-tbl .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c); margin-right: 5px; vertical-align: middle; }
.g-lg-h { display: flex; flex-direction: column; gap: 6px; padding: 6px 8px; }
.g-lg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.g-lg-h em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; color: var(--text); }
.g-lg-h i.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.g-lg-h i.ring { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--c);
  background: transparent; flex-shrink: 0; box-sizing: border-box; }
.g-lg-h i.dash { width: 8px; height: 8px; border-radius: 50%; border: 1.5px dashed #c5cedb;
  background: transparent; flex-shrink: 0; box-sizing: border-box; }
.g-lg-b { padding: 0 10px 8px; max-height: 44vh; overflow: auto; }
.g-lg-s { color: var(--muted); line-height: 1.6; margin-bottom: 4px; }
.g-row.rh { grid-template-columns: minmax(0, 1fr) 72px 64px; }
.g-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #ff3b4a; flex: none; margin-right: 4px;
}
@media (max-width: 759px) {
  body { --top: 132px; }
  .top-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand right" "mid mid";
    gap: 6px 8px;
  }
  .brand { grid-area: brand; white-space: nowrap; font-size: 15px; }
  .top-mid { grid-area: mid; justify-self: start; }
  .top-right { grid-area: right; }
  .g-vis { display: none; }
  .nav { padding: 4px 0 6px; }
  .nav a { min-height: 32px; padding: 6px 12px; font-size: 14px; }
  .graph-zoom { display: none; }
  .graph-legend {
    display: block; left: 8px; bottom: 8px; max-width: calc(100% - 16px);
  }
  .graph-legend[hidden] { display: none; }
  .graph-legend.wide { max-width: calc(100% - 16px); }
  .g-lg-b { display: none; }
  .graph-toolbar { gap: 4px; }
  .g-bar { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
  .g-mode { height: 28px; }
  .g-mode a { min-height: 22px; padding: 2px 8px; font-size: 11px; }
  #gReset { min-height: 28px; height: 28px; padding: 0 8px; font-size: 11px; }
  .g-dyn-lab { display: none; }
  .graph-toolbar .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .graph-toolbar .tabs a { min-height: 26px; padding: 3px 8px; font-size: 11px; }
  .g-size { padding: 2px 6px; }
  .g-focus, .watch-grid { grid-template-columns: 1fr; }
  .g-focus .scroll-box { max-height: 520px; }
}
.g-grp-sub { font-size: 11px; margin: 4px 0 6px; }
.g-empty { padding: 16px 8px; line-height: 1.5; }
.g-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto 52px; gap: 6px;
  align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line);
  font-size: 11px; cursor: pointer;
}
.g-row.on { background: #1c2636; margin: 0 -6px; padding-left: 6px; padding-right: 6px; border-radius: 6px; }
.g-row .addr { font-family: ui-monospace, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; }
.fate { font-size: 10px; white-space: nowrap; }
/* 清单去向字色 */
.f-0 { color: #7d8aa3; } .f-1 { color: var(--f-1, #4CAF50); } .f-2 { color: var(--f-2, #F44336); }
.f-3 { color: #f1f5f9; } .f-4 { color: #d946ef; } .f-5 { color: var(--f-5, #FFEB3B); }

.rpc-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rpc-row .form { margin-top: 6px; }
.rpc-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.rpc-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rpc-hd b { min-width: 0; font-weight: 650; }
.rpc-st { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line);
  white-space: nowrap; flex: none; word-break: keep-all; }
.kv .rpc-st { word-break: keep-all; }
.rpc-st.live { color: var(--up); border-color: #1f6a40; }
.rpc-st.unused { color: var(--muted); }
.rpc-st.limited { color: var(--warn); border-color: #6a4a18; }
.rpc-st.exhausted, .rpc-st.error { color: var(--down); border-color: #6a2a32; }
.rpc-alert { color: var(--down); font-size: 13px; margin: 8px 0; }

@media (min-width: 760px) {
  .g-focus > .card:first-child { overflow: hidden; }
  .g-focus .scroll-box { max-height: none; }
  body { padding: 108px 24px 28px; }
  .g4 { grid-template-columns: repeat(4, 1fr); }
  .throle { min-width: 0; grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .sheet-body { max-height: 80%; }
  .thf { grid-template-columns: 158px 52px minmax(0, 1fr) 80px 80px 72px 88px 88px; }
  .ths { grid-template-columns: 168px minmax(0, 1fr) 48px 88px 80px 80px 96px; }
  .thsw { grid-template-columns: 156px 400px 44px minmax(88px, 1fr) minmax(88px, 1fr) 72px minmax(88px, 1fr) minmax(100px, 1fr) minmax(96px, 1fr) minmax(80px, .8fr); }
  .thex { grid-template-columns: 32px 400px minmax(88px, 1fr) minmax(88px, 1fr) minmax(80px, 1fr) 52px 168px; }
  .thold { grid-template-columns: 28px 400px minmax(80px, 1fr) 56px minmax(88px, 1fr) minmax(88px, 1fr) minmax(88px, 1fr) minmax(80px, 1fr) minmax(80px, 1fr) 72px 88px 108px; }
  .flow-cmp { grid-template-columns: 1fr 1fr; }
  .graph-page {
    margin: -8px -24px -28px; height: calc(100dvh - 108px);
    grid-template-columns: 1fr 320px; grid-template-rows: 1fr;
    position: relative;
  }
  .graph-side { border-top: 0; border-left: 1px solid var(--line); }
  .graph-page.side-off {
    grid-template-columns: 1fr; grid-template-rows: 1fr;
  }
  .graph-page.side-off .graph-side {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    z-index: 4; width: auto; overflow: hidden;
    padding: 10px 12px; border: 1px solid var(--line); border-right: 0;
    border-radius: 10px 0 0 10px; background: #11161fee;
  }
}

body.login-body { padding: 24px 16px; min-height: 100dvh; display: grid; place-items: center; }
.login-box { width: min(400px, 100%); margin: 0; }
.login-box h1 { margin: 0 0 4px; font-size: 22px; }
.login-box > .mut { margin: 0 0 16px; }
.login-code { position: relative; }
.login-code input { padding-right: 112px; }
.login-code canvas {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 100px; height: 40px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; cursor: pointer;
}
.login-box button { width: 100%; }
.login-err { margin: 0; min-height: 1.4em; }
.top-out {
  min-height: 32px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
