.exchange-page {
  color: #5e5e5e;
  background: #f3f5f7;
}

.exchange-main {
  min-height: 850px;
  color: #5e5e5e;
  background: #f4f6f8;
  font-family: "Open Sans", Arial, sans-serif;
}

.exchange-workspace {
  min-width: 0;
  min-height: 850px;
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  align-items: stretch;
  background: #f5f7f9;
  border-bottom: 1px solid #d9dfe6;
}

.exchange-page--trade .exchange-main {
  padding: 0 0 48px;
  background: #edf1f4;
}

.exchange-page--trade .exchange-workspace {
  width: min(1600px, calc(100% - 96px));
  margin: 0 auto;
  grid-template-columns: 340px minmax(0, 1fr);
  border-right: 1px solid #d9dfe6;
  border-left: 1px solid #d9dfe6;
}

.exchange-sidebar {
  min-width: 0;
  background: #f7f8f9;
  border-right: 1px solid #d9dfe6;
}

.exchange-panel {
  border-bottom: 1px solid #d9dfe6;
}

.exchange-panel__title,
.terminal-title {
  margin: 0;
  color: #079eef;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 300;
  text-transform: uppercase;
}

.exchange-panel__title {
  min-height: 45px;
  padding: 14px 18px 8px 28px;
  position: relative;
}

.exchange-panel__title::before,
.terminal-title::before {
  content: "";
  width: 18px;
  height: 14px;
  display: inline-block;
  margin-right: 10px;
  vertical-align: -1px;
  background: url("assets/ui/content_ico.png") no-repeat 0 0;
}

.market-rail .exchange-panel__title::before {
  background-position: 0 -75px;
}

.balance-table,
.rail-table,
.orders-table,
.history-table,
.market-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Open Sans", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

.balance-table {
  font-size: 12px;
}

.balance-table th {
  padding: 0 8px 7px;
  color: #a3abb5;
  font-weight: 400;
  text-align: left;
}

.balance-table th:first-child,
.balance-table td:first-child {
  padding-left: 18px;
}

.balance-table td {
  height: 23px;
  padding: 2px 8px;
  color: #687583;
  white-space: nowrap;
}

.balance-table td:nth-child(2) {
  text-align: right;
}

.chain-label {
  color: #079eef;
  font-size: 10px;
}

.balance-actions {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
}

.balance-action {
  width: 17px;
  height: 17px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: #0badee;
  border: 0;
  border-radius: 2px;
  font: 700 11px/1 "PT Sans", Arial, sans-serif;
  cursor: pointer;
}

.balance-action:hover,
.balance-action:focus-visible {
  background: #078bc2;
}

.balance-estimate {
  margin: 8px 18px 12px;
  display: flex;
  justify-content: space-between;
  color: #a0a8b2;
  font-size: 12px;
}

.market-rail__head {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-right: 15px;
}

.market-rail__head .exchange-panel__title {
  padding-right: 4px;
}

.rail-search,
.market-search {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #d5dce5;
}

.rail-search {
  width: 92px;
  height: 24px;
}

.market-search {
  width: 182px;
  height: 33px;
}

.rail-search::before,
.market-search::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-left: 7px;
  flex: none;
  background: url("assets/ui/search_bt.png") center/16px 16px no-repeat;
}

.rail-search input,
.market-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 7px;
  color: #596778;
  background: transparent;
  border: 0;
  outline: 0;
  font: 12px "Open Sans", Arial, sans-serif;
}

.market-search input {
  font-size: 14px;
}

.rail-tabs {
  padding: 0 13px 8px;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 1px;
}

.rail-tabs button {
  min-width: 0;
  height: 21px;
  padding: 0 2px;
  color: #fff;
  background: #0c8fc8;
  border: 0;
  font: 700 10px/1 "PT Sans", Arial, sans-serif;
  cursor: pointer;
}

.rail-tabs button.is-active {
  background: #13af28;
}

.rail-tabs .wide {
  grid-column: span 4;
}

.rail-tabs .bridge {
  grid-column: span 5;
}

.rail-table-wrap {
  max-height: 500px;
  overflow: auto;
  scrollbar-color: #d7dee6 transparent;
  scrollbar-width: thin;
}

.rail-table {
  font-size: 10.5px;
}

.rail-table th {
  height: 27px;
  padding: 4px 7px;
  color: #a1abb7;
  font-weight: 400;
  text-align: left;
  border-bottom: 1px solid #dfe4ea;
}

.rail-table td {
  height: 22px;
  padding: 3px 6px;
  color: #687583;
  white-space: nowrap;
}

.rail-table td:nth-child(2),
.rail-table td:nth-child(3),
.rail-table td:nth-child(4) {
  text-align: right;
}

.rail-table tr.is-selected td {
  color: #fff;
  background: #8ca2ba;
}

.rail-table tbody tr,
.orders-table tbody tr,
.history-table tbody tr,
.market-table tbody tr {
  cursor: pointer;
}

.rail-table tbody tr:hover:not(.is-selected) td,
.rail-table tbody tr:focus-visible:not(.is-selected) td,
.orders-table tbody tr:hover td,
.orders-table tbody tr:focus-visible td,
.history-table tbody tr:hover td,
.history-table tbody tr:focus-visible td {
  background: #edf6fb;
}

.pair-name {
  color: #079eef;
  font-weight: 600;
}

.delta-up,
.semantic-high,
.trade-buy {
  color: #05ad21 !important;
}

.delta-down,
.semantic-low,
.trade-sell {
  color: #ff1e1e !important;
}

.trade-terminal {
  min-width: 0;
  background: #fff;
}

.pair-context {
  min-height: 63px;
  padding: 13px 18px 8px;
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) repeat(4, minmax(130px, 1fr));
  align-items: start;
  gap: 18px;
  border-bottom: 1px solid #d9dfe6;
}

.pair-context__name {
  margin: 0;
  color: #079eef;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.25;
  white-space: nowrap;
}

.pair-context__name::before {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-block;
  margin-right: 10px;
  vertical-align: -3px;
  background: url("assets/ui/content_ico.png") no-repeat 0 -148px;
}

.pair-stat {
  margin: 2px 0 0;
  color: #6c5e58;
  font-size: 13px;
  white-space: nowrap;
}

.chart-panel {
  height: 242px;
  position: relative;
  padding-top: 31px;
  background: #fff;
  border-bottom: 1px solid #d9dfe6;
}

.chart-tabs {
  position: absolute;
  top: 0;
  left: 10px;
  display: flex;
  align-items: stretch;
}

.chart-tabs button {
  height: 28px;
  padding: 0 7px;
  color: #5e5e5e;
  background: #fafafa;
  border: 0;
  border-right: 1px solid #eceff2;
  font: 11px "PT Sans", Arial, sans-serif;
  cursor: pointer;
}

.chart-tabs button.is-active {
  color: #fff;
  background: #079eef;
}

.price-chart {
  width: 100%;
  height: 210px;
  display: block;
}

.trade-lower {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(290px, 0.74fr);
}

.exchange-page--trade .trade-lower {
  grid-template-columns: minmax(0, 860px) minmax(300px, 1fr);
}

.trade-primary {
  min-width: 0;
  border-right: 1px solid #d9dfe6;
}

.order-forms,
.order-books {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trade-form,
.order-book {
  min-width: 0;
}

.trade-form {
  min-height: 266px;
  padding: 15px 20px 17px;
  border-bottom: 1px solid #d9dfe6;
}

.trade-form + .trade-form,
.order-book + .order-book {
  border-left: 1px solid #d9dfe6;
}

.trade-form__heading,
.order-book__heading,
.history-panel__heading {
  min-height: 31px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #079eef;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 300;
  text-transform: uppercase;
}

.trade-form__heading strong {
  color: #5e6670;
  font-size: 12px;
  font-weight: 400;
}

.trade-form--buy .trade-form__heading {
  color: #10aa21;
}

.trade-form--sell .trade-form__heading {
  color: #079eef;
}

.trade-form__label {
  display: inline-flex;
  align-items: center;
}

.trade-form__label::before {
  content: "";
  width: 21px;
  height: 21px;
  margin-right: 8px;
  flex: none;
  background: url("assets/ui/content_ico.png") no-repeat 0 -225px;
}

.trade-form--sell .trade-form__label::before {
  background-position: 0 -300px;
}

.trade-form__balance {
  margin: 1px 0 7px;
  display: flex;
  justify-content: space-between;
  color: #6f7780;
  font-size: 11px;
}

.trade-form__balance span:last-child {
  color: #079eef;
}

.trade-fields {
  display: grid;
  gap: 6px;
}

.trade-field-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: #6f7780;
  font-size: 11px;
}

.trade-field-control {
  height: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 35px;
  background: #fff;
  border: 1px solid #d6dde6;
}

.trade-field-control input {
  min-width: 0;
  padding: 1px 5px;
  color: #5d6670;
  background: transparent;
  border: 0;
  outline: 0;
  font: 11px "Open Sans", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

.trade-field-control input[readonly] {
  color: #7d8996;
  background: #fafbfc;
}

.trade-field-control span {
  display: grid;
  place-items: center;
  color: #929eac;
  background: #fafbfc;
  font-size: 10px;
}

.trade-form__button {
  min-width: 61px;
  height: 32px;
  margin-top: 10px;
  padding: 0 17px;
  color: #fff;
  border: 0;
  font: 14px "PT Sans", Arial, sans-serif;
  cursor: pointer;
}

.trade-form--buy .trade-form__button {
  background: #19ad28;
}

.trade-form--sell .trade-form__button {
  background: #0badee;
}

.order-book {
  min-height: 325px;
  padding: 13px 18px 18px;
  overflow: hidden;
}

.order-book__heading,
.history-panel__heading {
  justify-content: flex-start;
}

.order-book__heading::before,
.history-panel__heading::before {
  content: "";
  width: 19px;
  height: 17px;
  margin-right: 9px;
  background: url("assets/ui/content_ico.png") no-repeat 0 -448px;
}

.order-book + .order-book .order-book__heading::before {
  background-position: 0 -525px;
}

.history-panel__heading::before {
  background-position: 0 -375px;
}

.orders-table,
.history-table {
  font-size: 10px;
}

.orders-table th,
.history-table th {
  height: 27px;
  color: #9aa4af;
  font-weight: 400;
  text-align: right;
}

.orders-table th:first-child,
.orders-table td:first-child,
.history-table th:first-child,
.history-table td:first-child {
  text-align: left;
}

.orders-table td,
.history-table td {
  height: 20px;
  color: #657383;
  text-align: right;
  white-space: nowrap;
}

.history-panel {
  min-width: 0;
  min-height: 591px;
  padding: 13px 18px;
  overflow: hidden;
}

.history-scroll {
  max-height: 527px;
  overflow: auto;
  scrollbar-color: #d7dee6 transparent;
  scrollbar-width: thin;
}

.history-table td:nth-child(2) {
  text-align: center;
}

.market-page-workspace {
  grid-template-columns: 258px minmax(0, 1fr);
}

.market-board {
  min-width: 0;
  padding: 0 20px 34px;
  background: #f5f7f9;
}

.market-board__header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.market-board__heading {
  display: flex;
  align-items: baseline;
  gap: 25px;
}

.market-board__heading .terminal-title {
  font-size: 25px;
}

.market-board__heading p {
  margin: 0;
  color: #8a6b63;
  font-size: 13px;
}

.market-table-wrap {
  max-width: 100%;
  overflow: auto;
  background: #fff;
  border: 1px solid #d9dfe6;
}

.market-table {
  min-width: 880px;
  font-size: 13px;
}

.market-table thead {
  color: #fff;
  background: #465a73;
}

.market-table th {
  height: 50px;
  padding: 0 19px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.market-table th:hover,
.market-table th:focus-visible {
  background: #3d5169;
}

.market-table td {
  height: 39px;
  padding: 0 19px;
  color: #5f6872;
  white-space: nowrap;
  border-bottom: 1px solid #d9dfe6;
}

.market-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.market-table tbody tr:hover {
  background: #f0f7fb;
}

.market-table a {
  color: #079eef;
}

.market-table__sort {
  width: 13px;
  height: 13px;
  display: inline-block;
  margin-left: 6px;
  vertical-align: -2px;
  background: url("assets/ui/sort_both.png") center/13px 13px no-repeat;
}

.market-table__sort.is-desc {
  background-image: url("assets/ui/sort_desc.png");
}

.market-table-empty {
  display: none;
  padding: 28px 20px;
  color: #8592a0;
  background: #fff;
  font-size: 13px;
  text-align: center;
}

.market-table-empty.is-visible {
  display: block;
}

.exchange-status-dialog {
  width: min(420px, calc(100% - 34px));
  padding: 0;
  color: #5e5e5e;
  background: #fff;
  border: 1px solid #d7dde5;
  border-top: 3px solid #0aadef;
  border-radius: 2px;
  box-shadow: 0 16px 46px rgba(30, 49, 70, 0.28);
}

.exchange-status-dialog::backdrop {
  background: rgba(30, 44, 60, 0.42);
}

.exchange-status-dialog__panel {
  padding: 28px;
}

.exchange-status-dialog__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #0aadef;
  border-radius: 2px;
  font: 600 12px/1 "PT Sans", Arial, sans-serif;
}

.exchange-status-dialog__eyebrow {
  margin: 20px 0 0;
  color: #0aadef;
  font: 600 11px/1.2 "PT Sans", Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.exchange-status-dialog h2 {
  margin: 8px 0 0;
  color: #465a73;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 400;
}

.exchange-status-dialog__message {
  margin: 13px 0 0;
  color: #67727e;
  font-size: 14px;
  line-height: 1.65;
}

.exchange-status-dialog button {
  min-width: 112px;
  height: 36px;
  margin-top: 22px;
  padding: 0 20px;
  color: #fff;
  background: #0aadef;
  border: 1px solid #0aadef;
  border-radius: 2px;
  font: 14px/1 "PT Sans", Arial, sans-serif;
  cursor: pointer;
}

.exchange-page--trade .exchange-main,
.exchange-page--trade .exchange-main table,
.exchange-page--trade .exchange-main input,
.exchange-page--trade .exchange-main button {
  font-family: "PT Sans", Arial, sans-serif;
}

.exchange-page--trade .exchange-main {
  padding: 0;
  background: #eef1f4;
}

.exchange-page--trade .exchange-workspace {
  min-height: 850px;
  background: #fff;
  border-color: #e5e5e5;
}

.exchange-page--trade .exchange-sidebar {
  background: #f6f7f8;
  border-color: #e5e5e5;
}

.exchange-page--trade .exchange-panel {
  border-color: #e5e5e5;
}

.exchange-page--trade .exchange-panel__title,
.exchange-page--trade .trade-form__heading,
.exchange-page--trade .order-book__heading,
.exchange-page--trade .history-panel__heading {
  font-size: 18px;
  line-height: 18px;
  font-weight: 400;
}

.exchange-page--trade .balances-panel {
  height: 259px;
  padding-top: 17px;
  overflow: hidden;
}

.exchange-page--trade .balances-panel .exchange-panel__title {
  min-height: 18px;
  height: 18px;
  margin: 0 18px 11px;
  padding: 0 0 0 28px;
}

.exchange-page--trade .exchange-panel__title::before,
.exchange-page--trade .terminal-title::before {
  width: 21px;
  height: 20px;
  margin-right: 7px;
}

.exchange-page--trade .balance-scroll {
  height: 180px;
  overflow-y: auto;
  scrollbar-color: #d7dee6 transparent;
  scrollbar-width: thin;
}

.exchange-page--trade .balance-table {
  font-size: 13px;
}

.exchange-page--trade .balance-table th {
  height: 22px;
  padding-top: 0;
  padding-bottom: 0;
  font-weight: 400;
}

.exchange-page--trade .balance-table td {
  height: 22px;
  padding-top: 0;
  padding-bottom: 0;
}

.exchange-page--trade .balance-action {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

.exchange-page--trade .balance-table tbody tr:hover td,
.exchange-page--trade .balance-table tbody tr:focus-within td {
  color: #fff;
  background: #9aa8b9;
}

.exchange-page--trade .balance-table tbody tr:hover .chain-label,
.exchange-page--trade .balance-table tbody tr:focus-within .chain-label {
  color: #fff;
}

.exchange-page--trade .balance-table tbody tr:hover .balance-action,
.exchange-page--trade .balance-table tbody tr:focus-within .balance-action {
  color: #0aadef;
  background: #fff;
}

.exchange-page--trade .balance-estimate {
  height: 32px;
  margin: 0;
  padding: 7px 18px 0;
  font-size: 13px;
  border-top: 1px solid #e5e5e5;
}

.exchange-page--trade .market-rail__head {
  min-height: 44px;
  height: 44px;
}

.exchange-page--trade .market-rail__head .exchange-panel__title {
  min-height: 20px;
  padding-top: 0;
  padding-bottom: 0;
}

.exchange-page--trade .rail-search {
  width: 108px;
  height: 25px;
}

.exchange-page--trade .rail-tabs {
  padding: 0 13px 8px;
}

.exchange-page--trade .rail-tabs button:hover,
.exchange-page--trade .rail-tabs button:focus-visible {
  color: #0aadef;
  background: #fff;
}

.exchange-page--trade .rail-table-wrap {
  max-height: 485px;
}

.exchange-page--trade .rail-table {
  font-size: 11.5px;
}

.exchange-page--trade .rail-table th {
  height: 26px;
  padding-right: 4px;
  padding-left: 4px;
  padding-top: 0;
  padding-bottom: 0;
}

.exchange-page--trade .rail-table td {
  height: 20px;
  padding-right: 4px;
  padding-left: 4px;
  padding-top: 0;
  padding-bottom: 0;
}

.exchange-page--trade .rail-table tbody tr:hover td,
.exchange-page--trade .rail-table tbody tr:focus-visible td,
.exchange-page--trade .rail-table tbody tr.is-selected td {
  color: #fff !important;
  background: #9aa8b9;
}

.exchange-page--trade .market-marker td:first-child {
  position: relative;
  padding-left: 18px;
}

.exchange-page--trade .market-marker td:first-child::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 1px;
  width: 16px;
  height: 9px;
  background-repeat: no-repeat;
}

.exchange-page--trade .market-marker--rom td:first-child::before {
  background-image: url("assets/ui/rom.png");
}

.exchange-page--trade .market-marker--favd td:first-child::before {
  background-image: url("assets/ui/favd.png");
}

.exchange-page--trade .pair-context {
  min-height: 0;
  height: 49px;
  padding: 0 18px;
  align-items: center;
  border-color: #e5e5e5;
}

.exchange-page--trade .pair-context__name {
  font-size: 18px;
  line-height: 20px;
}

.exchange-page--trade .pair-context__name::before {
  width: 21px;
  height: 20px;
  margin-right: 7px;
  vertical-align: -4px;
}

.exchange-page--trade .pair-stat {
  margin: 0;
  font-size: 14px;
}

.exchange-page--trade .chart-panel {
  height: 210px;
  padding: 0;
  overflow: hidden;
  border-color: #e5e5e5;
}

.exchange-page--trade .chart-tabs {
  z-index: 3;
  top: 0;
  left: 10px;
}

.exchange-page--trade .chart-tabs button,
.exchange-page--trade .chart-tabs a {
  height: 25px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  color: #5e5e5e;
  background: rgba(250, 250, 250, 0.94);
  border: 0;
  border-right: 1px solid #eceff2;
  font: 11px/1 "PT Sans", Arial, sans-serif;
  cursor: pointer;
}

.exchange-page--trade .chart-tabs button:hover,
.exchange-page--trade .chart-tabs button:focus-visible,
.exchange-page--trade .chart-tabs a:hover,
.exchange-page--trade .chart-tabs a:focus-visible {
  background: #e7f0f9;
}

.exchange-page--trade .chart-tabs button.is-active {
  color: #fff;
  background: #0aadef;
}

.exchange-page--trade .price-chart {
  position: absolute;
  inset: 4px 0 0;
  width: 100%;
  height: 206px;
}

.exchange-page--trade .trade-lower {
  grid-template-columns: 68% 32%;
}

.exchange-page--trade .trade-primary {
  border-color: #e5e5e5;
}

.exchange-page--trade .trade-form {
  height: 268px;
  min-height: 0;
  padding: 15px 20px;
  border-color: #e5e5e5;
}

.exchange-page--trade .trade-form + .trade-form,
.exchange-page--trade .order-book + .order-book {
  border-color: #e5e5e5;
}

.exchange-page--trade .trade-form__heading {
  min-height: 25px;
}

.exchange-page--trade .trade-form__heading strong,
.exchange-page--trade .trade-form__balance,
.exchange-page--trade .trade-field-row,
.exchange-page--trade .trade-field-control input {
  font-size: 12px;
}

.exchange-page--trade .trade-fields {
  gap: 6px;
}

.exchange-page--trade .trade-field-control {
  height: 23px;
}

.exchange-page--trade .trade-form__button:hover,
.exchange-page--trade .trade-form__button:focus-visible {
  box-shadow: none;
}

.exchange-page--trade .trade-form--buy .trade-form__button:hover,
.exchange-page--trade .trade-form--buy .trade-form__button:focus-visible {
  background: #2fbf35;
}

.exchange-page--trade .trade-form--sell .trade-form__button:hover,
.exchange-page--trade .trade-form--sell .trade-form__button:focus-visible {
  background: #2bc2ff;
}

.exchange-page--trade .trade-form__button:active {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.24);
  transform: translateY(1px);
}

.exchange-page--trade .order-book {
  height: 341px;
  min-height: 0;
  padding: 13px 18px 18px;
}

.exchange-page--trade .history-panel {
  height: 585px;
  min-height: 0;
  padding: 13px 18px;
}

.exchange-page--trade .history-scroll {
  max-height: 530px;
}

.exchange-page--trade .orders-table,
.exchange-page--trade .history-table {
  font-size: 11px;
}

.exchange-page--trade .orders-table {
  font-size: 12px;
}

.exchange-page--trade .orders-table tbody tr:hover td,
.exchange-page--trade .orders-table tbody tr:focus-visible td {
  color: #fff;
  background: #9aa8b9;
}

.exchange-page--trade .history-table tbody tr:hover td,
.exchange-page--trade .history-table tbody tr:focus-visible td {
  background: #f0f3f6;
}

@media (min-width: 1270px) {
  .exchange-page--trade .exchange-workspace {
    width: min(83vw, 1660px);
    margin-right: 0;
    margin-left: max(8.5vw, calc((100vw - 1660px) / 2));
    grid-template-columns: 21.686746% 78.313254%;
  }
}

.exchange-page--market .exchange-main {
  min-height: 870px;
  padding: 0;
  background: #edf1f4;
}

.exchange-page--market .exchange-workspace {
  height: 870px;
  min-height: 870px;
  background: #fff;
}

.exchange-page--market .exchange-sidebar,
.exchange-page--market .balances-panel {
  height: 870px;
}

.exchange-page--market .exchange-sidebar {
  background: #f6f7f8;
  border-color: #e5e5e5;
}

.exchange-page--market .balances-panel {
  padding: 17px 0 10px;
  overflow: hidden;
  border-bottom: 0;
  box-sizing: border-box;
  font-family: "PT Sans", sans-serif;
}

.exchange-page--market .balances-panel .exchange-panel__title {
  width: auto;
  min-height: 21px;
  height: 21px;
  margin: 0 18px 14px;
  padding: 0 0 0 28px;
  font: 400 21px/21px "PT Sans", sans-serif;
  color: #0aadef;
}

.exchange-page--market .balances-panel .exchange-panel__title::before {
  position: absolute;
  top: 1px;
  left: 0;
  width: 18px;
  height: 14px;
  margin: 0;
  background-position: 0 0;
}

.exchange-page--market .balance-scroll {
  height: 770px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d7dee6 transparent;
}

.exchange-page--market .balance-table {
  font: 400 15px/1 "PT Sans", sans-serif;
}

.exchange-page--market .balance-table th,
.exchange-page--market .balance-table td {
  height: 26px;
  padding-top: 0;
  padding-bottom: 0;
  font-weight: 400;
}

.exchange-page--market .balance-table th {
  color: #b2b2b2;
}

.exchange-page--market .balance-table td {
  color: #5e5e5e;
}

.exchange-page--market .chain-label {
  font-size: 12px;
}

.exchange-page--market .balance-table th:first-child,
.exchange-page--market .balance-table td:first-child {
  padding-left: 19px;
}

.exchange-page--market .balance-action {
  width: 18px;
  height: 18px;
  color: #fff;
  background: #0aadef;
  border-radius: 2px;
}

.exchange-page--market .balance-table tbody tr:hover td,
.exchange-page--market .balance-table tbody tr:focus-within td {
  color: #fff;
  background: #9aa8b9;
}

.exchange-page--market .balance-table tbody tr:hover .chain-label,
.exchange-page--market .balance-table tbody tr:focus-within .chain-label {
  color: #fff;
}

.exchange-page--market .balance-action:hover,
.exchange-page--market .balance-action:focus-visible {
  color: #0aadef;
  background: #fff;
}

.exchange-page--market .balance-estimate {
  height: 26px;
  margin: 0;
  padding: 0 18px;
  align-items: center;
  font: 400 14px/26px "PT Sans", sans-serif;
  color: #b2b2b2;
}

.exchange-page--market .market-board {
  width: 100%;
  height: 870px;
  min-width: 0;
  padding: 0 5px 0 20px;
  overflow: hidden;
  box-sizing: border-box;
  background: #fff;
  font-family: "Open Sans", sans-serif;
}

.exchange-page--market .market-board__header {
  height: 73px;
  min-height: 73px;
  padding-top: 25px;
  align-items: flex-start;
  box-sizing: border-box;
  gap: 0;
}

.exchange-page--market .market-board__heading {
  gap: 28px;
}

.exchange-page--market .market-board__heading .terminal-title {
  position: relative;
  padding-left: 28px;
  font: 400 24px/24px "Open Sans", sans-serif;
  color: #0aadef;
}

.exchange-page--market .market-board__heading .terminal-title::before {
  position: absolute;
  top: 3px;
  left: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  background-position: 0 -71px;
}

.exchange-page--market .market-board__heading p {
  margin: 0;
  color: #b2b2b2;
  font: 400 14px/32px "Open Sans", sans-serif;
}

.exchange-page--market .market-search {
  width: 180px;
  height: 30px;
  margin-right: 16px;
  margin-top: 1px;
  flex: 0 0 180px;
  border: 1px solid #d9dfe7;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}

.exchange-page--market .market-search::before {
  width: 16px;
  height: 16px;
  margin-left: 10px;
  background-size: 16px 16px;
}

.exchange-page--market .market-search input {
  width: 130px;
  height: 28px;
  padding: 0 10px;
  flex: 0 0 130px;
  box-sizing: border-box;
  font: 400 14px/28px "Open Sans", sans-serif;
}

.exchange-page--market .market-table-wrap {
  width: 100%;
  height: 607px;
  max-width: none;
  position: relative;
  overflow: hidden;
  overflow-y: hidden;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
  scrollbar-width: auto;
  scrollbar-color: #e3e7ec #fff;
}

.exchange-page--market .market-table-scroller {
  width: 100%;
  height: 590px;
  overflow-x: scroll;
  overflow-y: hidden;
  scrollbar-width: none;
}

.exchange-page--market .market-table-scroller::-webkit-scrollbar {
  display: none;
}

.exchange-page--market .market-table-scrollbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 15px;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  cursor: ew-resize;
}

.exchange-page--market .market-table-scrollbar::before,
.exchange-page--market .market-table-scrollbar::after {
  content: "";
  position: absolute;
  top: 0;
  width: 6px;
  height: 14px;
  background: #fff;
}

.exchange-page--market .market-table-scrollbar::before { left: 0; }
.exchange-page--market .market-table-scrollbar::after { right: 0; }

.exchange-page--market .market-table-scrollbar__thumb {
  position: absolute;
  top: 2px;
  left: 6px;
  width: calc((100% - 12px) * .93436);
  height: 10px;
  background: #e3e7ec;
}

.exchange-page--market .market-table-wrap::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

.exchange-page--market .market-table-wrap::-webkit-scrollbar-track {
  background: #fff;
}

.exchange-page--market .market-table-wrap::-webkit-scrollbar-thumb {
  background: #e3e7ec;
  border: 2px solid #fff;
  border-radius: 0;
}

.exchange-page--market .market-table {
  width: 1005px;
  min-width: 1005px;
  table-layout: fixed;
  font: 400 14px/19px "Open Sans", sans-serif;
}

.exchange-page--market .market-table th:nth-child(1) { width: 134.92px; }
.exchange-page--market .market-table th:nth-child(2) { width: 178.14px; }
.exchange-page--market .market-table th:nth-child(3) { width: 74.27px; }
.exchange-page--market .market-table th:nth-child(4) { width: 124.77px; }
.exchange-page--market .market-table th:nth-child(5) { width: 163.77px; }
.exchange-page--market .market-table th:nth-child(6) { width: 163.77px; }
.exchange-page--market .market-table th:nth-child(7) { width: 164.31px; }

.exchange-page--market .market-table thead {
  height: 51px;
  background: #465a73;
}

.exchange-page--market .market-table th {
  height: 51px;
  padding: 0 19px;
  box-sizing: border-box;
  color: #fff;
  font-weight: 400;
  cursor: default;
}

.exchange-page--market .market-table th[data-sortable] {
  cursor: pointer;
}

.exchange-page--market .market-table th[data-sortable]:hover,
.exchange-page--market .market-table th[data-sortable]:focus-visible {
  background: #3d5169;
}

.exchange-page--market .market-table th:not([data-sortable]):hover {
  background: #465a73;
}

.exchange-page--market .market-table td {
  min-height: 30px;
  height: 30px;
  padding: 0 19px;
  box-sizing: border-box;
  color: #5e5e5e;
  background: transparent;
  border-color: #e5e5e5;
}

.exchange-page--market .market-table td:nth-child(4) {
  padding-right: 10px;
  padding-left: 10px;
  white-space: nowrap;
}

.exchange-page--market .market-table tbody tr:nth-child(odd) {
  background: #fff;
}

.exchange-page--market .market-table tbody tr:nth-child(even) {
  background: #f8f8f8;
}

.exchange-page--market .market-table tbody tr:hover td,
.exchange-page--market .market-table tbody tr:focus-visible td {
  color: #fff !important;
  background: #0aadef;
}

.exchange-page--market .market-table tbody tr:hover a,
.exchange-page--market .market-table tbody tr:focus-visible a {
  color: #fff;
}

.exchange-page--market .market-table a {
  color: #0aadef;
}

.exchange-page--market .market-table__sort {
  width: 13px;
  height: 13px;
  background-image: url("assets/ui/sort_both.png");
}

.exchange-page--market .market-table__sort.is-asc {
  background-image: url("assets/ui/sort_asc.png");
}

.exchange-page--market .market-table__sort.is-desc {
  background-image: url("assets/ui/sort_desc.png");
}

@media (min-width: 1270px) {
  .exchange-page--market .exchange-workspace {
    width: min(83vw, 1660px);
    margin: 0 auto;
    grid-template-columns: 21.686746% 78.313254%;
  }
}

@media (min-width: 1101px) and (max-width: 1269px) {
  .exchange-page--market .exchange-workspace {
    width: 100%;
    margin: 0;
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .exchange-page--trade .exchange-workspace {
    width: 100%;
    margin: 0;
    grid-template-columns: 280px minmax(0, 1fr);
    border-right: 0;
    border-left: 0;
  }
}

@media (max-width: 1100px) {
  .pair-context {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .pair-context__name {
    grid-column: span 2;
  }

  .trade-lower {
    grid-template-columns: 1fr;
  }

  .exchange-page--trade .trade-lower {
    grid-template-columns: 1fr;
  }

  .trade-primary {
    border-right: 0;
  }

  .history-panel {
    min-height: 390px;
    border-top: 1px solid #d9dfe6;
  }
}

@media (max-width: 900px) {
  .exchange-main,
  .exchange-workspace {
    min-height: 0;
  }

  .exchange-workspace,
  .market-page-workspace {
    grid-template-columns: 1fr;
  }

  .exchange-page--trade .exchange-main {
    padding-bottom: 0;
  }

  .exchange-page--trade .exchange-workspace {
    width: 100%;
    margin: 0;
    grid-template-columns: 1fr;
    border-right: 0;
    border-left: 0;
  }

  .exchange-sidebar {
    border-right: 0;
  }

  .balances-panel {
    overflow: hidden;
  }

  .balance-table {
    min-width: 0;
    table-layout: fixed;
  }

  .balance-table th:first-child {
    width: 36%;
  }

  .balance-table th:nth-child(2) {
    width: 40%;
  }

  .balance-table th:last-child {
    width: 24%;
  }

  .rail-table-wrap {
    max-height: 286px;
  }

  .pair-context {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
  }

  .pair-context__name {
    grid-column: 1 / -1;
  }

  .chart-panel {
    height: 226px;
  }

  .price-chart {
    height: 194px;
  }

  .order-forms,
  .order-books {
    grid-template-columns: 1fr;
  }

  .trade-form + .trade-form,
  .order-book + .order-book {
    border-left: 0;
  }

  .trade-form + .trade-form,
  .order-book + .order-book,
  .history-panel {
    border-top: 1px solid #d9dfe6;
  }

  .market-board {
    padding: 0 0 28px;
  }

  .market-board__header {
    padding: 16px 17px;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .market-board__heading {
    gap: 15px;
    flex-wrap: wrap;
  }

  .market-search {
    width: 100%;
  }

  .market-table-wrap {
    border-right: 0;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .exchange-panel__title {
    padding-left: 17px;
  }

  .market-rail__head {
    padding-right: 17px;
  }

  .rail-tabs {
    padding-inline: 17px;
  }

  .pair-context {
    padding-inline: 17px;
  }

  .pair-context__name {
    font-size: 17px;
  }

  .pair-stat {
    font-size: 11px;
  }

  .chart-tabs {
    max-width: calc(100% - 10px);
    overflow-x: auto;
  }

  .chart-tabs button {
    flex: none;
  }

  .trade-form,
  .order-book,
  .history-panel {
    padding-right: 17px;
    padding-left: 17px;
  }

  .trade-field-row {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .market-board__heading .terminal-title {
    font-size: 23px;
  }
}

.exchange-page--yofarm .exchange-main,
.exchange-page--yofarm .exchange-main table,
.exchange-page--yofarm .exchange-main input,
.exchange-page--yofarm .exchange-main button {
  font-family: "PT Sans", Arial, sans-serif;
}

.exchange-page--yofarm .exchange-main {
  min-height: 900px;
  padding: 0;
  background: #eef1f4;
}

.exchange-page--yofarm .exchange-workspace {
  min-height: 900px;
  background: #fff;
  border-color: #e5e5e5;
}

.exchange-page--yofarm .exchange-sidebar {
  background: #f6f7f8;
  border-color: #e5e5e5;
}

.exchange-page--yofarm .exchange-panel {
  border-color: #e5e5e5;
}

.exchange-page--yofarm .exchange-panel__title {
  font-size: 18px;
  line-height: 18px;
  font-weight: 400;
}

.exchange-page--yofarm .balances-panel {
  height: 259px;
  padding-top: 17px;
  overflow: hidden;
}

.exchange-page--yofarm .balances-panel .exchange-panel__title {
  min-height: 18px;
  height: 18px;
  margin: 0 18px 11px;
  padding: 0 0 0 28px;
}

.exchange-page--yofarm .exchange-panel__title::before {
  width: 21px;
  height: 20px;
  margin-right: 7px;
}

.exchange-page--yofarm .balance-scroll {
  height: 180px;
  overflow-y: auto;
  scrollbar-color: #d7dee6 transparent;
  scrollbar-width: thin;
}

.exchange-page--yofarm .balance-table {
  font-size: 13px;
}

.exchange-page--yofarm .balance-table th,
.exchange-page--yofarm .balance-table td {
  height: 22px;
  padding-top: 0;
  padding-bottom: 0;
}

.exchange-page--yofarm .balance-table th {
  font-weight: 400;
}

.exchange-page--yofarm .balance-action {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

.exchange-page--yofarm .balance-table tbody tr:hover td,
.exchange-page--yofarm .balance-table tbody tr:focus-within td {
  color: #fff;
  background: #9aa8b9;
}

.exchange-page--yofarm .balance-table tbody tr:hover .chain-label,
.exchange-page--yofarm .balance-table tbody tr:focus-within .chain-label {
  color: #fff;
}

.exchange-page--yofarm .balance-table tbody tr:hover .balance-action,
.exchange-page--yofarm .balance-table tbody tr:focus-within .balance-action {
  color: #0aadef;
  background: #fff;
}

.exchange-page--yofarm .balance-estimate {
  height: 32px;
  margin: 0;
  padding: 7px 18px 0;
  font-size: 13px;
  border-top: 1px solid #e5e5e5;
}

.exchange-page--yofarm .market-rail {
  height: 641px;
  overflow: hidden;
}

.exchange-page--yofarm .market-rail__head {
  min-height: 44px;
  height: 44px;
}

.exchange-page--yofarm .market-rail__head .exchange-panel__title {
  min-height: 20px;
  padding-top: 0;
  padding-bottom: 0;
}

.exchange-page--yofarm .rail-search {
  width: 108px;
  height: 25px;
}

.exchange-page--yofarm .rail-tabs {
  padding: 0 13px 8px;
}

.exchange-page--yofarm .rail-tabs button:hover,
.exchange-page--yofarm .rail-tabs button:focus-visible {
  color: #0aadef;
  background: #fff;
}

.exchange-page--yofarm .rail-table-wrap {
  max-height: 485px;
}

.exchange-page--yofarm .rail-table {
  table-layout: fixed;
  font-size: 12.5px;
  letter-spacing: -.18px;
}

.exchange-page--yofarm .rail-table th:nth-child(1) { width: 39%; }
.exchange-page--yofarm .rail-table th:nth-child(2) { width: 31%; }
.exchange-page--yofarm .rail-table th:nth-child(3) { width: 14%; }
.exchange-page--yofarm .rail-table th:nth-child(4) { width: 16%; }

.exchange-page--yofarm .rail-table th {
  height: 26px;
  padding: 0 4px;
}

.exchange-page--yofarm .rail-table td {
  height: 22px;
  padding: 0 4px;
  overflow: hidden;
}

.exchange-page--yofarm .rail-table tbody tr:hover td,
.exchange-page--yofarm .rail-table tbody tr:focus-visible td,
.exchange-page--yofarm .rail-table tbody tr.is-selected td {
  color: #fff !important;
  background: #9aa8b9;
}

.exchange-page--yofarm .market-marker td:first-child {
  position: relative;
  padding-left: 18px;
}

.exchange-page--yofarm .market-marker td:first-child::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 1px;
  width: 16px;
  height: 9px;
  background-repeat: no-repeat;
}

.exchange-page--yofarm .market-marker--rom td:first-child::before {
  background-image: url("assets/ui/rom.png");
}

.exchange-page--yofarm .market-marker--favd td:first-child::before {
  background-image: url("assets/ui/favd.png");
}

.yofarm-workspace {
  width: 100%;
  min-width: 0;
  height: 845px;
  overflow: hidden;
  color: #4d6077;
  background: #f8f8f8;
}

.yofarm-banner {
  height: 50px;
  background: #1e81b0;
}

.yofarm-banner h1 {
  margin: 0;
  padding: 0 20px;
  color: #fff;
  font: 700 30px/50px "PT Sans", Arial, sans-serif;
}

.yofarm-content {
  padding: 13px 15px 0;
}

.yofarm-intro {
  height: 74px;
  overflow: hidden;
}

.yofarm-intro h2 {
  margin: 0 0 15px;
  color: #08a8eb;
  font: 700 20px/20px "Open Sans", Arial, sans-serif;
}

.yofarm-intro p {
  margin: 0;
  color: #9aa8b9;
  font: 400 14px/18px "Open Sans", Arial, sans-serif;
}

.yofarm-tabs {
  display: flex;
  height: 32px;
  align-items: flex-start;
  gap: 7px;
  color: #a7b6c7;
}

.exchange-page--yofarm .yofarm-tabs button {
  padding: 0;
  color: #0aadef;
  background: transparent;
  border: 0;
  font: 400 14px/32px "Open Sans", Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.exchange-page--yofarm .yofarm-tabs button:hover,
.exchange-page--yofarm .yofarm-tabs button:focus-visible {
  color: #465a73;
}

.exchange-page--yofarm .yofarm-tabs button.is-active {
  color: #465a73;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.farm-view {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.farm-view[hidden] {
  display: none;
}

.farm-table-shell {
  width: 100%;
  min-width: 889px;
  height: 476px;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(48, 80, 108, .22);
}

.farm-table-shell table {
  width: calc(100% - 17px);
  table-layout: fixed;
  border-collapse: collapse;
}

.farm-table-shell col:nth-child(1) { width: 10.10%; }
.farm-table-shell col:nth-child(2) { width: 8.45%; }
.farm-table-shell col:nth-child(3) { width: 14.15%; }
.farm-table-shell col:nth-child(4) { width: 10.43%; }
.farm-table-shell col:nth-child(5) { width: 11.64%; }
.farm-table-shell col:nth-child(6) { width: 6.93%; }
.farm-table-shell col:nth-child(7) { width: 12.26%; }
.farm-table-shell col:nth-child(8) { width: 11.35%; }
.farm-table-shell col:nth-child(9) { width: 14.58%; }

.farm-table-head {
  height: 51px;
  overflow: hidden;
  background: #f2fbff;
}

.farm-table-head th {
  height: 51px;
  padding: 0 0 0 19px;
  color: #1e81b0;
  text-align: left;
  vertical-align: middle;
  font: 700 18px/20px "Open Sans", Arial, sans-serif;
}

.farm-table-scroll {
  position: relative;
  height: 425px;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-color: #9caec0 #edf1f4;
  scrollbar-width: thin;
}

.farm-table-scroll::-webkit-scrollbar { width: 13px; }
.farm-table-scroll::-webkit-scrollbar-track { background: #edf1f4; }
.farm-table-scroll::-webkit-scrollbar-thumb {
  background: #9caec0;
  border: 4px solid #edf1f4;
  border-radius: 8px;
}

.farm-table td {
  height: 38px;
  padding: 0 0 0 19px;
  color: #5e5e5e;
  vertical-align: middle;
  border-bottom: 1px solid #f2f4f6;
  font: 400 14px/19px "Open Sans", Arial, sans-serif;
  letter-spacing: -.15px;
  overflow-wrap: anywhere;
}

.farm-table tbody tr:nth-child(odd) td { background: #fff; }
.farm-table tbody tr:nth-child(even) td { background: #fafafa; }

.farm-table tbody tr:hover td,
.farm-table tbody tr:focus-within td {
  color: #fff !important;
  background: #08a8eb;
}

.farm-table tbody tr:hover a,
.farm-table tbody tr:hover .farm-link,
.farm-table tbody tr:hover .farm-muted,
.farm-table tbody tr:focus-within a,
.farm-table tbody tr:focus-within .farm-link,
.farm-table tbody tr:focus-within .farm-muted {
  color: #fff;
}

.farm-table a,
.farm-link {
  color: #08a8eb;
  text-decoration: none;
}

.farm-muted { color: #94a7bb; }
.farm-positive { color: #10aa28 !important; }

.farm-button,
.claim-button {
  height: 24px;
  padding: 0;
  color: #fff;
  border: 0;
  border-radius: 2px;
  font: 700 13px/22px "PT Sans", Arial, sans-serif;
  cursor: pointer;
}

.farm-button {
  width: 80px;
  background: #fc8219;
}

.claim-button {
  width: 100px;
  height: 22px;
  background: #08a8eb;
}

.farm-button:hover,
.farm-button:focus-visible,
.claim-button:hover,
.claim-button:focus-visible {
  color: #1683af;
  background: #dff5ff;
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.farm-pagination {
  display: flex;
  width: 889px;
  height: 30px;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0;
  padding-top: 0;
}

.exchange-page--yofarm .farm-pagination button {
  min-width: 0;
  height: 30px;
  padding: 6px 12px;
  color: #333;
  background: transparent;
  border: 0;
  box-sizing: border-box;
  font: 400 12px/16px "Open Sans", Arial, sans-serif;
  cursor: pointer;
}

.exchange-page--yofarm .farm-pagination button:hover,
.exchange-page--yofarm .farm-pagination button:focus-visible {
  color: #fff;
  background: #465a73;
}

.exchange-page--yofarm .farm-pagination button.is-active {
  width: 33px;
  min-width: 33px;
  padding: 0;
  color: #fff;
  background: #465a73;
  border: 1px solid #cacaca;
}

.exchange-page--yofarm .farm-pagination button:disabled {
  color: #bac5d0;
  background: transparent;
  cursor: default;
}

.farm-history-shell table {
  width: calc(100% - 17px);
}

.farm-history-shell th { width: 33.333%; }

.farm-history-empty {
  margin: 70px 0 0;
  color: #94a7bb;
  text-align: center;
  font-size: 14px;
}

@media (min-width: 1270px) {
  .exchange-page--yofarm .exchange-workspace {
    width: min(83vw, 1660px);
    margin: 0 auto;
    grid-template-columns: 21.686746% 78.313254%;
  }
}

@media (min-width: 901px) and (max-width: 1269px) {
  .exchange-page--yofarm .exchange-workspace {
    width: 100%;
    margin: 0;
    grid-template-columns: 280px minmax(0, 1fr);
    border-right: 0;
    border-left: 0;
  }
}

@media (max-width: 900px) {
  .exchange-page--yofarm .exchange-main,
  .exchange-page--yofarm .exchange-workspace {
    height: auto;
    min-height: 0;
  }

  .exchange-page--yofarm .exchange-workspace {
    width: 100%;
    margin: 0;
    grid-template-columns: 1fr;
    border-right: 0;
    border-left: 0;
  }

  .exchange-page--yofarm .market-rail {
    height: 410px;
  }

  .exchange-page--yofarm .rail-table-wrap {
    max-height: 286px;
  }

  .yofarm-workspace {
    height: auto;
    min-height: 845px;
    overflow: visible;
  }

  .yofarm-intro {
    height: auto;
    min-height: 74px;
    padding-bottom: 5px;
  }

  .farm-table-shell,
  .farm-pagination {
    width: 889px;
  }
}

@media (max-width: 560px) {
  .yofarm-banner h1 { font-size: 27px; }
  .yofarm-content { padding-right: 12px; padding-left: 12px; }
  .yofarm-intro h2 { font-size: 18px; }
  .yofarm-intro p { font-size: 13px; }
}

.exchange-page--investbox { overflow-x: hidden; }
.exchange-page--investbox .exchange-main,
.exchange-page--investbox .exchange-main table,
.exchange-page--investbox .exchange-main input,
.exchange-page--investbox .exchange-main button {
  font-family: "PT Sans", Arial, sans-serif;
}

.exchange-page--investbox .exchange-main {
  min-height: 900px;
  padding: 0;
  background: #eef1f4;
}

.exchange-page--investbox .exchange-workspace {
  min-height: 900px;
  background: #fff;
  border-color: #e5e5e5;
}

.exchange-page--investbox .exchange-sidebar {
  background: #f6f7f8;
  border-color: #e5e5e5;
}

.exchange-page--investbox .exchange-panel { border-color: #e5e5e5; }
.exchange-page--investbox .exchange-panel__title { font-size: 18px; line-height: 18px; font-weight: 400; }
.exchange-page--investbox .balances-panel { height: 259px; padding-top: 17px; overflow: hidden; }
.exchange-page--investbox .balances-panel .exchange-panel__title { min-height: 18px; height: 18px; margin: 0 18px 11px; padding: 0 0 0 28px; }
.exchange-page--investbox .exchange-panel__title::before { width: 21px; height: 20px; margin-right: 7px; }
.exchange-page--investbox .balance-scroll { height: 180px; overflow-y: auto; scrollbar-color: #d7dee6 transparent; scrollbar-width: thin; }
.exchange-page--investbox .balance-table { font-size: 13px; }
.exchange-page--investbox .balance-table th,
.exchange-page--investbox .balance-table td { height: 22px; padding-top: 0; padding-bottom: 0; }
.exchange-page--investbox .balance-table th { font-weight: 400; }
.exchange-page--investbox .balance-action { width: 16px; height: 16px; border-radius: 2px; }
.exchange-page--investbox .balance-table tbody tr:hover td,
.exchange-page--investbox .balance-table tbody tr:focus-within td { color: #fff; background: #9aa8b9; }
.exchange-page--investbox .balance-table tbody tr:hover .chain-label,
.exchange-page--investbox .balance-table tbody tr:focus-within .chain-label { color: #fff; }
.exchange-page--investbox .balance-table tbody tr:hover .balance-action,
.exchange-page--investbox .balance-table tbody tr:focus-within .balance-action { color: #0aadef; background: #fff; }
.exchange-page--investbox .balance-estimate { height: 32px; margin: 0; padding: 7px 18px 0; font-size: 13px; border-top: 1px solid #e5e5e5; }

.exchange-page--investbox .market-rail { height: 641px; overflow: hidden; }
.exchange-page--investbox .market-rail__head { min-height: 44px; height: 44px; }
.exchange-page--investbox .market-rail__head .exchange-panel__title { min-height: 20px; padding-top: 0; padding-bottom: 0; }
.exchange-page--investbox .rail-search { width: 108px; height: 25px; }
.exchange-page--investbox .rail-tabs { padding: 0 13px 8px; }
.exchange-page--investbox .rail-tabs button:hover,
.exchange-page--investbox .rail-tabs button:focus-visible { color: #0aadef; background: #fff; }
.exchange-page--investbox .rail-table-wrap { max-height: 485px; }
.exchange-page--investbox .rail-table { table-layout: fixed; font-size: 12.5px; letter-spacing: -.18px; }
.exchange-page--investbox .rail-table th:nth-child(1) { width: 39%; }
.exchange-page--investbox .rail-table th:nth-child(2) { width: 31%; }
.exchange-page--investbox .rail-table th:nth-child(3) { width: 14%; }
.exchange-page--investbox .rail-table th:nth-child(4) { width: 16%; }
.exchange-page--investbox .rail-table th { height: 26px; padding: 0 4px; }
.exchange-page--investbox .rail-table td { height: 22px; padding: 0 4px; overflow: hidden; }
.exchange-page--investbox .rail-table tbody tr:hover td,
.exchange-page--investbox .rail-table tbody tr:focus-visible td,
.exchange-page--investbox .rail-table tbody tr.is-selected td { color: #fff !important; background: #9aa8b9; }
.exchange-page--investbox .market-marker td:first-child { position: relative; padding-left: 18px; }
.exchange-page--investbox .market-marker td:first-child::before { content: ""; position: absolute; top: 7px; left: 1px; width: 16px; height: 9px; background-repeat: no-repeat; }
.exchange-page--investbox .market-marker--rom td:first-child::before { background-image: url("assets/ui/rom.png"); }
.exchange-page--investbox .market-marker--favd td:first-child::before { background-image: url("assets/ui/favd.png"); }

.investbox-workspace {
  width: 100%;
  min-width: 0;
  height: 853px;
  overflow: hidden;
  color: #5e5e5e;
  background: #fff;
}

.investbox-page {
  width: calc(100% - 25px);
  margin: 0 5px 0 20px;
  padding-top: 17px;
}

.investbox-page > h1 {
  min-height: 24px;
  margin: 0 0 24px;
  padding-left: 26px;
  color: #0aadef;
  background: url("assets/ui/h1_ico.png") no-repeat 0 -371px;
  text-transform: uppercase;
  font: 400 24px/24px "Open Sans", Arial, sans-serif;
}

.investbox-intro {
  width: calc(100% - 5px);
  height: 82px;
  padding-bottom: 10px;
  overflow: hidden;
}

.investbox-intro p {
  margin: 0;
  color: #9aa8b9;
  font: 400 14px/18px "Open Sans", Arial, sans-serif;
}

.investbox-tabs {
  display: flex;
  height: 32px;
  align-items: center;
  gap: 6px;
  color: #9aa8b9;
  font-family: "Open Sans", Arial, sans-serif;
}

.exchange-page--investbox .investbox-tabs button {
  padding: 0;
  color: #0aadef;
  background: transparent;
  border: 0;
  font: 400 14px/32px "Open Sans", Arial, sans-serif;
  cursor: pointer;
}

.exchange-page--investbox .investbox-tabs button:hover,
.exchange-page--investbox .investbox-tabs button:focus-visible { color: #465a73; }
.exchange-page--investbox .investbox-tabs button.is-active { color: #465a73; text-decoration: underline; text-underline-offset: 2px; }

.investbox-view { width: 906px; max-width: 100%; overflow-x: auto; }
.investbox-view[hidden] { display: none; }
.investbox-view > h2 { height: 33px; margin: 0; padding: 5px 20px 5px 0; color: #0aadef; font: 400 18px/23px "PT Sans", Arial, sans-serif; }

.investbox-plan-shell {
  width: 906px;
  height: 516px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e5e5;
}

.investbox-plan-shell table { width: 889px; table-layout: fixed; border-collapse: collapse; }
.investbox-plan-shell col:nth-child(1) { width: 45px; }
.investbox-plan-shell col:nth-child(2) { width: 74px; }
.investbox-plan-shell col:nth-child(3) { width: 54px; }
.investbox-plan-shell col:nth-child(4) { width: 78px; }
.investbox-plan-shell col:nth-child(5) { width: 82px; }
.investbox-plan-shell col:nth-child(6) { width: 194px; }
.investbox-plan-shell col:nth-child(7) { width: 54px; }
.investbox-plan-shell col:nth-child(8) { width: 308px; }

.investbox-plan-head { height: 40px; overflow: hidden; background: #465a73; }
.investbox-plan-head th { height: 40px; padding: 0 0 0 10px; color: #fff; text-align: center; font: 400 15px/40px "PT Sans", Arial, sans-serif; }
.investbox-plan-scroll { width: 906px; height: 476px; overflow-y: scroll; overflow-x: hidden; scrollbar-color: #e3e7ec transparent; scrollbar-width: thin; }
.investbox-plan-scroll::-webkit-scrollbar { width: 13px; }
.investbox-plan-scroll::-webkit-scrollbar-track { background: transparent; }
.investbox-plan-scroll::-webkit-scrollbar-thumb { background: #e3e7ec; border: 4px solid #fff; border-radius: 6px; }

.investbox-plan-table td {
  height: 28px;
  min-height: 28px;
  padding: 3px 4px;
  color: #5e5e5e;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #e5e5e5;
  font: 12.5px/14px Arial, sans-serif;
}
.investbox-plan-table tbody tr:nth-child(even) td { background: #f8f8f8; }
.plan-fill,
.plan-currency { padding: 0; color: #0aadef; background: transparent; border: 0; font: inherit; cursor: pointer; }
.plan-fill:hover,
.plan-fill:focus-visible,
.plan-currency:hover,
.plan-currency:focus-visible { color: #465a73; text-decoration: underline; }

.plan-control { display: flex; align-items: center; justify-content: flex-start; gap: 5px; }
.plan-control label { position: relative; width: 136px; height: 22px; display: block; flex: none; }
.plan-control input { width: 136px; height: 22px; padding: 0 43px 0 5px; color: #5e5e5e; background: #fff; border: 1px solid #d9dfe7; border-radius: 2px; font: 11.5px/20px Arial, sans-serif !important; }
.plan-control .plan-currency { position: absolute; top: 1px; right: 5px; height: 20px; color: #0aadef; font: 10.5px/20px Arial, sans-serif; }
.exchange-page--investbox .plan-invest { width: 140px; height: 22px; padding: 0; color: #fff; background: #0aadef; border: 0; border-radius: 2px; font: 400 12px/22px "PT Sans", Arial, sans-serif; cursor: pointer; }
.exchange-page--investbox .plan-invest:hover,
.exchange-page--investbox .plan-invest:focus-visible { background: #15d61d; }

.investbox-actions { width: 906px; height: 30px; display: flex; align-items: flex-start; justify-content: space-between; }
.exchange-page--investbox .create-plan-button { width: 95px; height: 22px; margin-top: 5px; padding: 0; color: #fff; background: #25b02b; border: 0; border-radius: 2px; font: 400 12px/22px "PT Sans", Arial, sans-serif; cursor: pointer; }
.exchange-page--investbox .create-plan-button:hover,
.exchange-page--investbox .create-plan-button:focus-visible { background: #15d61d; }
.investbox-pagination { display: flex; height: 27px; align-items: flex-start; justify-content: flex-end; }
.exchange-page--investbox .investbox-pagination button,
.exchange-page--investbox .investbox-empty-pagination button { height: 27px; padding: 5.5px 11px; color: #333; background: transparent; border: 0; box-sizing: border-box; font: 400 11px/16px "PT Sans", Arial, sans-serif; cursor: pointer; }
.exchange-page--investbox .investbox-pagination button.is-active { width: 30px; min-width: 30px; padding: 0; color: #fff; background: #465a73; border: 1px solid #cacaca; }
.exchange-page--investbox .investbox-pagination button:disabled,
.exchange-page--investbox .investbox-empty-pagination button:disabled { color: #b8c1cb; cursor: default; }

.investbox-empty-table { width: 906px; height: 608px; position: relative; overflow-x: auto; border: 1px solid #e5e5e5; }
.investbox-empty-table table { width: 906px; border-collapse: collapse; table-layout: fixed; }
.investbox-empty-table th { height: 51px; padding: 0 8px; color: #fff; background: #465a73; text-align: center; font: 400 14px/18px "PT Sans", Arial, sans-serif; }
.investbox-empty-table p { margin: 0; padding-top: 42px; color: #9aa8b9; text-align: center; font: 400 14px/18px "Open Sans", Arial, sans-serif; }
.investbox-empty-pagination { width: 906px; height: 30px; display: flex; justify-content: flex-end; }

@media (min-width: 1270px) {
  .exchange-page--investbox .exchange-workspace { width: min(83vw, 1660px); margin: 0 auto; grid-template-columns: 21.686746% 78.313254%; }
}

@media (min-width: 901px) and (max-width: 1269px) {
  .exchange-page--investbox .exchange-workspace { width: 100%; margin: 0; grid-template-columns: 280px minmax(0, 1fr); border-right: 0; border-left: 0; }
}

@media (max-width: 900px) {
  .exchange-page--investbox .exchange-main,
  .exchange-page--investbox .exchange-workspace { height: auto; min-height: 0; }
  .exchange-page--investbox .exchange-workspace { width: 100%; margin: 0; grid-template-columns: 1fr; border-right: 0; border-left: 0; }
  .exchange-page--investbox .market-rail { height: 410px; }
  .exchange-page--investbox .rail-table-wrap { max-height: 286px; }
  .investbox-workspace { height: auto; min-height: 853px; overflow-x: hidden; overflow-y: visible; }
  .investbox-page { width: calc(100% - 24px); min-width: 0; margin: 0 12px; }
  .investbox-intro { width: 100%; height: auto; min-height: 82px; padding-bottom: 10px; }
  .investbox-view { overflow: visible; }
  .investbox-plan-shell,
  .investbox-empty-table { contain: layout paint; }
  .investbox-plan-shell { width: 100%; overflow-x: auto; overflow-y: hidden; }
  .investbox-actions,
  .investbox-empty-table,
  .investbox-empty-pagination { width: 100%; }
}

@media (max-width: 560px) {
  .investbox-page > h1 { font-size: 22px; }
  .investbox-intro p { font-size: 13px; line-height: 18px; }
  .investbox-tabs { overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 1269px) {
  .exchange-page--market .exchange-main,
  .exchange-page--market .exchange-workspace {
    height: auto;
    min-height: 0;
  }

  .exchange-page--market .exchange-workspace,
  .exchange-page--market .market-page-workspace {
    width: 100%;
    margin: 0;
    grid-template-columns: 1fr;
  }

  .exchange-page--market .exchange-sidebar,
  .exchange-page--market .balances-panel {
    height: 345px;
  }

  .exchange-page--market .balance-scroll {
    height: 257px;
  }

  .exchange-page--market .market-board {
    height: 708px;
    padding: 0 12px 28px;
  }

  .exchange-page--market .market-board__header {
    height: 73px;
    min-height: 73px;
    padding: 0;
    align-items: center;
    flex-direction: row;
    gap: 14px;
  }

  .exchange-page--market .market-search {
    width: 180px;
    margin-right: 0;
    flex-basis: 180px;
  }

  .exchange-page--market .market-table-wrap {
    width: 100%;
    height: 607px;
    border: 1px solid #e5e5e5;
  }
}

@media (max-width: 560px) {
  .exchange-page--market .market-board {
    height: 751px;
    padding-right: 0;
    padding-left: 0;
  }

  .exchange-page--market .market-board__header {
    height: 116px;
    min-height: 116px;
    padding: 14px 17px;
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
  }

  .exchange-page--market .market-board__heading .terminal-title {
    font-size: 23px;
  }

  .exchange-page--market .market-search {
    width: 100%;
    flex-basis: 30px;
  }
}
