/* OneKeySans is the brand sans slot filled by `yarn fonts:sync`. */
@font-face {
  font-family: 'OneKeySans';
  src: url(https://app.onekeytest.com/static/media/BrandSans-Regular.f8f59064785e19c2.ttf) format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OneKeySans';
  src: url(https://app.onekeytest.com/static/media/BrandSans-Medium.5aba340633724e2c.ttf) format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OneKeySans';
  src: url(https://app.onekeytest.com/static/media/BrandSans-SemiBold.4496a985c5172ebe.ttf) format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OneKeySans';
  src: url(https://app.onekeytest.com/static/media/BrandSans-Bold.7f86b902a869e856.ttf) format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GeistMono-Regular';
  src: url(https://app.onekeytest.com/static/media/GeistMono-Regular.243d55a7be78df83.ttf) format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GeistMono-Medium';
  src: url(https://app.onekeytest.com/static/media/GeistMono-Medium.ab130b0790f6a75d.ttf) format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* App-wide tabular (equal-width) figures — see utils/tabularNums.ts. Inherited
   by every text node, covering text that bypasses the SizableText wrapper. */
body {
  font-variant-numeric: tabular-nums;
}

/*
  global css which apply to Desktop, Web and Extension
  copy from:
    node_modules/@expo/webpack-config/web-default/index.html
 */

/* ---------------------------------------------- */

/**
 * Extend the react-native-web reset:
 * https://github.com/necolas/react-native-web/blob/master/packages/react-native-web/src/exports/StyleSheet/initialRules.js
 */

:root {
  text-autospace: normal;
}

html,
body,
#root {
  width: 100%;
  /* To smooth any scrolling behavior */
  -webkit-overflow-scrolling: touch;
  margin: 0px;
  padding: 0px;
  /* Allows content to fill the viewport and go beyond the bottom */
  height: 100%;
  overflow: hidden;
}

#root {
  flex-shrink: 0;
  flex-basis: auto;
  flex-grow: 1;
  display: flex;
  flex: 1;
}

html {
  scroll-behavior: smooth;
  /* Prevent text size change on orientation change https://gist.github.com/tfausak/2222823#file-ios-8-web-app-html-L138 */
  -webkit-text-size-adjust: 100%;
  height: 100%;
  text-wrap: pretty;
}

body {
  display: flex;
  /* Allows you to scroll below the viewport; default value is visible */
  overflow-y: auto;
  overscroll-behavior-y: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -ms-overflow-style: scrollbar;
}

/* Disable brand font contextual alternates that convert (1) to ① */
* {
  font-feature-settings: 'calt' 0 !important;
}

/* Enable for apps that support dark-theme */
/*@media (prefers-color-scheme: dark) {
  body {
    background-color: black;
  }
}*/

/*
  hide Scrollbar
  in JS: extendTheme()
*/
/* set width=0 to hide scrollbar */
::-webkit-scrollbar {
  /* width: 0 controls vertical scrollbar, height: 0 controls horizontal scrollbar */
  width: 0;
  height: 0;
  background: transparent;
}

/* Track */
::-webkit-scrollbar-track {
  background: transparent;
}

/* Handle */
::-webkit-scrollbar-thumb {
  /* gray color palette comes from design file "illustration" */
  background: #74748b;
  border-radius: 3px;
}

[data-onekey-scroll-view-scrollbar='hidden'] {
  scrollbar-width: none;
}

[data-onekey-scroll-view-scrollbar='hidden']::-webkit-scrollbar {
  width: 0;
  height: 0;
}

[data-onekey-scroll-view-scrollbar='visible'] {
  scrollbar-width: auto;
}

[data-onekey-scroll-view-scrollbar='visible']::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.perp-table-overlay-scrollbar {
  display: none;
  position: absolute;
  border-radius: 2px;
  background:
    linear-gradient(var(--borderStrong), var(--borderStrong)), var(--bgApp);
  touch-action: none;
  user-select: none;
}

.perp-table-overlay-scrollbar[data-orientation='vertical'] {
  top: 0;
  right: 0;
  width: 4px;
}

.perp-table-overlay-scrollbar[data-orientation='horizontal'] {
  bottom: 0;
  left: 0;
  height: 4px;
}

.perp-table-overlay-scrollbar:hover,
.perp-table-overlay-scrollbar:active {
  background:
    linear-gradient(var(--textDisabled), var(--textDisabled)), var(--bgApp);
}

[data-testid='perp-recent-trades-scroll'] {
  overflow-anchor: none;
}

[data-testid='perp-desktop-table-scroll'][data-onekey-scroll-view-scrollbar='visible']::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

[data-testid='perp-desktop-table-scroll']::-webkit-scrollbar-thumb {
  background:
    linear-gradient(var(--borderStrong), var(--borderStrong)), var(--bgApp);
  border-radius: 2px;
}

[data-testid='perp-desktop-table-scroll']::-webkit-scrollbar-thumb:hover,
[data-testid='perp-desktop-table-scroll']::-webkit-scrollbar-thumb:active {
  background: linear-gradient(var(--textDisabled), var(--textDisabled)),
    var(--bgApp);
}

[data-testid='perp-desktop-table-scroll']::-webkit-scrollbar-corner {
  background: var(--bgApp);
}

.show-scrollbar ::-webkit-scrollbar {
  width: 8px;
  height: unset;
}
.show-scrollbar ::-webkit-scrollbar-track {
  background: unset;
}

input {
  outline: none;
  min-width: 0;
}

[role='button'] {
  outline: none;
}

button,
input,
[role='button'],
/* `Select` and `Toggle` are typically wrapped by a `Group`, so we handle them consistently. */
.is_GroupFrame {
  -webkit-app-region: no-drag;
}

textarea {
  outline: none;
  min-width: 0;
}

/* data-testid="Segment_Button" */
[data-testid='Segment_Button'] {
  width: 100%;
}

/* WallectConnect Modal */
.walletconnect-modal__base {
  max-width: 400px !important;
}

.debug-render-tracker-times-badge {
  position: absolute;

  /* left: 50%; */
  /* transform: translateX(-50%); */
  z-index: 999999;
}
.debug-render-tracker-times-badge-text {
  color: #1f2937;
  background-color: #facc15;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}
.debug-render-tracker-times-badge.top-right {
  top: 0;
  right: 2px;
}
.debug-render-tracker-times-badge.top-left {
  top: 0;
  left: 2px;
}
.debug-render-tracker-times-badge.top-center {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.debug-render-tracker-times-badge.right-center {
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
}
.debug-render-tracker-times-badge.bottom-right {
  bottom: 0;
  right: 2px;
}
.debug-render-tracker-times-badge.bottom-center {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.debug-render-tracker-times-badge.bottom-left {
  bottom: 0;
  left: 2px;
}
.debug-render-tracker-times-badge.left-center {
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
}

.debug-render-tracker-animated-bg {
  position: relative;
}

.debug-render-tracker-animated-bg:before {
  pointer-events: none;
  content: '';
  position: absolute;
  z-index: 999999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: debugRenderTrackerColorFade 1s forwards;
}

@keyframes debugRenderTrackerColorFade {
  from {
    background-color: #e2c6c4;
  }
  to {
    background-color: transparent;
  }
}

.debug-render-tracker-animated-bg0 {
  position: relative;
}

.debug-render-tracker-animated-bg0:before {
  pointer-events: none;
  content: '';
  position: absolute;
  z-index: 999999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: debugRenderTrackerColorFade0 1s forwards;
}

@keyframes debugRenderTrackerColorFade0 {
  from {
    background-color: #aab8ab;
  }
  to {
    background-color: transparent;
  }
}

/* Keep a toast card inside a narrow window. */
[data-onekey-toast] {
  max-width: calc(100vw - 32px);
}

.app-region-no-drag,
.app-region-drag button,
.app-region-drag input,
.app-region-drag textarea,
.app-region-drag a,
.app-region-drag [role='button'] {
  -webkit-app-region: no-drag;
}
.app-region-drag {
  -webkit-app-region: drag;
}

/* react-beautiful-dnd */
[data-rbd-drag-handle-context-id] {
  cursor: default !important;
}

/* @onekeyfe/react-native-native-list ships `cursor: pointer` on its icon
   buttons. The account row's more button follows the app's buttons, which keep
   the default cursor and signal interactivity through their hover background.
   The create-address button has no hover background, so it keeps the pointer.
   Remove once the package changes this upstream. */
.ok-native-list-account-row[data-native-list-selector='accountSelector']
  .ok-native-list-icon-button:not(
    [data-native-list-account-control='createAddress']
  ) {
  cursor: default;
}

/* Watchlist rows stay reorderable but keep the default cursor. */
[data-testid='market-watchlist-list']
  .ok-native-list-item[data-native-list-reorderable='true']
  > .ok-native-list-row {
  cursor: default;
}

/* NFT tiles signal hover by dimming the image, without a tile background. */
[data-testid='home-nft-list']
  .ok-native-list-item[data-native-list-row-press-enabled='true']:hover
  .ok-native-list-media-image {
  opacity: 0.8;
}

/* The package centers the index rail inside its host container through an
   inline `top`. The network selector pins it to the top of the list area so a
   short index does not float mid-list. Hit-testing reads the rail's live rect,
   so overriding `top` is safe. Remove once the package exposes an alignment
   option. */
[data-testid='chain-selector-unified-section-index-container']
  > .ok-native-list-index-rail {
  top: 0 !important;
}

/* Home token rows on desktop and web read asset | price | holdings
   (NativeTokenSelectorList). The price, the second cell, is in regular
   weight so the medium weight stays on the symbol and the holdings. A data
   row takes one weight for every column and the package sets it inline,
   hence !important. Remove once the package takes a weight per column.
   Every rule here needs a third cell: a native token's balance check row on
   narrow screens shares the testID but holds only asset | balance. */
.ok-native-list-item[data-testid^='home-token-item-']
  .ok-native-list-data
  > .ok-native-list-data-cell:nth-child(2 of .ok-native-list-data-cell):not(
    :nth-last-child(1 of .ok-native-list-data-cell)
  )
  [data-nl-slot='columns'] {
  font-weight: 400 !important;
  font-family: var(--nl-font-regular) !important;
}

/* The same rows split into four equal columns: icon and asset, price,
   holdings, and Swap at the end of the last. NativeList takes only column
   weights, which leave the icon and the button outside them, so price and
   holdings (each with its 12px gap) and the Swap column take a quarter here
   and the asset cell's weight takes the rest. The package sets the weights
   inline, hence !important. TokenListFooterRows gives its hidden Swap the
   same quarter. Remove once the package takes column widths. */
.ok-native-list-item[data-testid^='home-token-item-']
  .ok-native-list-data
  > .ok-native-list-data-cell:nth-child(2 of .ok-native-list-data-cell):not(
    :nth-last-child(1 of .ok-native-list-data-cell)
  ),
.ok-native-list-item[data-testid^='home-token-item-']
  .ok-native-list-data
  > .ok-native-list-data-cell:nth-child(n + 3 of .ok-native-list-data-cell) {
  flex: 0 0 calc(25% - 12px) !important;
}

.ok-native-list-item[data-testid^='home-token-item-']
  .ok-native-list-data
  > .ok-native-list-data-cell:nth-child(3 of .ok-native-list-data-cell)
  ~ .ok-native-list-accessories {
  flex: 0 0 25%;
  justify-content: flex-end;
}

/* 
  Add break-all class to handle word breaking in web platform,
  since react-native doesn't support wordBreak property directly.
  Used by TextAreaInput component for text wrapping.
*/
.break-all {
  word-break: break-all;
}

.normal-scrollbar::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

.normal-scrollbar::-webkit-scrollbar-track {
  background: #f9f9f9;
  border-radius: 100px;
}

.normal-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.27);
  border-radius: 100px;
}

w3m-modal {
  z-index: 99993173;
}

/* Desktop Menu Styles */
.desktop-menu-container {
  position: relative;
  -webkit-app-region: no-drag;
}

.desktop-menu-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.desktop-menu-trigger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.desktop-menu-dropdown {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 200px;
  background-color: var(--menu-bg, #2c2c2c);
  border: 1px solid var(--menu-border, #404040);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  padding: 4px 0;
  z-index: 10000;
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
  -webkit-app-region: no-drag;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.desktop-menu-dropdown.open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.desktop-menu-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  margin: 0 4px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--menu-text, #e5e5e5);
  font-size: 13px;
  line-height: 1.4;
  transition: background-color 0.1s ease;
  white-space: nowrap;
}

.desktop-menu-item:hover {
  background-color: var(--menu-hover, rgba(255, 255, 255, 0.08));
}

.desktop-menu-item.disabled {
  opacity: 0.5;
  cursor: default;
}

.desktop-menu-item.disabled:hover {
  background-color: transparent;
}

.desktop-menu-item-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex-shrink: 0;
  object-fit: contain;
}

.desktop-menu-item-icon-placeholder {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex-shrink: 0;
}

.desktop-menu-item-label {
  flex: 1;
}

.desktop-menu-item-accelerator {
  margin-left: 24px;
  color: var(--menu-text-secondary, #999);
  font-size: 12px;
}

.desktop-menu-item-arrow {
  margin-left: 8px;
  font-size: 10px;
  color: var(--menu-text-secondary, #999);
}

.desktop-menu-separator {
  height: 1px;
  background-color: var(--menu-border, #404040);
  margin: 4px 12px;
}

.desktop-menu-submenu {
  position: absolute;
  left: 100%;
  top: -4px;
  min-width: 180px;
  background-color: var(--menu-bg, #2c2c2c);
  border: 1px solid var(--menu-border, #404040);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  padding: 4px 0;
  z-index: 10001;
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
  -webkit-app-region: no-drag;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.desktop-menu-item:hover > .desktop-menu-submenu {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Light theme support */
.light-theme .desktop-menu-dropdown,
.desktop-menu-dropdown.light-theme,
.light-theme .desktop-menu-submenu,
.desktop-menu-dropdown.light-theme .desktop-menu-submenu {
  --menu-bg: #ffffff;
  --menu-border: #e5e5e5;
  --menu-text: #1a1a1a;
  --menu-text-secondary: #666;
  --menu-hover: rgba(0, 0, 0, 0.06);
}

/* Sidebar tab icon hover scale */
.sidebar-tab-item-icon {
  transition: transform 150ms cubic-bezier(0.2, 0, 0, 1);
}
.sidebar-tab-item:hover .sidebar-tab-item-icon {
  transform: scale(1.1);
}

/* Keep Intercom floating UI behind toast notifications (z-index 1e6) */
#intercom-container *,
.intercom-lightweight-app {
  z-index: 1 !important;
}

.pick-device-clip-path {
  animation: clip-device 1s forwards cubic-bezier(0.77, 0, 0.175, 1);
  clip-path: inset(0 0 100% 0);
}

@keyframes clip-device {
  0% {
    clip-path: inset(0 0 100% 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

.ok-skeleton-light {
  animation: ok-skeleton-light-loading 1.5s linear infinite alternate;
  color: transparent;
}

@keyframes ok-skeleton-light-loading {
  0% {
    background-color: #fafafa;
  }
  100% {
    background-color: #cdcdcd;
  }
}

.ok-skeleton-dark {
  animation: ok-skeleton-dark-loading 1.5s linear infinite alternate;
  color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  [data-testid='earn-desktop-detail-overview-loading'] .ok-skeleton-light {
    animation: none;
    background-color: #e4e4e4 !important;
  }

  [data-testid='earn-desktop-detail-overview-loading'] .ok-skeleton-dark {
    animation: none;
    background-color: #222 !important;
  }
}

@keyframes ok-skeleton-dark-loading {
  0% {
    background-color: #111111;
  }
  100% {
    background-color: #333333;
  }
}


/*# sourceMappingURL=main.3.0b17249da0.css.map*/