/*
  ФАЙЛ: blockchain.css
  Назначение: стили интерфейса кошелька, криптобалансов, пополнения, вывода и истории операций.
  Что редактируется в этом файле:
  - правая колонка кошелька и блок балансов: .wallet-col-right, .wallet-jukebox, .wallet-jukebox-*
  - кнопка подключения кошелька и переключатель режимов: .wallet-btn, .mode-btn, #tonModeBtn, #gateModeBtn
  - кнопки действий кошелька: история, пополнение, вывод, а также их иконки: .jukebox-action-btn, .jukebox-action-icon-*
  - панель балансов и статусов: #jukeboxBalancePanel, #jukeboxTonBalance, #jukeboxTonMeta, #jukeboxPendingStatus
  - окно истории операций и всё внутри него: #historyOverlay, #historyPanel, .history-*
  - связанные состояния wallet-connected / history-open / dark и прочие режимы кошелька
  Примечание: все правки, связанные с blockchain UI, лучше держать именно здесь.
*/

:root{
  --jukebox-wallet-control-size: 44px;
  --jukebox-wallet-gap: 6px;
  --jukebox-wallet-stack-gap: 4px;
  --jukebox-balance-panel-bg: #ffffff;
  --jukebox-balance-panel-border: #d8d8d8;
  --jukebox-balance-panel-text: #000000;
  --jukebox-balance-panel-subtext: #5f6570;
  --jukebox-balance-panel-height: 56px;
  --jukebox-balance-panel-separator: #e7e7e7;
}

.wallet-col-right{
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.wallet-jukebox{
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

.wallet-jukebox-main{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: var(--jukebox-wallet-control-size);
  row-gap: var(--jukebox-wallet-stack-gap);
}

.wallet-jukebox-actions{
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: var(--jukebox-wallet-gap);
  margin: 0;
  padding: 0;
}

.jukebox-action-btn{
  width: var(--jukebox-wallet-control-size);
  min-width: var(--jukebox-wallet-control-size);
  height: var(--jukebox-wallet-control-size);
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #ffffff;
  color: #222;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  line-height: 1;
  font-weight: 900;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-sizing: border-box;
  transition: none !important;
  animation: none !important;
  box-shadow: none !important;
}

.jukebox-action-icon{
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.jukebox-action-icon::before, .jukebox-action-icon::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: currentColor;
  border-radius: 999px;
}

.jukebox-action-icon-plus::before, .jukebox-action-icon-minus::before{
  width: 16px;
  height: 3px;
}

.jukebox-action-icon-plus::after{
  width: 3px;
  height: 16px;
}

.jukebox-action-icon-minus::after{
  display: none;
}

.jukebox-action-btn:disabled{
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.jukebox-action-btn:active{
  background-color: #ff8c00 !important;
  border-color: #ff8c00 !important;
  color: #ffffff !important;
  transform: scale(0.98) translateZ(0);
}

.wallet-jukebox-balances{
  width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2));
  min-width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2));
  max-width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2));
  min-height: var(--jukebox-balance-panel-height);
  height: var(--jukebox-balance-panel-height);
  display: grid;
  grid-template-rows: 20px 14px 14px;
  align-items: stretch;
  text-align: left;
  gap: 0;
  padding: 3px 0 2px;
  margin-top: 0;
  align-self: flex-end;
  box-sizing: border-box;
  border: 1px solid var(--jukebox-balance-panel-border);
  border-radius: 8px;
  background: var(--jukebox-balance-panel-bg);
  user-select: none;
  -webkit-user-select: none;
  transition: none !important;
  animation: none !important;
  box-shadow: none !important;
  background-clip: padding-box;
  font-variant-numeric: tabular-nums;
  text-rendering: auto;
}

.wallet-jukebox-line{
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 6px;
  min-height: 0;
  height: 20px;
  padding: 0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  color: var(--jukebox-balance-panel-text);
  white-space: nowrap;
  transform: none !important;
  box-sizing: border-box;
  margin-top: 1px;
}

.wallet-jukebox-line::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--jukebox-balance-panel-separator);
}

.wallet-jukebox-label, #jukeboxTonBalance{
  color: inherit;
}

.wallet-jukebox-k, .wallet-jukebox-v{
  display: inline-block;
}

.wallet-jukebox-k{
  color: inherit;
  flex: 0 0 auto;
  padding-left: 8px;
}

.wallet-jukebox-v, #jukeboxTonBalance{
  color: inherit;
  margin-left: auto;
  padding-right: 8px;
  text-align: right;
  min-width: 0;
  justify-self: end;
}

.wallet-jukebox-meta .wallet-jukebox-k, .wallet-jukebox-status .wallet-jukebox-k{
  font-size: 10px;
  font-weight: 700;
}

.wallet-jukebox-meta:empty, .wallet-jukebox-status:empty{
  min-height: 0;
}

.wallet-jukebox-meta, .wallet-jukebox-status{
  position: relative;
  min-height: 0;
  height: 14px;
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 6px;
  padding: 0;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  color: var(--jukebox-balance-panel-subtext);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: none;
  -webkit-user-select: none;
  transform: none !important;
  box-sizing: border-box;
}

.wallet-jukebox-meta::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--jukebox-balance-panel-separator);
}

.wallet-jukebox-line .wallet-jukebox-k, .wallet-jukebox-line .wallet-jukebox-v, .wallet-jukebox-line #jukeboxTonBalance{
  position: relative;
  top: 0;
}

.wallet-jukebox-meta .wallet-jukebox-k, .wallet-jukebox-meta .wallet-jukebox-v{
  position: relative;
  top: -2px;
}

.wallet-jukebox-status .wallet-jukebox-k, .wallet-jukebox-status .wallet-jukebox-v{
  position: relative;
  top: -3px;
}

.wallet-jukebox-meta{
  margin-top: -2px;
}

.wallet-jukebox-status{
  margin-top: -1px;
}

html[data-theme="dark"] .wallet-jukebox-balances, body.dark .wallet-jukebox-balances, .theme-transition-overlay .dark-scope .wallet-jukebox-balances{
  --jukebox-balance-panel-bg: #2a2c31;
  --jukebox-balance-panel-border: #3a3c42;
  --jukebox-balance-panel-text: #f1f1f1;
  --jukebox-balance-panel-subtext: #bfc4cf;
  --jukebox-balance-panel-separator: #45484f;
}

.theme-transition-overlay .light-scope .wallet-jukebox-balances{
  --jukebox-balance-panel-bg: #ffffff;
  --jukebox-balance-panel-border: #d8d8d8;
  --jukebox-balance-panel-text: #000000;
  --jukebox-balance-panel-subtext: #5f6570;
  --jukebox-balance-panel-height: 56px;
  --jukebox-balance-panel-separator: #e7e7e7;
}

html[data-theme="dark"] .wallet-jukebox-line, body.dark .wallet-jukebox-line{
  color: var(--jukebox-balance-panel-text);
}

html[data-theme="dark"] .wallet-jukebox-meta, html[data-theme="dark"] .wallet-jukebox-status, body.dark .wallet-jukebox-meta, body.dark .wallet-jukebox-status{
  color: var(--jukebox-balance-panel-subtext);
}

html[data-theme="dark"] .jukebox-action-btn, body.dark .jukebox-action-btn{
  background: #2a2c31;
  border-color: #3a3c42;
  color: #f1f1f1;
}

body:not(.wallet-connected) .wallet-row{
  align-items: flex-start;
}

body:not(.wallet-connected) .wallet-col-left{
  flex: 0 0 calc(50% - 5px);
  max-width: calc(50% - 5px);
}

body:not(.wallet-connected) .wallet-btn{
  width: 100%;
  min-width: 0;
}

body:not(.wallet-connected) .wallet-col-right{
  display: none !important;
}

html.wallet-known body:not(.wallet-connected) .wallet-col-right, html.wallet-known body:not(.wallet-connected) .wallet-jukebox{
  display: flex !important;
}

.wallet-jukebox, .wallet-jukebox *, .jukebox-action-btn, .jukebox-action-btn *, .theme-transition-overlay .wallet-jukebox, .theme-transition-overlay .wallet-jukebox *, .theme-transition-overlay .jukebox-action-btn, .theme-transition-overlay .jukebox-action-btn *{
  animation: none !important;
  transition-property: none !important;
  transition-duration: 0s !important;
  will-change: auto !important;
}

.theme-transition-overlay .wallet-col-right, .theme-transition-overlay .wallet-jukebox, .theme-transition-overlay .wallet-jukebox-main, .theme-transition-overlay .wallet-jukebox-actions, .theme-transition-overlay .wallet-jukebox-balances{
  opacity: 1 !important;
  visibility: visible !important;
}

.theme-transition-overlay .light-scope .jukebox-action-btn{
  background: #ffffff !important;
  border-color: #ccc !important;
  color: #222 !important;
}

.theme-transition-overlay .dark-scope .jukebox-action-btn{
  background: #2a2c31 !important;
  border-color: #3a3c42 !important;
  color: #f1f1f1 !important;
}

.theme-transition-overlay .light-scope .wallet-jukebox-line{
  color: #000 !important;
}

.theme-transition-overlay .dark-scope .wallet-jukebox-line{
  color: #f1f1f1 !important;
}

.theme-transition-overlay .light-scope .wallet-jukebox-meta, .theme-transition-overlay .light-scope .wallet-jukebox-status{
  color: #5f6570 !important;
}

.theme-transition-overlay .dark-scope .wallet-jukebox-meta, .theme-transition-overlay .dark-scope .wallet-jukebox-status{
  color: #bfc4cf !important;
}

body.theme-animating .wallet-jukebox, body.theme-animating .wallet-jukebox *, body.theme-animating .jukebox-action-btn, body.theme-animating .jukebox-action-btn *{
  transition: none !important;
  animation: none !important;
}

.no-select, .no-select *, #jukeboxBalancePanel, #jukeboxBalancePanel *{
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

@media (max-width: 480px) {
  :root {
    --jukebox-wallet-control-size: 44px;
    --jukebox-wallet-gap: 6px;
    --jukebox-wallet-stack-gap: 4px;
  }

  .wallet-jukebox-main {
    min-height: var(--jukebox-wallet-control-size);
    row-gap: var(--jukebox-wallet-stack-gap);
  }

  .wallet-jukebox-actions {
    gap: var(--jukebox-wallet-gap);
  }

  .jukebox-action-btn {
    width: var(--jukebox-wallet-control-size) !important;
    min-width: var(--jukebox-wallet-control-size) !important;
    height: var(--jukebox-wallet-control-size) !important;
    flex: 0 0 var(--jukebox-wallet-control-size);
  }

  .jukebox-action-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

}

.wallet-col-right{
  position: relative;
  align-items: flex-start !important;
}

.wallet-jukebox{
  position: relative;
  width: 100%;
  overflow: visible;
}

.wallet-jukebox-main{
  display: block !important;
  min-height: var(--jukebox-wallet-control-size);
}

.wallet-jukebox-balances{
  align-self: auto !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.wallet-jukebox-actions{
  position: absolute;
  right: 0;
  top: calc(-1 * (var(--jukebox-wallet-control-size) + 8px));
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  z-index: 2;
}

@media (max-width: 480px) {
  .wallet-jukebox-actions {
    gap: 6px;
    top: calc(-1 * (var(--jukebox-wallet-control-size) + 8px));
  }

}

.wallet-col-right{
  align-items: flex-start !important;
}

.wallet-jukebox{
  width: 100% !important;
  overflow: visible !important;
}

.wallet-jukebox-main{
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  column-gap: 12px !important;
  row-gap: 0 !important;
  min-height: var(--jukebox-wallet-control-size) !important;
}

.wallet-jukebox-balances{
  order: 0 !important;
  flex: 1 1 auto !important;
  align-self: flex-start !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
}

.wallet-jukebox-actions{
  position: static !important;
  order: 1 !important;
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  margin: 0 0 0 auto !important;
  top: auto !important;
  right: auto !important;
  z-index: auto !important;
}

@media (max-width: 480px) {
  .wallet-jukebox-main {
    column-gap: 10px !important;
  }

  .wallet-jukebox-actions {
    gap: 8px !important;
  }

}

.wallet-col-right, .wallet-jukebox, .wallet-jukebox-main{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.wallet-jukebox-actions{
  justify-content: flex-end;
}

.wallet-jukebox, .wallet-jukebox-main{
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.wallet-jukebox-main{
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: start !important;
  column-gap: 8px !important;
}

.wallet-jukebox-balances{
  grid-column: 1 / 2 !important;
  width: 100% !important;
  max-width: 100% !important;
  align-self: start !important;
}

.wallet-jukebox-actions{
  grid-column: 2 / 3 !important;
  align-self: start !important;
  justify-self: end !important;
  display: flex !important;
  gap: 6px !important;
  margin: 0 !important;
}

.jukebox-action-btn:last-child{
  margin-right: 0 !important;
}

.jukebox-action-icon-history{
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 999px;
  box-sizing: border-box;
}

.jukebox-action-icon-history::before, .jukebox-action-icon-history::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  border-radius: 999px;
  transform-origin: center bottom;
}

.jukebox-action-icon-history::before{
  width: 2px;
  height: 6px;
  transform: translate(-50%, -100%) rotate(0deg);
}

.jukebox-action-icon-history::after{
  width: 2px;
  height: 5px;
  transform: translate(-15%, -85%) rotate(55deg);
}

.history-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 1600;
}

.history-panel{
  position: fixed;
  left: 50%;
  top: max(10px, env(safe-area-inset-top, 0px));
  bottom: calc(8px + var(--safe-b));
  width: min(94vw, 560px);
  max-width: calc(100vw - 24px);
  max-height: none;
  height: auto;
  min-height: calc(100dvh - max(10px, env(safe-area-inset-top, 0px)) - (8px + var(--safe-b)));
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 18, 25, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transform: translate3d(-50%, calc(100% + 32px), 0) scale(0.985);
  opacity: 0;
  pointer-events: none;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 160ms linear, top 220ms ease, max-height 220ms ease;
  z-index: 1601;
  overflow: hidden;
  touch-action: pan-y;
}

.history-panel, .history-list, .history-panel-header, .history-panel-actions, .history-item-title, .history-item-amount, .history-item-meta, .history-item-ref, .history-item-hint, .history-item-status{
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.history-panel-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.history-panel-actions{
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-panel-actions button{
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.history-search-wrap{
  display: block;
  overflow: visible;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  margin-top: 0;
  padding: 2px 8px 0 0;
  transition: max-height 220ms ease, opacity 180ms ease, transform 220ms ease, margin-top 220ms ease, padding-top 220ms ease;
}

.history-search-wrap.open{
  max-height: 72px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  margin-top: 8px;
  padding-top: 6px;
}

.history-search-field{
  position: relative;
}

.history-search-input{
  width: 100%;
  min-width: 0;
  height: 42px;
  box-sizing: border-box;
  border: 1px solid #d9dce3;
  border-radius: 12px;
  background: #ffffff;
  color: #0d1118;
  padding: 0 42px 0 14px;
  font-size: 14px;
}

.history-search-input:focus{
  outline: none;
  border-color: #3b82f6;
}

.history-search-input::-webkit-search-cancel-button, .history-search-input::-webkit-search-decoration, .history-search-input::-webkit-search-results-button, .history-search-input::-webkit-search-results-decoration{
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.history-search-input::-ms-clear, .history-search-input::-ms-reveal{
  display: none;
  width: 0;
  height: 0;
}

.history-search-clear-btn{
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  font-size: 20px;
  line-height: 1;
  display: none;
}

.history-search-wrap.has-value .history-search-clear-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.history-search-toggle-btn{
  font-size: 18px;
}

.history-panel-title{
  font-size: 16px;
  line-height: 1.1;
  font-weight: 900;
  color: #0d1118;
}

.history-close-btn{
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: 1px solid #d9dce3;
  border-radius: 10px;
  background: #ffffff;
  color: #0d1118;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.08s ease;
}

.history-close-btn:focus, .history-close-btn:focus-visible, .history-search-toggle-btn:focus, .history-search-toggle-btn:focus-visible{
  outline: none;
  box-shadow: none;
}

.history-close-btn:active, .history-search-toggle-btn:active{
  background: #ff8c00 !important;
  border-color: #ff8c00 !important;
  color: #ffffff !important;
  transform: scale(0.97);
}

.history-list{
  list-style: none;
  margin: 0;
  padding: 0 8px 0 0;
  overflow: auto;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 8px;
}

.history-item{
  list-style: none;
}

.history-item-card{
  position: relative;
}

.history-item-btn{
  padding-right: 54px;
}

.history-item-copy-btn{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border: 1px solid #d9dce3;
  border-radius: 10px;
  background: #ffffff;
  color: #0d1118;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.08s ease;
}

.history-item-copy-btn svg{
  width: 16px;
  height: 16px;
  display: block;
}

.history-item-copy-btn:focus, .history-item-copy-btn:focus-visible{
  outline: none;
  box-shadow: none;
}

.history-item-copy-btn:active, .history-item-copy-btn.is-copied{
  background: #ff8c00 !important;
  border-color: #ff8c00 !important;
  color: #ffffff !important;
  transform: scale(0.97);
}

.history-item-btn{
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  text-align: left;
  border: 1px solid #d8dde6;
  border-radius: 14px;
  background: #ffffff;
  color: #0d1118;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: default;
  opacity: 1 !important;
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s ease, background-color 0.18s ease;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-focus-ring-color: transparent;
}

.history-item-btn:focus, .history-item-btn:active, .history-item-btn:focus-visible{
  outline: none;
  box-shadow: none;
}

.history-item-resumable{
  cursor: pointer;
}

.history-item-resumable:hover, .history-item-resumable:focus-visible, .history-item-resumable:active, .history-item-resumable.is-active{
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: none;
}

.history-item-title{
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
}

.history-kind-positive{
  color: #16a34a;
}

.history-kind-withdraw-request{
  color: #8b5cf6;
}

.history-kind-review{
  color: #b8860b;
}

.history-kind-info{
  color: #2563eb;
}

.history-kind-neutral{
  color: #10b981;
}

.history-item-amount{
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  color: #ff8c00;
}

.history-item-meta, .history-item-ref, .history-item-hint, .history-item-empty{
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  color: #667085;
}

.history-item-status{
  font-weight: 800;
}

.history-status-pending, .history-status-failed{
  color: #dc2626;
}

.history-status-completed{
  color: #16a34a;
}

.history-item-hint{
  display: block;
  margin-top: -1px;
  color: #b8860b;
}

.history-item-ref{
  display: block;
  margin-top: -1px;
}

.history-item-empty{
  padding: 8px 2px 2px;
}

.history-search-mark{
  background: rgba(255, 228, 104, 0.7);
  color: inherit;
  border-radius: 4px;
  padding: 0 2px;
}

body.history-open, html.history-open{
  overflow: hidden;
  overscroll-behavior-y: none;
}

body.history-open .history-overlay{
  opacity: 1;
  pointer-events: auto;
}

body.history-open .history-panel{
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0) scale(1);
}

body.history-search-open .history-panel, html.history-search-open .history-panel{
  top: max(10px, env(safe-area-inset-top, 0px));
  bottom: calc(8px + var(--safe-b));
  max-height: none;
}

@media (max-width: 640px) {
  body.history-search-open .history-panel, html.history-search-open .history-panel {
    top: max(10px, env(safe-area-inset-top, 0px));
    bottom: calc(8px + var(--safe-b));
  }

}

body.history-opening .history-panel, html.history-opening .history-panel{
  transition-duration: 320ms, 220ms;
}

body.history-closing .history-panel, html.history-closing .history-panel{
  pointer-events: none;
  transition-duration: 220ms, 160ms;
}

body.history-opening .history-overlay, html.history-opening .history-overlay{
  transition-duration: 220ms;
}

body.history-closing .history-overlay, html.history-closing .history-overlay{
  pointer-events: none;
  transition-duration: 180ms;
}

html[data-theme="dark"] .history-panel, body.dark .history-panel{
  background: rgba(28, 31, 37, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .history-panel-title, body.dark .history-panel-title, html[data-theme="dark"] .history-item-btn, body.dark .history-item-btn, html[data-theme="dark"] .history-item-copy-btn, body.dark .history-item-copy-btn{
  background: #2a2c31;
  border-color: #3a3c42;
  color: #f5f7fb;
}

html[data-theme="dark"] .history-close-btn, body.dark .history-close-btn{
  color: #f5f7fb;
}

html[data-theme="dark"] .history-close-btn, body.dark .history-close-btn, html[data-theme="dark"] .history-item-btn, body.dark .history-item-btn, html[data-theme="dark"] .history-search-input, body.dark .history-search-input{
  background: #2a2c31;
  border-color: #3a3c42;
}

html[data-theme="dark"] .history-item-meta, html[data-theme="dark"] .history-item-ref, html[data-theme="dark"] .history-item-hint, html[data-theme="dark"] .history-item-empty, body.dark .history-item-meta, body.dark .history-item-ref, body.dark .history-item-hint, body.dark .history-item-empty{
  color: #bfc4cf;
}

body.history-open #tracksToggle{
  z-index: 1500;
}

@media (max-width: 640px) {
  .history-panel {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    top: max(8px, env(safe-area-inset-top, 0px));
    bottom: calc(8px + var(--safe-b));
    min-height: calc(100dvh - max(8px, env(safe-area-inset-top, 0px)) - (8px + var(--safe-b)));
    padding: 12px;
    border-radius: 18px 18px 16px 16px;
  }

}

.wallet-col-right{
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
}

.wallet-col-right .wallet-jukebox{
  width: 100% !important;
  min-width: 0 !important;
}

.wallet-col-right .wallet-jukebox-main{
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  row-gap: 6px !important;
  column-gap: 0 !important;
  width: 100% !important;
  min-height: 0 !important;
}

.wallet-col-right .wallet-jukebox-actions{
  position: static !important;
  order: 1 !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  width: calc((var(--jukebox-wallet-control-size) * 3) + 12px) !important;
  max-width: calc((var(--jukebox-wallet-control-size) * 3) + 12px) !important;
  margin: 2px 0 0 auto !important;
  top: auto !important;
  right: auto !important;
}

.wallet-col-right .wallet-jukebox-balances, .wallet-col-right #jukeboxBalancePanel{
  order: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  align-self: flex-end !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  text-align: right !important;
}

.wallet-col-right .wallet-jukebox-line{
  justify-content: flex-end !important;
}

.history-panel{
  width: var(--site-visual-width) !important;
  max-width: var(--site-max-width) !important;
  box-sizing: border-box !important;
}

.wallet-col-right .wallet-jukebox-balances, .wallet-col-right #jukeboxBalancePanel{
  width: calc((var(--jukebox-wallet-control-size) * 3) + 12px) !important;
  max-width: calc((var(--jukebox-wallet-control-size) * 3) + 12px) !important;
  margin: 0 0 2px auto !important;
}

.wallet-col-right .wallet-jukebox-line, .wallet-col-right .wallet-jukebox-meta, .wallet-col-right .wallet-jukebox-status{
  width: 100% !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  justify-content: stretch !important;
  text-align: left !important;
}

.wallet-col-right .wallet-jukebox-line .wallet-jukebox-label, .wallet-col-right .wallet-jukebox-k{
  justify-self: start !important;
  text-align: left !important;
}

.wallet-col-right #jukeboxTonBalance, .wallet-col-right .wallet-jukebox-v{
  justify-self: end !important;
  text-align: right !important;
}

.wallet-col-right .wallet-jukebox-meta, .wallet-col-right .wallet-jukebox-status{
  gap: 6px !important;
}

.wallet-jukebox-balances, #jukeboxBalancePanel{
  --jukebox-balance-panel-separator: rgba(95, 101, 112, 0.18);
}

.wallet-jukebox-line .wallet-jukebox-k, .wallet-jukebox-line .wallet-jukebox-v, .wallet-jukebox-line #jukeboxTonBalance{
  position: relative;
  top: 0;
}

.wallet-jukebox-meta .wallet-jukebox-k, .wallet-jukebox-meta .wallet-jukebox-v, .wallet-jukebox-status .wallet-jukebox-k, .wallet-jukebox-status .wallet-jukebox-v{
  position: relative;
}

.wallet-jukebox-line{
  margin-top: 1px;
}

.wallet-jukebox-line::after{
  bottom: 0;
}

.wallet-jukebox-meta{
  margin-top: -2px;
}

.wallet-jukebox-meta::after{
  bottom: 0;
}

.wallet-jukebox-meta .wallet-jukebox-k, .wallet-jukebox-meta .wallet-jukebox-v{
  top: -2px;
}

.wallet-jukebox-status{
  margin-top: -1px;
}

.wallet-jukebox-status .wallet-jukebox-k, .wallet-jukebox-status .wallet-jukebox-v{
  top: -3px;
}

html[data-theme="dark"] .wallet-jukebox-balances, body.dark .wallet-jukebox-balances, .theme-transition-overlay .dark-scope .wallet-jukebox-balances{
  --jukebox-balance-panel-separator: rgba(191, 196, 207, 0.16);
}

.theme-transition-overlay .light-scope .wallet-jukebox-balances{
  --jukebox-balance-panel-separator: rgba(95, 101, 112, 0.18);
}

.wallet-col-right .wallet-jukebox-balances, .wallet-col-right #jukeboxBalancePanel{
  padding: 6px 10px !important;
}

.wallet-col-right .wallet-jukebox-line, .wallet-col-right .wallet-jukebox-meta, .wallet-col-right .wallet-jukebox-status{
  padding: 3px 2px !important;
  box-sizing: border-box !important;
}

.wallet-col-right .wallet-jukebox-meta, .wallet-col-right .wallet-jukebox-status{
  border-top: 1px solid var(--jukebox-balance-panel-separator) !important;
}

.wallet-btn{
  min-height: var(--jukebox-balance-panel-height) !important;
  height: var(--jukebox-balance-panel-height) !important;
  padding: 0 14px !important;
  font-size: 16px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: none !important;
  animation: none !important;
  -webkit-font-smoothing: antialiased;
}

.wallet-btn, .wallet-btn *{
  transition: none !important;
  animation: none !important;
  will-change: auto !important;
}

@media (max-width: 480px) {
  .wallet-btn {
    font-size: 15px !important;
    padding: 0 14px !important;
  }

}

.wallet-col-right .wallet-jukebox-balances, .wallet-col-right #jukeboxBalancePanel{
  padding: 0 !important;
  display: grid !important;
  grid-template-rows: 20px 18px 18px !important;
  align-content: stretch !important;
}

.wallet-col-right .wallet-jukebox-line, .wallet-col-right .wallet-jukebox-meta, .wallet-col-right .wallet-jukebox-status{
  position: relative !important;
  min-height: 0 !important;
  height: 100% !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  box-sizing: border-box !important;
  transform: none !important;
  -webkit-transform: none !important;
  line-height: 1 !important;
  border-bottom: 0 !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 6px !important;
}

.wallet-col-right .wallet-jukebox-line{
  align-items: end !important;
  padding-top: 0 !important;
  padding-bottom: 1px !important;
}

.wallet-col-right .wallet-jukebox-meta{
  align-items: end !important;
  padding-top: 0 !important;
  padding-bottom: 2px !important;
}

.wallet-col-right .wallet-jukebox-status{
  align-items: end !important;
  padding-top: 0 !important;
  padding-bottom: 4px !important;
}

.wallet-col-right .wallet-jukebox-line::after, .wallet-col-right .wallet-jukebox-meta::after{
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--jukebox-balance-panel-separator);
  pointer-events: none;
}

.wallet-col-right .wallet-jukebox-line::after{
  bottom: -1px !important;
}

.wallet-col-right .wallet-jukebox-meta::after{
  bottom: 2px !important;
}

.wallet-col-right .wallet-jukebox-meta, .wallet-col-right .wallet-jukebox-status{
  border-top: 0 !important;
  margin-top: 0 !important;
}

.wallet-col-right .wallet-jukebox-line .wallet-jukebox-label, .wallet-col-right .wallet-jukebox-k, .wallet-col-right #jukeboxTonBalance, .wallet-col-right .wallet-jukebox-v{
  align-self: end !important;
  line-height: 1 !important;
}

.wallet-col-right .wallet-jukebox-line .wallet-jukebox-k, .wallet-col-right .wallet-jukebox-line #jukeboxTonBalance{
  position: relative !important;
  top: 1px !important;
}

.wallet-col-right .wallet-jukebox-meta .wallet-jukebox-k, .wallet-col-right .wallet-jukebox-meta .wallet-jukebox-v{
  position: relative !important;
  top: -2px !important;
}

.wallet-col-right .wallet-jukebox-status .wallet-jukebox-k, .wallet-col-right .wallet-col-right .wallet-jukebox-status .wallet-jukebox-v, .wallet-col-right .wallet-jukebox-status .wallet-jukebox-v{
  position: relative !important;
  top: -1px !important;
}

.wallet-jukebox-balances, #jukeboxBalancePanel{
  padding: 5px 8px 4px !important;
  box-sizing: border-box !important;
}

.wallet-jukebox-line, .wallet-jukebox-meta, .wallet-jukebox-status, .wallet-col-right .wallet-jukebox-line, .wallet-col-right .wallet-jukebox-meta, .wallet-col-right .wallet-jukebox-status{
  width: 100% !important;
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
  gap: 6px !important;
}

.wallet-jukebox-line::after, .wallet-jukebox-meta::after, .wallet-col-right .wallet-jukebox-line::after, .wallet-col-right .wallet-jukebox-meta::after{
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
}

.wallet-jukebox-k, .wallet-col-right .wallet-jukebox-k{
  padding-left: 0 !important;
}

.wallet-jukebox-meta .wallet-jukebox-k, .wallet-jukebox-status .wallet-jukebox-k, .wallet-col-right .wallet-jukebox-meta .wallet-jukebox-k, .wallet-col-right .wallet-jukebox-status .wallet-jukebox-k{
  padding-left: 0 !important;
  margin-left: 0 !important;
  justify-self: start !important;
  text-align: left !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}

.wallet-jukebox-meta .wallet-jukebox-v, .wallet-jukebox-status .wallet-jukebox-v, .wallet-col-right .wallet-jukebox-meta .wallet-jukebox-v, .wallet-col-right .wallet-jukebox-status .wallet-jukebox-v{
  padding-right: 0 !important;
  justify-self: end !important;
  text-align: right !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}

.wallet-jukebox-line{
  margin-top: 1px !important;
}

.wallet-jukebox-meta{
  margin-top: -1px !important;
}

.wallet-jukebox-meta .wallet-jukebox-k, .wallet-jukebox-meta .wallet-jukebox-v{
  top: -1px !important;
}

.wallet-jukebox-status{
  margin-top: -3px !important;
}

.wallet-jukebox-status .wallet-jukebox-k, .wallet-jukebox-status .wallet-jukebox-v{
  top: -4px !important;
}

.wallet-col-right .wallet-jukebox-balances, .wallet-col-right #jukeboxBalancePanel{
  position: relative !important;
  padding: 5px 8px 4px !important;
  display: grid !important;
  grid-template-rows: 19px 14px 14px !important;
  align-content: start !important;
}

.wallet-col-right .wallet-jukebox-balances::before, .wallet-col-right .wallet-jukebox-balances::after, .wallet-col-right #jukeboxBalancePanel::before, .wallet-col-right #jukeboxBalancePanel::after{
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1px;
  background: var(--jukebox-balance-panel-separator);
  pointer-events: none;
}

.wallet-col-right .wallet-jukebox-balances::before, .wallet-col-right #jukeboxBalancePanel::before{
  top: 24px;
}

.wallet-col-right .wallet-jukebox-balances::after, .wallet-col-right #jukeboxBalancePanel::after{
  top: 39px;
}

.wallet-col-right .wallet-jukebox-line::after, .wallet-col-right .wallet-jukebox-meta::after, .wallet-col-right .wallet-jukebox-status::after, .wallet-col-right .wallet-jukebox-line::before, .wallet-col-right .wallet-jukebox-meta::before, .wallet-col-right .wallet-jukebox-status::before{
  display: none !important;
  content: none !important;
}

.wallet-col-right .wallet-jukebox-line, .wallet-col-right .wallet-jukebox-meta, .wallet-col-right .wallet-jukebox-status{
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  box-sizing: border-box !important;
}

.wallet-col-right .wallet-jukebox-line{
  padding-top: 5px !important;
}

.wallet-col-right .wallet-jukebox-meta{
  padding-top: 2px !important;
}

.wallet-col-right .wallet-jukebox-status{
  padding-top: 0 !important;
  transform: translateY(-2px) !important;
  -webkit-transform: translateY(-2px) !important;
}

.wallet-col-right .wallet-jukebox-label, .wallet-col-right .wallet-jukebox-k{
  padding-left: 0 !important;
  margin-left: 0 !important;
  text-align: left !important;
  justify-self: start !important;
}

.wallet-col-right #jukeboxTonBalance, .wallet-col-right .wallet-jukebox-v{
  padding-right: 0 !important;
  margin-right: 0 !important;
  text-align: right !important;
  justify-self: end !important;
}

.wallet-col-right .wallet-jukebox-meta, .wallet-col-right .wallet-jukebox-status, .wallet-col-right .wallet-jukebox-meta .wallet-jukebox-k, .wallet-col-right .wallet-jukebox-status .wallet-jukebox-k, .wallet-col-right .wallet-jukebox-meta .wallet-jukebox-v, .wallet-col-right .wallet-jukebox-status .wallet-jukebox-v{
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.wallet-col-right .wallet-jukebox-balances, .wallet-col-right #jukeboxBalancePanel{
  position: relative !important;
  display: block !important;
  min-height: var(--jukebox-balance-panel-height) !important;
  height: var(--jukebox-balance-panel-height) !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.wallet-col-right .wallet-jukebox-balances::before, .wallet-col-right .wallet-jukebox-balances::after, .wallet-col-right #jukeboxBalancePanel::before, .wallet-col-right #jukeboxBalancePanel::after{
  content: "" !important;
  position: absolute !important;
  left: 8px !important;
  right: 8px !important;
  height: 1px !important;
  background: var(--jukebox-balance-panel-separator) !important;
  pointer-events: none !important;
}

.wallet-col-right .wallet-jukebox-balances::before, .wallet-col-right #jukeboxBalancePanel::before{
  top: 21px !important;
}

.wallet-col-right .wallet-jukebox-balances::after, .wallet-col-right #jukeboxBalancePanel::after{
  top: 36px !important;
}

.wallet-col-right .wallet-jukebox-line, .wallet-col-right .wallet-jukebox-meta, .wallet-col-right .wallet-jukebox-status, .wallet-col-right #jukeboxBalancePanel .wallet-jukebox-line, .wallet-col-right #jukeboxBalancePanel .wallet-jukebox-meta, .wallet-col-right #jukeboxBalancePanel .wallet-jukebox-status{
  position: absolute !important;
  left: 8px !important;
  right: 8px !important;
  width: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  -webkit-transform: none !important;
  line-height: 1 !important;
}

.wallet-col-right .wallet-jukebox-line, .wallet-col-right #jukeboxBalancePanel .wallet-jukebox-line{
  top: 7px !important;
  height: 11px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.wallet-col-right .wallet-jukebox-meta, .wallet-col-right #jukeboxBalancePanel .wallet-jukebox-meta{
  top: 24px !important;
  height: 9px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: var(--jukebox-balance-panel-subtext) !important;
}

.wallet-col-right .wallet-jukebox-status, .wallet-col-right #jukeboxBalancePanel .wallet-jukebox-status{
  top: 40px !important;
  height: 10px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: var(--jukebox-balance-panel-subtext) !important;
}

.wallet-col-right .wallet-jukebox-line::before, .wallet-col-right .wallet-jukebox-line::after, .wallet-col-right .wallet-jukebox-meta::before, .wallet-col-right .wallet-jukebox-meta::after, .wallet-col-right .wallet-jukebox-status::before, .wallet-col-right .wallet-jukebox-status::after, .wallet-col-right #jukeboxBalancePanel .wallet-jukebox-line::before, .wallet-col-right #jukeboxBalancePanel .wallet-jukebox-line::after, .wallet-col-right #jukeboxBalancePanel .wallet-jukebox-meta::before, .wallet-col-right #jukeboxBalancePanel .wallet-jukebox-meta::after, .wallet-col-right #jukeboxBalancePanel .wallet-jukebox-status::before, .wallet-col-right #jukeboxBalancePanel .wallet-jukebox-status::after{
  display: none !important;
  content: none !important;
}

.wallet-col-right .wallet-jukebox-label, .wallet-col-right .wallet-jukebox-k, .wallet-col-right #jukeboxTonBalance, .wallet-col-right .wallet-jukebox-v, .wallet-col-right #jukeboxBalancePanel .wallet-jukebox-label, .wallet-col-right #jukeboxBalancePanel .wallet-jukebox-k, .wallet-col-right #jukeboxBalancePanel #jukeboxTonBalance, .wallet-col-right #jukeboxBalancePanel .wallet-jukebox-v{
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  -webkit-transform: none !important;
}

.wallet-col-right .wallet-jukebox-label, .wallet-col-right .wallet-jukebox-k, .wallet-col-right #jukeboxBalancePanel .wallet-jukebox-label, .wallet-col-right #jukeboxBalancePanel .wallet-jukebox-k{
  text-align: left !important;
}

.wallet-col-right #jukeboxTonBalance, .wallet-col-right .wallet-jukebox-v, .wallet-col-right #jukeboxBalancePanel #jukeboxTonBalance, .wallet-col-right #jukeboxBalancePanel .wallet-jukebox-v{
  margin-left: auto !important;
  text-align: right !important;
  justify-self: end !important;
}

.wallet-col-right .wallet-jukebox-status{
  padding-top: 0 !important;
  padding-bottom: 5px !important;
}

.wallet-col-right .wallet-jukebox-status .wallet-jukebox-k, .wallet-col-right .wallet-jukebox-status .wallet-jukebox-v{
  top: -4px !important;
}

.wallet-jukebox-balances, .wallet-jukebox-line, .wallet-jukebox-meta, .wallet-jukebox-status, #jukeboxTonBalance{
  text-rendering: auto !important;
  font-kerning: none !important;
}

@supports (-moz-appearance: none) {
  .wallet-col-right, .wallet-jukebox, .wallet-jukebox-main, .wallet-jukebox-actions, .wallet-jukebox-balances, #jukeboxBalancePanel, .wallet-jukebox-line, .wallet-jukebox-meta, .wallet-jukebox-status, .jukebox-action-btn, .jukebox-action-icon, .jukebox-action-icon::before, .jukebox-action-icon::after {
    transform: none !important;
    -webkit-transform: none !important;
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
    will-change: auto !important;
    contain: none !important;
    animation: none !important;
    transition-property: background-color, border-color, color, opacity !important;
    transition-duration: 0s !important;
  }

  .wallet-jukebox-balances, #jukeboxBalancePanel, .wallet-jukebox-line, .wallet-jukebox-meta, .wallet-jukebox-status, #jukeboxTonBalance {
    text-rendering: auto !important;
    font-kerning: none !important;
  }

  .wallet-jukebox-actions {
    justify-content: stretch !important;
  }

  .wallet-jukebox-line {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 6px !important;
  }

  .wallet-jukebox-meta, .wallet-jukebox-status {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

}

@supports (-moz-appearance: none) {
  .jukebox-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
  }

  .jukebox-action-icon {
    position: relative !important;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    flex: 0 0 18px !important;
    box-sizing: border-box !important;
  }

  .jukebox-action-icon::before, .jukebox-action-icon::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    display: block !important;
    background: currentColor !important;
    border-radius: 999px !important;
    pointer-events: none !important;
  }

  .jukebox-action-icon-plus::before, .jukebox-action-icon-minus::before {
    width: 14px !important;
    height: 2px !important;
    transform: translate(-50%, -50%) !important;
  }

  .jukebox-action-icon-plus::after {
    width: 2px !important;
    height: 14px !important;
    transform: translate(-50%, -50%) !important;
  }

  .jukebox-action-icon-minus::after {
    display: none !important;
  }

  .jukebox-action-icon-history {
    border: 2px solid currentColor !important;
    border-radius: 999px !important;
    background: transparent !important;
  }

  .jukebox-action-icon-history::before {
    width: 2px !important;
    height: 5px !important;
    transform: translate(-50%, -95%) !important;
    transform-origin: center bottom !important;
  }

  .jukebox-action-icon-history::after {
    width: 2px !important;
    height: 4px !important;
    transform: translate(-8%, -82%) rotate(55deg) !important;
    transform-origin: center bottom !important;
  }

}

@media (max-width: 600px) {
  html[data-lang="ru"] body:not(.wallet-connected) #walletConnectBtn.wallet-btn {
    font-size: 13px !important;
  }

}

html[data-theme="dark"] .history-item-resumable:hover, html[data-theme="dark"] .history-item-resumable:focus-visible, html[data-theme="dark"] .history-item-resumable:active, html[data-theme="dark"] .history-item-resumable.is-active, body.dark .history-item-resumable:hover, body.dark .history-item-resumable:focus-visible, body.dark .history-item-resumable:active, body.dark .history-item-resumable.is-active{
  border-color: #ff8c00;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

html[data-theme="dark"] .history-item-resumable, body.dark .history-item-resumable{
  background: transparent;
}

html[data-theme="dark"] .history-search-clear-btn, body.dark .history-search-clear-btn{
  color: #bfc4cf;
}

html[data-theme="dark"] .history-search-mark, body.dark .history-search-mark{
  background: rgba(250, 204, 21, 0.32);
}

body.history-opening .history-panel, html.history-opening .history-panel{
  transform: translate3d(-50%, 0, 0) scale(1);
}

body.history-closing .history-panel, html.history-closing .history-panel{
  transform: translate3d(-50%, 100dvh, 0) scale(0.985);
  opacity: 0.01;
}

html:not([data-theme="dark"]) .history-item-btn.history-item-resumable:not(:disabled), body:not(.dark) .history-item-btn.history-item-resumable:not(:disabled){
  background: rgba(15, 18, 25, 0.04);
  border-color: rgba(15, 18, 25, 0.08);
}

html:not([data-theme="dark"]) .history-item-btn.history-item-resumable:not(:disabled):hover, body:not(.dark) .history-item-btn.history-item-resumable:not(:disabled):hover{
  background: rgba(15, 18, 25, 0.06);
}

.wallet-col-left #walletConnectBtn.wallet-btn, .wallet-col-left #walletConnectBtn{
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
  display: flex !important;
}

.wallet-col-left{
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

.wallet-col-left .wallet-btn{
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

#walletConnectBtn{
  grid-column: 1 / 3 !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

body.wallet-connected .wallet-row{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: start !important;
}

body.wallet-connected .wallet-col-left{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-column: 1 / 2 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  align-items: start !important;
}

body.wallet-connected #walletConnectBtn, body.wallet-connected .wallet-col-left .wallet-btn{
  grid-column: 1 / 3 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body:not(.wallet-connected) .wallet-row{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: start !important;
}

body:not(.wallet-connected) .wallet-col-left{
  grid-column: 1 / 2 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

body:not(.wallet-connected) #walletConnectBtn, body:not(.wallet-connected) .wallet-col-left .wallet-btn{
  grid-column: auto !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body.wallet-connected .wallet-col-left .mode-switch-inline, body.wallet-connected .wallet-col-left .mode-switch{
  align-self: stretch !important;
  justify-self: stretch !important;
  box-sizing: border-box !important;
}

body.wallet-connected .wallet-col-left .mode-switch-inline .mode-btn, body.wallet-connected .wallet-col-left .mode-switch .mode-btn{
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

body.wallet-connected .wallet-col-left .mode-switch-inline, body.wallet-connected .wallet-col-left .mode-switch{
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: var(--jukebox-wallet-gap) !important;
  margin-top: 10px !important;
  box-sizing: border-box !important;
}

body.wallet-connected .wallet-col-left .mode-switch-inline .mode-btn, body.wallet-connected .wallet-col-left .mode-switch .mode-btn{
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

body:not(.wallet-connected) #tonModeBtn, body:not(.wallet-connected) #gateModeBtn{
  display: none !important;
}

body:not(.wallet-connected) .mode-switch{
  display: none !important;
}

body:not(.wallet-connected) .wallet-btn{
  margin-right: 10px !important;
}

html[data-theme="dark"] .wallet-btn{
  background: #0098ea;
  border-color: #0098ea;
  color: #ffffff;
}

html[data-theme="dark"] .wallet-balances{
  color: #f1f1f1;
}

html[data-theme="dark"] .mode-btn{
  background: #2a2c31;
  border-color: #3a3c42;
  color: #f1f1f1;
}

html[data-theme="dark"] .mode-btn.active{
  background-color: #ff8c00 !important;
  border-color: #ff8c00 !important;
  color: #ffffff !important;
}

.wallet-row{
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 0 0 10px 0;
}

.wallet-col{
  flex: 1 1 0;
  min-width: 0;
}

.wallet-btn{
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #0098ea;
  background: #0098ea;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(5px, calc((100vw - 128px) / 64), 11px);
  font-family: Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: #ffffff;
  transition: transform 0.08s ease;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  caret-color: currentColor;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  user-select: none;
  padding: 0 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-btn:focus, .wallet-btn:focus-visible{
  outline: none !important;
  box-shadow: none !important;
}

.wallet-btn:active{
  background-color: #0098ea !important;
  border-color: #0098ea !important;
  color: #ffffff !important;
  transform: scale(0.98);
}

.wallet-balances{
  width: 100%;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  box-sizing: border-box;
  padding: 2px 0;
  font-size: 14px;
  font-family: Arial, sans-serif;
  letter-spacing: 0;
  font-weight: 900;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
}

.wallet-balance-line{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  line-height: 1.15;
}

.wallet-balance-label{
  opacity: 1;
  color: inherit;
}

#walletTonBalance{
  color: inherit;
}

body.dark .wallet-balances{
  color: #f1f1f1;
}

.wallet-balances, .wallet-balances *{
  animation: none !important;
  transition-property: none !important;
  transition-duration: 0s !important;
  will-change: auto !important;
}

@media (max-width: 480px){
  .wallet-btn {
    font-size: 13px;
    padding: 0 10px;
  }

  .wallet-balances {
    font-size: 13px;
  }

}

.mode-switch{
  display: flex;
  gap: 10px;
  margin: 0 0 10px 0;
}

.mode-btn{
  flex: 1 1 0;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-family: Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.4px;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  caret-color: currentColor;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.mode-btn:active{
  background-color: #ff8c00 !important;
  border-color: #ff8c00 !important;
  color: #ffffff !important;
  transform: scale(0.98);
}

#modeNoticeLine, #billingNoticeLine{
  min-height: 18px;
  text-align: center;
  font-size: 14px;
  font-family: Arial, sans-serif;
  letter-spacing: 0;
  font-weight: 800;
  line-height: 1.2;
  color: #8c8c8c;
  user-select: none;
  pointer-events: none;
  transition: none !important;
}

#modeNoticeLine{
  text-align: center;
  margin-top: 0px;
  min-height: 1.2em;
}

#billingNoticeLine{
  position: fixed;
  left: 50%;
  bottom: calc(var(--tracks-bottom) + var(--safe-b) + var(--tracks-btn-h) + 8px);
  transform: translateX(-50%);
  width: min(500px, calc(100vw - 24px));
  margin: 0;
  min-height: 1.2em;
  text-align: center;
  color: #8c8c8c !important;
  z-index: 10001;
  transition: color 0s linear, opacity 0s linear !important;
  animation: none !important;
  will-change: auto !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

html[data-theme="dark"] #modeNoticeLine, html[data-theme="dark"] #billingNoticeLine, body.dark #modeNoticeLine, body.dark #billingNoticeLine{
  color: #8c8c8c !important;
}

#modeNoticeLine, #billingNoticeLine, #modeNoticeLine *, #billingNoticeLine *{
  transition-property: color, opacity !important;
  transition-duration: 0s !important;
  animation: none !important;
  color: #8c8c8c !important;
  will-change: auto !important;
}

body.dark .mode-btn{
  background: #2a2c31;
  border-color: #3a3c42;
  color: #f1f1f1;
}

.theme-transition-overlay .dark-scope .mode-btn{
  background: #2a2c31 !important;
  border-color: #3a3c42 !important;
  color: #f1f1f1 !important;
}

.theme-transition-overlay .light-scope .mode-btn{
  background: #ffffff !important;
  border-color: #ddd !important;
  color: #222 !important;
}

.theme-transition-overlay .dark-scope .mode-btn.active, .theme-transition-overlay .light-scope .mode-btn.active{
  background-color: #ff8c00 !important;
  border-color: #ff8c00 !important;
  color: #ffffff !important;
}

body.wallet-modal-open{
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  padding-right: 0 !important;
  margin-right: 0 !important;
}

body.wallet-modal-open .container, body.wallet-modal-open .header, body.wallet-modal-open .wallet-row, body.wallet-modal-open .mode-switch{
  transform: none !important;
  -webkit-transform: none !important;
}

.wallet-modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none !important;
  background: transparent !important;
  transition: none;
}

body.wallet-modal-open .wallet-modal-overlay{
  opacity: 0;
  pointer-events: none !important;
  background: transparent !important;
}

body.wallet-modal-open .container{
  filter: blur(10px);
  -webkit-filter: blur(10px);
  transition: filter 220ms ease-out, -webkit-filter 220ms ease-out;
  pointer-events: none;
}

body.wallet-modal-open #tracksToggle, body.wallet-modal-open .track-search-top, body.wallet-modal-open #tracksPanel, body.wallet-modal-open .tracks-overlay{
  z-index: 100 !important;
}

.theme-transition-overlay .wallet-balances, .theme-transition-overlay .wallet-balances *, .theme-transition-clone .wallet-balances, .theme-transition-clone .wallet-balances *{
  transition: none !important;
  animation: none !important;
  color: inherit !important;
  opacity: 1 !important;
  will-change: auto !important;
}

.theme-transition-overlay .light-scope .wallet-balances, .theme-transition-overlay .light-scope .wallet-balances *{
  color: #222 !important;
}

.theme-transition-overlay .dark-scope .wallet-balances, .theme-transition-overlay .dark-scope .wallet-balances *{
  color: #f1f1f1 !important;
}

css/blockchain.css .wallet-col-right{
  display: flex;
  align-items: stretch;
}

.wallet-jukebox{
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  box-sizing: border-box;
  padding: 0;
}

.wallet-jukebox-title{
  font-size: 14px;
  font-family: Arial, sans-serif;
  letter-spacing: 0;
  font-weight: 900;
  line-height: 1.1;
  color: #222;
  text-align: right;
  white-space: nowrap;
  margin: -5px 0 2px;
}

.wallet-jukebox-main{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 10px;
}

.wallet-jukebox-balances{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-self: start;
}

.wallet-jukebox-line{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-size: 14px;
  font-family: Arial, sans-serif;
  letter-spacing: 0;
  font-weight: 900;
  line-height: 1.15;
  color: #222;
  white-space: nowrap;
}

.wallet-jukebox-label{
  color: inherit;
  opacity: 1;
}

.wallet-jukebox-actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  justify-self: end;
}

html[data-theme="dark"] .wallet-jukebox-title, html[data-theme="dark"] .wallet-jukebox-line, body.dark .wallet-jukebox-title, body.dark .wallet-jukebox-line{
  color: #f1f1f1;
}

.wallet-jukebox, .wallet-jukebox *{
  animation: none !important;
  transition-property: none !important;
  transition-duration: 0s !important;
  will-change: auto !important;
}

@media (max-width: 480px){
  .wallet-jukebox-title {
    font-size: 13px;
  }

  .wallet-jukebox-line {
    font-size: 13px;
  }

  .wallet-jukebox-main {
    column-gap: 8px;
  }

  .wallet-jukebox-actions {
    gap: 6px;
  }

  .jukebox-action-btn {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

}

.theme-transition-overlay #billingNoticeLine, .theme-transition-overlay .light-scope #billingNoticeLine, .theme-transition-overlay .dark-scope #billingNoticeLine{
  display: none !important;
}

body.tracks-open #billingNoticeLine, body.tracks-closing #billingNoticeLine, body.tracks-dragging #billingNoticeLine{
  position: fixed !important;
  left: 50% !important;
  bottom: calc(var(--tracks-bottom) + var(--safe-b) + var(--tracks-btn-h) + 8px) !important;
  top: auto !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
  transition-property: color, opacity !important;
  transition-duration: 0s !important;
  animation: none !important;
}

.wallet-jukebox-balances{
  gap: 1px;
}

body.tracks-open #billingNoticeLine, body.tracks-closing #billingNoticeLine, body.playlists-closing #billingNoticeLine, body.history-open #billingNoticeLine, html.history-open #billingNoticeLine, body.tracks-open #modeNoticeLine{
  filter: blur(10px) !important;
  opacity: .28 !important;
  transition: filter 140ms ease, opacity 140ms ease !important;
}

body.tracks-open #billingNoticeLine, body.playlists-closing #billingNoticeLine, body.tracks-closing #billingNoticeLine, html.tracks-open #billingNoticeLine, body.tracks-open .billing-notice-line, html.tracks-open .billing-notice-line, #tracksOverlay[aria-hidden="false"] ~ #billingNoticeLine{
  opacity: 0 !important;
  filter: blur(12px) !important;
  -webkit-filter: blur(12px) !important;
  pointer-events: none !important;
}

#billingNoticeLine, .billing-notice-line{
  transition: opacity .16s ease, filter .16s ease !important;
}

#modeNoticeLine, #billingNoticeLine{
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: filter, opacity;
}

body.tracks-open #modeNoticeLine, body.tracks-open #billingNoticeLine, body.tracks-closing #modeNoticeLine, body.tracks-closing #billingNoticeLine, body.playlists-closing #modeNoticeLine, body.playlists-closing #billingNoticeLine, html.tracks-open #modeNoticeLine, html.tracks-open #billingNoticeLine, .dropdown-overlay.open ~ #modeNoticeLine, .dropdown-overlay.open ~ #billingNoticeLine{
  opacity: 1 !important;
  visibility: visible !important;
  filter: blur(10px) !important;
  -webkit-filter: blur(10px) !important;
  pointer-events: none !important;
}

body.theme-animating .wallet-row, body.theme-freeze .wallet-row, body.theme-animating .wallet-btn, body.theme-freeze .wallet-btn, body.theme-animating .wallet-jukebox, body.theme-freeze .wallet-jukebox, body.theme-animating .wallet-jukebox-main, body.theme-freeze .wallet-jukebox-main, body.theme-animating .wallet-jukebox-actions, body.theme-freeze .wallet-jukebox-actions, body.theme-animating .wallet-jukebox-balances, body.theme-freeze .wallet-jukebox-balances, body.theme-animating .mode-switch, body.theme-freeze .mode-switch, body.theme-animating #modeNoticeLine, body.theme-freeze #modeNoticeLine, body.theme-animating #billingNoticeLine, body.theme-freeze #billingNoticeLine{
  transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, filter !important;
  transform: translateZ(0) !important;
  -webkit-transform: translateZ(0) !important;
}

#modeNoticeLine, #billingNoticeLine{
  left: 50% !important;
  right: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: translateX(-50%) translateZ(0) !important;
  -webkit-transform: translateX(-50%) translateZ(0) !important;
  width: min(500px, calc(100vw - 24px)) !important;
  max-width: 500px !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

body.theme-animating #modeNoticeLine, body.theme-freeze #modeNoticeLine, body.theme-animating #billingNoticeLine, body.theme-freeze #billingNoticeLine{
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) translateZ(0) !important;
  -webkit-transform: translateX(-50%) translateZ(0) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  top: auto !important;
  bottom: auto !important;
}

.wallet-row, .mode-switch, #modeNoticeLine, #billingNoticeLine{
  box-sizing: border-box;
}

.theme-transition-clone #modeNoticeLine, .theme-transition-clone #billingNoticeLine{
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  -webkit-transform: translateX(-50%) !important;
  width: min(500px, calc(100vw - 24px)) !important;
  max-width: 500px !important;
}

#modeNoticeLine, #billingNoticeLine, .theme-transition-clone #modeNoticeLine, .theme-transition-clone #billingNoticeLine{
  left: 50% !important;
  right: auto !important;
  width: min(500px, calc(100vw - 24px)) !important;
  max-width: 500px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: translateX(-50%) !important;
  -webkit-transform: translateX(-50%) !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

#modeNoticeLine{
  position: relative !important;
  left: 50% !important;
  right: auto !important;
}

#billingNoticeLine{
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(var(--tracks-bottom) + var(--safe-b) + var(--tracks-btn-h) + 8px) !important;
  width: min(500px, calc(100vw - 24px)) !important;
  max-width: 500px !important;
  transform: translateX(-50%) !important;
  -webkit-transform: translateX(-50%) !important;
  text-align: center !important;
  box-sizing: border-box !important;
  top: auto !important;
}

body.theme-animating #billingNoticeLine, body.theme-freeze #billingNoticeLine, .theme-transition-clone #billingNoticeLine{
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(var(--tracks-bottom) + var(--safe-b) + var(--tracks-btn-h) + 8px) !important;
  top: auto !important;
  width: min(500px, calc(100vw - 24px)) !important;
  max-width: 500px !important;
  transform: translateX(-50%) !important;
  -webkit-transform: translateX(-50%) !important;
  margin: 0 !important;
}

body.tracks-open #billingNoticeLine, body.tracks-closing #billingNoticeLine, body.playlists-closing #billingNoticeLine, html.tracks-open #billingNoticeLine{
  opacity: 1 !important;
  filter: blur(10px) !important;
  -webkit-filter: blur(10px) !important;
  pointer-events: none !important;
}

.wallet-row, .mode-switch, #modeNoticeLine, #billingNoticeLine{
  width: var(--site-width) !important;
  max-width: var(--site-max-width) !important;
  box-sizing: border-box !important;
}

#billingNoticeLine{
  left: 50% !important;
  right: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

.mode-switch{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

.mode-switch .mode-btn, .mode-btn{
  width: 100% !important;
  min-width: 0 !important;
}

.wallet-row{
  display: flex !important;
  align-items: stretch !important;
  gap: 10px !important;
}

.wallet-col{
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

.wallet-btn{
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

#modeNoticeLine, #billingNoticeLine{
  text-align: center !important;
}

.wallet-row, .mode-switch, #modeNoticeLine{
  width: var(--site-visual-width) !important;
  max-width: var(--site-max-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

#billingNoticeLine{
  width: var(--site-visual-width) !important;
  max-width: var(--site-max-width) !important;
  box-sizing: border-box !important;
  left: 50% !important;
  right: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.wallet-row, .mode-switch{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.wallet-col, .wallet-col-left, .wallet-col-right{
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

.wallet-col-left{
  grid-column: 1 / 2 !important;
}

.wallet-col-right{
  grid-column: 2 / 3 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: stretch !important;
}

.wallet-btn, .mode-btn{
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body:not(.wallet-connected) .wallet-row{
  grid-template-columns: 1fr 1fr !important;
}

body:not(.wallet-connected) .wallet-col-right{
  display: none !important;
}

body:not(.wallet-connected) .wallet-col-left{
  grid-column: 1 / 2 !important;
  width: 100% !important;
  max-width: none !important;
}

body.theme-animating .wallet-row, body.theme-freeze .wallet-row, body.theme-animating .mode-switch, body.theme-freeze .mode-switch, body.theme-animating .wallet-col, body.theme-freeze .wallet-col, body.theme-animating .wallet-col-left, body.theme-freeze .wallet-col-left, body.theme-animating .wallet-col-right, body.theme-freeze .wallet-col-right, body.theme-animating .wallet-jukebox, body.theme-freeze .wallet-jukebox, body.theme-animating .wallet-jukebox-main, body.theme-freeze .wallet-jukebox-main, body.theme-animating .wallet-jukebox-balances, body.theme-freeze .wallet-jukebox-balances, body.theme-animating .wallet-jukebox-actions, body.theme-freeze .wallet-jukebox-actions{
  transform: none !important;
  -webkit-transform: none !important;
}

body.theme-animating .wallet-row, body.theme-freeze .wallet-row, body.theme-animating .mode-switch, body.theme-freeze .mode-switch{
  width: var(--site-visual-width, min(500px, calc(100vw - 24px))) !important;
  max-width: var(--site-max-width, 500px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

.theme-transition-clone .wallet-row, .theme-transition-clone .mode-switch{
  width: var(--site-visual-width, min(500px, calc(100vw - 24px))) !important;
  max-width: var(--site-max-width, 500px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
  transform: none !important;
  -webkit-transform: none !important;
}

.wallet-row, .mode-switch{
  box-sizing: border-box;
}

body.theme-animating .wallet-row, body.theme-freeze .wallet-row, body.theme-animating .mode-switch, body.theme-freeze .mode-switch{
  transform: none !important;
  -webkit-transform: none !important;
}

body.history-open #billingNoticeLine, html.history-open #billingNoticeLine, body.history-open .billing-notice-line, html.history-open .billing-notice-line{
  opacity: 0 !important;
  filter: blur(12px) !important;
  -webkit-filter: blur(12px) !important;
  pointer-events: none !important;
}

.wallet-col-left{
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

.wallet-col-left .mode-switch, .mode-switch-inline{
  width: 100% !important;
  max-width: none !important;
  margin: 10px 0 0 0 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
}

.wallet-col-left .mode-btn, .mode-switch-inline .mode-btn{
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.wallet-col-right{
  align-self: start !important;
}

.wallet-jukebox-main{
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  row-gap: 6px !important;
}

.wallet-jukebox-actions{
  justify-content: flex-end !important;
}

.wallet-jukebox-balances{
  align-self: flex-end !important;
  width: 100% !important;
  text-align: right !important;
  align-items: flex-end !important;
}

.wallet-jukebox-line{
  justify-content: flex-end !important;
}

.wallet-row{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: start !important;
}

.wallet-col-left, .wallet-col-right{
  min-width: 0 !important;
}

.wallet-col-left{
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

.wallet-col-left .mode-switch-inline, .wallet-col-left .mode-switch{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 10px 0 0 0 !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  box-sizing: border-box !important;
}

.wallet-col-left .mode-switch-inline .mode-btn, .wallet-col-left .mode-switch .mode-btn, #tonModeBtn, #gateModeBtn{
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: 1 1 0 !important;
  box-sizing: border-box !important;
}

body.theme-animating .wallet-col-left .mode-switch-inline, body.theme-freeze .wallet-col-left .mode-switch-inline, body.theme-animating .wallet-col-left .mode-switch, body.theme-freeze .wallet-col-left .mode-switch, .theme-transition-clone .wallet-col-left .mode-switch-inline, .theme-transition-clone .wallet-col-left .mode-switch{
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

.wallet-col-right{
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
}

.wallet-jukebox{
  width: 100% !important;
  min-width: 0 !important;
}

.wallet-jukebox{
  width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  min-width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  max-width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  margin-left: auto !important;
}

.wallet-jukebox-main{
  display: grid !important;
  grid-template-columns: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  grid-template-rows: var(--jukebox-wallet-control-size) var(--jukebox-balance-panel-height) !important;
  row-gap: var(--jukebox-wallet-stack-gap) !important;
  justify-content: end !important;
  align-items: start !important;
  width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  min-width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  max-width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
}

.wallet-jukebox-actions{
  display: grid !important;
  grid-template-columns: repeat(3, var(--jukebox-wallet-control-size)) !important;
  column-gap: var(--jukebox-wallet-gap) !important;
  row-gap: 0 !important;
  justify-content: stretch !important;
  align-items: stretch !important;
  width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  min-width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  max-width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  margin: 0 !important;
}

.wallet-jukebox-balances{
  display: grid !important;
  grid-template-rows: 20px 14px 14px !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  align-self: start !important;
  width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  min-width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  max-width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  text-align: left !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.wallet-jukebox-line, .wallet-jukebox-meta, .wallet-jukebox-status{
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.wallet-jukebox-meta, .wallet-jukebox-status{
  text-align: right !important;
}

.wallet-ui-disabled{
  opacity: 0.45;
  pointer-events: none;
}

.mode-switch .mode-btn:disabled{
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.wallet-jukebox-line, .wallet-jukebox-meta, .wallet-jukebox-status, #walletConnectBtn{
  transform: none !important;
  -webkit-transform: none !important;
  font-variant-numeric: tabular-nums;
}

.theme-transition-overlay .wallet-jukebox-line, .theme-transition-overlay .wallet-jukebox-meta, .theme-transition-overlay .wallet-jukebox-status, .theme-transition-overlay #walletConnectBtn, .theme-transition-clone .wallet-jukebox-line, .theme-transition-clone .wallet-jukebox-meta, .theme-transition-clone .wallet-jukebox-status, .theme-transition-clone #walletConnectBtn{
  transform: none !important;
  -webkit-transform: none !important;
}

#modeNoticeLine, #billingNoticeLine, .wallet-balances, .wallet-balances *, .billing-notice-line, .wallet-col, .wallet-col *, .balance, .balance *, .wallet-panel, .wallet-panel *{
  font-family: Arial, sans-serif !important;
}

#modeNoticeLine, #billingNoticeLine{
  font-family: Arial, sans-serif !important;
}

#modeNoticeLine, #billingNoticeLine, .wallet-jukebox-balances, .wallet-jukebox-balances *, .wallet-jukebox, .wallet-jukebox *{
  font-family: Arial, sans-serif !important;
}

.mode-btn, #tonModeBtn, #gateModeBtn{
  transition: none !important;
  animation: none !important;
}

.mode-switch, .mode-switch-inline, .wallet-col-left .mode-switch, .wallet-col-left .mode-switch-inline{
  margin-bottom: var(--jukebox-main-row-gap) !important;
}

.mode-switch-inline{
  margin-top: var(--jukebox-ref-gap) !important;
}

.wallet-row{
  margin-bottom: var(--jukebox-ref-gap) !important;
}

.wallet-row{
  margin-bottom: 6px !important;
}

.mode-switch-inline{
  margin-top: 6px !important;
}

#jukeboxBalancePanel{
  display: grid !important;
  grid-template-rows: 20px 14px 14px !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  align-self: start !important;
  width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  min-width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  max-width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  text-align: left !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

body.history-open #billingNotice, body.history-open .billing-notice{
  opacity: 0 !important;
  filter: blur(12px) !important;
  -webkit-filter: blur(12px) !important;
  pointer-events: none !important;
}

.jukebox-action-btn{
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #ffffff;
  color: #222;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  caret-color: currentColor;
  outline: none;
  appearance: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.jukebox-action-btn:active{
  background-color: #ff8c00 !important;
  border-color: #ff8c00 !important;
  color: #ffffff !important;
  transform: scale(0.96);
}

.jukebox-action-btn, .jukebox-action-btn *{
  animation: none !important;
  transition-property: none !important;
  transition-duration: 0s !important;
  will-change: auto !important;
}

.blockchain-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px 16px;
  z-index: 12050;
}

.blockchain-modal-overlay.open{
  display: flex;
}

.blockchain-modal{
  width: min(420px, 100%);
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 14px;
  box-sizing: border-box;
  padding: 16px;
  color: #222;
  box-shadow: 0 18px 50px rgba(0,0,0,0.16);
  transform: translateY(0);
}

.blockchain-modal-title{
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 14px;
}

.blockchain-modal-field{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.blockchain-modal-label{
  font-size: 14px;
  font-family: Arial, sans-serif;
  letter-spacing: 0;
  font-weight: 800;
  color: #666;
}

.blockchain-modal-select, .blockchain-modal-input{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fafafa;
  color: #222;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 14px;
  outline: none;
}

.blockchain-modal-select:focus, .blockchain-modal-input:focus{
  border-color: #ff8c00;
}

.blockchain-modal-actions{
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.blockchain-modal-btn{
  min-width: 108px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #ffffff;
  color: #222;
  font-size: 14px;
  font-family: Arial, sans-serif;
  letter-spacing: 0;
  font-weight: 900;
  cursor: pointer;
}

.blockchain-modal-btn.primary{
  border-color: #ff8c00;
  background: #ff8c00;
  color: #fff;
}

.blockchain-modal-btn:active{
  transform: scale(0.98);
}

html[data-theme="dark"] .blockchain-modal, body.dark .blockchain-modal{
  background: #1f2228;
  border-color: #343843;
  color: #f1f1f1;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}

html[data-theme="dark"] .blockchain-modal-label, body.dark .blockchain-modal-label{
  color: #b9bec7;
}

html[data-theme="dark"] .blockchain-modal-select, html[data-theme="dark"] .blockchain-modal-input, body.dark .blockchain-modal-select, body.dark .blockchain-modal-input{
  background: #2a2d34;
  border-color: #3a3f49;
  color: #f1f1f1;
}

html[data-theme="dark"] .blockchain-modal-btn, body.dark .blockchain-modal-btn{
  background: #2a2d34;
  border-color: #3a3f49;
  color: #f1f1f1;
}

html[data-theme="dark"] .blockchain-modal-btn.primary, body.dark .blockchain-modal-btn.primary{
  background: #ff8c00;
  border-color: #ff8c00;
  color: #fff;
}

@media (max-width: 480px){
  .blockchain-modal-overlay{
    padding-top: 52px;
  }

  .blockchain-modal {
    transform: translateY(0);
  }

}

.billing-state-block{
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 8px 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,.04);
  font-size: 12px;
  line-height: 1.25;
}

.billing-state-row{
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.billing-state-label{
  opacity: .78;
  font-weight: 700;
}

.billing-state-value{
  font-weight: 800;
  text-align: right;
}

html[data-theme="dark"] .billing-state-block, body.dark .billing-state-block{
  background: rgba(255,255,255,.06);
}


/* FIX v2: TON/GATE exact match to +/- buttons */
#tonModeBtn, #gateModeBtn, .mode-btn{
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  padding: 0 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}


/* FIX v32: active TON/GATE orange in light theme */
.mode-btn.active,
#tonModeBtn.active,
#gateModeBtn.active{
  background-color: #ff8c00 !important;
  border-color: #ff8c00 !important;
  color: #ffffff !important;
}


/* FIX v45: history modal must be above Content List and billing notice */
#historyOverlay{
  z-index: 2147483642 !important;
}
#historyPanel{
  z-index: 2147483643 !important;
}


/* FIX v48: history modal must blur/hide Content List and billing notice */
body.history-open #tracksToggle,
body.history-open .tracks-toggle{
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  filter: blur(12px) !important;
  -webkit-filter: blur(12px) !important;
}

body.history-open #billingNoticeLine,
body.history-open .billing-notice{
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  filter: blur(12px) !important;
  -webkit-filter: blur(12px) !important;
}

/* keep history modal above everything */
#historyOverlay{
  z-index: 2147483644 !important;
}
#historyPanel{
  z-index: 2147483645 !important;
}


/* FIX v132.13: unify History window radii to site canon (same as TON button) */
.history-panel,
#historyPanel,
.history-search-input,
.history-search-clear-btn,
.history-close-btn,
.history-search-toggle-btn,
.history-item-btn,
.history-item-copy-btn,
.blockchain-modal,
.blockchain-modal-btn,
.blockchain-modal-input,
.blockchain-modal-select,
.billing-state-block{
  border-radius: 8px !important;
}


/* FIX v132.14: trial first charge text color by theme */
.history-kind-billing-charge-trial{
  color: #000000 !important;
}

html[data-theme="dark"] .history-kind-billing-charge-trial,
body.dark .history-kind-billing-charge-trial{
  color: #ffffff !important;
}


/* FIX v134.21.2: unify mobile main-screen vertical gaps to one step */
@media (max-width: 768px){
  :root{
    --jukebox-mobile-main-gap: 10px;
    --jukebox-wallet-stack-gap: 10px;
  }

  .wallet-row{
    margin: 0 0 var(--jukebox-mobile-main-gap) 0 !important;
  }

  .mode-switch,
  .mode-switch-inline,
  .wallet-col-left .mode-switch,
  .wallet-col-left .mode-switch-inline{
    margin-top: 0 !important;
    margin-bottom: var(--jukebox-mobile-main-gap) !important;
  }

  .wallet-jukebox-main{
    row-gap: var(--jukebox-mobile-main-gap) !important;
  }
}


/* FIX v134.21.3: mobile main-page vertical rhythm unified to one gap like the green-marked gap */
@media (max-width: 768px){
  :root{
    --jukebox-mobile-main-gap: 10px;
    --jukebox-wallet-stack-gap: 10px;
  }

  .wallet-row{
    margin: 0 0 var(--jukebox-mobile-main-gap) 0 !important;
  }

  body.wallet-connected .wallet-col-left .mode-switch-inline,
  body.wallet-connected .wallet-col-left .mode-switch,
  .mode-switch,
  .mode-switch-inline{
    margin-top: var(--jukebox-mobile-main-gap) !important;
    margin-bottom: 0 !important;
  }

  .wallet-jukebox-main{
    row-gap: var(--jukebox-mobile-main-gap) !important;
  }

  .wallet-jukebox-actions{
    margin-bottom: 0 !important;
  }

  .wallet-jukebox-balances{
    margin-top: 0 !important;
  }
}


/* FIX v134.21.4: unify mobile vertical gaps to one rhythm step like the green-marked gap */
@media (max-width: 768px){
  :root{
    --jukebox-mobile-main-gap: 10px;
    --jukebox-wallet-stack-gap: 10px;
  }

  .wallet-row{
    margin: 0 0 var(--jukebox-mobile-main-gap) 0 !important;
    align-items: flex-start !important;
  }

  body.wallet-connected .wallet-col-left{
    display: flex !important;
    flex-direction: column !important;
    gap: var(--jukebox-mobile-main-gap) !important;
  }

  body.wallet-connected .wallet-col-left .mode-switch-inline,
  body.wallet-connected .wallet-col-left .mode-switch,
  .mode-switch,
  .mode-switch-inline{
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .wallet-jukebox-main{
    row-gap: var(--jukebox-mobile-main-gap) !important;
  }

  .wallet-jukebox-actions,
  .wallet-jukebox-balances{
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}


/* FIX v134.21.5: mobile main-screen vertical gaps unified to one step like the green-marked gap */
@media (max-width: 768px){
  :root{
    --jukebox-mobile-main-gap: 10px;
    --jukebox-wallet-stack-gap: 10px;
  }

  .wallet-row{
    margin: 0 0 var(--jukebox-mobile-main-gap) 0 !important;
    align-items: flex-start !important;
  }

  body.wallet-connected .wallet-col-left{
    display: flex !important;
    flex-direction: column !important;
    gap: var(--jukebox-mobile-main-gap) !important;
  }

  body.wallet-connected .wallet-col-left .mode-switch-inline,
  body.wallet-connected .wallet-col-left .mode-switch,
  .mode-switch,
  .mode-switch-inline{
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .wallet-jukebox-main{
    row-gap: var(--jukebox-mobile-main-gap) !important;
  }

  .wallet-jukebox-actions,
  .wallet-jukebox-balances{
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* FIX v1.49: mobile wallet/search spacing and square action buttons */
@media (max-width: 768px){
  :root{
    --jukebox-mobile-gap-ref: 12px;
  }

  .wallet-row{
    margin: 0 0 var(--jukebox-mobile-gap-ref) 0 !important;
  }

  body.wallet-connected .wallet-col-left,
  body:not(.wallet-connected) .wallet-col-left,
  .wallet-col-left{
    gap: 0 !important;
  }

  body.wallet-connected .wallet-col-left .mode-switch-inline,
  body.wallet-connected .wallet-col-left .mode-switch,
  body:not(.wallet-connected) .wallet-col-left .mode-switch-inline,
  body:not(.wallet-connected) .wallet-col-left .mode-switch,
  .wallet-col-left .mode-switch-inline,
  .wallet-col-left .mode-switch,
  .mode-switch,
  .mode-switch-inline{
    margin-top: var(--jukebox-mobile-gap-ref) !important;
    margin-bottom: 0 !important;
    gap: 10px !important;
  }

  #bagSearchWrap,
  .bag-search-wrap{
    margin-top: 0 !important;
    margin-bottom: var(--jukebox-mobile-gap-ref) !important;
  }

  .jukebox-action-btn,
  .wallet-jukebox-actions .jukebox-action-btn,
  #jukeboxHistoryBtn,
  #jukeboxDepositBtn,
  #jukeboxWithdrawBtn{
    width: var(--jukebox-wallet-control-size, 44px) !important;
    min-width: var(--jukebox-wallet-control-size, 44px) !important;
    max-width: var(--jukebox-wallet-control-size, 44px) !important;
    height: var(--jukebox-wallet-control-size, 44px) !important;
    min-height: var(--jukebox-wallet-control-size, 44px) !important;
    max-height: var(--jukebox-wallet-control-size, 44px) !important;
    flex: 0 0 var(--jukebox-wallet-control-size, 44px) !important;
  }

  .wallet-jukebox-actions{
    grid-template-columns: repeat(3, var(--jukebox-wallet-control-size, 44px)) !important;
    column-gap: var(--jukebox-wallet-gap, 6px) !important;
    width: calc((var(--jukebox-wallet-control-size, 44px) * 3) + (var(--jukebox-wallet-gap, 6px) * 2)) !important;
    min-width: calc((var(--jukebox-wallet-control-size, 44px) * 3) + (var(--jukebox-wallet-gap, 6px) * 2)) !important;
    max-width: calc((var(--jukebox-wallet-control-size, 44px) * 3) + (var(--jukebox-wallet-gap, 6px) * 2)) !important;
  }
}


/* FIX v1.50: mobile wallet action row shifted down by ~5px to match reference gap */
@media (max-width: 768px){
  .wallet-jukebox-actions{
    margin-top: 5px !important;
  }
}


/* FIX v1.51: align wallet action row gap with the corrected reference gap on both desktop and mobile */
.wallet-col-right .wallet-jukebox-main{
  row-gap: 15px !important;
}

.wallet-col-right .wallet-jukebox-balances,
.wallet-col-right #jukeboxBalancePanel,
.wallet-col-right .wallet-jukebox-actions{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}


/* FIX v1.52: raise wallet action row slightly so history/plus/minus align with GATE on desktop and mobile */
.wallet-col-right .wallet-jukebox-main{
  row-gap: 12px !important;
}

.wallet-col-right .wallet-jukebox-actions,
.wallet-jukebox-actions{
  margin-top: 0 !important;
}


/* FIX v54: TON/GATE extend downward by 5px without increasing the layout gap below */
#tonModeBtn, #gateModeBtn, .mode-btn{
  height: 47px !important;
  min-height: 47px !important;
  max-height: 47px !important;
  margin-bottom: -5px !important;
  align-self: start !important;
}


/* FIX v1.55: TON/GATE height matches history/plus/minus on desktop and mobile */
#tonModeBtn, #gateModeBtn, .mode-btn{
  height: var(--jukebox-wallet-control-size, 44px) !important;
  min-height: var(--jukebox-wallet-control-size, 44px) !important;
  max-height: var(--jukebox-wallet-control-size, 44px) !important;
  margin-bottom: 0 !important;
  align-self: start !important;
}

/* v136.2 promo/profile */
.wallet-jukebox-main-profile{
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  gap:12px;
}

.wallet-jukebox-main-profile .wallet-jukebox-actions{
  flex:0 0 auto;
}

.jukebox-profile-btn{
  flex:0 0 auto;
}

.jukebox-action-icon-profile{
  position:relative;
  width:24px;
  height:24px;
  display:inline-block;
}

.jukebox-action-icon-profile::before,
.jukebox-action-icon-profile::after{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  box-sizing:border-box;
  border:2.5px solid currentColor;
}

.jukebox-action-icon-profile::before{
  top:1px;
  width:10px;
  height:10px;
  border-radius:999px;
  background:transparent;
}

.jukebox-action-icon-profile::after{
  bottom:1px;
  width:18px;
  height:10px;
  border-top-left-radius:10px;
  border-top-right-radius:10px;
  border-bottom:none;
}

.wallet-profile-overlay{
  position:fixed;
  inset:0;
  background:rgba(10, 10, 16, 0.18);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease;
  z-index:1200;
}

.wallet-profile-panel{
  position:fixed;
  left:50%;
  top:50%;
  transform:translate(-50%, calc(-50% + 14px));
  width:min(360px, calc(100vw - 28px));
  background:transparent;
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease, transform .22s ease;
  z-index:1201;
}

.wallet-profile-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.wallet-profile-title{
  font-weight:800;
  font-size:22px;
  line-height:1.1;
  color:#161616;
}

body.wallet-profile-open .wallet-profile-overlay,
html.wallet-profile-open .wallet-profile-overlay{
  opacity:1;
  pointer-events:auto;
}

body.wallet-profile-open .wallet-profile-panel,
html.wallet-profile-open .wallet-profile-panel{
  opacity:1;
  pointer-events:auto;
  transform:translate(-50%, -50%);
}

.wallet-profile-panel .wallet-jukebox-balances,
.wallet-profile-panel #jukeboxBalancePanel{
  width:100%;
  margin:0;
}

html[data-theme="dark"] .wallet-profile-title,
body.dark .wallet-profile-title{
  color:#f4f4f6;
}

@media (max-width: 680px){
  .wallet-profile-panel{
    width:min(360px, calc(100vw - 20px));
  }
}

/* v136.4 profile button/panel layout fix */
.wallet-jukebox-main.wallet-jukebox-main-profile{
  display:grid !important;
  grid-template-columns: calc((var(--jukebox-wallet-control-size, 44px) * 3) + (var(--jukebox-wallet-gap, 6px) * 2)) !important;
  grid-template-rows: var(--jukebox-balance-panel-height, 56px) var(--jukebox-wallet-control-size, 44px) !important;
  row-gap: var(--jukebox-wallet-stack-gap, 4px) !important;
  align-items:start !important;
  justify-content:end !important;
  width: calc((var(--jukebox-wallet-control-size, 44px) * 3) + (var(--jukebox-wallet-gap, 6px) * 2)) !important;
  min-width: calc((var(--jukebox-wallet-control-size, 44px) * 3) + (var(--jukebox-wallet-gap, 6px) * 2)) !important;
  max-width: calc((var(--jukebox-wallet-control-size, 44px) * 3) + (var(--jukebox-wallet-gap, 6px) * 2)) !important;
  gap: var(--jukebox-wallet-stack-gap, 4px) !important;
}

.wallet-jukebox-main-profile .wallet-jukebox-actions{
  grid-column:1 !important;
  grid-row:2 !important;
  width: calc((var(--jukebox-wallet-control-size, 44px) * 3) + (var(--jukebox-wallet-gap, 6px) * 2)) !important;
  min-width: calc((var(--jukebox-wallet-control-size, 44px) * 3) + (var(--jukebox-wallet-gap, 6px) * 2)) !important;
  max-width: calc((var(--jukebox-wallet-control-size, 44px) * 3) + (var(--jukebox-wallet-gap, 6px) * 2)) !important;
  align-self:start !important;
}

.jukebox-profile-btn{
  grid-column:1 !important;
  grid-row:1 !important;
  width: calc((var(--jukebox-wallet-control-size, 44px) * 3) + (var(--jukebox-wallet-gap, 6px) * 2)) !important;
  min-width: calc((var(--jukebox-wallet-control-size, 44px) * 3) + (var(--jukebox-wallet-gap, 6px) * 2)) !important;
  max-width: calc((var(--jukebox-wallet-control-size, 44px) * 3) + (var(--jukebox-wallet-gap, 6px) * 2)) !important;
  height: var(--jukebox-balance-panel-height, 56px) !important;
  min-height: var(--jukebox-balance-panel-height, 56px) !important;
  max-height: var(--jukebox-balance-panel-height, 56px) !important;
  border-radius: 8px !important;
  justify-content: center !important;
  align-items: center !important;
}

.jukebox-profile-btn .jukebox-action-icon-profile{
  width: 32px !important;
  height: 32px !important;
}

.wallet-profile-panel{
  left:50% !important;
  top:50% !important;
  transform:translate(-50%, calc(-50% + 14px)) !important;
  width: var(--site-visual-width, min(500px, calc(100vw - 24px))) !important;
  max-width: var(--site-max-width, 500px) !important;
}

.wallet-profile-panel #jukeboxBalancePanel{
  display:grid !important;
  grid-template-rows:auto auto auto auto !important;
  row-gap:10px !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  min-height:0 !important;
  padding:14px 16px !important;
  border-radius:14px !important;
  box-sizing:border-box !important;
}

.wallet-profile-panel .wallet-jukebox-line,
.wallet-profile-panel .wallet-jukebox-meta,
.wallet-profile-panel .wallet-jukebox-status{
  min-height:18px !important;
  height:auto !important;
  align-items:center !important;
}

.wallet-profile-panel .wallet-jukebox-line{
  font-size:15px !important;
}

.wallet-profile-panel .wallet-jukebox-line .wallet-jukebox-k,
.wallet-profile-panel .wallet-jukebox-line .wallet-jukebox-v,
.wallet-profile-panel .wallet-jukebox-line #jukeboxTonBalance{
  font-size:15px !important;
  line-height:1.2 !important;
}

.wallet-profile-panel .wallet-jukebox-meta,
.wallet-profile-panel .wallet-jukebox-status,
.wallet-profile-panel .wallet-jukebox-meta .wallet-jukebox-k,
.wallet-profile-panel .wallet-jukebox-meta .wallet-jukebox-v,
.wallet-profile-panel .wallet-jukebox-status .wallet-jukebox-k,
.wallet-profile-panel .wallet-jukebox-status .wallet-jukebox-v{
  font-size:12px !important;
  line-height:1.25 !important;
}

.wallet-profile-panel .wallet-jukebox-meta:empty::before,
.wallet-profile-panel .wallet-jukebox-status:empty::before{
  content:"\00a0";
}

@media (max-width: 680px){
  .wallet-profile-panel{
    width: var(--site-visual-width, calc(100vw - 20px)) !important;
    max-width: var(--site-max-width, calc(100vw - 20px)) !important;
  }
}


/* v136.4 profile button placement and centered full-width profile panel */
.jukebox-profile-btn{
  position: relative;
  overflow: hidden;
}

.jukebox-profile-btn .jukebox-action-icon-profile::before,
.jukebox-profile-btn .jukebox-action-icon-profile::after{
  border-width: 2.8px !important;
}


/* v136.5 profile panel rows and wallet actions alignment */
.wallet-jukebox-main.wallet-jukebox-main-profile{
  row-gap: 10px !important;
}

.wallet-jukebox-main-profile .wallet-jukebox-actions{
  margin-top: 2px !important;
}

.wallet-profile-panel{
  background: transparent !important;
}

.wallet-profile-panel #jukeboxBalancePanel{
  display: block !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #f6f6f8 !important;
  border: 1px solid #cfd1d7 !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.10) !important;
}

.wallet-profile-panel .wallet-profile-balance-row{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 52px !important;
  padding: 12px 16px !important;
  margin: 0 !important;
  background: #f6f6f8 !important;
  border-bottom: 1px solid #cfd1d7 !important;
  box-sizing: border-box !important;
}

.wallet-profile-panel .wallet-profile-balance-row:last-child{
  border-bottom: none !important;
}

.wallet-profile-panel .wallet-profile-balance-row .wallet-jukebox-k,
.wallet-profile-panel .wallet-profile-balance-row .wallet-jukebox-label{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  color: #52545b !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

.wallet-profile-panel .wallet-profile-balance-row .wallet-jukebox-v,
.wallet-profile-panel .wallet-profile-balance-row #jukeboxTonBalance{
  flex: 0 0 auto !important;
  color: #1d1f25 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: right !important;
}

.wallet-profile-panel .wallet-profile-balance-row::before,
.wallet-profile-panel .wallet-profile-balance-row::after{
  display: none !important;
  content: none !important;
}

html[data-theme="dark"] .wallet-profile-panel #jukeboxBalancePanel,
body.dark .wallet-profile-panel #jukeboxBalancePanel,
html[data-theme="dark"] .wallet-profile-panel .wallet-profile-balance-row,
body.dark .wallet-profile-panel .wallet-profile-balance-row{
  background: #f6f6f8 !important;
  border-color: #cfd1d7 !important;
}

html[data-theme="dark"] .wallet-profile-panel .wallet-profile-balance-row .wallet-jukebox-k,
html[data-theme="dark"] .wallet-profile-panel .wallet-profile-balance-row .wallet-jukebox-label,
body.dark .wallet-profile-panel .wallet-profile-balance-row .wallet-jukebox-k,
body.dark .wallet-profile-panel .wallet-profile-balance-row .wallet-jukebox-label{
  color: #52545b !important;
}

html[data-theme="dark"] .wallet-profile-panel .wallet-profile-balance-row .wallet-jukebox-v,
html[data-theme="dark"] .wallet-profile-panel .wallet-profile-balance-row #jukeboxTonBalance,
body.dark .wallet-profile-panel .wallet-profile-balance-row .wallet-jukebox-v,
body.dark .wallet-profile-panel .wallet-profile-balance-row #jukeboxTonBalance{
  color: #1d1f25 !important;
}


/* v136.6 desktop profile positioning and stable row stack */
.wallet-profile-panel #jukeboxBalancePanel{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
}

.wallet-profile-panel .wallet-profile-balance-row{
  width:100% !important;
  max-width:100% !important;
}

@media (min-width: 681px){
  .wallet-profile-panel{
    top:31% !important;
    width:min(var(--site-visual-width, 500px), calc(100vw - 32px)) !important;
    max-width:var(--site-max-width, 500px) !important;
    z-index:1601 !important;
  }
  .wallet-profile-overlay{
    z-index:1600 !important;
  }
  .wallet-profile-head{
    margin-bottom:14px !important;
  }
}


/* v136.8 profile svg icon */
.jukebox-profile-btn .jukebox-action-icon-profile{
  width: 34px !important;
  height: 34px !important;
  display:inline-block !important;
  background:none !important;
  -webkit-mask:none !important;
  mask:none !important;
}

.jukebox-profile-btn .jukebox-action-icon-profile::before,
.jukebox-profile-btn .jukebox-action-icon-profile::after{
  content:none !important;
  display:none !important;
}

html[data-theme="dark"] .jukebox-profile-btn .jukebox-action-icon-profile,
body.dark .jukebox-profile-btn .jukebox-action-icon-profile{
  background-color:#ffffff !important;
}

html[data-theme="light"] .jukebox-profile-btn .jukebox-action-icon-profile,
body.light .jukebox-profile-btn .jukebox-action-icon-profile{
  background-color:#111111 !important;
}


/* v136.10 profile rows hard stack + deposit modal target positioning */
.wallet-profile-panel #jukeboxBalancePanel{
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.wallet-profile-panel #jukeboxBalancePanel > .wallet-profile-balance-row,
.wallet-profile-panel #jukeboxBalancePanel > .wallet-jukebox-line.wallet-profile-balance-row,
.wallet-profile-panel #jukeboxBalancePanel > .wallet-jukebox-meta.wallet-profile-balance-row,
.wallet-profile-panel #jukeboxBalancePanel > .wallet-jukebox-status.wallet-profile-balance-row,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxTonMeta,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxPendingStatus,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxBonusStatus{
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 52px !important;
  height: 52px !important;
  flex: 0 0 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  box-sizing: border-box !important;
  border-bottom: 1px solid #cfd1d7 !important;
  transform: none !important;
  -webkit-transform: none !important;
}

.wallet-profile-panel #jukeboxBalancePanel > .wallet-profile-balance-row:last-child,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxBonusStatus:last-child{
  border-bottom: none !important;
}

.wallet-profile-panel #jukeboxBalancePanel > .wallet-profile-balance-row .wallet-jukebox-k,
.wallet-profile-panel #jukeboxBalancePanel > .wallet-profile-balance-row .wallet-jukebox-label,
.wallet-profile-panel #jukeboxBalancePanel > .wallet-profile-balance-row .wallet-jukebox-v,
.wallet-profile-panel #jukeboxBalancePanel > .wallet-profile-balance-row #jukeboxTonBalance,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxTonMeta .wallet-jukebox-k,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxTonMeta .wallet-jukebox-v,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxPendingStatus .wallet-jukebox-k,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxPendingStatus .wallet-jukebox-v,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxBonusStatus .wallet-jukebox-k,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxBonusStatus .wallet-jukebox-v{
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  -webkit-transform: none !important;
  white-space: nowrap !important;
}

.wallet-profile-panel #jukeboxBalancePanel > .wallet-profile-balance-row::before,
.wallet-profile-panel #jukeboxBalancePanel > .wallet-profile-balance-row::after,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxTonMeta::before,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxTonMeta::after,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxPendingStatus::before,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxPendingStatus::after,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxBonusStatus::before,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxBonusStatus::after{
  display: none !important;
  content: none !important;
}

/* v136.11 profile icon, history title and profile stack fixes */
.jukebox-profile-btn .jukebox-action-icon-profile{
  width:54px !important;
  height:54px !important;
  -webkit-mask: url('../img/profile.svg?v=136.11') center/contain no-repeat;
  mask: url('../img/profile.svg?v=136.11') center/contain no-repeat;
}

html[data-theme="dark"] .history-panel-title,
body.dark .history-panel-title{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.wallet-profile-panel #jukeboxBalancePanel{
  display:grid !important;
  grid-template-columns:1fr !important;
  grid-auto-rows:minmax(52px, auto) !important;
  grid-auto-flow:row !important;
  align-items:stretch !important;
  justify-items:stretch !important;
  gap:0 !important;
}

.wallet-profile-panel #jukeboxBalancePanel > .wallet-profile-balance-row,
.wallet-profile-panel #jukeboxBalancePanel > .wallet-jukebox-line.wallet-profile-balance-row,
.wallet-profile-panel #jukeboxBalancePanel > .wallet-jukebox-meta.wallet-profile-balance-row,
.wallet-profile-panel #jukeboxBalancePanel > .wallet-jukebox-status.wallet-profile-balance-row,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxTonMeta,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxPendingStatus,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxBonusStatus{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center !important;
  min-height:52px !important;
  height:auto !important;
  flex:none !important;
  position:relative !important;
  inset:auto !important;
  clear:both !important;
}

.wallet-profile-panel #jukeboxBalancePanel > .wallet-profile-balance-row .wallet-jukebox-k,
.wallet-profile-panel #jukeboxBalancePanel > .wallet-profile-balance-row .wallet-jukebox-label,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxTonMeta .wallet-jukebox-k,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxPendingStatus .wallet-jukebox-k,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxBonusStatus .wallet-jukebox-k{
  white-space:normal !important;
}

.wallet-profile-panel #jukeboxBalancePanel > .wallet-profile-balance-row .wallet-jukebox-v,
.wallet-profile-panel #jukeboxBalancePanel > .wallet-profile-balance-row #jukeboxTonBalance,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxTonMeta .wallet-jukebox-v,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxPendingStatus .wallet-jukebox-v,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxBonusStatus .wallet-jukebox-v{
  white-space:nowrap !important;
  text-align:right !important;
  justify-self:end !important;
}


/* v136.12 profile/history overlay fixes */
.wallet-profile-overlay{
  z-index:2147483644 !important;
}

.wallet-profile-panel{
  z-index:2147483645 !important;
  background:#f6f7fa !important;
  border:1px solid #d7d9df !important;
  border-radius:16px !important;
  box-shadow:0 22px 60px rgba(0,0,0,.20) !important;
  overflow:hidden !important;
}

.wallet-profile-head{
  margin:0 !important;
  padding:14px 16px !important;
  background:#f6f7fa !important;
  border-bottom:1px solid #d7d9df !important;
}

.wallet-profile-title{
  color:#161616 !important;
  background:transparent !important;
}

.wallet-profile-panel #jukeboxBalancePanel{
  background:#f6f7fa !important;
  padding:0 !important;
  margin:0 !important;
  border-radius:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  gap:0 !important;
}

.wallet-profile-panel #jukeboxBalancePanel > .wallet-profile-balance-row,
.wallet-profile-panel #jukeboxBalancePanel > .wallet-jukebox-line.wallet-profile-balance-row,
.wallet-profile-panel #jukeboxBalancePanel > .wallet-jukebox-meta.wallet-profile-balance-row,
.wallet-profile-panel #jukeboxBalancePanel > .wallet-jukebox-status.wallet-profile-balance-row,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxTonMeta,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxPendingStatus,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxBonusStatus{
  position:relative !important;
  inset:auto !important;
  float:none !important;
  clear:both !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:space-between !important;
  width:100% !important;
  min-height:54px !important;
  height:54px !important;
  flex:0 0 54px !important;
  margin:0 !important;
  padding:12px 16px !important;
  box-sizing:border-box !important;
  background:#f6f7fa !important;
  border-bottom:1px solid #d7d9df !important;
  transform:none !important;
  -webkit-transform:none !important;
}

.wallet-profile-panel #jukeboxBalancePanel > .wallet-profile-balance-row:last-child,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxBonusStatus:last-child{
  border-bottom:none !important;
}

.wallet-profile-panel #jukeboxBalancePanel > .wallet-profile-balance-row .wallet-jukebox-k,
.wallet-profile-panel #jukeboxBalancePanel > .wallet-profile-balance-row .wallet-jukebox-label,
.wallet-profile-panel #jukeboxBalancePanel > .wallet-profile-balance-row .wallet-jukebox-v,
.wallet-profile-panel #jukeboxBalancePanel > .wallet-profile-balance-row #jukeboxTonBalance,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxTonMeta .wallet-jukebox-k,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxTonMeta .wallet-jukebox-v,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxPendingStatus .wallet-jukebox-k,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxPendingStatus .wallet-jukebox-v,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxBonusStatus .wallet-jukebox-k,
.wallet-profile-panel #jukeboxBalancePanel > #jukeboxBonusStatus .wallet-jukebox-v{
  position:static !important;
  float:none !important;
  clear:none !important;
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
}

html[data-theme="dark"] .wallet-profile-panel,
body.dark .wallet-profile-panel,
html[data-theme="dark"] .wallet-profile-head,
body.dark .wallet-profile-head,
html[data-theme="dark"] .wallet-profile-panel #jukeboxBalancePanel,
body.dark .wallet-profile-panel #jukeboxBalancePanel,
html[data-theme="dark"] .wallet-profile-panel #jukeboxBalancePanel > .wallet-profile-balance-row,
html[data-theme="dark"] .wallet-profile-panel #jukeboxBalancePanel > #jukeboxTonMeta,
html[data-theme="dark"] .wallet-profile-panel #jukeboxBalancePanel > #jukeboxPendingStatus,
html[data-theme="dark"] .wallet-profile-panel #jukeboxBalancePanel > #jukeboxBonusStatus,
body.dark .wallet-profile-panel #jukeboxBalancePanel > .wallet-profile-balance-row,
body.dark .wallet-profile-panel #jukeboxBalancePanel > #jukeboxTonMeta,
body.dark .wallet-profile-panel #jukeboxBalancePanel > #jukeboxPendingStatus,
body.dark .wallet-profile-panel #jukeboxBalancePanel > #jukeboxBonusStatus{
  background:#f6f7fa !important;
  color:#161616 !important;
  border-color:#d7d9df !important;
}

html[data-theme="dark"] .wallet-profile-title,
body.dark .wallet-profile-title,
html[data-theme="dark"] .wallet-profile-panel .wallet-jukebox-k,
html[data-theme="dark"] .wallet-profile-panel .wallet-jukebox-v,
body.dark .wallet-profile-panel .wallet-jukebox-k,
body.dark .wallet-profile-panel .wallet-jukebox-v{
  color:#161616 !important;
}

html[data-theme="dark"] .history-panel-header,
body.dark .history-panel-header,
html[data-theme="dark"] .history-panel-title,
body.dark .history-panel-title{
  background:transparent !important;
  background-color:transparent !important;
  border:none !important;
  box-shadow:none !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
}

.notice-blur-active,
body.history-open #modeNoticeLine,
html.history-open #modeNoticeLine,
body.history-open #billingNoticeLine,
html.history-open #billingNoticeLine,
body.history-open #bagFavoriteNotice,
html.history-open #bagFavoriteNotice,
body.wallet-profile-open #modeNoticeLine,
html.wallet-profile-open #modeNoticeLine,
body.wallet-profile-open #billingNoticeLine,
html.wallet-profile-open #billingNoticeLine,
body.wallet-profile-open #bagFavoriteNotice,
html.wallet-profile-open #bagFavoriteNotice,
body.wallet-profile-open #tracksToggle,
html.wallet-profile-open #tracksToggle,
body.wallet-profile-open .tracks-toggle,
html.wallet-profile-open .tracks-toggle{
  filter:blur(12px) !important;
  -webkit-filter:blur(12px) !important;
  opacity:.25 !important;
  pointer-events:none !important;
}

body.history-open #modeNoticeLine,
html.history-open #modeNoticeLine,
body.history-open #billingNoticeLine,
html.history-open #billingNoticeLine,
body.history-open #bagFavoriteNotice,
html.history-open #bagFavoriteNotice,
body.wallet-profile-open #modeNoticeLine,
html.wallet-profile-open #modeNoticeLine,
body.wallet-profile-open #billingNoticeLine,
html.wallet-profile-open #billingNoticeLine,
body.wallet-profile-open #bagFavoriteNotice,
html.wallet-profile-open #bagFavoriteNotice,
body.wallet-profile-open #tracksToggle,
html.wallet-profile-open #tracksToggle,
body.wallet-profile-open .tracks-toggle,
html.wallet-profile-open .tracks-toggle{
  z-index:1 !important;
}


/* v136.13 profile icon bigger */
.jukebox-profile-btn .jukebox-action-icon-profile{
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  min-height: 54px !important;
  max-width: 54px !important;
  max-height: 54px !important;
  -webkit-mask-size: cover !important;
  mask-size: cover !important;
}


/* v136.14 profile theme fix */
html[data-theme="dark"] .wallet-profile-panel,
body.dark .wallet-profile-panel{
  background:#1f2229 !important;
  color:#f5f7fb !important;
  box-shadow:0 22px 60px rgba(0,0,0,.45) !important;
}

html[data-theme="dark"] .wallet-profile-head,
body.dark .wallet-profile-head{
  background:#232730 !important;
  border-bottom:1px solid #3a3f4a !important;
}

html[data-theme="dark"] .wallet-profile-title,
body.dark .wallet-profile-title{
  color:#f5f7fb !important;
  background:transparent !important;
}

html[data-theme="dark"] .wallet-profile-panel #jukeboxBalancePanel,
body.dark .wallet-profile-panel #jukeboxBalancePanel,
html[data-theme="dark"] .wallet-profile-panel #jukeboxBalancePanel > .wallet-profile-balance-row,
html[data-theme="dark"] .wallet-profile-panel #jukeboxBalancePanel > #jukeboxTonMeta,
html[data-theme="dark"] .wallet-profile-panel #jukeboxBalancePanel > #jukeboxPendingStatus,
html[data-theme="dark"] .wallet-profile-panel #jukeboxBalancePanel > #jukeboxBonusStatus,
body.dark .wallet-profile-panel #jukeboxBalancePanel > .wallet-profile-balance-row,
body.dark .wallet-profile-panel #jukeboxBalancePanel > #jukeboxTonMeta,
body.dark .wallet-profile-panel #jukeboxBalancePanel > #jukeboxPendingStatus,
body.dark .wallet-profile-panel #jukeboxBalancePanel > #jukeboxBonusStatus{
  background:#1f2229 !important;
  color:#f5f7fb !important;
  border-color:#343945 !important;
}

html[data-theme="dark"] .wallet-profile-panel .wallet-jukebox-k,
html[data-theme="dark"] .wallet-profile-panel .wallet-jukebox-label,
body.dark .wallet-profile-panel .wallet-jukebox-k,
body.dark .wallet-profile-panel .wallet-jukebox-label{
  color:#f5f7fb !important;
}

html[data-theme="dark"] .wallet-profile-panel .wallet-jukebox-v,
html[data-theme="dark"] .wallet-profile-panel #jukeboxTonBalance,
body.dark .wallet-profile-panel .wallet-jukebox-v,
body.dark .wallet-profile-panel #jukeboxTonBalance{
  color:#f5f7fb !important;
}

html[data-theme="dark"] .wallet-profile-head .history-close-btn,
body.dark .wallet-profile-head .history-close-btn{
  background:#2a2c31 !important;
  border-color:#3a3c42 !important;
  color:#f5f7fb !important;
}

html[data-theme="dark"] .wallet-profile-head .history-close-btn:active,
body.dark .wallet-profile-head .history-close-btn:active,
html[data-theme="dark"] .wallet-profile-head .history-close-btn:focus:active,
body.dark .wallet-profile-head .history-close-btn:focus:active{
  background:#ff8c00 !important;
  border-color:#ff8c00 !important;
  color:#ffffff !important;
}


/* v136.15 profile icon/theme/tap + deposit position polish */
.jukebox-profile-btn,
.jukebox-profile-btn *,
#jukeboxProfileBtn,
#jukeboxProfileBtn *{
  -webkit-tap-highlight-color: transparent !important;
  tap-highlight-color: transparent !important;
}

.jukebox-profile-btn .jukebox-action-icon-profile,
#jukeboxProfileBtn .jukebox-action-icon-profile{
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  -webkit-mask-size: contain !important;
  mask-size: contain !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
  background-repeat: no-repeat !important;
}

.jukebox-profile-btn.is-tapped,
#jukeboxProfileBtn.is-tapped,
.jukebox-profile-btn:active,
#jukeboxProfileBtn:active{
  background-color: #ff8c00 !important;
  border-color: #ff8c00 !important;
  color: #ffffff !important;
  transform: scale(0.98) !important;
}

html[data-theme="dark"] .wallet-profile-panel,
body.dark .wallet-profile-panel{
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .wallet-profile-head,
body.dark .wallet-profile-head{
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .wallet-profile-panel .wallet-jukebox-k,
html[data-theme="dark"] .wallet-profile-panel .wallet-jukebox-label,
html[data-theme="dark"] .wallet-profile-panel .wallet-jukebox-v,
html[data-theme="dark"] .wallet-profile-panel #jukeboxTonBalance,
body.dark .wallet-profile-panel .wallet-jukebox-k,
body.dark .wallet-profile-panel .wallet-jukebox-label,
body.dark .wallet-profile-panel .wallet-jukebox-v,
body.dark .wallet-profile-panel #jukeboxTonBalance{
  color: #f5f7fb !important;
}


/* v136.17 profile dark text + higher profile + action flash */
html[data-theme="dark"] #profilePanel,
body.dark #profilePanel{
  border-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] #profilePanel #jukeboxBalancePanel,
html[data-theme="dark"] #profilePanel #jukeboxBalancePanel > *,
html[data-theme="dark"] #profilePanel #jukeboxBalancePanel > * > span,
body.dark #profilePanel #jukeboxBalancePanel,
body.dark #profilePanel #jukeboxBalancePanel > *,
body.dark #profilePanel #jukeboxBalancePanel > * > span{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  opacity:1 !important;
}

html[data-theme="dark"] #profilePanel #jukeboxBalancePanel .wallet-jukebox-k,
html[data-theme="dark"] #profilePanel #jukeboxBalancePanel .wallet-jukebox-label,
html[data-theme="dark"] #profilePanel #jukeboxBalancePanel .wallet-jukebox-v,
html[data-theme="dark"] #profilePanel #jukeboxBalancePanel #jukeboxTonBalance,
body.dark #profilePanel #jukeboxBalancePanel .wallet-jukebox-k,
body.dark #profilePanel #jukeboxBalancePanel .wallet-jukebox-label,
body.dark #profilePanel #jukeboxBalancePanel .wallet-jukebox-v,
body.dark #profilePanel #jukeboxBalancePanel #jukeboxTonBalance,
html[data-theme="dark"] #profileMainBalanceLabel,
html[data-theme="dark"] #profileFrozenLabel,
html[data-theme="dark"] #profilePendingLabel,
html[data-theme="dark"] #profileBonusLabel,
body.dark #profileMainBalanceLabel,
body.dark #profileFrozenLabel,
body.dark #profilePendingLabel,
body.dark #profileBonusLabel{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  opacity:1 !important;
}

#profilePanel #jukeboxBalancePanel{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  gap:0 !important;
}

#profilePanel #jukeboxBalancePanel > .wallet-profile-balance-row,
#profilePanel #jukeboxBalancePanel > #jukeboxTonMeta,
#profilePanel #jukeboxBalancePanel > #jukeboxPendingStatus,
#profilePanel #jukeboxBalancePanel > #jukeboxBonusStatus{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:space-between !important;
  width:100% !important;
  min-height:56px !important;
  height:auto !important;
  flex:0 0 auto !important;
  clear:both !important;
  float:none !important;
}

.jukebox-profile-btn,
#jukeboxProfileBtn{
  -webkit-tap-highlight-color: transparent !important;
}

@media (max-width: 680px){
  .wallet-profile-panel{
    top:45% !important;
  }
}

@media (min-width: 681px){
  .wallet-profile-panel{
    top:27% !important;
  }
}


/* v136.19b profile icon flash color in light theme only */
html[data-theme="light"] .jukebox-profile-btn.is-tapped,
html[data-theme="light"] #jukeboxProfileBtn.is-tapped,
html[data-theme="light"] .jukebox-profile-btn:active,
html[data-theme="light"] #jukeboxProfileBtn:active,
body.light .jukebox-profile-btn.is-tapped,
body.light #jukeboxProfileBtn.is-tapped,
body.light .jukebox-profile-btn:active,
body.light #jukeboxProfileBtn:active{
  transform:none !important;
}

html[data-theme="light"] .jukebox-profile-btn.is-tapped .jukebox-action-icon-profile,
html[data-theme="light"] #jukeboxProfileBtn.is-tapped .jukebox-action-icon-profile,
html[data-theme="light"] .jukebox-profile-btn:active .jukebox-action-icon-profile,
html[data-theme="light"] #jukeboxProfileBtn:active .jukebox-action-icon-profile,
body.light .jukebox-profile-btn.is-tapped .jukebox-action-icon-profile,
body.light #jukeboxProfileBtn.is-tapped .jukebox-action-icon-profile,
body.light .jukebox-profile-btn:active .jukebox-action-icon-profile,
body.light #jukeboxProfileBtn:active .jukebox-action-icon-profile{
  background-color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  transform:none !important;
}

/* v136.23 mobile deposit modal: keep Content List and billing notice from jumping on open */
html.deposit-modal-open #tracksToggle,
body.deposit-modal-open #tracksToggle,
html.deposit-modal-open .tracks-toggle,
body.deposit-modal-open .tracks-toggle{
  transition: none !important;
  will-change: auto !important;
}

html.deposit-modal-open #billingNoticeLine,
body.deposit-modal-open #billingNoticeLine,
html.deposit-modal-open .billing-notice-line,
body.deposit-modal-open .billing-notice-line{
  transition: none !important;
  will-change: auto !important;
}


/* v136.24 final profile stack + higher profile + deposit keyboard lock */
:root{
  --deposit-keyboard-shift: 0px;
}

#profilePanel #jukeboxBalancePanel{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  grid-auto-flow:row !important;
  grid-auto-rows:minmax(56px,auto) !important;
  align-items:stretch !important;
  justify-items:stretch !important;
  row-gap:0 !important;
  column-gap:0 !important;
  width:100% !important;
  min-width:100% !important;
}

#profilePanel #jukeboxBalancePanel > .wallet-profile-balance-row,
#profilePanel #jukeboxBalancePanel > #jukeboxTonMeta,
#profilePanel #jukeboxBalancePanel > #jukeboxPendingStatus,
#profilePanel #jukeboxBalancePanel > #jukeboxBonusStatus{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center !important;
  width:100% !important;
  min-width:100% !important;
  min-height:56px !important;
  height:56px !important;
  max-height:none !important;
  flex:none !important;
  clear:both !important;
  float:none !important;
  position:relative !important;
  inset:auto !important;
  margin:0 !important;
  padding:12px 16px !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}

#profilePanel #jukeboxBalancePanel > .wallet-profile-balance-row > .wallet-jukebox-k,
#profilePanel #jukeboxBalancePanel > .wallet-profile-balance-row > .wallet-jukebox-label,
#profilePanel #jukeboxBalancePanel > #jukeboxTonMeta > .wallet-jukebox-k,
#profilePanel #jukeboxBalancePanel > #jukeboxPendingStatus > .wallet-jukebox-k,
#profilePanel #jukeboxBalancePanel > #jukeboxBonusStatus > .wallet-jukebox-k{
  grid-column:1 !important;
  justify-self:start !important;
  align-self:center !important;
  display:block !important;
  min-width:0 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

#profilePanel #jukeboxBalancePanel > .wallet-profile-balance-row > .wallet-jukebox-v,
#profilePanel #jukeboxBalancePanel > .wallet-profile-balance-row > #jukeboxTonBalance,
#profilePanel #jukeboxBalancePanel > #jukeboxTonMeta > .wallet-jukebox-v,
#profilePanel #jukeboxBalancePanel > #jukeboxPendingStatus > .wallet-jukebox-v,
#profilePanel #jukeboxBalancePanel > #jukeboxBonusStatus > .wallet-jukebox-v{
  grid-column:2 !important;
  justify-self:end !important;
  align-self:center !important;
  display:block !important;
  white-space:nowrap !important;
  text-align:right !important;
}

@media (max-width: 680px){
  .wallet-profile-panel{
    top: 39% !important;
  }
}

@media (min-width: 681px){
  .wallet-profile-panel{
    top: 22% !important;
  }
}

@media (max-width: 680px){
  html.deposit-modal-open #tracksToggle,
  body.deposit-modal-open #tracksToggle,
  html.deposit-modal-open .tracks-toggle,
  body.deposit-modal-open .tracks-toggle{
    transform: translate(-50%, calc(var(--tracks-ty) + var(--deposit-keyboard-shift, 0px))) !important;
    -webkit-transform: translate(-50%, calc(var(--tracks-ty) + var(--deposit-keyboard-shift, 0px))) !important;
  }

  html.deposit-modal-open #billingNoticeLine,
  body.deposit-modal-open #billingNoticeLine,
  html.deposit-modal-open .billing-notice-line,
  body.deposit-modal-open .billing-notice-line{
    transform: translate(-50%, var(--deposit-keyboard-shift, 0px)) !important;
    -webkit-transform: translate(-50%, var(--deposit-keyboard-shift, 0px)) !important;
  }
}


/* v137.1 profile window radius matches plus/minus */
.wallet-profile-panel{
  border-radius:8px !important;
}

/* v137.14 raise subscription notice a bit more to avoid overlapping Content List when multiline */
#billingNoticeLine{
  top: auto !important;
  bottom: calc(var(--tracks-bottom) + var(--safe-b) + var(--tracks-btn-h) + 24px) !important;
}

/* v137.15 desktop: multiline billing notice should lift itself without moving the whole line */
@media (min-width: 768px){
  #billingNoticeLine{
    --billing-notice-extra-lift: 0px;
    transform: translateX(-50%) translateY(calc(-1 * var(--billing-notice-extra-lift))) !important;
    -webkit-transform: translateX(-50%) translateY(calc(-1 * var(--billing-notice-extra-lift))) !important;
  }
}


/* v137.19 desktop: keep billing notice hidden until JS positions it to avoid first-load jump */
@media (min-width: 768px){
  html:not(.billing-notice-layout-ready) #billingNoticeLine,
  html:not(.billing-notice-positioned) #billingNoticeLine{
    opacity: 0 !important;
    visibility: hidden !important;
  }
}

/* v136.25 startup stability for TON/GATE */
#tonModeBtn, #gateModeBtn, .mode-btn{
  transform-origin: center center !important;
}
html.ui-booting #tonModeBtn,
html.ui-booting #gateModeBtn,
html.ui-booting .mode-btn{
  transition: none !important;
  animation: none !important;
  transform: none !important;
}
#tonModeBtn.active,
#gateModeBtn.active{
  transform: none !important;
}

/* v137.40 profile icon active fix in light theme */
html[data-theme="light"] .jukebox-profile-btn .jukebox-action-icon-profile,
html[data-theme="light"] #jukeboxProfileBtn .jukebox-action-icon-profile,
body.light .jukebox-profile-btn .jukebox-action-icon-profile,
body.light #jukeboxProfileBtn .jukebox-action-icon-profile{
  background: transparent !important;
  background-color: transparent !important;
  color: #111111 !important;
  -webkit-mask: none !important;
  mask: none !important;
}

html[data-theme="light"] .jukebox-profile-btn .jukebox-action-icon-profile svg,
html[data-theme="light"] #jukeboxProfileBtn .jukebox-action-icon-profile svg,
body.light .jukebox-profile-btn .jukebox-action-icon-profile svg,
body.light #jukeboxProfileBtn .jukebox-action-icon-profile svg{
  display:block !important;
  color: currentColor !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}

html[data-theme="light"] .jukebox-profile-btn.is-tapped .jukebox-action-icon-profile,
html[data-theme="light"] #jukeboxProfileBtn.is-tapped .jukebox-action-icon-profile,
html[data-theme="light"] .jukebox-profile-btn:active .jukebox-action-icon-profile,
html[data-theme="light"] #jukeboxProfileBtn:active .jukebox-action-icon-profile,
body.light .jukebox-profile-btn.is-tapped .jukebox-action-icon-profile,
body.light #jukeboxProfileBtn.is-tapped .jukebox-action-icon-profile,
body.light .jukebox-profile-btn:active .jukebox-action-icon-profile,
body.light #jukeboxProfileBtn:active .jukebox-action-icon-profile{
  background: transparent !important;
  background-color: transparent !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  -webkit-mask: none !important;
  mask: none !important;
}


/* v137.53.79 profile icon render fix */
.jukebox-profile-btn .jukebox-action-icon-profile,
#jukeboxProfileBtn .jukebox-action-icon-profile{
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  min-height:34px !important;
  max-width:34px !important;
  max-height:34px !important;
  display:block !important;
  background:none !important;
  background-color:transparent !important;
  -webkit-mask:none !important;
  mask:none !important;
}

.jukebox-profile-btn .jukebox-action-icon-profile::before,
.jukebox-profile-btn .jukebox-action-icon-profile::after,
#jukeboxProfileBtn .jukebox-action-icon-profile::before,
#jukeboxProfileBtn .jukebox-action-icon-profile::after{
  content:none !important;
  display:none !important;
}

.jukebox-profile-btn .jukebox-action-icon-profile-img,
#jukeboxProfileBtn .jukebox-action-icon-profile-img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  min-width:100% !important;
  min-height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  background:none !important;
  background-color:transparent !important;
}

.jukebox-profile-btn .jukebox-action-icon-profile-svg,
#jukeboxProfileBtn .jukebox-action-icon-profile-svg,
.jukebox-profile-btn .jukebox-action-icon-profile svg,
#jukeboxProfileBtn .jukebox-action-icon-profile svg{
  display:none !important;
}




/* v137.53.81 profile icon active color fix */
#jukeboxProfileBtn:active .jukebox-action-icon-profile,
#jukeboxProfileBtn.is-tapped .jukebox-action-icon-profile,
.jukebox-profile-btn:active .jukebox-action-icon-profile,
.jukebox-profile-btn.is-tapped .jukebox-action-icon-profile{
  color:#ffffff !important;
}

#jukeboxProfileBtn:active .jukebox-action-icon-profile svg,
#jukeboxProfileBtn.is-tapped .jukebox-action-icon-profile svg,
.jukebox-profile-btn:active .jukebox-action-icon-profile svg,
.jukebox-profile-btn.is-tapped .jukebox-action-icon-profile svg{
  stroke:#ffffff !important;
  fill:#ffffff !important;
}



/* v137.53.82 profile icon active FIX for IMG svg */
#jukeboxProfileBtn:active .jukebox-action-icon-profile-img,
#jukeboxProfileBtn.is-tapped .jukebox-action-icon-profile-img,
.jukebox-profile-btn:active .jukebox-action-icon-profile-img,
.jukebox-profile-btn.is-tapped .jukebox-action-icon-profile-img{
  filter: brightness(0) invert(1) !important;
}



/* v137.53.83 profile icon default dark theme color */
html[data-theme="dark"] .jukebox-action-icon-profile-img,
body.dark .jukebox-action-icon-profile-img{
  filter: brightness(0) invert(1) !important;
}



/* v137.53.85 remove mobile tap highlight */
button,
.jukebox-action-btn,
.jukebox-btn,
input,
a{
  -webkit-tap-highlight-color: transparent !important;
}

.jukebox-favorite-btn,
.jukebox-clear-btn{
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}


/* v137.53.86 profile icon non-interactive */
.jukebox-profile-btn .jukebox-action-icon-profile,
#jukeboxProfileBtn .jukebox-action-icon-profile,
.jukebox-profile-btn .jukebox-action-icon-profile-img,
#jukeboxProfileBtn .jukebox-action-icon-profile-img{
  pointer-events:none !important;
  -webkit-user-drag:none !important;
  user-drag:none !important;
  -webkit-touch-callout:none !important;
  -webkit-user-select:none !important;
  user-select:none !important;
}

.jukebox-profile-btn,
#jukeboxProfileBtn{
  -webkit-user-select:none !important;
  user-select:none !important;
}



/* v137.53.90 iPhone compatibility */
html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

body{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  min-height:100dvh;
  min-height:-webkit-fill-available;
}

body,
.wallet-profile-panel,
.wallet-profile-overlay,
#tracksSheet,
.tracks-sheet,
.tracks-sheet-inner,
#favoritesSheet,
.favorites-sheet{
  -webkit-overflow-scrolling:touch;
}

input,
textarea,
select,
button{
  -webkit-appearance:none;
  appearance:none;
  border-radius:inherit;
}

/* v137.53.90 remove mobile tap highlight on search controls */
.jukebox-favorite-btn,
.jukebox-clear-btn,
#bagSearchFavoriteBtn,
#bagSearchClearBtn,
#bagSearchClear,
#bagSearchFavorite,
.bag-search-favorite-btn,
.bag-search-clear-btn{
  -webkit-tap-highlight-color: transparent !important;
  outline:none !important;
  box-shadow:none !important;
}

.jukebox-favorite-btn *,
.jukebox-clear-btn *,
#bagSearchFavoriteBtn *,
#bagSearchClearBtn *,
#bagSearchClear *,
#bagSearchFavorite *,
.bag-search-favorite-btn *,
.bag-search-clear-btn *{
  -webkit-tap-highlight-color: transparent !important;
}



/* v137.53.93 Telegram Mini App hard unlock for TON/GATE after first wallet connect */
html.wallet-mode-buttons-ready #tonModeBtn,
html.wallet-mode-buttons-ready #gateModeBtn,
body.wallet-mode-buttons-ready #tonModeBtn,
body.wallet-mode-buttons-ready #gateModeBtn,
body.wallet-connected #tonModeBtn,
body.wallet-connected #gateModeBtn{
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

html.wallet-mode-buttons-ready #tonModeBtn:disabled,
html.wallet-mode-buttons-ready #gateModeBtn:disabled,
body.wallet-mode-buttons-ready #tonModeBtn:disabled,
body.wallet-mode-buttons-ready #gateModeBtn:disabled,
body.wallet-connected #tonModeBtn:disabled,
body.wallet-connected #gateModeBtn:disabled{
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

html.wallet-mode-buttons-ready #tonModeBtn.wallet-ui-disabled,
html.wallet-mode-buttons-ready #gateModeBtn.wallet-ui-disabled,
body.wallet-mode-buttons-ready #tonModeBtn.wallet-ui-disabled,
body.wallet-mode-buttons-ready #gateModeBtn.wallet-ui-disabled,
body.wallet-connected #tonModeBtn.wallet-ui-disabled,
body.wallet-connected #gateModeBtn.wallet-ui-disabled,
html.wallet-mode-buttons-ready #tonModeBtn.is-disabled,
html.wallet-mode-buttons-ready #gateModeBtn.is-disabled,
body.wallet-mode-buttons-ready #tonModeBtn.is-disabled,
body.wallet-mode-buttons-ready #gateModeBtn.is-disabled,
body.wallet-connected #tonModeBtn.is-disabled,
body.wallet-connected #gateModeBtn.is-disabled{
  opacity: 1 !important;
  pointer-events: auto !important;
}



/* v137.53.117 late override for player controls after wallet connect */
html.wallet-playback-ready .player-bar.wallet-ui-disabled,
html.wallet-playback-ready .controls.wallet-ui-disabled,
html.wallet-playback-ready #nowPlaying.wallet-ui-disabled,
body.wallet-playback-ready .player-bar.wallet-ui-disabled,
body.wallet-playback-ready .controls.wallet-ui-disabled,
body.wallet-playback-ready #nowPlaying.wallet-ui-disabled,
body.wallet-connected .player-bar.wallet-ui-disabled,
body.wallet-connected .controls.wallet-ui-disabled,
body.wallet-connected #nowPlaying.wallet-ui-disabled{
  opacity: 1 !important;
  pointer-events: auto !important;
  filter: none !important;
}

html.wallet-playback-ready .player-bar input:disabled,
html.wallet-playback-ready .controls button:disabled,
html.wallet-playback-ready .player-btn:disabled,
body.wallet-playback-ready .player-bar input:disabled,
body.wallet-playback-ready .controls button:disabled,
body.wallet-playback-ready .player-btn:disabled,
body.wallet-connected .player-bar input:disabled,
body.wallet-connected .controls button:disabled,
body.wallet-connected .player-btn:disabled{
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

html.wallet-playback-ready #playPauseBtn,
html.wallet-playback-ready #muteBtn,
html.wallet-playback-ready #seekBar,
html.wallet-playback-ready #volumeBar,
html.wallet-playback-ready #prevBtn,
html.wallet-playback-ready #repeatBtn,
html.wallet-playback-ready #nextBtn,
body.wallet-playback-ready #playPauseBtn,
body.wallet-playback-ready #muteBtn,
body.wallet-playback-ready #seekBar,
body.wallet-playback-ready #volumeBar,
body.wallet-playback-ready #prevBtn,
body.wallet-playback-ready #repeatBtn,
body.wallet-playback-ready #nextBtn,
body.wallet-connected #playPauseBtn,
body.wallet-connected #muteBtn,
body.wallet-connected #seekBar,
body.wallet-connected #volumeBar,
body.wallet-connected #prevBtn,
body.wallet-connected #repeatBtn,
body.wallet-connected #nextBtn{
  pointer-events: auto !important;
  opacity: 1 !important;
}



/* v137.53.118 mobile: billing notice must not jump above keyboard in deposit modal */
@media (max-width: 680px){
  html.deposit-modal-open #billingNoticeLine,
  body.deposit-modal-open #billingNoticeLine,
  html.deposit-modal-open .billing-notice-line,
  body.deposit-modal-open .billing-notice-line{
    top: auto !important;
    bottom: calc(var(--tracks-bottom) + var(--safe-b) + var(--tracks-btn-h) + 24px) !important;
    transform: translateX(-50%) !important;
    -webkit-transform: translateX(-50%) !important;
    transition: none !important;
    will-change: auto !important;
  }
}



/* v137.53.119 final lock: billing notice must never react to deposit keyboard, including Telegram Mini App */
html.deposit-modal-open #billingNoticeLine,
body.deposit-modal-open #billingNoticeLine,
html.deposit-modal-open .billing-notice-line,
body.deposit-modal-open .billing-notice-line{
  top: auto !important;
  bottom: calc(var(--tracks-bottom) + var(--safe-b) + var(--tracks-btn-h) + 24px) !important;
  transform: translateX(-50%) !important;
  -webkit-transform: translateX(-50%) !important;
  transition: none !important;
  will-change: auto !important;
}



/* v137.53.120 keep billing notice pinned by JS during deposit modal */
html.deposit-modal-open #billingNoticeLine.deposit-billing-pinned,
body.deposit-modal-open #billingNoticeLine.deposit-billing-pinned{
  top: var(--deposit-billing-pinned-top, auto) !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
  -webkit-transform: translateX(-50%) !important;
}



/* v137.53.123 hard lock seek/volume ranges after disconnect, especially for Telegram Mini App */
html.player-controls-locked #seekBar,
html.player-controls-locked #volumeBar,
body.player-controls-locked #seekBar,
body.player-controls-locked #volumeBar,
html.player-controls-locked .player-bar input,
body.player-controls-locked .player-bar input{
  pointer-events: none !important;
  touch-action: none !important;
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}



/* v137.53.149 BAG search freeze keeps original CONTENT LIST button pinned in place on mobile-like viewport */
html.bag-search-freeze-active #tracksToggle,
body.bag-search-freeze-active #tracksToggle,
#tracksToggle.bag-search-frozen-original{
  display: inline-flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
  transition: none !important;
  animation: none !important;
}



/* v137.53.150 reinforce fixed-position freeze for CONTENT LIST during BAG search */
#tracksToggle.bag-search-frozen-original{
  position: fixed !important;
  transform: none !important;
  -webkit-transform: none !important;
}



/* v137.53.151 BAG search viewport lock: keep page and CONTENT LIST stable while keyboard opens */
html.bag-search-viewport-locked,
body.bag-search-viewport-locked{
  overscroll-behavior: none !important;
}

#tracksToggle.bag-search-frozen-original{
  position: absolute !important;
}



/* v137.53.152 BAG search freeze re-parents original CONTENT LIST button to body and pins it fixed */
#tracksToggle.bag-search-frozen-original{
  position: fixed !important;
  transform: none !important;
  -webkit-transform: none !important;
  margin: 0 !important;
}

/* v137.53.301 mobile video mode: keep billing notice visually attached to the app and reduce root bounce */
@media (max-width: 768px), (pointer: coarse){
  html.video-player-active,
  body.video-player-active{
    overscroll-behavior: none !important;
    overscroll-behavior-y: none !important;
  }

  body.video-player-active #billingNoticeLine,
  html.video-player-active #billingNoticeLine,
  body.video-player-active .billing-notice-line,
  html.video-player-active .billing-notice-line{
    bottom: calc(var(--tracks-bottom) + var(--safe-b) + var(--tracks-btn-h) + 10px) !important;
  }
}
