:root {
  --ink: #111a2d;
  --muted: #8b97ac;
  --line: #e6e9f0;
  --surface: #f6f7f9;
  --green: #08b769;
  --red: #f0443c;
  --orange: #f39318;
  --shadow: 0 24px 80px rgba(15, 23, 42, .14);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  color: var(--ink);
  background: #eef0f4;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select { font: inherit; }
button { color: inherit; }

.shell {
  width: min(880px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 30px 56px;
  background: #fff;
  border-inline: 1px solid #dfe3ea;
}

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 28px; font-weight: 850; text-decoration: none; letter-spacing: -.04em; }
.brand-bars { display: flex; align-items: end; gap: 3px; height: 30px; }
.brand-bars i { width: 6px; display: block; border-radius: 1px 1px 0 0; }
.brand-bars i:nth-child(1) { height: 18px; background: var(--green); }
.brand-bars i:nth-child(2) { height: 27px; background: #17213a; }
.brand-bars i:nth-child(3) { height: 13px; background: var(--red); }
.stream-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.stream-status span { width: 8px; height: 8px; border-radius: 50%; background: #aab2c0; box-shadow: 0 0 0 4px #edf0f4; }
.stream-status.live span { background: var(--green); box-shadow: 0 0 0 4px #d9f7e8; }
.stream-status.offline span { background: var(--orange); box-shadow: 0 0 0 4px #fff0d9; }
.top-actions { display: flex; align-items: center; gap: 15px; }
.auth-root, .auth-widget { display: flex; align-items: center; gap: 6px; }
.auth-widget { position: relative; }
.auth-button { max-width: 180px; display: flex; align-items: center; gap: 7px; padding: 9px 14px; overflow: hidden; border: 1px solid #e0e5ec; border-radius: 999px; background: #f8f9fb; color: #4e5a6c; cursor: pointer; font-size: 13px; font-weight: 750; }
.auth-button:disabled { cursor: wait; opacity: .55; }
.auth-button i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #aab2c0; }
.auth-button.authenticated i { background: var(--green); box-shadow: 0 0 0 3px #d9f7e8; }
.auth-button span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.auth-logout { padding: 8px 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.auth-logout:hover { color: var(--red); }
.auth-error-message { position: absolute; z-index: 95; top: calc(100% + 9px); right: 0; width: max-content; max-width: min(320px, calc(100vw - 32px)); padding: 9px 12px; border: 1px solid #fecaca; border-radius: 10px; background: #fff7f7; color: #b42318; box-shadow: 0 8px 24px rgba(15, 23, 42, .12); font-size: 12px; white-space: normal; }

.notice { padding: 20px 24px; border-radius: 22px; color: var(--muted); background: var(--surface); font-size: 17px; line-height: 1.55; }
.notice span { color: var(--orange); font-weight: 750; white-space: nowrap; }

.search-box { height: 82px; margin: 24px 0; padding: 0 26px; display: flex; align-items: center; gap: 20px; border: 2px solid var(--line); background: #fafbfc; border-radius: 24px; transition: border .2s, box-shadow .2s; }
.search-box:focus-within { border-color: #a8b2c3; box-shadow: 0 0 0 4px #f2f4f7; }
.search-box svg { width: 34px; height: 34px; fill: none; stroke: var(--muted); stroke-width: 1.7; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 25px; }
.search-box input::placeholder { color: #9299a5; }
.search-box button { display: none; width: 34px; height: 34px; padding: 0; border: 0; background: #e9ecf1; border-radius: 50%; cursor: pointer; color: #7e8797; font-size: 24px; line-height: 1; }
.search-box.has-value button { display: block; }

.chain-tabs { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px 4px 28px; }
.chain-tabs::-webkit-scrollbar { display: none; }
.chain-tabs button { flex: 0 0 auto; padding: 14px 25px; border: 1px solid #e1e5ec; border-radius: 999px; background: #f7f8fa; color: #596477; font-size: 17px; font-weight: 760; cursor: pointer; transition: .2s ease; }
.chain-tabs button:hover { transform: translateY(-1px); border-color: #cbd2dc; }
.chain-tabs button.active { color: #fff; background: var(--ink); border-color: var(--ink); }

.market-card { overflow: hidden; border: 2px solid var(--line); border-radius: 28px; background: #fff; }
.table-head { display: none; }
.token-list { padding: 10px 30px; }
.token-row { min-height: 121px; display: grid; grid-template-columns: minmax(260px, 1fr) minmax(120px, auto); align-items: center; gap: 24px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .18s; }
.token-row:last-child { border-bottom: 0; }
.token-row:hover { margin-inline: -20px; padding-inline: 20px; background: #fafbfc; }
.token-main { min-width: 0; display: flex; align-items: center; gap: 20px; }
.token-avatar { position: relative; width: 68px; height: 68px; flex: 0 0 68px; display: grid; place-items: center; overflow: visible; border-radius: 50%; color: #fff; font-size: 24px; font-weight: 850; background: var(--avatar, #8190a5); }
.token-avatar > span { position: relative; z-index: 0; }
.token-avatar img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: var(--avatar, #8190a5); }
.chain-badge { position: absolute; z-index: 2; right: -3px; bottom: -2px; width: 24px; height: 24px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; background: var(--badge, #695cff); font-size: 11px; }
.token-copy { min-width: 0; }
.symbol-line { display: flex; align-items: center; gap: 9px; }
.symbol-line strong { font-size: 24px; letter-spacing: .02em; }
.risk { padding: 3px 7px; border-radius: 6px; background: #ffe3e6; color: #fb4054; font-size: 12px; font-weight: 800; }
.token-meta { overflow: hidden; margin-top: 7px; color: var(--muted); font-size: 17px; white-space: nowrap; text-overflow: ellipsis; }
.price-cell { text-align: right; font-variant-numeric: tabular-nums; }
.token-price { position: relative; display: grid; min-height: 1.18em; overflow: hidden; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 22px; font-weight: 800; line-height: 1.18; letter-spacing: -.04em; white-space: nowrap; }
.token-price > span { grid-area: 1 / 1; justify-self: end; will-change: transform, opacity; }
.token-price.rolling-up .price-old { animation: price-roll-up-old .34s cubic-bezier(.22, .8, .28, 1) both; }
.token-price.rolling-up .price-new { animation: price-roll-up-new .34s cubic-bezier(.22, .8, .28, 1) both; }
.token-price.rolling-down .price-old { animation: price-roll-down-old .34s cubic-bezier(.22, .8, .28, 1) both; }
.token-price.rolling-down .price-new { animation: price-roll-down-new .34s cubic-bezier(.22, .8, .28, 1) both; }
@keyframes price-roll-up-old { to { opacity: 0; transform: translateY(-110%); } }
@keyframes price-roll-up-new { from { opacity: 0; transform: translateY(110%); } to { opacity: 1; transform: translateY(0); } }
@keyframes price-roll-down-old { to { opacity: 0; transform: translateY(110%); } }
@keyframes price-roll-down-new { from { opacity: 0; transform: translateY(-110%); } to { opacity: 1; transform: translateY(0); } }
.change { margin-top: 5px; color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; font-weight: 850; }
.change.down { color: var(--red); }

.loading-row { height: 121px; display: grid; grid-template-columns: 70px 1fr 120px; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.loading-row span { height: 22px; border-radius: 9px; background: linear-gradient(90deg, #f0f2f5, #fafafa, #f0f2f5); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.loading-row span:first-child { width: 68px; height: 68px; border-radius: 50%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty-state { padding: 72px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); text-align: center; }
.empty-state div { font-size: 42px; }
.empty-state strong { color: var(--ink); font-size: 18px; }

.backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(15, 23, 42, .32); backdrop-filter: blur(3px); }
.okx-inline-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 2px 8px; border-top: 1px solid var(--line); }
.okx-inline-head strong { font-size: 14px; }
.okx-inline-head span { color: var(--muted); font-size: 11px; }
.okx-inline-loading { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 68px; color: var(--muted); font-size: 12px; }
.okx-inline-loading span { width: 16px; height: 16px; border: 2px solid #dfe4eb; border-top-color: var(--ink); border-radius: 50%; animation: chart-spin .7s linear infinite; }
.okx-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 82px; padding: 12px 2px; border-top: 1px solid var(--line); }
.okx-result-main { min-width: 0; display: flex; align-items: center; gap: 12px; }
.okx-result .token-avatar { width: 46px; height: 46px; flex-basis: 46px; font-size: 15px; }
.okx-result .chain-badge { width: 17px; height: 17px; border-width: 2px; font-size: 8px; }
.okx-result-copy { min-width: 0; }
.okx-result-title { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.okx-result-title strong { overflow: hidden; font-size: 16px; white-space: nowrap; text-overflow: ellipsis; }
.okx-result-title span { overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.okx-result-meta { overflow: hidden; margin-top: 5px; color: var(--muted); font-family: ui-monospace, monospace; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.okx-result-state { min-width: 70px; padding: 7px 10px; border-radius: 999px; background: #eef1f5; color: #6f7b8e; font-size: 11px; font-weight: 760; text-align: center; }
.okx-result-state.error { background: #ffe8e6; color: var(--red); }
.detail-panel { position: fixed; z-index: 30; top: 0; right: 0; width: min(520px, 100%); height: 100vh; overflow-y: auto; padding: 26px 24px 50px; background: #fff; box-shadow: var(--shadow); transform: translateX(105%); transition: transform .28s cubic-bezier(.22,.9,.3,1); }
.detail-panel.open { transform: translateX(0); }
.close-detail { position: absolute; z-index: 2; top: 21px; right: 20px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--surface); color: #748095; font-size: 25px; line-height: 1; cursor: pointer; }
.detail-title { display: flex; align-items: center; gap: 13px; padding-right: 45px; }
.detail-title .token-avatar { width: 48px; height: 48px; flex-basis: 48px; font-size: 16px; }
.detail-title .chain-badge { width: 17px; height: 17px; border-width: 2px; font-size: 8px; }
.detail-title h2 { margin: 0; font-size: 20px; }
.detail-title p { margin: 3px 0 0; color: var(--muted); font-family: ui-monospace, monospace; font-size: 12px; }
.detail-price-line { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; }
.detail-price { font-size: 34px; font-weight: 880; letter-spacing: -.04em; }
.gain-pill { padding: 4px 7px; border-radius: 8px; color: #079757; background: #dff8eb; font-size: 13px; font-weight: 800; }
.gain-pill.down { color: #d8332d; background: #ffe6e3; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-tags span { padding: 5px 8px; border: 1px solid #e7eaf0; border-radius: 7px; color: #788398; background: #fafbfc; font-size: 11px; }
.detail-tags span:last-child { border: 0; color: #098e55; background: #e3f7ec; }
.detail-section-tabs { display: flex; gap: 28px; margin: 18px 0 16px; border-bottom: 1px solid var(--line); }
.detail-section-tabs button { position: relative; padding: 11px 0 13px; border: 0; background: transparent; color: #8b949f; font-size: 15px; font-weight: 760; cursor: pointer; }
.detail-section-tabs button::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 4px; background: transparent; }
.detail-section-tabs button.active { color: var(--ink); }
.detail-section-tabs button.active::after { background: var(--ink); }
.holder-loading, .holder-empty { min-height: 180px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted); font-size: 13px; text-align: center; }
.holder-loading span { width: 17px; height: 17px; border: 2px solid #dfe4eb; border-top-color: var(--ink); border-radius: 50%; animation: chart-spin .7s linear infinite; }
.holder-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.holder-summary-grid > div { min-height: 86px; display: grid; place-content: center; padding: 12px 8px; border-radius: 17px; background: #f6f7f7; text-align: center; }
.holder-summary-grid span, .holder-average-card span { color: #929a9b; font-size: 12px; }
.holder-summary-grid strong { margin-top: 7px; font-family: ui-monospace, monospace; font-size: 19px; }
.holder-average-card { margin-top: 12px; padding: 13px 16px; border-radius: 17px; background: #f6f7f7; }
.holder-average-card > div { min-height: 37px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.holder-average-card strong { font-family: ui-monospace, monospace; font-size: 14px; white-space: nowrap; }
.holder-average-card small { margin-left: 5px; font-size: 11px; }
.holder-stale { margin: 10px 2px 0; color: #b97a1c; font-size: 11px; }
.holder-table-head { display: grid; grid-template-columns: minmax(130px, 1fr) 126px 104px; gap: 9px; margin-top: 25px; padding: 0 3px 8px; color: #949d9c; font-size: 11px; }
.holder-table-head span:nth-child(n+2) { text-align: right; }
.holder-row { display: grid; grid-template-columns: 22px 35px minmax(74px, 1fr) 126px 104px; align-items: center; gap: 8px; min-height: 72px; border-bottom: 1px solid #edf0ef; }
.holder-rank { color: #949d9c; font-family: ui-monospace, monospace; font-size: 12px; text-align: center; }
.holder-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #eff4df; color: #40515a; font-size: 10px; font-weight: 850; }
.holder-owner, .holder-position, .holder-pnl { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.holder-position, .holder-pnl { align-items: flex-end; text-align: right; }
.holder-owner b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.holder-row b { font-size: 12px; }
.holder-row small { overflow: hidden; color: #969e9d; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.holder-pnl.positive b, .holder-average-card .positive { color: var(--green); }
.holder-pnl.negative b { color: var(--red); }
.time-tabs { display: flex; gap: 4px; margin: 10px 0 7px; }
.time-tabs button { flex: 1; min-height: 34px; padding: 7px 4px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; transition: color .16s ease, background .16s ease, transform .16s ease; }
.time-tabs button:hover { color: var(--ink); background: #eef1f5; }
.time-tabs button:focus-visible { outline: 2px solid #7058f5; outline-offset: 2px; }
.time-tabs button:active { transform: scale(.97); }
.time-tabs button.active { color: #fff; background: var(--ink); }
.time-tabs button.active:hover { color: #fff; background: var(--ink); }
.chart-box { position: relative; height: 216px; overflow: hidden; border: 1px solid #dfe4eb; border-radius: 18px; background: #f7f8fa; }
.chart-box.loading { display: grid; place-items: center; }
.chart-box svg { width: 100%; height: 100%; }
.chart-box .grid { stroke: #e1e5eb; stroke-width: 1; }
.chart-box .wick { stroke-width: 1.3; }
.chart-box .current-line { stroke: #11b66b; stroke-width: 1; stroke-dasharray: 4 4; opacity: .65; }
.chart-empty { height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.chart-loading { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.chart-loading span { width: 16px; height: 16px; border: 2px solid #dfe4eb; border-top-color: var(--ink); border-radius: 50%; animation: chart-spin .7s linear infinite; }
@keyframes chart-spin { to { transform: rotate(360deg); } }
.section-label { margin: 16px 0 9px; font-size: 14px; font-weight: 850; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.metric { min-height: 64px; padding: 11px 12px; border: 1px solid #e2e6ec; border-radius: 13px; background: #f8f9fb; }
.metric span { display: block; color: var(--muted); font-size: 10px; }
.metric strong { display: block; margin-top: 7px; font-family: ui-monospace, monospace; font-size: 15px; }
.contract-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 13px; border: 1px solid #e1e5eb; border-radius: 13px; background: #f8f9fb; color: var(--muted); font-family: ui-monospace, monospace; font-size: 11px; }
.contract-row span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.contract-row button { border: 1px solid #dfe4eb; border-radius: 7px; background: #fff; color: #68748a; cursor: pointer; }
.pressure { display: flex; height: 9px; overflow: hidden; border-radius: 99px; background: #eee; }
.pressure i:first-child { width: 59%; background: var(--green); }
.pressure i:last-child { flex: 1; background: var(--red); }
.pressure-labels { display: flex; justify-content: space-between; margin-top: 7px; font-size: 11px; }
.pressure-labels span:first-child { color: var(--green); }.pressure-labels span:last-child { color: var(--red); }
.trade-row { display: grid; grid-template-columns: 30px 1fr auto auto; align-items: center; gap: 9px; min-height: 43px; border-bottom: 1px solid var(--line); font-size: 12px; }
.trade-row .buy { color: var(--green); }.trade-row .sell { color: var(--red); }
.trade-row .wallet, .trade-row time { color: var(--muted); }
.trade-row strong { font-family: ui-monospace, monospace; }

@media (max-width: 720px) {
  .shell { width: 100%; padding: 24px 16px 40px; border: 0; }
  .brand { font-size: 23px; }
  .notice { padding: 16px 18px; border-radius: 18px; font-size: 14px; }
  .search-box { height: 66px; padding: 0 18px; border-radius: 19px; }
  .search-box svg { width: 27px; height: 27px; }
  .search-box input { font-size: 19px; }
  .chain-tabs { padding-bottom: 20px; }
  .chain-tabs button { padding: 11px 19px; font-size: 15px; }
  .market-card { border-radius: 22px; }
  .token-list { padding: 6px 18px; }
  .token-row { min-height: 102px; grid-template-columns: minmax(170px, 1fr) 102px; gap: 10px; }
  .token-main { gap: 12px; }
  .token-avatar { width: 54px; height: 54px; flex-basis: 54px; font-size: 19px; }
  .chain-badge { width: 20px; height: 20px; }
  .symbol-line strong { font-size: 19px; }
  .token-meta { font-size: 13px; }
  .token-price { font-size: 17px; }
  .change { font-size: 14px; }
  .detail-panel { top: 4vh; width: 100%; height: 96vh; border-radius: 24px 24px 0 0; }
  .holder-table-head { grid-template-columns: minmax(112px, 1fr) 112px 90px; }
  .holder-row { grid-template-columns: 18px 32px minmax(60px, 1fr) 112px 90px; gap: 6px; }
  .okx-inline-head span { display: none; }
  .okx-result { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .token-price.rolling-up .price-old,
  .token-price.rolling-up .price-new,
  .token-price.rolling-down .price-old,
  .token-price.rolling-down .price-new { animation: none; }
}

/* Ranking page */
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 14px; margin: 22px 0 14px; }
.search-row .search-box { height: 76px; margin: 0; }
.filter-trigger { position: relative; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 22px; background: #fafbfc; cursor: pointer; }
.filter-trigger svg { width: 34px; height: 34px; fill: none; stroke: #5f6a7b; stroke-width: 1.7; stroke-linejoin: round; }
.filter-trigger.active { border-color: #f4a020; background: #fff7ea; }
.filter-trigger:disabled { cursor: not-allowed; opacity: .42; }
.filter-trigger i { position: absolute; top: 8px; right: 8px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 999px; background: var(--orange); color: #fff; font-size: 10px; font-style: normal; font-weight: 850; }

.ranking-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.ranking-tabs::-webkit-scrollbar { display: none; }
.ranking-tabs button { position: relative; flex: 0 0 auto; padding: 20px 18px 18px; border: 0; background: transparent; color: #7d889b; font-size: 18px; font-weight: 780; cursor: pointer; }
.ranking-tabs button::after { content: ""; position: absolute; right: 14px; bottom: -1px; left: 14px; height: 3px; border-radius: 3px; background: transparent; }
.ranking-tabs button.active { color: var(--ink); }
.ranking-tabs button.active::after { background: var(--orange); }
.ranking-tabs button:disabled { cursor: not-allowed; opacity: .3; }
.ranking-tabs .favorite-tab { margin-left: auto; border-left: 1px solid var(--line); color: #ec8d0d; }

.ranking-tabs + .chain-tabs { padding: 20px 2px 10px; }
.ranking-tabs + .chain-tabs button { padding: 11px 22px; font-size: 15px; }
.ranking-note { min-height: 24px; margin: 6px 2px 14px; color: var(--muted); font-size: 14px; }
.market-card { border-width: 1px; border-radius: 24px; }
.token-list { padding: 8px 26px; }
.token-row { min-height: 108px; grid-template-columns: 34px minmax(0, 1fr) minmax(112px, auto) 44px 54px; gap: 14px; }
.token-rank { color: #8c97a8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; font-weight: 750; text-align: center; }
.token-row .token-avatar { width: 58px; height: 58px; flex-basis: 58px; font-size: 20px; }
.token-row .chain-badge { width: 20px; height: 20px; border-width: 2px; font-size: 9px; }
.token-row .symbol-line strong { font-size: 21px; }
.token-row .token-meta { font-size: 14px; }
.token-actions { display: contents; }
.favorite-button, .trade-button { border: 0; background: transparent; cursor: pointer; }
.favorite-button { padding: 5px; color: #91a0b3; font-size: 31px; line-height: 1; }
.favorite-button.active { color: var(--orange); }
.favorite-button:disabled { cursor: wait; opacity: .55; }
.trade-button { padding: 9px 3px; font-size: 16px; white-space: nowrap; }
.favorite-button:hover, .trade-button:hover { transform: translateY(-1px); }
.rank-source { color: #6d7a8e; }
.rank-source.positive { color: var(--green); }
.rank-source.negative { color: var(--red); }
.auth-required > div { color: var(--orange); }
.favorite-notice { position: fixed; z-index: 90; right: 50%; bottom: 32px; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px; background: #111827; color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 12px 36px rgba(15, 23, 42, .24); transform: translateX(50%); }

.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(15, 23, 42, .42); backdrop-filter: blur(2px); }
.filter-sheet { position: fixed; z-index: 50; right: 50%; bottom: 0; width: min(790px, 100%); max-height: min(88vh, 980px); overflow-y: auto; padding: 12px 34px 22px; border-radius: 28px 28px 0 0; background: #fff; box-shadow: 0 -24px 70px rgba(15, 23, 42, .18); transform: translate(50%, 105%); transition: transform .25s cubic-bezier(.22,.9,.3,1); }
.filter-sheet.open { transform: translate(50%, 0); }
.sheet-handle { width: 58px; height: 6px; margin: 0 auto 20px; border-radius: 99px; background: #dfe3ea; }
.filter-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.filter-head h2 { margin: 0; font-size: 25px; }
.filter-head p { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.filter-head button { width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--surface); color: #677386; font-size: 31px; cursor: pointer; }
.filter-groups { padding: 6px 0 118px; }
.filter-groups fieldset { margin: 23px 0 0; padding: 0; border: 0; }
.filter-groups legend { width: 100%; margin-bottom: 13px; color: var(--muted); font-size: 15px; }
.filter-groups button { margin: 0 8px 9px 0; padding: 11px 19px; border: 1px solid #e2e6ec; border-radius: 999px; background: #f8f9fb; color: #5d697b; font-size: 15px; font-weight: 730; cursor: pointer; }
.filter-groups button.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.filter-unavailable { min-height: 260px; padding: 90px 20px; color: var(--muted); text-align: center; }
.filter-actions { position: sticky; bottom: -22px; display: grid; grid-template-columns: 1fr 2.2fr; gap: 14px; padding: 16px 0 22px; background: linear-gradient(transparent, #fff 18%, #fff); }
.filter-actions button { min-height: 58px; border: 1px solid #dde2ea; border-radius: 20px; background: #fff; font-size: 18px; font-weight: 820; cursor: pointer; }
.filter-actions button:last-child { border-color: #ffa31a; background: #ffa31a; color: #111827; }

@media (max-width: 720px) {
  .topbar { margin-bottom: 16px; }
  .top-actions { gap: 9px; }
  .stream-status b { display: none; }
  .auth-button { max-width: 112px; padding: 8px 11px; }
  .search-row { grid-template-columns: minmax(0, 1fr) 62px; gap: 10px; margin-top: 12px; }
  .search-row .search-box { height: 62px; }
  .filter-trigger { border-radius: 18px; }
  .filter-trigger svg { width: 28px; height: 28px; }
  .ranking-tabs button { padding: 17px 13px 15px; font-size: 15px; }
  .ranking-tabs .favorite-tab { margin-left: 0; }
  .ranking-tabs + .chain-tabs { padding-top: 16px; }
  .ranking-note { font-size: 12px; }
  .token-list { padding: 4px 14px; }
  .token-row { min-height: 94px; grid-template-columns: 24px minmax(0, 1fr) 96px 34px; gap: 8px; }
  .token-row .token-avatar { width: 48px; height: 48px; flex-basis: 48px; font-size: 16px; }
  .token-row .token-main { gap: 10px; }
  .token-row .symbol-line strong { font-size: 17px; }
  .token-row .token-meta { font-size: 11px; }
  .token-rank { font-size: 14px; }
  .token-row .token-price { font-size: 15px; }
  .token-row .change { font-size: 12px; }
  .favorite-button { font-size: 26px; }
  .trade-button { display: none; }
  .filter-sheet { padding-inline: 20px; }
  .filter-groups button { padding: 10px 16px; font-size: 14px; }
}
