[hidden] { display: none !important; }
.sidebar { position: sticky; inset: auto; top: 0; z-index: 20; width: 100%; min-height: 68px; padding: 10px 28px; flex-direction: row; align-items: center; gap: 28px; }
.sidebar .brand { white-space: nowrap; }
.sidebar .brand-note, .sidebar .sidebar-foot, .research-navigation .nav-label { display: none; }
.research-navigation { margin-left: auto; min-width: 0; }
.research-navigation nav { display: flex; gap: 2px; overflow-x: auto; }
.research-navigation nav button { white-space: nowrap; padding: 8px 10px; font-size: 12px; }
.research-navigation .nav-icon { width: 18px; }
main { margin-left: auto; margin-right: auto; width: 100%; max-width: 1600px; }
#ranking-table tbody tr { cursor: pointer; }
.site-mode-momentum .tray { display: none !important; }
.site-switch { display: flex; gap: 4px; margin: 0; white-space: nowrap; }
.site-switch button { text-align: left; border: 0; background: transparent; color: #b8d0c2; padding: 10px 12px; }
.site-switch button:hover, .site-switch button.active { background: #29413a; color: white; }
.momentum-view .momentum-hero { padding: 38px 0 28px; }
.momentum-view .momentum-hero .eyebrow { color: var(--teal); }
.momentum-view .momentum-hero h1 { margin: 8px 0 10px; }
.momentum-view .momentum-hero p { max-width: 880px; color: var(--muted); }
.momentum-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.momentum-meta span { background: white; border: 1px solid var(--line); border-radius: 5px; padding: 5px 9px; font: 11px var(--mono); }
.momentum-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 24px 0 14px; }
.momentum-controls label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.momentum-controls select, .momentum-controls input[type="search"] { min-height: 39px; border: 1px solid var(--line); border-radius: 6px; background: white; padding: 8px 10px; color: var(--ink); }
.momentum-controls .momentum-check { display: flex; align-items: center; gap: 7px; min-height: 39px; color: var(--ink); }
.momentum-controls .momentum-search { flex: 1; min-width: 180px; }
.momentum-search input { width: 100%; }
.momentum-table, .momentum-detail { background: white; border: 1px solid var(--line); border-radius: 10px; }
.momentum-table { margin-top: 10px; overflow: hidden; }
.momentum-table table { width: 100%; border-collapse: collapse; white-space: nowrap; font-variant-numeric: tabular-nums; }
.momentum-table th, .momentum-table td { padding: 13px 15px; border-bottom: 1px solid #edf0eb; text-align: right; font-size: 12px; }
.momentum-table th { color: var(--muted); background: #fafbf8; }
.momentum-table th:nth-child(2), .momentum-table td:nth-child(2) { text-align: left; }
.momentum-table tbody tr { cursor: pointer; }
.momentum-table tbody tr:hover, .momentum-table tbody tr.selected { background: var(--mint); }
.momentum-table .positive { color: var(--teal); }
.momentum-table .negative { color: var(--red); }
.momentum-table .account-name { font-weight: 700; }
.momentum-detail { width: min(1050px, calc(100vw - 32px)); max-height: min(92vh, 1000px); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 24px 70px #172d2b55; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: #f4f6f4; }
.momentum-detail::backdrop { background: #111a19b3; }
.momentum-feed-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; padding: 12px 28px; background: #172d2b; color: white; box-shadow: 0 3px 12px #172d2b22; }
.momentum-feed-bar div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; min-width: 0; }
.momentum-feed-bar span, .momentum-feed-bar small { color: #bdd1c9; font-size: 12px; }
.momentum-feed-bar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; }
.momentum-feed-bar button { flex: none; border: 0; background: transparent; color: white; font-size: 20px; }
.momentum-feed-items { display: grid; gap: 12px; padding: 14px; }
.momentum-feed-card { overflow: hidden; scroll-margin-top: 82px; border: 1px solid #dce5df; border-radius: 12px; background: white; box-shadow: 0 4px 18px #193e3010; }
.momentum-feed-card-head { padding: 17px 22px; background: #eaf3ed; border-bottom: 1px solid #dce5df; }
.momentum-feed-card-head .eyebrow { color: #176d61; }
.momentum-feed-card-head h2 { margin: 4px 0; font-size: 23px; color: #172d2b; }
.momentum-feed-card-head p { margin: 0; overflow-wrap: anywhere; }
.momentum-feed-card-body { padding: 2px 22px 20px; }
.momentum-feed-card h3 { margin: 17px 0 4px; font-size: 17px; color: #111; }
.momentum-feed-card .momentum-records { margin-top: 10px; }
.momentum-feed-card .momentum-links { margin: 12px 0 0; }
.momentum-feed-card .momentum-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.momentum-feed-card details { margin-top: 17px; border-top: 1px solid #e9eeea; padding-top: 13px; }
.momentum-feed-card summary { cursor: pointer; color: #176d61; font-weight: 700; }
.momentum-feed-card .history-more { display: block; margin: 12px auto 0; padding: 8px 16px; border-color: #d7d7d7; color: #333; }
.momentum-feed-sentinel { height: 1px; }
.momentum-feed-end { margin: 0; padding: 0 20px 24px; text-align: center; }
.momentum-links { margin-top: 12px; }
.momentum-records { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.momentum-records .empty { grid-column: 1 / -1; padding: 20px; background: #f8f8f8; border-radius: 8px; color: #777; }
.okx-position-card { min-width: 0; background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; padding: 15px; color: #111; font-variant-numeric: tabular-nums; }
.okx-position-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.okx-position-identity > strong { display: block; font-size: 17px; letter-spacing: -.2px; }
.okx-position-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.okx-position-badges span { display: inline-block; padding: 2px 5px; background: #f4f4f4; color: #686868; font-size: 11px; line-height: 1.4; }
.okx-position-badges .side.long { color: #16a673; background: #e9f8f1; }
.okx-position-badges .side.short { color: #e45b76; background: #fff0f3; }
.okx-position-kind { color: #999; font-size: 11px; white-space: nowrap; }
.okx-position-pnl { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 12px 0 10px; border-bottom: 1px solid #f0f0f0; }
.okx-position-pnl-value span { display: block; color: #8a8a8a; font-size: 12px; }
.okx-position-pnl-value strong { display: block; margin-top: 3px; font: 700 23px var(--mono); letter-spacing: -.8px; }
.okx-position-pnl-value.percent { text-align: right; }
.okx-position-pnl-value.percent strong { font-size: 20px; }
.okx-position-pnl-value .gain { color: #16a673; }
.okx-position-pnl-value .loss { color: #e45b76; }
.okx-position-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 14px; margin-top: 11px; }
.okx-position-field { min-width: 0; }
.okx-position-field span { display: block; color: #969696; font-size: 11px; }
.okx-position-field strong { display: block; overflow-wrap: anywhere; margin-top: 4px; color: #252525; font-size: 12px; font-weight: 600; }
.momentum-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 13px 0; }
.momentum-metrics div { background: #f7f9f5; padding: 10px; border-radius: 7px; }
.momentum-metrics span { display: block; color: var(--muted); font-size: 11px; }
.momentum-metrics strong { display: block; margin-top: 5px; font: 600 17px var(--mono); }
.momentum-plots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.momentum-plots .plot { border: 1px solid var(--line); border-radius: 8px; padding: 14px; min-width: 0; }
.momentum-plots .plot h3 { margin-bottom: 8px; }
.momentum-plots .plot svg { display: block; width: 100%; height: 150px; }
.momentum-source { margin-top: 18px; }
@media (max-width: 760px) { .momentum-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .momentum-plots { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .sidebar { padding: 8px 16px; gap: 8px; flex-wrap: wrap; }
  .sidebar .brand { font-size: 19px; }
  .site-switch { margin-left: auto; }
  .site-switch button { padding: 7px 8px; font-size: 12px; }
  .research-navigation { width: 100%; margin: 0; }
  .research-navigation nav button { padding: 5px 8px; }
  .momentum-detail { width: calc(100vw - 20px); max-height: calc(100vh - 20px); border-radius: 12px; }
  .momentum-feed-bar { min-height: 62px; padding: 10px 16px; }
  .momentum-feed-bar strong { font-size: 16px; }
  .momentum-feed-items { gap: 10px; padding: 10px; }
  .momentum-feed-card-head { padding: 14px; }
  .momentum-feed-card-head h2 { font-size: 21px; }
  .momentum-feed-card-body { padding: 2px 14px 16px; }
  .momentum-feed-card .momentum-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .momentum-records { grid-template-columns: 1fr; }
  .okx-position-card { padding: 13px; }
  .okx-position-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .okx-position-pnl-value strong { font-size: 21px; }
  .okx-position-pnl-value.percent strong { font-size: 18px; }
}
