/* [project]/src/app/globals.css [app-client] (css) */
:root {
  --sm-font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sm-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo,
    monospace;
  --sm-space-1: 4px;
  --sm-space-2: 8px;
  --sm-space-3: 12px;
  --sm-space-4: 16px;
  --sm-space-5: 20px;
  --sm-space-6: 24px;
  --sm-space-8: 32px;
  --sm-radius-sm: 4px;
  --sm-radius-md: 8px;
  --sm-radius-lg: 12px;
  --sm-radius-xl: 16px;
  --sm-primary: #1463ff;
  --sm-primary-hover: #3379ff;
  --sm-positive: #0aa869;
  --sm-negative: #fe445c;
  --sm-warning: #e27319;
  --sm-page: #f2f4f6;
  --sm-surface: #fff;
  --sm-surface-muted: #f7f8fa;
  --sm-surface-elevated: #fff;
  --sm-text: #0d0e0f;
  --sm-text-secondary: #6e7583;
  --sm-text-tertiary: #87909f;
  --sm-border: #d7dadf;
  --sm-border-muted: #ebedf1;
  --sm-hover: #0023660a;
  --sm-active: #00236614;
  --sm-focus-ring: #1463ff33;
  --sm-header-bg: #fffffff5;
  --sm-depth-positive: #0aa8691a;
  --sm-depth-negative: #fe445c1a;
  --sm-shadow-popover: 0 12px 32px #0000001f;
  --sm-chart-bg: #fff;
  --sm-chart-grid: #ebedf1;
  --sm-chart-text: #535963;
  --sm-chart-short: #0aa869;
  --sm-chart-long: #1463ff;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --sm-positive: #0bba74;
    --sm-negative: #ff4761;
    --sm-warning: #eb771a;
    --sm-page: #0d0f18;
    --sm-surface: #16181d;
    --sm-surface-muted: #0f1015;
    --sm-surface-elevated: #1b1f27;
    --sm-text: #f2f4f6;
    --sm-text-secondary: #87909f;
    --sm-text-tertiary: #6e7583;
    --sm-border: #e6e9f042;
    --sm-border-muted: #e6e9f024;
    --sm-hover: #e6e9f014;
    --sm-active: #e6e9f01f;
    --sm-focus-ring: #1463ff47;
    --sm-header-bg: #0d0e0ff0;
    --sm-depth-positive: #0bba741f;
    --sm-depth-negative: #ff47611f;
    --sm-shadow-popover: 0 16px 40px #00000057;
    --sm-chart-bg: #16181d;
    --sm-chart-grid: #e6e9f01f;
    --sm-chart-text: #a2a9b6;
    --sm-chart-short: #0bba74;
    --sm-chart-long: #669aff;
  }
}

html[data-theme="dark"] {
  --sm-positive: #0bba74;
  --sm-negative: #ff4761;
  --sm-warning: #eb771a;
  --sm-page: #0d0f18;
  --sm-surface: #16181d;
  --sm-surface-muted: #0f1015;
  --sm-surface-elevated: #1b1f27;
  --sm-text: #f2f4f6;
  --sm-text-secondary: #87909f;
  --sm-text-tertiary: #6e7583;
  --sm-border: #e6e9f042;
  --sm-border-muted: #e6e9f024;
  --sm-hover: #e6e9f014;
  --sm-active: #e6e9f01f;
  --sm-focus-ring: #1463ff47;
  --sm-header-bg: #0d0e0ff0;
  --sm-depth-positive: #0bba741f;
  --sm-depth-negative: #ff47611f;
  --sm-shadow-popover: 0 16px 40px #00000057;
  --sm-chart-bg: #16181d;
  --sm-chart-grid: #e6e9f01f;
  --sm-chart-text: #a2a9b6;
  --sm-chart-short: #0bba74;
  --sm-chart-long: #669aff;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--sm-page);
  color: var(--sm-text);
  font-family: var(--sm-font-family);
  font-feature-settings: "pnum";
  font-variant: proportional-nums;
  font-size: 14px;
  line-height: 1.5715;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--sm-primary);
}

button, input, select, textarea {
  font-family: inherit;
}

.ant-btn {
  font-weight: 700;
  box-shadow: none !important;
}

.ant-dropdown .ant-dropdown-menu, .app-shell__account-dropdown .ant-dropdown-menu {
  border: 1px solid var(--sm-border);
  background: var(--sm-surface-elevated);
  box-shadow: var(--sm-shadow-popover);
}

.app-shell__account-dropdown .ant-dropdown-menu-item {
  border-radius: var(--sm-radius-sm);
  min-height: 34px;
  color: var(--sm-text);
  font-weight: 700;
}

.app-shell__account-dropdown .ant-dropdown-menu-item:hover, .app-shell__account-dropdown .ant-dropdown-menu-item-active, .app-shell__account-dropdown .ant-dropdown-menu-item-selected {
  color: var(--sm-primary);
  background: none !important;
}

.exchange-header {
  z-index: 50;
  align-items: center;
  gap: var(--sm-space-5);
  border-bottom: 1px solid var(--sm-border-muted);
  background: var(--sm-header-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 56px;
  padding: 0 clamp(16px, 4vw, 48px);
  line-height: normal;
  display: grid;
  position: sticky;
  top: 0;
}

.exchange-header__brand, .exchange-header__nav, .exchange-header__actions {
  align-items: center;
  display: flex;
}

.exchange-header__brand {
  min-width: 0;
  color: var(--sm-text);
  white-space: nowrap;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.exchange-header__mark {
  border-radius: var(--sm-radius-sm);
  background: var(--sm-primary);
  color: #fff;
  flex: 0 0 28px;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 15px;
  font-weight: 900;
  display: inline-grid;
}

.exchange-header__nav {
  gap: var(--sm-space-1);
  min-width: 0;
  color: var(--sm-text-secondary);
  scrollbar-width: none;
  font-size: 14px;
  font-weight: 700;
  overflow-x: auto;
}

.exchange-header__nav::-webkit-scrollbar {
  display: none;
}

.exchange-header__nav a {
  border-radius: var(--sm-radius-sm);
  min-height: 36px;
  color: inherit;
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  display: inline-flex;
  position: relative;
}

.exchange-header__nav a:after {
  background: var(--sm-primary);
  content: "";
  opacity: 0;
  height: 2px;
  transition: opacity .16s, transform .16s;
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  transform: scaleX(.5);
}

.exchange-header__nav a:hover, .exchange-header__nav a:active, .exchange-header__nav a[aria-current="page"] {
  color: var(--sm-text);
  background: none !important;
}

.exchange-header__nav a:hover:after, .exchange-header__nav a[aria-current="page"]:after {
  opacity: 1;
  transform: scaleX(1);
}

.exchange-header__actions {
  flex-shrink: 0;
  justify-content: end;
  gap: 6px;
  min-width: 0;
}

.exchange-header__utility.ant-btn, .auth-page__theme.ant-btn {
  border-radius: var(--sm-radius-sm);
  width: 36px;
  height: 36px;
  color: var(--sm-text-secondary);
  place-items: center;
  padding: 0;
  display: inline-grid;
}

.theme-toggle.ant-btn .theme-toggle__icon {
  align-items: center;
  line-height: 1;
  display: none;
}

.theme-toggle.ant-btn .anticon {
  font-size: 16px;
}

html:not([data-theme]) .theme-toggle.ant-btn .theme-toggle__icon--light, html[data-theme="light"] .theme-toggle.ant-btn .theme-toggle__icon--light, html[data-theme="dark"] .theme-toggle.ant-btn .theme-toggle__icon--dark {
  display: inline-flex;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .theme-toggle.ant-btn .theme-toggle__icon--light {
    display: none;
  }

  html:not([data-theme]) .theme-toggle.ant-btn .theme-toggle__icon--dark {
    display: inline-flex;
  }
}

.exchange-header__utility.ant-btn:hover, .exchange-header__utility.ant-btn:active, .exchange-header__utility.ant-btn[aria-expanded="true"], .auth-page__theme.ant-btn:hover, .auth-page__theme.ant-btn:active {
  color: var(--sm-text);
  background: none !important;
}

.exchange-header__login.ant-btn {
  color: var(--sm-text);
}

.exchange-header__login.ant-btn:hover {
  color: var(--sm-primary);
  background: none !important;
}

.exchange-header__login.ant-btn:active {
  background: none !important;
}

.landing-page {
  background: linear-gradient(180deg, var(--sm-surface-muted) 0, var(--sm-page) 54%),
    var(--sm-page);
  min-height: 100vh;
  color: var(--sm-text);
}

html[data-theme="dark"] .landing-page {
  background: radial-gradient(circle at 50% 0, #1463ff24, transparent 34%),
    var(--sm-page);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .landing-page {
    background: radial-gradient(circle at 50% 0, #1463ff24, transparent 34%),
      var(--sm-page);
  }
}

.landing-header {
  grid-template-columns: minmax(0, 1fr) auto;
}

.landing-hero {
  text-align: center;
  place-items: center;
  max-width: 980px;
  min-height: calc(100vh - 56px);
  margin: 0 auto;
  padding: clamp(48px, 10vh, 112px) clamp(16px, 4vw, 40px) 80px;
  display: grid;
}

.landing-hero__copy {
  justify-items: center;
  min-width: 0;
  display: grid;
}

.landing-hero__title {
  max-width: 860px;
  color: var(--sm-text);
  letter-spacing: 0;
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: .98;
}

.landing-hero__subtitle {
  max-width: 660px;
  color: var(--sm-text-secondary);
  margin: 20px auto 0;
  font-size: 17px;
  line-height: 1.55;
}

.landing-hero__actions {
  gap: var(--sm-space-3);
  margin-top: var(--sm-space-6);
  flex-wrap: wrap;
  justify-content: center;
  display: flex;
}

.auth-page {
  min-height: 100vh;
  padding: var(--sm-space-6);
  background: var(--sm-page);
  place-items: center;
  display: grid;
  position: relative;
}

.auth-page__theme.ant-btn {
  top: var(--sm-space-4);
  right: var(--sm-space-4);
  z-index: 20;
  background: var(--sm-surface);
  border: 1px solid var(--sm-border-muted);
  position: fixed;
}

.auth-box {
  width: min(100%, 420px);
  padding: var(--sm-space-6);
  border: 1px solid var(--sm-border-muted);
  border-radius: var(--sm-radius-md);
  background: var(--sm-surface);
}

.auth-box__header {
  margin-bottom: var(--sm-space-6);
}

.auth-box__title {
  margin: 0 0 var(--sm-space-2);
  color: var(--sm-text);
  letter-spacing: 0;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
}

.auth-box__copy, .auth-box__back {
  color: var(--sm-text-secondary);
}

.auth-box__copy {
  margin: 0;
}

.auth-box__back {
  margin: var(--sm-space-6) 0 0;
  font-size: 14px;
}

.auth-form {
  gap: var(--sm-space-4);
  display: grid;
}

.auth-form__field {
  gap: 6px;
  display: grid;
}

.auth-form__label {
  color: var(--sm-text);
  font-size: 13px;
  font-weight: 700;
}

.auth-form__footer {
  justify-content: space-between;
  gap: var(--sm-space-3);
  color: var(--sm-text-secondary);
  font-size: 14px;
  display: flex;
}

.app-shell {
  background: var(--sm-page);
  min-height: 100vh;
}

.app-shell__content {
  min-height: calc(100vh - 56px);
  padding: var(--sm-space-6);
}

.app-shell__content:has( > .pair-panel) {
  --pair-spread-ticker-height: 28px;
  padding: var(--sm-space-2) var(--sm-space-2)
    calc(var(--sm-space-2) + var(--pair-spread-ticker-height));
}

.page-panel {
  max-width: 960px;
  padding: var(--sm-space-6);
  border: 1px solid var(--sm-border-muted);
  border-radius: var(--sm-radius-md);
  background: var(--sm-surface);
}

.page-panel__title {
  margin: 0 0 var(--sm-space-2);
  color: var(--sm-text);
  letter-spacing: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.page-panel__copy {
  margin: 0 0 var(--sm-space-6);
  color: var(--sm-text-secondary);
}

.dashboard-panel, .pair-panel {
  max-width: none;
}

.dashboard-panel__header {
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sm-space-4);
  margin-bottom: var(--sm-space-4);
  display: flex;
}

.dashboard-panel .page-panel__copy {
  margin-bottom: 0;
}

.dashboard-panel__header .ant-badge {
  color: var(--sm-text-secondary);
  flex-shrink: 0;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-panel__toolbar {
  gap: var(--sm-space-2);
  margin-bottom: var(--sm-space-3);
  flex-wrap: wrap;
  justify-content: flex-end;
  display: flex;
}

.dashboard-panel__ticker-filter {
  width: 180px;
}

.dashboard-panel__pair-filter {
  width: 260px;
}

.spread-table .ant-table {
  border: 1px solid var(--sm-border-muted);
  background: var(--sm-surface);
  border-radius: 0;
}

.spread-table .ant-table-container, .spread-table .ant-table-content {
  border-radius: 0;
}

.spread-table .ant-table-thead > tr > th {
  color: var(--sm-text);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  background: var(--sm-surface-muted) !important;
}

.spread-table .ant-table-tbody > tr > td {
  border-bottom-color: var(--sm-border-muted);
  color: var(--sm-text);
  white-space: nowrap;
  font-size: 13px;
}

.spread-table .ant-table-tbody > tr.ant-table-row:hover > td {
  background: var(--sm-hover);
}

.spread-table__number, .spread-table__spread {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.spread-table__ticker {
  font-weight: 800;
}

.spread-table__ticker-link {
  color: var(--sm-text);
}

.spread-table__ticker-link:hover {
  color: var(--sm-primary);
  text-decoration: underline;
}

.spread-table__pair {
  color: var(--sm-primary);
  font-weight: 700;
}

.spread-table__pair a:hover {
  text-decoration: underline;
}

.spread-table__pair-separator {
  margin: 0 var(--sm-space-1);
  color: var(--sm-text-tertiary);
}

.spread-table__spread {
  font-weight: 800;
}

.spread-table__spread--positive {
  color: var(--sm-positive);
}

.spread-table__spread--negative {
  color: var(--sm-negative);
}

.pair-panel {
  background: none;
  border: 0;
  padding: 0;
}

.pair-panel__error {
  max-width: 560px;
  padding: var(--sm-space-3) var(--sm-space-4);
  border: 1px solid color-mix(in srgb, var(--sm-negative), transparent 50%);
  border-radius: var(--sm-radius-sm);
  background: color-mix(in srgb, var(--sm-negative), transparent 92%);
  color: var(--sm-negative);
  font-size: 14px;
  font-weight: 700;
}

.pair-loading {
  gap: var(--sm-space-2);
  display: grid;
}

.pair-loading span {
  border-radius: var(--sm-radius-sm);
  background: linear-gradient(90deg,
    var(--sm-surface-muted),
    var(--sm-hover),
    var(--sm-surface-muted));
  background-size: 220% 100%;
  animation: 1.3s ease-in-out infinite pair-loading-pulse;
  display: block;
}

.pair-loading__ticker {
  gap: 6px;
  min-width: 0;
  display: flex;
  overflow: hidden;
}

.pair-loading__ticker span {
  flex: none;
  width: 168px;
  height: 28px;
}

.pair-loading__topbar {
  gap: 6px;
  display: flex;
}

.pair-loading__topbar span:first-child {
  width: min(520px, 65vw);
  height: 46px;
}

.pair-loading__topbar span:last-child {
  width: 46px;
  height: 46px;
}

.pair-loading__workspace {
  gap: var(--sm-space-2);
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  min-height: 520px;
  display: grid;
}

.pair-loading__sidebar, .pair-loading__chart {
  gap: var(--sm-space-3);
  padding: var(--sm-space-3);
  border: 1px solid var(--sm-border-muted);
  border-radius: var(--sm-radius-md);
  background: var(--sm-surface);
  align-content: start;
  display: grid;
}

.pair-loading__sidebar span {
  height: 42px;
}

.pair-loading__chart span:first-child {
  width: 38%;
  height: 24px;
}

.pair-loading__chart span:not(:first-child) {
  height: 132px;
}

@keyframes pair-loading-pulse {
  from {
    background-position: 110% 0;
  }

  to {
    background-position: -110% 0;
  }
}

.pair-topbar {
  margin-bottom: var(--sm-space-2);
  align-items: center;
  display: flex;
}

.pair-identity-panel {
  gap: 6px;
  width: 100%;
  min-width: 0;
  display: grid;
}

.pair-saved {
  min-width: 0;
}

.pair-saved__viewport {
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  gap: 6px;
  min-width: 0;
  padding-bottom: 1px;
  display: flex;
  overflow-x: auto;
}

.pair-saved-card {
  border: 1px solid var(--sm-border-muted);
  border-radius: var(--sm-radius-sm);
  background: var(--sm-surface);
  flex: 0 0 156px;
  min-width: 156px;
  position: relative;
  overflow: hidden;
}

.pair-saved-card:hover {
  border-color: var(--sm-primary);
  box-shadow: 0 0 0 1px var(--sm-focus-ring);
}

.pair-saved-card--reorderable {
  cursor: pointer;
}

.pair-saved-card--dragging {
  opacity: .56;
}

.pair-saved-card__open {
  align-content: start;
  gap: var(--sm-space-1);
  width: 100%;
  min-height: 78px;
  padding: 7px var(--sm-space-2);
  color: var(--sm-text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  display: grid;
}

.pair-saved-card__open:hover {
  background: var(--sm-hover);
}

.pair-saved-card__open:focus-visible {
  outline: 2px solid var(--sm-primary);
  outline-offset: -2px;
}

.pair-saved-card__top {
  align-items: center;
  min-width: 0;
  min-height: 14px;
  padding-right: 22px;
  display: flex;
}

.pair-saved-card__pair, .pair-saved-card__ticker, .pair-saved-card__metrics, .pair-saved-card__metric, .pair-saved-card__metric strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.pair-saved-card__pair {
  color: var(--sm-text-tertiary);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.pair-saved-card__ticker {
  color: var(--sm-text);
  letter-spacing: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.pair-saved-card__metrics {
  gap: var(--sm-space-1);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  display: grid;
}

.pair-saved-card__metric {
  min-height: 28px;
  padding: var(--sm-space-1) 5px;
  border: 1px solid var(--sm-border-muted);
  border-radius: var(--sm-radius-sm);
  background: var(--sm-surface-muted);
  color: var(--sm-text);
  font-variant-numeric: tabular-nums;
  gap: 2px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  display: grid;
}

.pair-saved-card__metric span {
  color: var(--sm-text-tertiary);
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 800;
}

.pair-saved-card__metric strong {
  color: var(--sm-text);
  font-size: 11px;
  font-weight: 900;
}

.pair-saved-card__remove.ant-btn {
  z-index: 2;
  border-radius: var(--sm-radius-sm);
  background: var(--sm-surface-muted);
  width: 20px;
  height: 20px;
  color: var(--sm-text-tertiary);
  place-items: center;
  padding: 0;
  display: inline-grid;
  position: absolute;
  top: 5px;
  right: 5px;
}

.pair-saved-card__remove.ant-btn:hover {
  background: var(--sm-hover);
  color: var(--sm-primary);
}

.pair-identity {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  display: flex;
}

.pair-selector {
  flex: 0 auto;
  min-width: 0;
  max-width: 100%;
  position: relative;
}

.pair-selector__trigger {
  justify-content: space-between;
  align-items: center;
  gap: var(--sm-space-2);
  width: max-content;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  color: var(--sm-text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  padding: 0 4px 0 0;
  display: flex;
}

.pair-selector__trigger:hover, .pair-selector__trigger[aria-expanded="true"] {
  color: var(--sm-primary);
}

.pair-selector__trigger:focus-visible {
  border-radius: var(--sm-radius-sm);
  outline: 2px solid var(--sm-primary);
  outline-offset: 3px;
}

.pair-selector__trigger-copy {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.pair-selector__trigger-copy strong, .pair-selector__trigger-copy span {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.pair-selector__trigger-copy strong {
  color: var(--sm-text);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.pair-selector__trigger:hover .pair-selector__trigger-copy strong, .pair-selector__trigger[aria-expanded="true"] .pair-selector__trigger-copy strong {
  color: var(--sm-primary);
}

.pair-selector__trigger-copy span {
  color: var(--sm-text-secondary);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.pair-selector__caret {
  border-right: 5px solid #0000;
  border-bottom: 6px solid var(--sm-text-secondary);
  border-left: 5px solid #0000;
  flex: none;
  width: 0;
  height: 0;
}

.pair-selector__trigger[aria-expanded="true"] .pair-selector__caret {
  transform: rotate(180deg);
}

.pair-selector__popover {
  z-index: 60;
  border: 1px solid var(--sm-border);
  background: var(--sm-surface-elevated);
  width: min(540px, 100vw - 16px);
  box-shadow: var(--sm-shadow-popover);
  position: absolute;
  top: calc(100% + 3px);
  left: -34px;
  overflow: hidden;
}

.pair-selector__search-row {
  min-height: 48px;
  padding: var(--sm-space-2);
  border-bottom: 1px solid var(--sm-border-muted);
  background: var(--sm-surface-elevated);
  align-items: center;
  display: flex;
}

.pair-selector__search {
  align-items: center;
  gap: var(--sm-space-2);
  background: var(--sm-surface-muted);
  width: 100%;
  height: 32px;
  color: var(--sm-text-tertiary);
  border: 0;
  border-radius: 999px;
  margin: 0;
  padding: 0 10px;
  display: flex;
}

.pair-selector__search .anticon {
  flex: none;
}

.pair-selector__search input {
  min-width: 0;
  height: 100%;
  color: var(--sm-text);
  font: inherit;
  background: none;
  border: 0;
  outline: none;
  flex: auto;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
}

.pair-selector__search input::placeholder {
  color: var(--sm-text-tertiary);
}

.pair-selector__table {
  min-width: 0;
  overflow-x: auto;
}

.pair-selector__header, .pair-selector__row {
  grid-template-columns: minmax(90px, 118px) minmax(104px, 1fr) minmax(104px, 1fr) 58px 58px;
  align-items: center;
  gap: 6px;
  display: grid;
}

.pair-selector__header {
  border-bottom: 1px solid var(--sm-border-muted);
  background: var(--sm-surface-elevated);
  min-height: 26px;
  color: var(--sm-text-tertiary);
  text-transform: uppercase;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 400;
}

.pair-selector__sort {
  min-width: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-transform: inherit;
  background: none;
  border: 0;
  align-items: center;
  gap: 4px;
  padding: 0;
  display: inline-flex;
}

.pair-selector__sort--numeric {
  text-align: right;
  justify-self: end;
}

.pair-selector__metric-heading {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.pair-selector__sort:hover, .pair-selector__sort--active {
  color: var(--sm-text-secondary);
}

.pair-selector__sort--active {
  font-weight: 600;
}

.pair-selector__sort:focus-visible {
  outline: 2px solid var(--sm-primary);
  outline-offset: 2px;
  border-radius: 3px;
}

.pair-selector__sort-icon {
  opacity: .48;
  border-bottom: 4px solid;
  border-left: 3px solid #0000;
  border-right: 3px solid #0000;
  width: 0;
  height: 0;
}

.pair-selector__sort[data-sort-direction="desc"] .pair-selector__sort-icon {
  transform: rotate(180deg);
}

.pair-selector__sort--active .pair-selector__sort-icon {
  opacity: 1;
}

.pair-selector__rows {
  overscroll-behavior: contain;
  scrollbar-width: thin;
  max-height: min(420px, 100vh - 220px);
  display: grid;
  overflow-y: auto;
}

.pair-selector__row {
  border: 0;
  border-bottom: 1px solid var(--sm-border-muted);
  background: var(--sm-surface-elevated);
  width: 100%;
  min-height: 40px;
  color: var(--sm-text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  padding: 5px 10px;
}

.pair-selector__row:last-child {
  border-bottom: 0;
}

.pair-selector__row:hover, .pair-selector__row:focus-visible, .pair-selector__row--current {
  background: var(--sm-hover);
}

.pair-selector__row:focus-visible {
  z-index: 1;
  outline: 2px solid var(--sm-primary);
  outline-offset: -2px;
  position: relative;
}

.pair-selector__row--current {
  box-shadow: inset 2px 0 0 var(--sm-primary);
}

.pair-selector__row:disabled {
  cursor: wait;
  opacity: .68;
}

.pair-selector__pair-cell {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.pair-selector__exchange-cell {
  min-width: 0;
  color: var(--sm-text-secondary);
  font-variant-numeric: tabular-nums;
  gap: 2px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.1;
  display: grid;
}

.pair-selector__exchange-cell strong, .pair-selector__exchange-cell span, .pair-selector__exchange-cell b {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.pair-selector__exchange-cell strong {
  color: var(--sm-text);
  font-size: 10px;
  font-weight: 400;
}

.pair-selector__exchange-cell > span {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 4px;
  display: grid;
}

.pair-selector__exchange-cell span span {
  color: var(--sm-text-tertiary);
}

.pair-selector__exchange-cell b {
  color: var(--sm-text-secondary);
  font-weight: 400;
}

.pair-selector__pair-cell strong, .pair-selector__pair-cell span, .pair-selector__spread {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.pair-selector__pair-cell strong {
  color: var(--sm-text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.1;
}

.pair-selector__pair-cell span {
  color: var(--sm-text-tertiary);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.1;
}

.pair-selector__spread {
  font-variant-numeric: tabular-nums;
  text-align: right;
  justify-self: end;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.1;
}

.pair-selector__spread--positive {
  color: var(--sm-positive);
}

.pair-selector__spread--negative {
  color: var(--sm-negative);
}

.pair-selector__empty {
  min-height: 92px;
  padding: var(--sm-space-4);
  color: var(--sm-text-tertiary);
  place-items: center;
  font-size: 12px;
  font-weight: 400;
  display: grid;
}

.pair-identity__favorite.ant-btn {
  width: 28px;
  height: 44px;
  color: var(--sm-text-tertiary);
  box-shadow: none;
  background: none;
  border: 0;
  flex: 0 0 28px;
  place-items: center;
  padding: 0;
  display: inline-grid;
}

.pair-identity__favorite.ant-btn:hover, .pair-identity__favorite.ant-btn:focus-visible, .pair-identity__favorite--saved.ant-btn {
  color: var(--sm-primary);
  background: none;
}

.pair-workspace {
  gap: var(--sm-space-2);
  grid-template-columns: minmax(0, 1.95fr) minmax(360px, 1fr);
  align-items: stretch;
  display: grid;
}

.pair-workspace__chart, .pair-sidebar {
  min-width: 0;
  min-height: 0;
  display: grid;
}

.pair-exchange-sidebar {
  gap: var(--sm-space-2);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  min-width: 0;
  height: 100%;
  display: grid;
}

.pair-exchange-card {
  border: 1px solid var(--sm-border-muted);
  background: var(--sm-surface);
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-width: 0;
  height: 100%;
  display: grid;
}

.pair-exchange-card__head {
  min-height: 34px;
  padding: 6px var(--sm-space-2);
  border-bottom: 1px solid var(--sm-border-muted);
  align-items: center;
  display: flex;
}

.pair-exchange-card__head h2 {
  min-width: 0;
  color: var(--sm-text);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
  overflow: hidden;
}

.pair-exchange-card__head a {
  color: inherit;
  border-bottom: 1px dashed;
  text-decoration: none;
}

.pair-exchange-card__head a:hover {
  color: var(--sm-primary);
  border-bottom-style: solid;
}

.pair-exchange-card__head a:focus-visible {
  outline: 2px solid var(--sm-primary);
  outline-offset: 3px;
  border-radius: 3px;
}

.pair-exchange-card__metrics {
  background: var(--sm-border-muted);
  gap: 1px;
  display: grid;
}

.pair-exchange-card__metrics--funding {
  border-top: 1px solid var(--sm-border-muted);
}

.pair-exchange-card__metric {
  min-width: 0;
  min-height: 26px;
  padding: 5px var(--sm-space-2);
  background: var(--sm-surface);
  color: var(--sm-text);
  font-variant-numeric: tabular-nums;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  display: grid;
}

.pair-exchange-card__metric span, .pair-exchange-card__metric strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.pair-exchange-card__metric span {
  color: var(--sm-text-secondary);
  text-transform: uppercase;
  font-size: 10px;
}

.pair-spread-ticker {
  z-index: 50;
  min-width: 0;
  height: var(--pair-spread-ticker-height, 28px);
  min-height: var(--pair-spread-ticker-height, 28px);
  border-top: 1px solid var(--sm-border-muted);
  background: var(--sm-surface);
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  margin: 0;
  display: grid;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: visible;
}

.pair-spread-ticker__label, .pair-spread-ticker__empty {
  white-space: nowrap;
  align-items: center;
  min-height: 26px;
  display: inline-flex;
}

.pair-spread-ticker__menu {
  align-items: stretch;
  min-width: 0;
  display: flex;
  position: relative;
}

.pair-spread-ticker__label {
  padding: 0 var(--sm-space-2);
  border: 0;
  border-right: 1px solid var(--sm-border-muted);
  background: var(--sm-surface);
  color: var(--sm-primary);
  cursor: pointer;
  text-transform: uppercase;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
}

.pair-spread-ticker__label:after {
  content: "";
  border-bottom: 4px solid;
  border-left: 3px solid #0000;
  border-right: 3px solid #0000;
  width: 0;
  height: 0;
}

.pair-spread-ticker__label:hover, .pair-spread-ticker__label[aria-expanded="true"] {
  background: var(--sm-hover);
}

.pair-spread-ticker__label:focus-visible {
  z-index: 1;
  outline: 2px solid var(--sm-primary);
  outline-offset: -2px;
  position: relative;
}

.pair-spread-ticker__popover {
  z-index: 70;
  gap: var(--sm-space-2);
  border: 1px solid var(--sm-border);
  background: var(--sm-surface-elevated);
  width: 214px;
  box-shadow: var(--sm-shadow-popover);
  padding: 9px;
  display: grid;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
}

.pair-spread-ticker__field {
  color: var(--sm-text-secondary);
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  display: grid;
}

.pair-spread-ticker__field input {
  width: 100%;
  height: 26px;
  padding: 0 var(--sm-space-2);
  border: 1px solid var(--sm-border);
  background: var(--sm-surface);
  color: var(--sm-text);
  font: inherit;
  font-variant-numeric: tabular-nums;
  outline: none;
}

.pair-spread-ticker__field input:focus {
  border-color: var(--sm-primary);
}

.pair-spread-ticker__checkbox {
  min-height: 20px;
  color: var(--sm-text-secondary);
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
}

.pair-spread-ticker__checkbox input {
  width: 13px;
  height: 13px;
  accent-color: var(--sm-primary);
  margin: 0;
}

.pair-spread-ticker__empty {
  color: var(--sm-text-tertiary);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
}

.pair-spread-ticker__viewport {
  overscroll-behavior: contain;
  scrollbar-width: none;
  min-width: 0;
  overflow: hidden;
}

.pair-spread-ticker__viewport::-webkit-scrollbar {
  display: none;
}

.pair-spread-ticker__track {
  will-change: transform;
  width: max-content;
  height: 100%;
  display: flex;
}

.pair-spread-ticker__group {
  flex-shrink: 0;
  height: 100%;
  display: flex;
}

.pair-spread-ticker__item {
  border-right: 1px solid var(--sm-border-muted);
  width: max-content;
  min-height: 100%;
  color: var(--sm-text-tertiary);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  grid-template-columns: max-content max-content 16px 8ch;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  font-size: 12px;
  display: grid;
}

.pair-spread-ticker__item:hover {
  background: var(--sm-hover);
}

.pair-spread-ticker__item:focus-visible {
  z-index: 1;
  outline: 2px solid var(--sm-primary);
  outline-offset: -2px;
  position: relative;
}

.pair-spread-ticker__item strong, .pair-spread-ticker__item span {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.pair-spread-ticker__ticker {
  color: var(--sm-text-secondary);
  font-size: 12px;
  font-weight: 900;
}

.pair-spread-ticker__pair {
  color: var(--sm-text-tertiary);
  font-size: 12px;
}

.pair-spread-ticker__side {
  border: 1px solid var(--sm-border-muted);
  width: 16px;
  height: 16px;
  color: var(--sm-text-tertiary);
  text-align: center;
  text-transform: uppercase;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  display: inline-grid;
}

.pair-spread-ticker__spread {
  text-align: right;
  justify-self: end;
  width: 8ch;
  font-size: 12px;
}

.pair-spread-ticker__spread--positive {
  color: var(--sm-positive);
}

.pair-spread-ticker__spread--negative {
  color: var(--sm-negative);
}

.orderbook-panel {
  border: 1px solid var(--sm-border-muted);
  background: var(--sm-surface);
  min-width: 0;
}

.orderbook-panel--embedded {
  border: 0;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  display: grid;
}

.orderbook-panel__top {
  justify-content: space-between;
  align-items: center;
  gap: var(--sm-space-2);
  min-height: 34px;
  padding: 6px var(--sm-space-2);
  border-bottom: 1px solid var(--sm-border-muted);
  display: flex;
}

.orderbook-panel--embedded .orderbook-panel__top {
  border-top: 1px solid var(--sm-border-muted);
}

.orderbook-panel__top div {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.orderbook-panel__top h2 {
  color: var(--sm-text);
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
}

.orderbook-panel--embedded .orderbook-panel__top h2 {
  color: var(--sm-text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.orderbook-panel__top span {
  color: var(--sm-text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
}

.orderbook-panel__status {
  color: var(--sm-text-secondary);
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
}

.orderbook-panel__status:before {
  background: var(--sm-text-tertiary);
  content: "";
  border-radius: 999px;
  width: 7px;
  height: 7px;
}

.orderbook-panel__status--live:before {
  background: var(--sm-positive);
}

.orderbook-panel__status--connecting:before, .orderbook-panel__status--idle:before {
  background: var(--sm-primary);
}

.orderbook-panel__status--error:before {
  background: var(--sm-negative);
}

.orderbook-panel__header, .orderbook-panel__row {
  align-items: center;
  gap: var(--sm-space-2);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  display: grid;
}

.orderbook-panel__header {
  min-height: 24px;
  padding: 0 var(--sm-space-2);
  border-bottom: 1px solid var(--sm-border-muted);
  color: var(--sm-text-secondary);
  font-size: 11px;
  font-weight: 800;
}

.orderbook-panel__header span:last-child {
  text-align: right;
}

.orderbook-panel__rows {
  min-height: 240px;
}

.orderbook-panel__row {
  min-height: 20px;
  padding: 0 var(--sm-space-2);
  color: var(--sm-text);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  position: relative;
  overflow: hidden;
}

.orderbook-panel__depth {
  z-index: 0;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
}

.orderbook-panel__row--ask .orderbook-panel__depth {
  background: var(--sm-depth-negative);
}

.orderbook-panel__row--bid .orderbook-panel__depth {
  background: var(--sm-depth-positive);
}

.orderbook-panel__price, .orderbook-panel__volume {
  z-index: 1;
  position: relative;
}

.orderbook-panel__price {
  font-weight: 800;
}

.orderbook-panel__row--ask .orderbook-panel__price {
  color: var(--sm-negative);
}

.orderbook-panel__row--bid .orderbook-panel__price {
  color: var(--sm-positive);
}

.orderbook-panel__volume {
  color: var(--sm-text-secondary);
  text-align: right;
}

.orderbook-panel__empty {
  min-height: 240px;
  padding: var(--sm-space-4);
  color: var(--sm-text-secondary);
  text-align: center;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  display: grid;
}

.pair-chart {
  border: 1px solid var(--sm-border-muted);
  background: var(--sm-surface);
  grid-template-rows: auto minmax(456px, 1fr);
  min-height: 100%;
  display: grid;
}

.pair-chart__header {
  justify-content: space-between;
  align-items: center;
  gap: var(--sm-space-2);
  min-height: 34px;
  padding: 0 var(--sm-space-2);
  border-bottom: 1px solid var(--sm-border-muted);
  display: flex;
}

.pair-chart__header h2 {
  color: var(--sm-text);
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
}

.pair-chart__legend {
  color: var(--sm-text-secondary);
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
}

.pair-chart__legend-item {
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius-sm);
  background: var(--sm-surface);
  min-height: 24px;
  color: var(--sm-text);
  cursor: pointer;
  font: inherit;
  align-items: center;
  gap: 5px;
  padding: 0 6px;
  display: inline-flex;
}

.pair-chart__legend-item:before {
  content: "";
  border-radius: 2px;
  width: 8px;
  height: 8px;
}

.pair-chart__legend-item--short:before {
  background: var(--sm-chart-short);
}

.pair-chart__legend-item--long:before {
  background: var(--sm-chart-long);
}

.pair-chart__legend-item:hover, .pair-chart__legend-item[aria-pressed="true"] {
  border-color: var(--sm-primary);
  background: var(--sm-hover);
}

.pair-chart__legend-item[aria-pressed="false"] {
  color: var(--sm-text-tertiary);
  opacity: .58;
}

.pair-chart__canvas, .pair-chart__empty {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.pair-chart__empty {
  color: var(--sm-text-secondary);
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  display: grid;
}

@media (prefers-reduced-motion: reduce) {
  .pair-loading span {
    animation: none;
  }

  .pair-spread-ticker__viewport {
    overflow-x: auto;
  }
}

@media (max-width: 1100px) {
  .pair-loading__workspace, .pair-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .exchange-header {
    height: auto;
    min-height: 64px;
    padding-top: var(--sm-space-3);
    padding-bottom: var(--sm-space-3);
    grid-template-columns: 1fr auto;
  }

  .exchange-header__nav {
    order: 3;
    grid-column: 1 / -1;
    gap: 14px;
    overflow-x: auto;
  }

  .exchange-header__actions {
    justify-content: end;
  }

  .landing-hero {
    min-height: calc(100vh - 96px);
    padding-top: 48px;
  }

  .pair-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .pair-identity {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .exchange-header {
    grid-template-columns: 1fr;
  }

  .exchange-header__actions {
    justify-content: start;
  }

  .auth-page {
    padding: 72px var(--sm-space-4) var(--sm-space-4);
    align-items: start;
  }

  .auth-box, .page-panel, .app-shell__content {
    padding: var(--sm-space-4);
  }

  .dashboard-panel__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-panel__toolbar {
    justify-content: flex-start;
  }

  .dashboard-panel__ticker-filter, .dashboard-panel__pair-filter {
    width: 100%;
  }

  .pair-loading__topbar {
    display: grid;
  }

  .pair-loading__topbar span:first-child, .pair-loading__topbar span:last-child {
    width: 100%;
  }

  .pair-exchange-sidebar {
    grid-template-columns: 1fr;
  }

  .pair-selector {
    flex-basis: 100%;
  }

  .pair-selector__trigger {
    width: 100%;
    min-width: 0;
  }

  .pair-selector__popover {
    width: calc(100vw - 16px);
    left: 0;
  }

  .pair-selector__header, .pair-selector__row {
    grid-template-columns: 84px 100px 100px 54px 54px;
  }

  .pair-identity__favorite.ant-btn {
    flex-basis: 28px;
    width: 28px;
  }

  .pair-spread-ticker__item {
    padding: 0 7px;
  }

  .pair-chart__canvas, .pair-chart__empty {
    height: 340px;
    min-height: 0;
  }

  .pair-chart {
    grid-template-rows: auto 340px;
    min-height: auto;
  }
}

/*# sourceMappingURL=src_app_globals_0p2ml0n.css.map*/