/* exchange price gaps board */
.ar-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 16px; }
.ar-stats .sv { font-size: 21px; }
.ar-stats .ss { overflow-wrap: anywhere; }

/* toolbar and exchange switches */
.ar-main .tbar { gap: 10px; }
.ar-f { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.ar-f .sel { height: 32px; font-size: 13.5px; }
.ar-q { min-width: 0; width: 190px; height: 32px; }
.ar-main .tbar .chip .i { width: 15px; height: 15px; }
.ar-venues { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.ar-vchip img { width: 16px; height: 16px; border-radius: 4px; }
.ar-vchip[aria-pressed="false"] { opacity: .5; }
.ar-vchip[aria-pressed="false"] img { filter: grayscale(1); }
.ar-venues .dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .55; flex: none; }
.ar-venues .dot[data-st="live"] { background: currentColor; opacity: 1; }
.ar-venues .dot[data-st="stale"], .ar-venues .dot[data-st="retry"] { border-color: var(--amber-deep); background: var(--amber-deep); opacity: 1; }

/* the main table */
.ar-tbl th, .ar-tbl td { padding-left: 9px; padding-right: 9px; }
.ar-tbl td { padding-top: 7px; padding-bottom: 7px; vertical-align: middle; }
.ar-tbl th button img { width: 14px; height: 14px; border-radius: 4px; }
.ar-tbl tbody tr { cursor: pointer; }
.ar-tbl tbody tr.sel td { background: var(--bg-sunk); }
.ar-tbl tbody tr:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.ar-coin .sym > span { display: grid; line-height: 1.25; min-width: 0; }
.ar-nm { font-weight: 620; max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; }
.ar-tbl td[class*="v-"] { line-height: 1.25; }
.ar-p { display: block; font-size: 13px; }
.ar-d { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 560; }
.ar-d.up { color: var(--up); }
.ar-d.down { color: var(--down); }
.ar-tbl td.mn { background: var(--down-soft); }
.ar-tbl td.mx { background: var(--up-soft); }
.ar-tbl td.mn .ar-p, .ar-tbl td.mx .ar-p { font-weight: 680; }
.ar-tbl td.low .ar-p, .ar-tbl td.odd .ar-p { color: var(--text-3); }
.ar-tbl td.odd .ar-p { text-decoration: line-through; text-decoration-thickness: 1px; }
.ar-tbl.h-up .v-up, .ar-tbl.h-bt .v-bt, .ar-tbl.h-co .v-co, .ar-tbl.h-bn .v-bn, .ar-tbl.h-by .v-by, .ar-tbl.h-ok .v-ok, .ar-tbl.h-bg .v-bg { display: none; }
.ar-route { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); }
.ar-route img { width: 18px; height: 18px; border-radius: 5px; }
.ar-route .i { width: 14px; height: 14px; }
.ar-route.blk img { opacity: .55; }
.ar-route.blk .i:last-child { color: var(--accent-ink); }
.ar-gap { white-space: nowrap; }
.ar-gap .sub { margin-top: 2px; }
.ar-pill { display: inline-flex; justify-content: center; min-width: 62px; padding: 2px 8px; border-radius: 7px; font-size: 13px; font-weight: 680; font-variant-numeric: tabular-nums; }
.ar-pill.g0 { background: var(--bg-sunk); color: var(--text-2); }
.ar-pill.g1 { background: color-mix(in oklab, var(--amber) 22%, transparent); color: var(--accent-ink); }
.ar-pill.g2 { background: color-mix(in oklab, var(--amber) 42%, transparent); color: var(--text); }
.ar-pill.big { background: transparent; color: var(--accent-ink); border: 1px dashed var(--amber-deep); }
.ar-pill.sus { background: transparent; color: var(--text-3); border: 1px dashed var(--line-strong); }
.ar-fl { white-space: normal; min-width: 120px; }
.ar-flg { display: inline-flex; align-items: center; gap: 3px; margin: 1px 4px 1px 0; padding: 1px 6px 1px 4px; border-radius: 6px; font-size: 11.5px; font-weight: 600; line-height: 1.5; background: var(--bg-sunk); color: var(--text-2); white-space: nowrap; }
.ar-flg .i { width: 12px; height: 12px; }
.ar-flg.t-w { color: var(--accent-ink); }
.ar-flg.t-l { color: var(--text); }
.ar-flg.more { padding: 1px 6px; color: var(--text-3); }
.ar-vol { color: var(--text-2); }
.ar-more { display: flex; justify-content: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.ar-more[hidden] { display: none; }

/* selected coin */
.ar-dh { display: flex; align-items: center; gap: 10px; }
.ar-dcb { display: inline-grid; }
.ar-dcb img, .ar-dcb .cbadge { width: 24px; height: 24px; border-radius: 50%; }
.ar-detail .panel-h { flex-wrap: wrap; row-gap: 6px; }
.ar-detail .panel-h .sp { text-align: right; }
.ar-strip { position: relative; padding: 14px 24px 6px; border-bottom: 1px solid var(--line); }
.ar-sdots { position: relative; height: 66px; }
.ar-sd { position: absolute; transform: translateX(-50%); display: grid; justify-items: center; }
.ar-sd img { width: 20px; height: 20px; border-radius: 6px; background: var(--bg); box-shadow: 0 0 0 2px var(--bg); }
.ar-sd.mn img { box-shadow: 0 0 0 2px var(--down); }
.ar-sd.mx img { box-shadow: 0 0 0 2px var(--up); }
.ar-sd.low { opacity: .45; }
.ar-sd::after { content: ""; display: block; width: 1px; height: var(--stem, 10px); background: var(--line-strong); margin-top: 2px; }
.ar-sline { position: relative; height: 2px; background: var(--line-strong); border-radius: 1px; }
.ar-s0 { position: absolute; left: 50%; top: -6px; width: 1px; height: 14px; background: var(--text-3); }
.ar-sax { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11.5px; color: var(--text-3); }
.ar-dtbl td { vertical-align: middle; }
.ar-dtbl tr.mn td { background: var(--down-soft); }
.ar-dtbl tr.mx td { background: var(--up-soft); }
.ar-dtbl tr.off td { opacity: .55; }
.ar-dv { display: inline-flex; align-items: center; gap: 8px; }
.ar-dv img { width: 18px; height: 18px; border-radius: 5px; }
.ar-dv b { font-weight: 650; }
.ar-ddw { white-space: normal; min-width: 150px; font-size: 13px; }
.ar-ddw .blk { color: var(--accent-ink); font-weight: 650; }
.ar-ddw .sub { margin-top: 2px; }
.ar-dfl { white-space: normal; min-width: 140px; }
.ar-dflt { display: inline-block; margin: 1px 4px 1px 0; padding: 1px 7px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--bg-sunk); color: var(--text-2); }
.ar-dflt.t-w { color: var(--accent-ink); }

/* buy and sell grid */
.ar-mx .tbl-wrap { padding: 12px 14px 4px; }
.ar-mtbl { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 13px; font-variant-numeric: tabular-nums; }
.ar-mtbl th { font-size: 12px; font-weight: 600; color: var(--text-2); padding: 4px; white-space: nowrap; }
.ar-mtbl thead th { text-align: center; vertical-align: bottom; }
.ar-mtbl thead th img, .ar-mtbl tbody th img { display: inline-block; width: 18px; height: 18px; border-radius: 5px; vertical-align: -4px; }
.ar-mtbl tbody th { text-align: left; }
.ar-mvn { margin-left: 6px; }
.ar-mtbl thead th .ar-mvn { display: block; margin: 4px 0 0; font-size: 11.5px; }
.ar-mc { position: relative; min-width: 84px; font-size: 11px !important; color: var(--text-3) !important; }
.ar-mcs, .ar-mcb { display: block; }
.ar-mcs { text-align: right; }
.ar-mcb { text-align: left; }
.ar-mtbl td { text-align: center; padding: 9px 4px; border-radius: 7px; background: var(--bg-soft); border: 1px solid var(--line); white-space: nowrap; }
.ar-mtbl td .i { width: 12px; height: 12px; display: inline-block; vertical-align: -1px; margin-left: 3px; color: var(--text-3); }
.ar-mtbl td.diag { background: var(--bg-sunk); border-color: transparent; }
.ar-mtbl td.na, .ar-mtbl td.neg { color: var(--text-3); }
.ar-mtbl td.p1 { background: color-mix(in oklab, var(--amber) 14%, var(--bg-soft)); }
.ar-mtbl td.p2 { background: color-mix(in oklab, var(--amber) 28%, var(--bg-soft)); font-weight: 650; }
.ar-mtbl td.p3 { background: color-mix(in oklab, var(--amber) 46%, var(--bg-soft)); font-weight: 700; }
.ar-mtbl td.best { border: 2px solid var(--amber-deep); }
.ar-mtbl td.blk { opacity: .6; }
.ar-mempty { text-align: center; color: var(--text-3); padding: 28px 10px !important; background: transparent !important; border: 0 !important; }

/* calculator */
.ar-cb { display: grid; gap: 14px; }
.ar-calc .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.ar-calc .inp { height: 42px; }
.ar-cres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 18px; }
.ar-cres .res { padding: 12px 14px; }
.ar-cres .rv { font-size: 20px; }
.ar-cres .rs { font-size: 12.5px; }
.ar-cnote { margin: 0; padding: 12px 18px 18px; line-height: 1.55; }
.ar-calc .panel-h { flex-wrap: wrap; row-gap: 8px; }

@media (max-width: 1180px) {
  .ar-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ar-cres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ar-lower { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .ar-tbl th[class*="v-"], .ar-tbl td[class*="v-"], .ar-tbl .ar-fl, .ar-tbl .ar-flh, .ar-tbl .ar-vol, .ar-tbl .ar-volh { display: none; }
  .ar-dtbl th:nth-child(3), .ar-dtbl td:nth-child(3), .ar-dtbl .ar-dvol { display: none; }
  .ar-mtbl .ar-mvn { display: none !important; }
  .ar-mc { min-width: 56px; }
}
@media (max-width: 560px) {
  .ar-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ar-stats .sv { font-size: 18px; }
  .ar-main .tbar > .seg { flex: 1 1 100%; }
  .ar-main .tbar > .seg button { flex: 1; padding: 0 6px; }
  .ar-q { width: 100%; flex: 1 1 100%; }
  .ar-f { flex: 1 1 100%; }
  .ar-f .sel { flex: 1; }
  .ar-venues { padding: 10px 14px; gap: 6px; }
  .ar-strip { padding: 12px 14px 6px; }
  .ar-calc .field-row { grid-template-columns: minmax(0, 1fr); }
  .ar-cres { gap: 8px; padding: 0 14px; }
  .ar-cres .rv { font-size: 17px; }
  .ar-mtbl { font-size: 12px; border-spacing: 3px; }
  .ar-mtbl td { padding: 8px 2px; }
}
