.ix-tv-chart,
#ix-tv-frame {
  width: 100%;
  height: 460px;
  min-height: 460px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.ix-tv-chart iframe,
#ix-tv-iframe {
  display: block;
  width: 100% !important;
  height: 460px !important;
  min-height: 460px !important;
  border: 0;
}
#exchange-main {
  align-items: start;
}
#exchange-main #pair { width: auto !important; min-width: 132px; }
#exchange-main #price { font-size: 18px; letter-spacing: -0.3px; }
#exchange-main .miniTag.is-live { background: #eef8f2; color: #078646; }
#buy-sell { background: transparent; gap: 8px; padding: 0; }
#buy-sell button[data-side="Buy"] { background: #eef8f2; color: #078646; }
#buy-sell button[data-side="Buy"].active { background: #078646; color: #fff; }
#buy-sell button[data-side="Sell"],
#buy-sell button[data-side="Short"] { background: #fdecef; color: #DB334B; }
#buy-sell button[data-side="Sell"].active,
#buy-sell button[data-side="Short"].active { background: #DB334B; color: #fff; }
#buy-sell button[data-side="Long"] { background: #eef8f2; color: #078646; }
#buy-sell button[data-side="Long"].active { background: #078646; color: #fff; }
#exchange-tabs a { color: #3D0191; text-decoration: none; }
#exchange-tabs a.active { color: #fff; }
#lp-submit { margin-top: 12px; }
#trade-submit.is-buy { background: #078646 !important; color: #fff !important; }
#trade-submit.is-sell { background: #DB334B !important; color: #fff !important; }
#market-list .miniTag.ix-up { background: #eef8f2 !important; color: #078646 !important; }
#market-list .miniTag.ix-down { background: #fdecef !important; color: #DB334B !important; }
#ix-markets .miniTag.is-live { background: #eef8f2 !important; color: #078646 !important; }
@media (max-width: 760px) {
  #ix-markets { display: block !important; }
}
.ix-market {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
@media (max-width: 760px) {
  .ix-tv-chart,
  #ix-tv-frame,
  .ix-tv-chart iframe,
  #ix-tv-iframe {
    height: 400px !important;
    min-height: 400px !important;
  }
  #exchange-main .grid4 { grid-template-columns: 1fr 1fr !important; }
  #exchange-main .chartbox { padding: 8px; }
}
.ix-tape { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 8px 18px; width: 100%; padding: 12px 14px; margin: 0 0 12px; background: #fff; border: 1px solid #ece6f5; border-radius: 14px; }
.ix-tape #pair { width: auto !important; min-width: 132px; max-width: 160px; font-weight: 700; }
.ix-tape-price { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.ix-tape #price { font-size: 22px !important; font-weight: 700; }
.ix-tape #m-chg { font-size: 13px; font-weight: 700; }
.ix-tape > #price-tag { justify-self: end; }
.ix-tape-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 14px; min-width: 0; }
.ix-tape-stats > div { min-width: 0; }
.ix-tape-stats span { display: block; color: #6d657c; font-size: 11px; font-weight: 500; white-space: nowrap; }
.ix-tape-stats b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; }
@media (max-width: 1180px) {
  .ix-tape { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "pair price live" "stats stats stats"; }
  .ix-tape #pair { grid-area: pair; }
  .ix-tape-price { grid-area: price; }
  .ix-tape-stats { grid-area: stats; }
  .ix-tape > #price-tag { grid-area: live; }
}
@media (max-width: 760px) {
  .ix-tape { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "pair live" "price price" "stats stats"; align-items: center; gap: 8px 10px; padding: 14px; }
  #exchange-main .ix-tape #pair { grid-area: pair; width: auto !important; min-width: 0 !important; max-width: 168px; height: 40px; }
  .ix-tape > #price-tag { grid-area: live; align-self: center; justify-self: end; }
  .ix-tape-price { grid-area: price; min-width: 0; gap: 8px; }
  .ix-tape #price { font-size: 22px !important; letter-spacing: -.3px; }
  .ix-tape #m-chg { font-size: 14px; }
  .ix-tape-stats { grid-area: stats; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 2px; padding-top: 10px; border-top: 1px solid #f3eaf8; }
  .ix-tape-stats span { font-size: 11px; }
  .ix-tape-stats b { font-size: 14px; color: #3D0191; }
}
.ix-term-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(230px, .78fr) minmax(250px, .82fr); gap: 12px; align-items: start; }
.ix-chart-panel, .ix-book-panel, .ix-ticket, .ix-orders { min-width: 0; }
.ix-seg { display: flex; gap: 14px; margin-bottom: 10px; }
.ix-seg button { border: 0; background: transparent; color: #6d657c; font: inherit; font-weight: 600; font-size: 13px; padding: 4px 0 6px; border-bottom: 2px solid transparent; cursor: pointer; }
.ix-seg button.active { color: #3D0191; border-bottom-color: #3D0191; }
.ix-book-cols, .ix-row { display: grid; grid-template-columns: 1.15fr .9fr .9fr; gap: 6px; font-size: 12px; }
.ix-book-cols { color: #6d657c; padding: 0 8px 6px; }
.ix-row { position: relative; padding: 3px 8px; font-variant-numeric: tabular-nums; }
.ix-row i { position: absolute; top: 0; bottom: 0; right: 0; z-index: 0; }
.ix-row.is-ask i { background: rgba(219, 51, 75, .14); }
.ix-row.is-bid i { background: rgba(7, 134, 70, .14); }
.ix-row span { position: relative; z-index: 1; text-align: right; }
.ix-row span:first-child, .ix-book-cols span:first-child { text-align: left; }
.ix-row.is-ask span:first-of-type { color: #DB334B !important; font-weight: 600; }
.ix-row.is-bid span:first-of-type { color: #078646 !important; font-weight: 600; }
.ix-spread { text-align: center; font-size: 16px; font-weight: 700; padding: 8px 0; }
.ix-px-row, .ix-avail { display: flex; justify-content: space-between; align-items: center; margin: 8px 0; font-size: 13px; }
.ix-pct { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; }
.ix-orders, #ix-markets { margin-top: 12px; }
#book-view, #trades-view { max-height: 460px; overflow: auto; }
@media (max-width: 980px) {
  .ix-term-grid { grid-template-columns: 1fr; }
  .ix-chart-panel { order: 1; }
  .ix-ticket { order: 2; }
  .ix-book-panel { order: 3; }
}
