:root {
  --bg: #f5f5f7;
  --panel: #ffffff;
  --fg: #1d1d1f;
  --muted: #86868b;
  --accent: #0071e3;
  --pos: #16a34a;
  --pos-soft: rgba(22, 163, 74, 0.12);
  --neg: #dc2626;
  --neg-soft: rgba(220, 38, 38, 0.12);
  --flip: #0d9488;
  --flip-soft: rgba(13, 148, 136, 0.12);
  --line: rgba(0, 0, 0, 0.06);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
body { min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }

.shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 88px;
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 24px); padding: 28px 0 64px; }
}

/* —— header —— */
.hero { margin-bottom: 28px; }
.hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  width: 40px;
  height: 40px;
  margin-top: 2px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 6px 16px rgba(0,0,0,0.08);
}
.hero-copy { min-width: 0; }
.hero h1 {
  margin: 0 0 6px;
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.cta-partner {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 12px;
}
.partner-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 980px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.cta-entropy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding: 11px 16px;
  background: var(--panel);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: box-shadow .15s, border-color .15s, transform .15s;
}
.cta-entropy::after {
  content: "→";
  color: var(--accent);
  font-weight: 500;
}
.cta-entropy:hover {
  text-decoration: none;
  border-color: rgba(0, 113, 227, 0.28);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 12px 28px rgba(0, 113, 227, 0.08);
}
.cta-entropy:active {
  transform: scale(0.985);
}

.topnav {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.055);
  border-radius: 980px;
  padding: 5px;
  flex-shrink: 0;
}
.navtab {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(0, 0, 0, 0.55);
  border-radius: 980px;
  padding: 11px 22px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: inherit;
  cursor: pointer;
  transition: color .15s, background .15s, box-shadow .15s, transform .15s;
}
.navtab:hover { color: var(--fg); }
.navtab.active {
  background: #fff;
  color: var(--fg);
  font-weight: 780;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 4px 14px rgba(0,0,0,0.08);
}

.page[hidden] { display: none !important; }

/* —— overview main: cards + feed —— */
.ov-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}
@media (max-width: 980px) {
  .ov-main { grid-template-columns: 1fr; }
}

.section-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 0 2px;
}
.section-bar h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.trader-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1100px) {
  .trader-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .trader-grid { grid-template-columns: 1fr; }
}

.tcard {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 16px;
  padding: 14px 14px 12px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 148px;
}
.tcard:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 12px 28px rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.1);
}
.tcard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.tcard-who { min-width: 0; }
.tcard-who .name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tcard-who .addr {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}
.tcard-who .handle {
  color: var(--accent);
  font-weight: 560;
  font-size: 0.72rem;
}

.net-badge {
  flex-shrink: 0;
  border-radius: 980px;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}
.net-badge.long {
  background: var(--pos-soft);
  color: var(--pos);
}
.net-badge.short {
  background: var(--neg-soft);
  color: var(--neg);
}

.coin-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg);
  border-radius: 980px;
  padding: 4px 8px 4px 9px;
  font-size: 0.72rem;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}
.coin-pill .sym { font-weight: 650; letter-spacing: -0.01em; }
.side-tag {
  border-radius: 6px;
  padding: 1px 5px;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.35;
}
.side-tag.long { background: var(--pos-soft); color: var(--pos); }
.side-tag.short { background: var(--neg-soft); color: var(--neg); }
.coin-pill .amt { color: var(--muted); font-weight: 500; }

.tcard-foot {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.tcard-foot .cell .k {
  font-size: 0.64rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 2px;
}
.tcard-foot .cell .v {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* —— overview left: 浮盈排名 —— */
.trader-rank {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 4px 10px;
  box-shadow: var(--shadow);
}
.trank {
  appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  display: grid;
  grid-template-columns: 40px 36px minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: center;
  padding: 13px 6px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-align: left;
  transition: background .15s;
}
.trank:last-child { border-bottom: none; }
.trank:hover { background: rgba(0, 0, 0, 0.02); }
.trank .rank {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.trank .rank.top { color: var(--fg); }
.trank-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.trank-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.trank-who { min-width: 0; }
.trank-who .name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trank-who .sub {
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
}
.trank-who .handle {
  color: var(--accent);
  font-weight: 560;
}
.trank-who .addr {
  font-family: var(--mono);
  font-size: 0.68rem;
}
.trank-pnl {
  text-align: right;
  min-width: 88px;
}
.trank-pnl .primary {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.trank-pnl .secondary {
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .trank {
    grid-template-columns: 32px 32px minmax(0, 1fr);
    gap: 6px 8px;
  }
  .trank-pnl {
    grid-column: 3 / -1;
    text-align: left;
    min-width: 0;
  }
  .trank-av { width: 32px; height: 32px; }
}

/* —— feed / 动态流 —— */
.col-feed {
  position: sticky;
  top: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 14px 12px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: var(--shadow);
}
.ov-feed { max-height: calc(100vh - 48px); min-height: 420px; }
@media (max-width: 980px) {
  .col-feed, .ov-feed {
    position: static;
    max-height: none;
    min-height: 0;
  }
}
.feed-head {
  flex-shrink: 0;
  margin-bottom: 12px;
  padding: 0 4px;
}
.feed-head h2 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.feed-sub {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}
.feed {
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  flex: 1;
  margin: 0 -4px;
  padding: 0 4px 4px;
}
.feed-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  text-align: left;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 14px;
  padding: 12px 12px 10px;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: background .15s, border-color .15s;
}
.feed-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #e8e8ed;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}
.feed-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feed-item .fbody { min-width: 0; }
.feed-item:hover {
  background: #fff;
  border-color: rgba(0,0,0,0.1);
}
.feed-item .fh {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.feed-item .handle {
  color: var(--accent);
  font-weight: 650;
  font-size: 0.84rem;
}
.feed-item .when {
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.feed-item .teaser {
  margin: 0 0 8px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-item .fm {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  font-size: 0.7rem;
  color: var(--muted);
}
.feed-item .fm .tag {
  font-weight: 650;
  border-radius: 6px;
  padding: 1px 6px;
}
.feed-item .fm .tag.long { background: var(--pos-soft); color: var(--pos); }
.feed-item .fm .tag.short { background: var(--neg-soft); color: var(--neg); }
.feed-item .fm .pnl { font-weight: 650; font-variant-numeric: tabular-nums; }

.empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
  font-size: 0.95rem;
}
.feed-empty { padding: 20px 8px; font-size: 0.84rem; }

/* —— metric pills —— */
.pills {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 16px;
}
@media (max-width: 980px) {
  .pills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pill {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
}
.pill .k {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 6px;
}
.pill .v {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.pill .s {
  margin-top: 5px;
  font-size: 0.7rem;
  color: var(--muted);
}

.ov-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 820px) {
  .ov-grid { grid-template-columns: 1fr; }
}
.ov-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow: var(--shadow);
}
.ov-card-head { margin-bottom: 14px; }
.ov-card-head.row-between {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.ov-card-head h2 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.ov-sub {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.bar-row {
  display: grid;
  grid-template-columns: 52px 1fr 78px;
  gap: 10px;
  align-items: center;
}
.bar-row .coin {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.bar-track {
  position: relative;
  height: 9px;
  background: rgba(0,0,0,0.05);
  border-radius: 980px;
  overflow: hidden;
}
.bar-track .mid {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0,0,0,0.14);
}
.bar-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 980px;
}
.bar-fill.pos { background: var(--pos); left: 50%; }
.bar-fill.neg { background: var(--neg); right: 50%; }
.bar-val {
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-weight: 600;
}

.ls-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ls-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
}
.ls-row .coin {
  font-size: 0.82rem;
  font-weight: 650;
}
.ls-bar {
  display: flex;
  height: 9px;
  border-radius: 980px;
  overflow: hidden;
  background: rgba(0,0,0,0.05);
  min-width: 0;
}
.ls-bar .lg { background: var(--pos); }
.ls-bar .sh { background: var(--neg); }
.ls-meta {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ls-meta .pos, .ls-meta .neg { font-weight: 650; }

/* —— moves —— */
.moves-card { margin-bottom: 8px; }
.moves { display: flex; flex-direction: column; }
.move {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto auto auto minmax(110px, auto) minmax(76px, auto) auto;
  gap: 10px 12px;
  align-items: center;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
  border-radius: 0;
  transition: background .15s;
}
.move:first-child { border-top: 1px solid var(--line); }
.move:hover { background: rgba(0,0,0,0.02); }
.move .who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.move .who-text { min-width: 0; }
.move-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.move-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.move .who .name {
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.move .who .sub {
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.move .size {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.move .who .handle { color: var(--accent); font-weight: 560; }
.move .who .addr { font-family: var(--mono); font-size: 0.66rem; }
.move .coin {
  font-weight: 650;
  font-size: 0.84rem;
}
.move .side-pill,
.move .action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 980px;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.move .side-pill.long { background: var(--pos-soft); color: var(--pos); }
.move .side-pill.short { background: var(--neg-soft); color: var(--neg); }
.move .action-pill.open,
.move .action-pill.add { background: var(--pos-soft); color: var(--pos); }
.move .action-pill.reduce,
.move .action-pill.close { background: var(--neg-soft); color: var(--neg); }
.move .action-pill.flip { background: var(--flip-soft); color: var(--flip); }
.move .delta {
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  letter-spacing: -0.02em;
}
.move .when {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}
.move .tags { display: none; }
@media (max-width: 900px) {
  .move {
    grid-template-columns: minmax(0, 1.5fr) auto auto auto minmax(76px, auto) auto;
  }
  .move .size.desk { display: none; }
}
@media (max-width: 720px) {
  .move {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
  }
  .move .desk { display: none; }
  .move .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    grid-column: 1;
    grid-row: 2;
  }
  .move .delta { grid-column: 2; grid-row: 1; align-self: start; }
  .move .when { grid-column: 2; grid-row: 2; }
}

/* —— moves page —— */
.page-title {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.moves-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 20px;
  margin-bottom: 12px;
}
.moves-filters { flex-wrap: wrap; }
.moves-page-card {
  padding: 8px 18px 12px;
}
.moves-page-card .moves { min-height: 240px; }

.moves-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.filter-label {
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.02em;
  min-width: 2.5em;
}


/* insight strip on moves page */
.insight-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
@media (max-width: 980px) {
  .insight-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .insight-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
}
.insight-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}
.insight-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 12px 28px rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.1);
}
.insight-card.active {
  border-color: rgba(0, 113, 227, 0.35);
  background: linear-gradient(180deg, #fff 0%, #f3f8ff 100%);
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.08), 0 10px 24px rgba(0, 113, 227, 0.06);
}
.insight-card .insight-kicker {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.insight-card .insight-coin {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.insight-card .insight-metric {
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.insight-card .insight-meta {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.35;
}
.insight-card.tone-up .insight-metric { color: var(--pos); }
.insight-card.tone-down .insight-metric { color: var(--neg); }
.insight-card.tone-long .insight-coin { color: var(--pos); }
.insight-card.tone-short .insight-coin { color: var(--neg); }
.insight-strip-note {
  grid-column: 1 / -1;
  margin: -2px 2px 0;
  font-size: 0.68rem;
  color: var(--muted);
}

/* story feed */
.story-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
}
.story-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}
.story-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 12px 28px rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.1);
}
.story-card.large {
  border-color: rgba(0, 0, 0, 0.12);
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}
.story-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.story-card .who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.story-card .who-text { min-width: 0; }
.story-card .who .name {
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.story-card .who .sub {
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.story-card .who .handle { color: var(--accent); font-weight: 560; }
.story-card .who .name.handle-primary {
  color: var(--accent);
  font-weight: 700;
}
.story-card .who .hd-name {
  color: var(--fg);
  font-weight: 560;
  opacity: 0.82;
}
.story-card .who .addr { font-family: var(--mono); font-size: 0.66rem; }
.move-av.has-x {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 113, 227, 0.35);
}
.story-right {
  text-align: right;
  flex-shrink: 0;
}
.story-right .delta {
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.story-right .when {
  margin-top: 3px;
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
}
.story-body { display: flex; flex-direction: column; gap: 8px; }
.story-line {
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.story-card .side-pill,
.story-card .action-pill,
.story-card .coin-pill,
.story-card .pin-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 980px;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.story-card .coin-pill {
  background: rgba(0,0,0,0.06);
  color: var(--fg);
  font-weight: 650;
}
.story-card .pin-pill {
  background: rgba(255, 149, 0, 0.14);
  color: #c93400;
}
.story-card .side-pill.long { background: var(--pos-soft); color: var(--pos); }
.story-card .side-pill.short { background: var(--neg-soft); color: var(--neg); }
.story-card .action-pill.open,
.story-card .action-pill.add { background: var(--pos-soft); color: var(--pos); }
.story-card .action-pill.reduce,
.story-card .action-pill.close { background: var(--neg-soft); color: var(--neg); }
.story-card .action-pill.flip { background: var(--flip-soft); color: var(--flip); }
.story-size {
  font-size: 0.74rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .story-card { padding: 12px 14px; border-radius: 14px; }
  .story-line { font-size: 0.92rem; }
  .story-right .delta { font-size: 0.95rem; }
}

/* —— board page —— */
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.chip {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 980px;
  padding: 6px 12px;
  font-size: 0.84rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.chip:hover { color: var(--fg); background: rgba(0,0,0,0.04); }
.chip.active {
  background: var(--fg);
  color: #fff;
}
.search {
  flex: 1;
  min-width: 160px;
  max-width: 280px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: 980px;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-family: inherit;
}
.search::placeholder { color: #a1a1a6; }
.search:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
  background: #fff;
}
.sort {
  appearance: none;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2386868b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: 980px;
  padding: 9px 32px 9px 14px;
  font-size: 0.84rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}
.sort:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 24px; }
}

.count {
  text-align: left;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0 0 10px;
}

.board {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 4px 14px;
  box-shadow: var(--shadow);
}
.row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s;
}
.row:last-child { border-bottom: none; }
.row:hover { background: rgba(0, 0, 0, 0.015); }
.rank {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.rank.top { color: var(--fg); }
.row .who {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.row .who-text { min-width: 0; }
.row-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.row-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.row-av.has-x {
  width: 44px;
  height: 44px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(0, 113, 227, 0.35);
}
.row-av.no-x {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}
.who .name.handle-primary,
a.name.handle-primary {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}
a.name.handle-primary:hover { text-decoration: underline; }
.who .hd-name {
  color: var(--fg);
  font-weight: 560;
  opacity: 0.82;
}
.row.addr-hit {
  background: rgba(0, 113, 227, 0.08);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.22);
  transition: background .4s;
}
.who .name {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0;
}
.who .sub {
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}
.who .handle {
  color: var(--accent);
  font-weight: 560;
}
.who .addr {
  font-family: var(--mono);
  font-size: 0.7rem;
}
.who .coins { color: var(--muted); }
.nums {
  text-align: right;
  min-width: 96px;
}
.nums .primary {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.nums .secondary {
  margin-top: 3px;
  font-size: 0.74rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 6px 10px;
  }
  .nums {
    grid-column: 2;
    text-align: left;
    min-width: 0;
  }
}

.footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}
.footer p {
  margin: 0 auto 8px;
  line-height: 1.55;
  max-width: 46em;
}
.footer .fine { font-size: 0.7rem; opacity: 0.85; }
.footer a {
  color: var(--accent);
  font-weight: 560;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* —— drawer —— */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(480px, 100%);
  height: 100%;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  transform: translateX(105%);
  transition: transform .28s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  justify-content: flex-end;
  padding: 14px 16px 0;
  flex-shrink: 0;
}
.icon-btn {
  appearance: none;
  border: none;
  background: var(--bg);
  color: var(--fg);
  border-radius: 980px;
  width: 32px;
  height: 32px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.icon-btn:hover { background: #e8e8ed; }
.drawer-body {
  padding: 4px 28px 40px;
  overflow: auto;
  flex: 1;
}
.drawer-body h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.drawer-id {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}
.drawer-id-text { min-width: 0; }
.drawer-av {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.drawer-av.has-x {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(0, 113, 227, 0.4);
}
.drawer-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.drawer-body h2.handle-primary,
.drawer-body h2.handle-primary a {
  color: var(--accent);
  text-decoration: none;
}
.drawer-body h2.handle-primary a:hover { text-decoration: underline; }
.drawer-hd {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--fg);
}
.drawer-body .addr {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
  word-break: break-all;
}
.drawer-body .handle {
  margin-top: 6px;
  font-weight: 560;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 4px;
  font-size: 0.84rem;
}
.section-title {
  margin: 28px 0 12px;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.metric {
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 14px;
}
.metric .k {
  font-size: 0.66rem;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 500;
}
.metric .v {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.table th {
  text-align: left;
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.posts { display: flex; flex-direction: column; gap: 10px; }
.post {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.post .when {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.post-zh {
  white-space: pre-wrap;
  word-break: break-word;
}
.post-orig {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}

/* —— 协议对比上下两块 —— */
.compare-block + .compare-block {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* —— HIP-3 Overview —— */
.hip3-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hip3-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hip3-live-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 980px;
  background: var(--pos-soft);
  color: var(--pos);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hip3-table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.hip3-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.88rem;
}
.hip3-table th {
  text-align: left;
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.015);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
.hip3-table th.num,
.hip3-table td.num {
  text-align: right;
}
.hip3-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.hip3-table tr:last-child td { border-bottom: none; }
.hip3-table tbody tr:hover td { background: rgba(0, 0, 0, 0.018); }
.hip3-venue {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.hip3-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg);
  object-fit: contain;
  flex: 0 0 auto;
}
.hip3-logo.fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}
.hip3-venue-text { min-width: 0; }
.hip3-venue-name {
  display: block;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.hip3-venue-name a { color: inherit; }
.hip3-logo-link {
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: 10px;
  line-height: 0;
}
.hip3-logo-link:hover { opacity: 0.88; }
.hip3-venue-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.hip3-venue-link:hover {
  color: var(--accent);
  border-bottom-color: rgba(0, 113, 227, 0.35);
}
.hip3-venue-link.partner {
  color: var(--flip);
  border-bottom-color: rgba(13, 148, 136, 0.35);
}
.hip3-venue-link.partner:hover {
  color: var(--flip);
  border-bottom-color: rgba(13, 148, 136, 0.7);
}
.hip3-chaos {
  display: inline-flex;
  padding: 1px 7px;
  border-radius: 980px;
  margin-left: 6px;
  vertical-align: 1px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(13, 148, 136, 0.14);
  color: var(--flip);
}
.hip3-row-chaos td:first-child {
  box-shadow: inset 3px 0 0 var(--flip);
}
.hip3-venue-meta {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--muted);
}
.hip3-kind {
  display: inline-flex;
  padding: 1px 7px;
  border-radius: 980px;
  background: rgba(0, 0, 0, 0.04);
  font-size: 0.64rem;
  font-weight: 600;
  margin-left: 6px;
  vertical-align: 1px;
}
.hip3-kind.native { background: rgba(0, 113, 227, 0.1); color: var(--accent); }
.hip3-kind.hip3 { background: rgba(13, 148, 136, 0.12); color: var(--flip); }
.hip3-note {
  margin: 14px 4px 0;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--muted);
}
.hip3-note strong { color: var(--fg); font-weight: 600; }
@media (max-width: 720px) {
  .hip3-table { font-size: 0.82rem; min-width: 640px; }
  .hip3-table th, .hip3-table td { padding: 12px 12px; }
  .hip3-logo { width: 30px; height: 30px; border-radius: 8px; }
}

/* Best trades (Hyperdash completed trades top 5) */
.best-trades {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.best-trade {
  background: var(--bg);
  border-radius: 14px;
  padding: 14px 16px;
}
.best-trade .bt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.best-trade .bt-coin {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.best-trade .bt-sym {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.best-trade .bt-side {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(127,127,127,0.12);
}
.best-trade .bt-side.pos {
  color: var(--pos, #1a9f5c);
  background: rgba(26, 159, 92, 0.12);
}
.best-trade .bt-side.neg {
  color: var(--neg, #e5484d);
  background: rgba(229, 72, 77, 0.12);
}
.best-trade .bt-pnl {
  font-weight: 750;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.best-trade .bt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}
.best-trade .bt-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.best-trade .bt-grid .k {
  font-size: 0.64rem;
  color: var(--muted);
  font-weight: 550;
  letter-spacing: 0.03em;
}
.best-trade .bt-grid .v {
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  font-weight: 560;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 520px) {
  .best-trade .bt-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.chip-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.frontends-table th:first-child,
.frontends-table td.rank-cell {
  width: 2.5rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
