/* open interest board */
.oi-stats { margin-bottom: 16px; }
.oi-stats .ss b { font-weight: 650; }
.exl { width: 16px; height: 16px; border-radius: 4px; display: inline-grid; place-items: center; font-size: 10px; font-weight: 750; line-height: 1; background: var(--text); color: var(--bg); flex: none; }
.exn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 600; }
.exn img { width: 16px; height: 16px; border-radius: 4px; flex: none; }

/* exchange bars */
.oi-ex-b { display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr); gap: 18px 28px; padding: 18px; align-items: center; }
.oi-tot { display: grid; gap: 4px; align-content: center; padding: 18px 20px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
html[data-theme="dark"] .oi-tot { background: var(--bg-sunk); }
.oi-tot b { font-size: 30px; font-weight: 680; letter-spacing: -.02em; line-height: 1.15; }
.oi-split { display: grid; gap: 4px; margin-top: 10px; font-size: 12.5px; color: var(--text-2); }
.oi-split i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.oi-split .k-lin { background: var(--amber-deep); }
.oi-split .k-inv { background: var(--text-3); }
.oi-bars { display: grid; gap: 11px; }
.ob { display: grid; grid-template-columns: 132px minmax(0, 1fr) 148px; gap: 12px; align-items: center; font-size: 13.5px; }
.ob-t { position: relative; height: 14px; border-radius: 4px; background: var(--bg-sunk); overflow: hidden; }
.ob-l, .ob-i { position: absolute; top: 0; bottom: 0; left: 0; width: 0; }
.ob-l { background: var(--amber-deep); }
.ob-i { background: var(--text-3); }
html[data-motion="on"] .ob-l, html[data-motion="on"] .ob-i { transition: width .6s var(--ease), left .6s var(--ease); }
.ob-v { display: flex; gap: 8px; align-items: baseline; justify-content: flex-end; white-space: nowrap; }
.ob-v b { font-weight: 650; }
.ob-v small { font-size: 12px; color: var(--text-3); }

/* coin table */
.oi-list .tbar .seg button { display: inline-flex; align-items: center; gap: 6px; }
.oi-list .tbar .seg img { width: 14px; height: 14px; border-radius: 3px; }
.oi-list .tbar .search-in { flex: 1 1 200px; max-width: 300px; }
.oi-tbl tbody tr { cursor: pointer; }
.oi-tbl td .sym .lb { display: grid; line-height: 1.25; }
.oi-tbl td .sym .nm { font-weight: 620; max-width: 10em; overflow: hidden; text-overflow: ellipsis; }
.oi-tbl td .pill { min-width: 66px; justify-content: center; }
.oi-tbl td .oi-u { display: inline-block; min-width: 74px; vertical-align: middle; }
.oi-tbl .oi-sp { width: 64px; height: 22px; display: inline-block; vertical-align: middle; margin-left: 10px; }
.oi-tbl td.hi { color: var(--accent-ink); font-weight: 650; }

/* chart */
.oi-chart .panel-h .sp { flex-wrap: wrap; justify-content: flex-end; }
.oi-read { padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-2); line-height: 1.6; text-wrap: pretty; }
.oi-read b { color: var(--text); font-weight: 650; }
.oi-read b.up { color: var(--up); }
.oi-read b.down { color: var(--down); }
.oi-lg { align-items: center; }
.oi-lg .grow { flex: 1; }
.oi-lg b { font-weight: 500; }
.oi-lg .lg-oi { background: var(--amber-deep); }
.oi-lg .lg-px { width: 14px; height: 3px; border-radius: 2px; background: var(--text-2); vertical-align: 3px; }
.oi-lg .seg button { height: 26px; padding: 0 10px; font-size: 12.5px; }

@media (max-width: 900px) { .oi-ex-b { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .oi-tbl .oi-px, .oi-tbl .oi-pc, .oi-tbl .oi-vol, .oi-tbl .oi-sp { display: none; }
  .oi-tbl td .pill { min-width: 0; }
  .oi-tbl th, .oi-tbl td { padding-left: 8px; padding-right: 8px; }
  .oi-tbl td .sym .nm { max-width: 6.5em; }
}
@media (max-width: 640px) {
  .oi-ex .panel-h, .oi-chart .panel-h { flex-wrap: wrap; }
  .oi-ex .panel-h .sp, .oi-chart .panel-h .sp { margin-left: 0; justify-content: flex-start; }
  .oi-ex .seg button { padding: 0 10px; }
}
@media (max-width: 520px) {
  .ob { grid-template-columns: 108px minmax(0, 1fr); gap: 4px 10px; }
  .ob-v { grid-column: 2; justify-content: flex-start; }
  .oi-list .tbar .grow { display: none; }
  .oi-list .tbar .search-in { flex: 1 1 100%; max-width: none; order: 3; }
  .oi-chart .panel-h { flex-wrap: wrap; }
  .oi-chart .panel-h .sp { margin-left: 0; justify-content: flex-start; }
}
