/* Multi-crypto live chart nav + TradingView embed — keep chart visible, no FOUC jerk */
.live-quick-chart__canvas-wrap[data-bw-chart-wrap] {
  position: relative;
  min-height: 288px;
  height: 288px;
  border-radius: 12px;
  overflow: hidden;
  background: #131722 !important;
  color-scheme: dark;
}

/* Dark plane under iframe only — never covers a loaded chart */
.bw-chart-skeleton {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #161b26 0%, #131722 55%, #0f1117 100%);
  pointer-events: none;
}

.bw-chart-fallback {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
  display: block;
  background: #131722;
  opacity: 0;
  pointer-events: none;
}

.bw-chart-fallback.is-visible {
  opacity: 1;
  z-index: 3;
}

.bw-tv-widget {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 288px;
  z-index: 2;
  background: #131722 !important;
  color-scheme: dark;
}

.bw-tv-widget iframe,
.bw-tv-widget .tradingview-widget-container,
.bw-tv-widget .tradingview-widget-container__widget {
  width: 100% !important;
  height: 100% !important;
  min-height: 288px;
  border: 0;
  display: block;
  background: #131722 !important;
  color-scheme: dark;
}

.bw-chart-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 17, 23, 0.82);
  color: #f5f5f5;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.bw-chart-nav:hover {
  background: rgba(60, 155, 244, 0.22);
  border-color: rgba(60, 155, 244, 0.45);
}

.bw-chart-nav:active {
  transform: translateY(-50%) scale(0.94);
}

.bw-chart-nav--prev {
  left: 8px;
}

.bw-chart-nav--next {
  right: 8px;
}

.bw-chart-coin-title {
  flex: 0 0 auto;
  min-width: 96px;
  margin-right: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary, #f5f5f5);
}

.live-quick-chart__head[data-v-88babd54] {
  align-items: center;
}

.markets-page__more-wrap {
  display: flex;
  justify-content: center;
  padding: 28px 0 28px;
}

.markets-page__more {
  min-width: 180px;
  height: 40px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary, #f5f5f5);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.markets-page__more:hover:not(:disabled) {
  background: rgba(60, 155, 244, 0.14);
  border-color: rgba(60, 155, 244, 0.4);
}

.markets-page__more:disabled {
  opacity: 0.5;
  cursor: default;
}

.markets-page__more[hidden] {
  display: none !important;
}

/* ─── Redesign step 1: sidebar UI (site tokens only) ─── */
.lk-layout .lk-sidebar {
  max-width: 280px;
  width: 280px;
  padding: 16px 12px;
  background: var(--background);
  border-right: 1px solid var(--divider);
  transition: width 0.22s ease, max-width 0.22s ease, padding 0.22s ease;
}

.lk-layout .lk-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 4px 8px;
  min-height: 28px;
}

.lk-layout .lk-sidebar__head .lk-sidebar__title {
  flex: 1;
  min-width: 0;
  padding: 0;
  margin: 0;
}

.lk-layout .lk-sidebar__collapse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.lk-layout .lk-sidebar__collapse:hover {
  background: var(--tertiary);
  color: var(--primary);
}

.lk-layout .lk-sidebar__collapse svg {
  display: block;
}

/* Collapsed rail (desktop) */
html.bw-sidebar-collapsed .lk-layout .lk-sidebar,
.lk-layout .lk-sidebar--collapsed {
  max-width: 76px;
  width: 76px;
  padding: 14px 8px;
}

html.bw-sidebar-collapsed .lk-layout .lk-sidebar__head,
.lk-layout .lk-sidebar--collapsed .lk-sidebar__head {
  justify-content: center;
  padding: 0 0 10px;
}

html.bw-sidebar-collapsed .lk-layout .lk-sidebar__head .lk-sidebar__title,
.lk-layout .lk-sidebar--collapsed .lk-sidebar__head .lk-sidebar__title {
  display: none;
}

html.bw-sidebar-collapsed .lk-layout .lk-sidebar__link,
.lk-layout .lk-sidebar--collapsed .lk-sidebar__link {
  justify-content: center;
  padding: 12px 8px;
}

html.bw-sidebar-collapsed .lk-layout .lk-sidebar__label,
html.bw-sidebar-collapsed .lk-layout .lk-sidebar__count,
html.bw-sidebar-collapsed .lk-layout .lang-sw__label,
html.bw-sidebar-collapsed .lk-layout .lang-sw__chev,
html.bw-sidebar-collapsed .lk-layout .lk-sidebar__more .lk-sidebar__label,
.lk-layout .lk-sidebar--collapsed .lk-sidebar__label,
.lk-layout .lk-sidebar--collapsed .lk-sidebar__count,
.lk-layout .lk-sidebar--collapsed .lang-sw__label,
.lk-layout .lk-sidebar--collapsed .lang-sw__chev,
.lk-layout .lk-sidebar--collapsed .lk-sidebar__more .lk-sidebar__label {
  display: none;
}

html.bw-sidebar-collapsed .lk-layout .lk-sidebar__link::before,
.lk-layout .lk-sidebar--collapsed .lk-sidebar__link::before {
  left: 50%;
  top: auto;
  bottom: 4px;
  width: 14px;
  height: 2px;
  transform: translateX(-50%) scaleX(0.4);
}

html.bw-sidebar-collapsed .lk-layout .lk-sidebar__link--active::before,
.lk-layout .lk-sidebar--collapsed .lk-sidebar__link--active::before {
  transform: translateX(-50%) scaleX(1);
}

html.bw-sidebar-collapsed .lk-layout .lang-sw__trigger,
.lk-layout .lk-sidebar--collapsed .lang-sw__trigger {
  justify-content: center;
  padding: 8px;
  gap: 0;
}

.lk-layout .lk-sidebar__scroll {
  gap: 18px;
  padding-right: 2px;
  margin-right: 0;
  scrollbar-color: var(--overlay-press) transparent;
}

.lk-layout .lk-sidebar__scroll::-webkit-scrollbar-thumb {
  background: var(--overlay-press);
  border-radius: 3px;
}

.lk-layout .lk-sidebar__group {
  gap: 2px;
}

.lk-layout .lk-sidebar__title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 10px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lk-layout .lk-sidebar__title::before {
  content: '';
  width: 12px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  flex-shrink: 0;
}

.lk-layout .lk-sidebar__scroll {
  position: relative;
  z-index: 1;
}

.lk-layout .lk-sidebar__link {
  position: relative;
  z-index: 1;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.lk-layout .lk-sidebar__link .lk-sidebar__label,
.lk-layout .lk-sidebar__link .lk-sidebar__count,
.lk-layout .lk-sidebar__link svg {
  pointer-events: none;
}

.lk-layout .lk-sidebar__link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 2px;
  border-radius: 1px;
  background: var(--primary);
  opacity: 0;
  transform: scaleY(0.45);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.lk-layout .lk-sidebar__link .pm-icon,
.lk-layout .lk-sidebar__link > svg,
.lk-layout .lk-sidebar__link > .pm-icon {
  display: none;
}

/* Collapsed rail: keep icons only (labels/counts already hidden) */
html.bw-sidebar-collapsed .lk-layout .lk-sidebar__link .pm-icon,
html.bw-sidebar-collapsed .lk-layout .lk-sidebar__link > svg,
html.bw-sidebar-collapsed .lk-layout .lk-sidebar__link > .pm-icon,
.lk-layout .lk-sidebar--collapsed .lk-sidebar__link .pm-icon,
.lk-layout .lk-sidebar--collapsed .lk-sidebar__link > svg,
.lk-layout .lk-sidebar--collapsed .lk-sidebar__link > .pm-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.75;
}

html.bw-sidebar-collapsed .lk-layout .lk-sidebar__link--active .pm-icon,
html.bw-sidebar-collapsed .lk-layout .lk-sidebar__link--active > svg,
.lk-layout .lk-sidebar--collapsed .lk-sidebar__link--active .pm-icon,
.lk-layout .lk-sidebar--collapsed .lk-sidebar__link--active > svg {
  opacity: 1;
  color: var(--primary);
  stroke: var(--primary);
}

.lk-layout .lk-sidebar__link:hover {
  color: var(--secondary);
  background: var(--tertiary);
}

.lk-layout .lk-sidebar__link--active {
  color: var(--secondary);
  background: var(--accent-soft);
  border-color: rgba(60, 155, 244, 0.22);
}

.lk-layout .lk-sidebar__link--active::before {
  opacity: 1;
  transform: scaleY(1);
}

.lk-layout .lk-sidebar__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lk-layout .lk-sidebar__count,
.lk-sidebar__count {
  display: none !important;
}

.lk-layout .lk-sidebar__pinned {
  gap: 10px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--divider);
  overflow: visible;
}

.lk-layout .lk-sidebar__footer {
  padding: 8px 4px 4px;
  overflow: visible;
  position: relative;
  z-index: 5;
}

@media (max-width: 1280px) {
  .lk-layout .lk-sidebar {
    max-width: 88px;
    width: 88px;
    padding: 14px 8px;
  }

  .lk-layout .lk-sidebar__title {
    justify-content: center;
    padding: 0 0 8px;
    font-size: 0;
    letter-spacing: 0;
  }

  .lk-layout .lk-sidebar__title::before {
    width: 16px;
  }

  .lk-layout .lk-sidebar__link {
    justify-content: center;
    padding: 12px 8px;
  }

  .lk-layout .lk-sidebar__label,
  .lk-layout .lk-sidebar__count {
    display: none;
  }

  .lk-layout .lk-sidebar__link::before {
    left: 50%;
    top: auto;
    bottom: 4px;
    width: 14px;
    height: 2px;
    transform: translateX(-50%) scaleX(0.4);
  }

  .lk-layout .lk-sidebar__link--active::before {
    transform: translateX(-50%) scaleX(1);
  }
}

@media (max-width: 650px) {
  .lk-layout .lk-sidebar__collapse {
    display: none;
  }

  html.bw-sidebar-collapsed .lk-layout .lk-sidebar,
  .lk-layout .lk-sidebar--collapsed {
    max-width: 300px;
    width: 84%;
    padding: calc(56px + env(safe-area-inset-top, 0px)) 14px calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .lk-layout .lk-sidebar {
    max-width: 300px;
    width: 84%;
    padding: calc(56px + env(safe-area-inset-top, 0px)) 14px calc(16px + env(safe-area-inset-bottom, 0px));
    background: var(--background);
  }

  .lk-layout .lk-sidebar__title,
  html.bw-sidebar-collapsed .lk-layout .lk-sidebar__title,
  .lk-layout .lk-sidebar--collapsed .lk-sidebar__title {
    justify-content: flex-start;
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .lk-layout .lk-sidebar__link,
  html.bw-sidebar-collapsed .lk-layout .lk-sidebar__link,
  .lk-layout .lk-sidebar--collapsed .lk-sidebar__link {
    justify-content: flex-start;
    padding: 10px 12px;
  }

  .lk-layout .lk-sidebar__label,
  .lk-layout .lk-sidebar__count,
  html.bw-sidebar-collapsed .lk-layout .lk-sidebar__label,
  html.bw-sidebar-collapsed .lk-layout .lk-sidebar__count,
  html.bw-sidebar-collapsed .lk-layout .lang-sw__label,
  html.bw-sidebar-collapsed .lk-layout .lang-sw__chev,
  .lk-layout .lk-sidebar--collapsed .lk-sidebar__label,
  .lk-layout .lk-sidebar--collapsed .lk-sidebar__count,
  .lk-layout .lk-sidebar--collapsed .lang-sw__label,
  .lk-layout .lk-sidebar--collapsed .lang-sw__chev {
    display: revert;
  }

  .lk-layout .lk-sidebar__link::before,
  html.bw-sidebar-collapsed .lk-layout .lk-sidebar__link::before,
  .lk-layout .lk-sidebar--collapsed .lk-sidebar__link::before {
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 2px;
    height: auto;
    transform: scaleY(0.45);
  }

  .lk-layout .lk-sidebar__link--active::before,
  html.bw-sidebar-collapsed .lk-layout .lk-sidebar__link--active::before,
  .lk-layout .lk-sidebar--collapsed .lk-sidebar__link--active::before {
    transform: scaleY(1);
  }
}

/* ─── Market cards — match event-page matte UI ─── */
.markets-page__grid[data-v-905ee66d],
.markets-page .markets-page__grid {
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.markets-page .pm-card[data-v-a0b383ef],
.markets-page .pm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 16px 16px 14px;
  gap: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface-1, #0f1117);
  box-shadow: none !important;
  overflow: hidden;
  font-family: "Instrument Sans", var(--font-family, system-ui);
  transition: border-color 0.15s ease, background 0.15s ease;
  transform: none !important;
}

.markets-page .pm-card::before {
  display: none !important;
  content: none !important;
}

.markets-page .pm-card:hover,
.markets-page .pm-card[data-v-a0b383ef]:hover {
  z-index: 1;
  transform: none !important;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none !important;
  border-radius: 14px;
}

.markets-page .pm-card--up:hover,
.markets-page .pm-card--down:hover,
.markets-page .pm-card--up[data-v-a0b383ef]:hover,
.markets-page .pm-card--down[data-v-a0b383ef]:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none !important;
}

.markets-page .pm-card:hover::before {
  opacity: 0;
}

.markets-page .pm-card__head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.markets-page .pm-card__head--multi {
  grid-template-columns: 44px minmax(0, 1fr);
}

.markets-page .pm-card__head-copy {
  min-width: 0;
  padding-top: 1px;
}

.markets-page .pm-card__icon,
.markets-page .pm-card__icon[data-v-a0b383ef] {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  flex-shrink: 0;
}

.markets-page .pm-card__icon--empty {
  background: rgba(255, 255, 255, 0.04);
}

.markets-page .pm-card__icon-img,
.markets-page .pm-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.markets-page .pm-card__title-link {
  text-decoration: none;
  color: inherit;
}

.markets-page .pm-card__title,
.markets-page .pm-card__title[data-v-a0b383ef] {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary, #f5f5f5);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.markets-page .pm-card__title-link:hover .pm-card__title {
  text-decoration: none;
  color: #f5f5f5;
  opacity: 0.92;
}

.markets-page .pm-card__gauge {
  position: relative;
  width: 64px;
  flex-shrink: 0;
  color: #3c9bf4;
}

.markets-page .pm-card__gauge-svg {
  display: block;
  width: 64px;
  height: 40px;
}

.markets-page .pm-card__gauge-track {
  stroke: rgba(255, 255, 255, 0.1);
}

.markets-page .pm-card__gauge-fill {
  stroke: #3c9bf4;
}

.markets-page .pm-card__gauge-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  text-align: center;
}

.markets-page .pm-card__gauge-pct {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary, #f5f5f5);
  line-height: 1;
}

.markets-page .pm-card__gauge-sub {
  margin: 3px 0 0;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.markets-page .pm-card__body {
  margin-top: auto;
}

.markets-page .pm-card__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.markets-page .pm-card__list-row,
.markets-page .pm-card__list-row[data-v-a0b383ef] {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.12s ease;
}

.markets-page .pm-card__list-row:last-of-type {
  border-bottom: none;
}

.markets-page .pm-card__list-row:hover {
  background: transparent;
  opacity: 1;
}

.markets-page .pm-card__list-icon,
.markets-page .pm-card__list-icon[data-v-a0b383ef] {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.markets-page .pm-card__list-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.markets-page .pm-card__list-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.markets-page .pm-card__list-name {
  font-size: 13px;
  font-weight: 550;
  line-height: 1.25;
  color: var(--text-secondary, #8b949e);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.markets-page .pm-card__list-row:hover .pm-card__list-name {
  color: var(--text-primary, #f5f5f5);
}

.markets-page .pm-card__list-bar {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.markets-page .pm-card__list-meter {
  display: block;
  height: 100%;
  width: calc(var(--pct, 0) * 1%);
  max-width: 100%;
  background: #3c9bf4;
  border-radius: inherit;
}

.markets-page .pm-card__list-pct,
.markets-page .pm-card__list-pct[data-v-a0b383ef] {
  position: static;
  min-width: 40px;
  height: auto;
  padding: 0;
  display: inline-flex;
  justify-content: flex-end;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text-primary, #f5f5f5);
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.markets-page .pm-card__list-more {
  display: inline-flex;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.markets-page .pm-card__list-more:hover {
  color: #f5f5f5;
  text-decoration: none;
}

.markets-page .pm-card__buttons-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.markets-page .pm-card__btn,
.markets-page .pm-card__btn[data-v-a0b383ef] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 0;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: filter 0.12s ease;
  box-shadow: none !important;
  transform: none !important;
}

.markets-page .pm-card__btn-side {
  font-weight: 750;
  color: inherit;
}

.markets-page .pm-card__btn-px {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  letter-spacing: -0.02em;
  opacity: 1;
  color: inherit;
}

.markets-page .pm-card__btn--yes,
.markets-page .pm-card__btn--yes[data-v-a0b383ef] {
  color: #0a0b0c;
  background: #2ee59d;
  border-color: transparent;
}

.markets-page .pm-card__btn--yes:hover,
.markets-page .pm-card__btn--yes[data-v-a0b383ef]:hover {
  color: #0a0b0c;
  background: #2ee59d;
  filter: brightness(1.06);
}

.markets-page .pm-card__btn--no,
.markets-page .pm-card__btn--no[data-v-a0b383ef] {
  color: #0a0b0c;
  background: #ff6b7a;
  border-color: transparent;
}

.markets-page .pm-card__btn--no:hover,
.markets-page .pm-card__btn--no[data-v-a0b383ef]:hover {
  color: #0a0b0c;
  background: #ff6b7a;
  filter: brightness(1.06);
}

.markets-page .pm-card__foot,
.markets-page .pm-card__foot[data-v-a0b383ef] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.markets-page .pm-card__foot-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.markets-page .pm-card__vol {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.markets-page .pm-card__vol-value {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.markets-page .pm-card__vol-label {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.markets-page .pm-card__date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.38);
}

.markets-page .pm-card__date svg {
  opacity: 0.7;
}

.markets-page .pm-card__category {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.markets-page .pm-card__reveal {
  display: none !important;
}

.markets-page .pm-card__payout-label,
.markets-page .pm-card__traders-text {
  letter-spacing: 0.02em;
}

.markets-page .pm-card__payout-win {
  color: #2ee59d;
}

.markets-page .pm-card__traders-dot {
  display: none !important;
  animation: none !important;
  box-shadow: none !important;
}

@media (max-width: 720px) {
  .markets-page__grid[data-v-905ee66d],
  .markets-page .markets-page__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .markets-page .pm-card,
  .markets-page .pm-card[data-v-a0b383ef] {
    min-height: 0;
    padding: 12px;
    gap: 12px;
    border-radius: 12px;
  }

  .markets-page .pm-card:hover,
  .markets-page .pm-card[data-v-a0b383ef]:hover {
    transform: none;
    box-shadow: none;
  }

  .markets-page .pm-card__title,
  .markets-page .pm-card__title[data-v-a0b383ef] {
    font-size: 14px;
  }

  .markets-page .pm-card__icon,
  .markets-page .pm-card__icon[data-v-a0b383ef] {
    width: 40px;
    height: 40px;
  }

  .markets-page .pm-card__btn,
  .markets-page .pm-card__btn[data-v-a0b383ef] {
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }
}

@media (hover: none) {
  .markets-page .pm-card:hover,
  .markets-page .pm-card[data-v-a0b383ef]:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ─── Featured carousel (Polymarket sports hero) ─── */
.markets-page__hero {
  width: 100%;
  overflow-anchor: none;
}

/* Markets page: categories moved under hero — hide left rail */
.lk-layout--no-cat-sidebar .lk-sidebar {
  display: none !important;
}

.lk-layout--no-cat-sidebar .lk-header__burger {
  display: none !important;
}

.lk-layout--no-cat-sidebar .lk-layout__page {
  gap: 0;
}

.lk-layout--no-cat-sidebar .lk-layout__content {
  width: 100%;
  max-width: none;
}

/* Event chart — no boxed plot chrome */
.event-chart__plot {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}

.event-chart__canvas {
  cursor: crosshair;
  background: transparent;
}

.event-chart__tooltip {
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.event-chart__legend-item {
  transition: opacity 0.15s ease;
}

.event-chart__range {
  transition: color 0.15s ease, background 0.15s ease;
}

/* Trade panel: selected market — plain type, no boxed chrome */
.pm-trade__market {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: -4px 0 2px;
  padding: 0;
  border: 0;
  background: none;
}

.pm-trade__market-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-muted, #8b949e);
}

.pm-trade__market-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary, #f5f5f5);
  word-break: break-word;
}

.event-market.is-selected {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.event-market {
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

/* Category strip above hero — same language as sidebar / market cards */
.cat-rail-wrap {
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cat-rail__title {
  display: none !important;
}

.cat-rail {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-anchor: none;
}

.cat-rail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.cat-rail__btn:hover {
  color: #f5f5f5;
  background: rgba(255, 255, 255, 0.05);
  border-color: transparent;
}

.cat-rail__btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.cat-rail__scroller {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.cat-rail__scroller::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.cat-rail__track {
  display: flex;
  align-items: center;
  gap: 2px;
  width: max-content;
  padding: 0;
  min-height: 40px;
}

.cat-rail__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  color: #8b949e;
  text-decoration: none;
  white-space: nowrap;
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.2;
  background: transparent;
  box-shadow: none;
  transition: color 0.15s ease;
}

.cat-rail__item::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
  transition: background 0.15s ease;
}

.cat-rail__item:hover {
  color: #f5f5f5;
  background: transparent;
  border-color: transparent;
}

.cat-rail__item.is-active {
  color: #f5f5f5;
  background: transparent;
  border-color: transparent;
  font-weight: 650;
  box-shadow: none;
}

.cat-rail__item.is-active::after {
  background: #f5f5f5;
}

.cat-rail__label {
  min-width: 0;
}

@media (max-width: 720px) {
  .cat-rail-wrap {
    margin: 4px -12px 12px;
    width: calc(100% + 24px);
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }

  .cat-rail__title {
    display: none !important;
  }

  .cat-rail {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .cat-rail__btn {
    display: none !important;
  }

  .cat-rail__scroller {
    mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  }

  .cat-rail__track {
    gap: 0;
    padding: 0 12px;
    min-height: 36px;
  }

  .cat-rail__item {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .cat-rail__item::after {
    left: 10px;
    right: 10px;
  }
}

/* Markets head sits above the grid (after hero) */
.markets-page > .markets-page__head {
  margin-top: 8px;
  margin-bottom: 14px;
}

/* Markets head: drop "N active markets · Live" line */
.markets-page > .markets-page__head .markets-page__subtitle {
  display: none !important;
}

/* Search results: keep the query subtitle visible */
.markets-page--search > .markets-page__head .markets-page__subtitle,
.markets-page__subtitle--search {
  display: block !important;
  margin: 8px 0 0;
  color: var(--text-secondary, rgba(245, 245, 245, 0.55));
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.markets-page--search .markets-page__empty {
  margin: 28px 0;
  padding: 0;
  color: var(--text-secondary, rgba(245, 245, 245, 0.55));
  font-size: 14px;
  line-height: 1.45;
}

/* Markets head: drop How it works / How to trade */
.markets-page > .markets-page__head .markets-page__head-actions {
  display: none !important;
}

/* Content column: pin footer to bottom when the page is short (empty History, etc.) */
.lk-layout__content[data-v-e41fc834],
.lk-layout .lk-layout__content {
  display: flex;
  flex-direction: column;
}

/* ─── Site footer (dense legal / contacts) ─── */
.lk-layout .lk-layout__legal.bw-site-footer {
  display: block;
  margin-top: auto;
  flex-shrink: 0;
  padding: 48px 0 0;
  border-top: 1px solid var(--divider);
  text-align: left;
  font-size: 13px;
  color: var(--text-secondary);
}

.bw-site-footer__brand {
  display: flex;
  align-items: center;
  padding: 8px 0 28px;
}

.bw-site-footer__brand-name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: var(--text-primary, #f5f5f5);
  text-decoration: none;
}

.bw-site-footer__brand-name:hover {
  color: var(--text-primary, #f5f5f5);
  opacity: 0.88;
}

html.pm-shell--light .bw-site-footer__brand-name {
  color: #12141a;
}

@media (min-width: 721px) {
  .lk-layout:has(.profile-page) .profile-page[data-v-9243197e],
  .lk-layout:has([data-bw-profile]) .profile-page {
    flex: 1 0 auto;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .profile-page__tx.bw-desk--panel,
  .profile-page__pos.bw-desk--panel {
    min-height: 280px;
  }
}

@media (max-width: 720px) {
  .lk-layout:has([data-bw-profile]) .lk-layout__content,
  .lk-layout:has(.profile-page--desk) .lk-layout__content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .profile-page--desk .profile-page__head,
  .profile-page--desk .profile-page__tabs,
  .profile-page--desk [data-bw-profile-panel],
  [data-bw-profile] .profile-page__head,
  [data-bw-profile] .profile-page__tabs,
  [data-bw-profile] [data-bw-profile-panel] {
    max-width: none;
  }
}

.bw-site-footer__banner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
  gap: 28px;
  align-items: end;
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--divider);
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(255, 255, 255, 0.035), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.bw-site-footer__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.bw-site-footer__title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
}

.bw-site-footer__lede {
  margin: 10px 0 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.bw-site-footer__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.bw-site-footer__meta-row span {
  position: relative;
}

.bw-site-footer__meta-row span:not(:last-child)::after {
  content: '·';
  margin-left: 14px;
  opacity: 0.45;
}

.bw-site-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.bw-site-footer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-sunken);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bw-site-footer__btn:hover {
  color: var(--text-primary);
  background: var(--tertiary);
}

.bw-site-footer__btn--primary {
  color: #fff;
  border-color: transparent;
  background: var(--primary);
}

.bw-site-footer__btn--primary:hover {
  color: #fff;
  filter: brightness(1.06);
}

.bw-site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 24px 0;
}

.bw-site-footer__col-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bw-site-footer__text {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.bw-site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bw-site-footer__list li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
  line-height: 1.4;
}

.bw-site-footer__list li span {
  color: var(--text-muted);
  font-size: 12px;
}

.bw-site-footer__list a,
.bw-site-footer__list em {
  color: var(--text-secondary);
  font-style: normal;
  text-decoration: none;
}

.bw-site-footer__list a:hover {
  color: var(--primary);
}

.bw-site-footer__list--links li {
  display: block;
}

.bw-site-footer__list--links a {
  color: var(--text-secondary);
  font-weight: 500;
}

.bw-site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 16px 0 8px;
  border-top: 1px solid var(--divider);
}

.bw-site-footer__copy {
  margin: 0;
  max-width: 64ch;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Language switcher removed from site chrome */
.lang-sw,
.lang-sw--footer {
  display: none !important;
}

.bw-site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.bw-site-footer__legal-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.bw-site-footer__legal-links a:hover {
  color: var(--text-primary);
}

@media (max-width: 1100px) {
  .bw-site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .bw-site-footer__banner {
    grid-template-columns: 1fr;
  }

  .bw-site-footer__actions {
    justify-content: flex-start;
  }

  .bw-site-footer__grid {
    grid-template-columns: 1fr;
  }

  .bw-site-footer__meta-row span:not(:last-child)::after {
    display: none;
  }
}

/* ─── Legal documents (Terms / AML / Privacy) ─── */
.legal-doc {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 0 48px;
}

.legal-doc__hero {
  margin-bottom: 28px;
  padding: 22px 0 22px;
  border-bottom: 1px solid var(--border);
}

.legal-doc__hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 24px;
  align-items: start;
}

.legal-doc__aside-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.legal-doc__hero-aside {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-1);
}

.legal-doc__aside-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted);
}

.legal-doc__aside-line:last-child {
  margin-bottom: 0;
}

.legal-doc__aside-line strong,
.legal-doc__aside-line a {
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

.legal-doc__aside-line a:hover {
  color: var(--primary);
}

.legal-doc__hero-actions {
  display: none !important;
}

.legal-doc__btn {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-sunken);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.legal-doc__btn:hover {
  color: var(--text-primary);
  background: var(--tertiary);
}

.legal-doc__btn--primary {
  color: #fff;
  border-color: transparent;
  background: var(--primary);
}

.legal-doc__btn--primary:hover {
  color: #fff;
  filter: brightness(1.06);
}

@media (max-width: 800px) {
  .legal-doc__hero-top {
    grid-template-columns: 1fr;
  }
}

.legal-doc__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.legal-doc__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}

.legal-doc__meta {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.legal-doc__summary {
  margin: 16px 0 0;
  max-width: 72ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.legal-doc__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.legal-doc__nav a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-sunken);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.legal-doc__nav a:hover {
  color: var(--text-primary);
  background: var(--tertiary);
}

.legal-doc__nav a[aria-current='page'] {
  color: var(--primary);
  border-color: rgba(60, 155, 244, 0.35);
  background: var(--accent-soft);
}

.legal-doc__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.legal-doc__toc {
  position: sticky;
  top: 88px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-1);
}

.legal-doc__toc-title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.legal-doc__toc ol {
  margin: 0;
  padding: 0 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-doc__toc a {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

.legal-doc__toc a:hover {
  color: var(--primary);
}

.legal-doc__section {
  margin-bottom: 28px;
  scroll-margin-top: 96px;
}

.legal-doc__h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.legal-doc__p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 72ch;
}

.legal-doc__ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
  max-width: 72ch;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.legal-doc__ul li {
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .legal-doc__layout {
    grid-template-columns: 1fr;
  }

  .legal-doc__toc {
    position: static;
  }
}

/* Brand mark image removed — text wordmark only */
.lk-layout .lk-header__logo-image,
.lk-layout .lk-header__logo-img,
.lk-layout .lk-header__logo img,
.lk-header__logo-image,
.lk-header__logo-img,
.lk-header__logo img {
  display: none !important;
}

/* Header notification bell removed */
.lk-header .nb,
.lk-header .nb__btn {
  display: none !important;
}

/* Header search dropdown above page chrome */
.lk-header__search .search-dd {
  z-index: 80;
}

.lk-header__search .search-dd__item--all {
  justify-content: center;
  border-top: 1px solid var(--divider, rgba(255, 255, 255, 0.08));
  margin-top: 4px;
}

.lk-layout .lk-header__logo {
  display: inline-flex;
  align-items: center;
  max-height: none;
  overflow: visible;
}

.lk-layout .lk-header__logo-text {
  font-size: 36px !important;
  font-weight: 700 !important;
  letter-spacing: -0.05em;
  line-height: 1.05;
  white-space: nowrap;
  display: block;
  overflow: visible;
  /* sized so up to 9 letters match the default PolyBet look */
  /* descenders (y) need a hair of room under the cap-height */
  padding-bottom: 0.06em;
}

.lk-layout .lk-header {
  min-height: 72px;
  align-items: center;
  overflow: visible;
}

@media (max-width: 720px) {
  .lk-layout .lk-header {
    min-height: 56px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .lk-layout .lk-header__logo-text {
    font-size: 28px !important;
  }

  .lk-layout .lk-header__right {
    gap: 8px;
  }

  .lk-layout__content[data-v-e41fc834],
  .lk-layout .lk-layout__content {
    padding: 12px 12px 88px;
  }
}

.feat-carousel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.feat-carousel--updown-only .feat-carousel__footer {
  display: none;
}

.feat-carousel--updown-only .feat-carousel__stage,
.feat-carousel--updown-only .feat-carousel__slides {
  min-height: 0;
  width: 100%;
}

.feat-carousel--updown-only .feat-slide {
  padding: 16px 18px;
}

.feat-carousel--updown-only .feat-slide.is-active {
  width: 100%;
}

.feat-carousel--updown-only .feat-slide__inner.updown-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
}

.updown-feed__avatar {
  display: none !important;
}

/* Language switcher — unscoped (JS-built menu has no Vue data-v attrs) */
.lk-layout .lang-sw {
  position: relative;
  width: 100%;
}

/* Header mount: keep compact — must win over width:100% rules above */
.lk-layout .lk-header__right .lang-sw {
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  flex-shrink: 0;
}

.lk-layout .lang-sw__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: none;
  border-radius: 14px;
  background: var(--tertiary);
  color: var(--text-tertiary);
  font-size: 13px;
  transition: 0.2s ease;
  cursor: pointer;
  width: 100%;
  justify-content: flex-start;
}

.lk-layout .lk-header__right .lang-sw__trigger {
  width: auto;
  min-height: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  gap: 6px;
  justify-content: center;
}

.lk-layout .lk-header__right .lang-sw__label {
  flex: 0 1 auto;
  max-width: 6.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lk-layout .lk-header__right .lang-sw__menu {
  right: 0;
  left: auto;
  min-width: 180px;
  z-index: 80;
}

@media (max-width: 900px) {
  .lk-layout .lk-header__right .lang-sw__label,
  .lk-layout .lk-header__right .lang-sw__chev {
    display: none;
  }
}

.lk-layout .lang-sw__trigger:hover {
  background: var(--overlay-press);
  color: var(--text-primary);
}

.lk-layout .lang-sw__label {
  flex: 1;
  text-align: left;
}

.lk-layout .lang-sw__chev {
  color: inherit;
  flex-shrink: 0;
  margin-left: auto;
}

.lk-layout .lang-sw__flag-img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.lk-layout .lang-sw__flag-emoji {
  display: none !important;
}

.lk-layout .lang-sw__menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 80;
  min-width: 180px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-pop);
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  transform-origin: bottom left;
}

.lk-layout .lang-sw__menu[hidden] {
  display: none !important;
}

.lk-layout .lang-sw__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: 0.15s ease;
}

.lk-layout .lang-sw__item:hover {
  background: var(--overlay-hover);
  color: var(--text-primary);
}

.lk-layout .lang-sw__item--active {
  color: var(--text-primary);
}

.lk-layout .lang-sw__name {
  flex: 1;
  min-width: 0;
}

.lk-layout .lang-sw__check {
  color: var(--primary);
  flex-shrink: 0;
}

.lk-layout .lang-sw__item .lang-sw__flag-img {
  width: 22px;
  height: 16px;
}

/* Settlement stage — institutional desk metrics */
.updown-brief {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.updown-brief__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.updown-brief__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}

.updown-brief__lede {
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 38em;
}

/* Metric strip — no cards */
.updown-brief__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--divider, var(--border));
  border-bottom: 1px solid var(--divider, var(--border));
}

.updown-brief__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 14px 0 14px;
}

.updown-brief__stat + .updown-brief__stat {
  padding-left: 20px;
  border-left: 1px solid var(--divider, var(--border));
  margin-left: 20px;
}

.updown-brief__stat-k {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.updown-brief__stat-v {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}

/* Probability book row */
.updown-brief__book {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.updown-brief__book-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 4.5rem;
}

.updown-brief__book-side--yes {
  align-items: flex-start;
}

.updown-brief__book-side--no {
  align-items: flex-end;
  text-align: right;
}

.updown-brief__book-side span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.updown-brief__book-side--yes span {
  color: #22c55e;
}

.updown-brief__book-side--no span {
  color: #ef4444;
}

.updown-brief__book-side strong {
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
  text-shadow: none;
  filter: none;
}

.updown-brief__book-side--yes strong {
  color: #22c55e;
}

.updown-brief__book-side--no strong {
  color: #ef4444;
}

.updown-brief__meter-track {
  display: flex;
  height: 4px;
  border-radius: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: none;
}

.updown-brief__meter-yes {
  flex: 0 0 50%;
  background: #22c55e;
  opacity: 1;
  will-change: flex-basis;
  box-shadow: none;
  filter: none;
}

.updown-brief__meter-no {
  flex: 1 1 auto;
  background: #ef4444;
  opacity: 1;
  box-shadow: none;
  filter: none;
}

@media (max-width: 560px) {
  .updown-brief__stat + .updown-brief__stat {
    margin-left: 12px;
    padding-left: 12px;
  }

  .updown-brief__book {
    gap: 10px;
  }

  .updown-brief__book-side {
    min-width: 3.5rem;
  }

  .updown-brief__book-side strong {
    font-size: 17px;
  }
}

.updown-brief__steps {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px solid var(--divider, var(--border));
}

.updown-brief__step {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 0;
  border: none;
}

.updown-brief__step-n {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.updown-brief__step strong {
  font-size: 14px;
  font-weight: 650;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.updown-brief__footline {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.updown-brief__dot {
  margin: 0 0.35em;
  opacity: 0.7;
}

.updown-brief__lede strong {
  color: var(--text-primary);
  font-weight: 600;
}

.updown-brief__prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.updown-brief__price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px 12px 11px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.updown-brief__k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.updown-brief__v {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.updown-brief__v--up {
  color: var(--text-green);
}

.updown-brief__v--down {
  color: var(--text-red);
}

.updown-brief__delta {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.updown-brief__delta--up {
  color: var(--text-green);
}

.updown-brief__delta--down {
  color: var(--text-red);
}

.updown-brief__split {
  display: flex;
  height: 5px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.updown-brief__split-up,
.updown-brief__split-down {
  display: block;
  height: 100%;
}

.updown-brief__split-up {
  background: var(--text-green);
}

.updown-brief__split-down {
  background: var(--text-red);
}

.updown-brief__odds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.updown-brief__odd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
}

.updown-brief__odd span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.updown-brief__odd strong {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

.updown-brief__odd--up {
  color: var(--text-green);
  box-shadow: inset 3px 0 0 var(--text-green);
}

.updown-brief__odd--down {
  color: var(--text-red);
  box-shadow: inset 3px 0 0 var(--text-red);
}

.updown-brief__facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.updown-brief__facts li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 12px;
  line-height: 1.4;
}

.updown-brief__facts span {
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 10px;
}

.updown-brief__facts em {
  font-style: normal;
  color: var(--text-secondary);
}

.updown-brief__lean--up {
  color: var(--text-green) !important;
  font-weight: 600;
}

.updown-brief__lean--down {
  color: var(--text-red) !important;
  font-weight: 600;
}

.updown-brief__foot {
  display: none !important;
}

.feat-carousel__stage {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  min-height: min(480px, 60vh);
}

.feat-carousel__slides {
  position: relative;
  min-height: min(480px, 60vh);
}

.feat-slide {
  position: absolute;
  inset: 0;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 120ms ease-in, visibility 0s linear 120ms;
  pointer-events: none;
}

.feat-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transition: opacity 120ms ease-in, visibility 0s;
  pointer-events: auto;
}

.feat-slide__inner {
  height: 100%;
}

.feat-carousel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 0 4px 0 20px;
}

.feat-carousel__dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.feat-carousel__dot {
  appearance: none;
  border: none;
  padding: 0;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: width 0.2s ease, background 0.15s ease;
}

.feat-carousel__dot.is-active {
  width: 22px;
  background: var(--text-primary);
}

.feat-carousel__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.feat-carousel__pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.feat-carousel__pill:hover {
  color: var(--text-primary);
  background: var(--tertiary);
  border-color: rgba(60, 155, 244, 0.35);
}

.feat-carousel__pill-arrow {
  opacity: 0.7;
  font-size: 16px;
  line-height: 1;
}

/* Polymarket sports board */
.pm-sport {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.25fr);
  gap: 20px;
  height: 100%;
  min-height: 440px;
  --home: #c45c4a;
  --away: #3b82f6;
}

.pm-sport__left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.pm-sport__crumb {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.feat-sports__dot {
  opacity: 0.55;
}

.pm-sport__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}

.pm-sport__teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.pm-sport__team {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  background: var(--surface-sunken);
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.pm-sport__team img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.pm-sport__team--home.is-active {
  background: color-mix(in srgb, var(--home) 28%, transparent);
  border-color: color-mix(in srgb, var(--home) 45%, transparent);
}

.pm-sport__team--away.is-active {
  background: color-mix(in srgb, var(--away) 28%, transparent);
  border-color: color-mix(in srgb, var(--away) 45%, transparent);
}

.pm-sport__team:not(.is-active) {
  opacity: 0.72;
}

.pm-sport__block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.pm-sport__block-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.pm-sport__line-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pm-sport__line-arrow {
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-sunken);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.pm-sport__line-arrow:hover {
  color: var(--text-primary);
  background: var(--tertiary);
}

.pm-sport__chips {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow: hidden;
  justify-content: center;
}

.pm-sport__chip {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.pm-sport__chip.is-active {
  color: var(--text-primary);
  background: var(--tertiary);
}

.pm-sport__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pm-sport__pick {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pm-sport__pick:hover {
  background: var(--tertiary);
  border-color: rgba(60, 155, 244, 0.35);
}

.pm-sport__vol {
  margin: auto 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.pm-sport__right {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.pm-sport__chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.pm-sport__flags {
  display: flex;
  align-items: center;
}

.pm-sport__flags img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface-1);
  background: var(--surface-sunken);
}

.pm-sport__flags img + img {
  margin-left: -8px;
}

.pm-sport__kick {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.pm-sport__chart {
  position: relative;
  flex: 1;
  min-height: 280px;
  border-radius: 12px;
  background:
    linear-gradient(to right, transparent 0, transparent calc(100% - 1px), rgba(255, 255, 255, 0.03) calc(100% - 1px)),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 39px,
      rgba(255, 255, 255, 0.04) 39px,
      rgba(255, 255, 255, 0.04) 40px
    );
  overflow: hidden;
}

.pm-sport__chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pm-sport__line {
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.pm-sport__line--home {
  stroke: var(--home);
}

.pm-sport__line--away {
  stroke: var(--away);
}

.pm-sport__end {
  position: absolute;
  right: 10px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(12, 14, 18, 0.72);
  backdrop-filter: blur(4px);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  pointer-events: none;
}

.pm-sport__end strong {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.pm-sport__end--home {
  top: 18%;
  color: var(--home);
}

.pm-sport__end--home strong {
  color: var(--home);
}

.pm-sport__end--away {
  bottom: 22%;
  color: var(--away);
}

.pm-sport__end--away strong {
  color: var(--away);
}

/* Featured multi / politics */
.feat-featured {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.feat-sports__top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feat-sports__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.feat-sports__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feat-sports__text {
  flex: 1;
  min-width: 0;
}

.feat-sports__title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}

.feat-sports__crumb {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.feat-sports__open {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}

.feat-sports__open:hover {
  background: var(--accent-soft);
}

.feat-featured__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.feat-featured__row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  z-index: 0;
  border: 1px solid transparent;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.feat-featured__row:hover {
  border-color: var(--border);
  background: var(--tertiary);
}

.feat-featured__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--accent-soft);
  z-index: 0;
  pointer-events: none;
}

.feat-featured__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  z-index: 1;
}

.feat-featured__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
}

.feat-featured__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feat-featured__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feat-featured__pct {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  z-index: 1;
}

.feat-featured__yn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.feat-sports__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.feat-sports__btn--a {
  background: var(--green-soft);
  color: var(--text-green);
  border-color: rgba(65, 204, 89, 0.22);
}

.feat-sports__btn--b {
  background: rgba(255, 93, 71, 0.12);
  color: var(--text-red);
  border-color: rgba(255, 93, 71, 0.22);
}

.feat-carousel .updown-card {
  display: flex;
  flex-direction: column;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  min-height: 0;
  width: 100%;
  height: auto;
}

.feat-carousel .updown-card__head.updown-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.95fr);
  gap: 24px 40px;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--divider);
}

.updown-intro__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.updown-intro__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.updown-intro__title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}

.updown-intro__lede {
  margin: 8px 0 0;
  max-width: 42rem;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  white-space: pre-line;
}

.updown-intro__assets {
  justify-self: stretch;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  text-align: right;
}

.updown-intro__fund-k {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.updown-intro__fund-t {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--text-green);
  white-space: nowrap;
}

/* One-row coin line with even spacing */
.updown-intro__coins {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 380px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.updown-intro__coin {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  animation: updown-coin-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 40ms);
  transition: transform 0.18s ease;
}

.updown-intro__coin:hover {
  transform: translateY(-3px);
}

.updown-intro__coin img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: filter 0.18s ease;
}

.updown-intro__coin:hover img {
  filter: brightness(1.08);
}

.updown-intro__ticker {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes updown-coin-in {
  from {
    opacity: 0;
    transform: translateX(8px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .updown-intro__fund-t {
    white-space: normal;
    max-width: 16em;
  }

  .updown-intro__coins {
    gap: 12px;
  }

  .updown-intro__coin,
  .updown-intro__coin img {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 900px) {
  .feat-carousel .updown-card__head.updown-intro {
    grid-template-columns: 1fr;
  }

  .updown-intro__assets {
    justify-self: start;
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .updown-intro__coins {
    justify-content: flex-start;
  }

  .updown-intro__fund-t {
    white-space: normal;
  }
}

.feat-carousel .updown-card__coin {
  display: none !important;
}

/* Settlement Stage — one panel: tape | $1 rule */

.feat-carousel .updown-card__body.updown-stage {
  display: grid !important;
  grid-template-columns: minmax(260px, 0.95fr) minmax(300px, 1.25fr);
  gap: 0;
  align-items: stretch;
  width: 100%;
  flex: 1;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-1);
  overflow: hidden;
}

.feat-carousel .updown-stage__tape {
  min-width: 0;
  border-right: 1px solid var(--divider, var(--border));
}

.feat-carousel .updown-stage__settle {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 18px;
}

.feat-carousel .updown-card__bets {
  display: none !important;
}

.feat-carousel .updown-brief {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  box-sizing: border-box;
}

.feat-carousel .updown-tape {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.feat-carousel .updown-tape__head {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 12px 16px 8px;
}

.feat-carousel .updown-tape__live {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.feat-carousel .updown-tape,
.feat-carousel .updown-tape__list {
  overflow-anchor: none;
}

.feat-carousel .updown-tape__list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0 16px 14px;
  list-style: none;
  overflow: hidden;
  min-height: 0;
  /* Lock height so live rows can't resize the hero / jump page scroll */
  height: 294px;
  max-height: 294px;
  contain: layout style;
}

.feat-carousel .updown-tape__row {
  display: grid;
  grid-template-columns: minmax(72px, auto) 44px minmax(0, 1fr) minmax(88px, auto);
  align-items: center;
  gap: 8px 10px;
  flex: 0 0 42px;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  padding: 0;
  border-bottom: 1px solid var(--divider, var(--border));
  overflow: hidden;
}

.feat-carousel .updown-tape__row:last-child {
  border-bottom: none;
}

.feat-carousel .updown-tape__amt {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.feat-carousel .updown-tape__row--up .updown-tape__amt {
  color: #22c55e;
  text-shadow: none;
  filter: none;
}

.feat-carousel .updown-tape__row--down .updown-tape__amt {
  color: #ef4444;
  text-shadow: none;
  filter: none;
}

.feat-carousel .updown-tape__side {
  justify-self: start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.35s ease;
  text-shadow: none;
  filter: none;
}

.feat-carousel .updown-tape__row--up .updown-tape__side {
  color: #22c55e;
}

.feat-carousel .updown-tape__row--down .updown-tape__side {
  color: #ef4444;
}

.feat-carousel .updown-tape__event {
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-secondary, var(--text-muted));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feat-carousel .updown-tape__wallet {
  min-width: 0;
  font-size: 11px;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: -0.02em;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

@media (max-width: 720px) {
  .feat-carousel {
    gap: 8px;
  }

  .feat-carousel--updown-only .feat-carousel__stage,
  .feat-carousel--updown-only .feat-carousel__slides,
  .feat-carousel--updown-only .feat-slide,
  .feat-carousel--updown-only .feat-slide__inner {
    min-height: 0 !important;
  }

  .feat-carousel .updown-card__head.updown-intro {
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .updown-intro__title {
    font-size: 22px;
    letter-spacing: -0.03em;
  }

  .updown-intro__lede {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .updown-intro__fund-t {
    display: none;
  }

  .updown-intro__coins {
    gap: 8px;
  }

  .updown-intro__coin,
  .updown-intro__coin img {
    width: 28px;
    height: 28px;
  }

  .feat-carousel .updown-card__body.updown-stage {
    border-radius: 12px;
  }

  .feat-carousel .updown-tape__head {
    padding: 10px 12px 6px;
  }

  .feat-carousel .updown-tape__list {
    height: 168px;
    max-height: 168px;
    padding: 0 12px 10px;
  }

  .feat-carousel .updown-tape__row {
    grid-template-columns: minmax(56px, auto) 36px minmax(0, 1fr);
    gap: 6px 8px;
    flex-basis: 36px;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
  }

  .feat-carousel .updown-tape__amt {
    font-size: 13px;
  }

  .feat-carousel .updown-tape__side {
    font-size: 10px;
  }

  .feat-carousel .updown-tape__event {
    font-size: 11px;
  }

  .feat-carousel .updown-tape__wallet {
    display: none;
  }

  .feat-carousel .updown-stage__settle {
    padding: 14px 12px 12px;
  }

  .updown-brief {
    gap: 12px;
  }

  .updown-brief__title {
    font-size: 20px;
  }

  .updown-brief__v {
    font-size: 16px;
  }

  .updown-brief__odd strong {
    font-size: 20px;
  }
}

.feat-carousel .updown-tape__row.feed-enter-from {
  opacity: 0;
  /* opacity-only — transforms here were contributing to scroll jitter */
}

.feat-carousel .updown-tape__row.feed-enter-from .updown-tape__side {
  filter: none;
}

.feat-carousel .updown-tape__row.feed-enter-active {
  transition: opacity 0.28s ease, transform 0.28s ease;
  opacity: 1;
  transform: none;
}

.feat-carousel .updown-tape__row.feed-enter-active .updown-tape__side {
  filter: none;
}

.feat-slide[data-slide-type='updown'] .feat-slide__inner {
  min-height: 0;
  width: 100%;
}

@media (max-width: 1100px) {
  .feat-carousel .updown-card__body.updown-stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
}

@media (max-width: 900px) {
  .feat-carousel .updown-card__body.updown-stage {
    grid-template-columns: 1fr;
  }

  .feat-carousel .updown-stage__tape {
    border-right: none;
    border-bottom: 1px solid var(--divider, var(--border));
  }

  .feat-carousel .updown-stage__settle {
    padding: 18px 16px 16px;
  }

  .updown-brief__prices,
  .updown-brief__odds {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .feat-carousel--updown-only .feat-slide {
    padding: 10px;
  }

  .feat-carousel .updown-card__bets {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .feat-carousel .updown-stage__settle {
    padding: 12px;
  }

  .updown-brief__facts li {
    grid-template-columns: 64px minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .updown-intro__title {
    font-size: 20px;
  }

  .updown-intro__lede {
    display: none;
  }

  .feat-carousel .updown-tape__list {
    height: 140px;
    max-height: 140px;
  }

  .feat-carousel .updown-tape__row {
    flex-basis: 34px;
    height: 34px;
    min-height: 34px;
    max-height: 34px;
  }

  .updown-brief__title {
    font-size: 18px;
  }

  .updown-brief__odd strong {
    font-size: 18px;
  }
}

@media (max-width: 980px) {
  .pm-sport {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .pm-sport__chart {
    min-height: 220px;
  }

  .feat-carousel__stage,
  .feat-carousel__slides {
    min-height: 0;
  }

  .feat-carousel__pill {
    max-width: 140px;
    font-size: 12px;
  }

  .pm-sport__title {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feat-slide,
  .feat-slide.is-active {
    transition: none;
  }
}

/* ——— Modal shell (unscoped fallback — Vue CSS needs data-v-a92de7c4) ——— */
.lk-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lk-modal__overlay {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: var(--overlay-scrim, rgba(9, 10, 11, 0.7));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.lk-modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-pop);
  color: var(--text-primary);
}

.lk-modal__box--sm { max-width: 420px; }
.lk-modal__box--md { max-width: 560px; }
.lk-modal__box--lg { max-width: 920px; }

.lk-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--divider);
}

.lk-modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 130%;
  color: var(--text-primary);
}

.lk-modal__meta {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-secondary, rgba(255, 255, 255, 0.55));
}

.lk-modal__box--md:has(.bw-pay),
.lk-modal__box--md:has(.bw-dep) {
  max-width: 520px;
}

.lk-modal__box:has(.bw-pay) .lk-modal__body,
.lk-modal__box:has(.bw-dep) .lk-modal__body {
  padding: 22px 24px 24px;
}

.lk-modal__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--overlay-hover);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lk-modal__body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

@media (max-width: 640px) {
  .lk-modal {
    padding: 0;
    align-items: flex-end;
  }

  .lk-modal__box {
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
  }
}

/* ——— Auth gate modal ——— */
.lk-modal__box--auth {
  --auth-gate-w: min(440px, calc(100vw - 32px));
  --auth-gate-h: min(560px, calc(100vh - 48px));
  width: var(--auth-gate-w);
  min-width: var(--auth-gate-w);
  max-width: var(--auth-gate-w);
  height: var(--auth-gate-h);
  min-height: var(--auth-gate-h);
  max-height: var(--auth-gate-h);
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
  flex: 0 0 auto;
}

.lk-modal__box--auth .lk-modal__head {
  display: none;
}

.lk-modal__box--auth .lk-modal__body {
  padding: 0;
  overflow: hidden;
  max-height: none;
  height: 100%;
}

.auth-gate {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: none;
  overflow: hidden;
  position: relative;
  font-family: "Instrument Sans", var(--font-family, system-ui);
  box-sizing: border-box;
}

.auth-gate__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.auth-gate__close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.auth-gate__top {
  flex: 0 0 auto;
  padding: 22px 48px 0 24px;
}

.auth-gate__brand {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--text-primary);
}

.auth-gate__headline {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-secondary);
  max-width: none;
  white-space: normal;
}

.auth-gate__main {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px 24px 22px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  background: transparent;
}

.auth-gate__tabs {
  flex: 0 0 auto;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
  padding: 4px;
  margin: 0 0 16px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 0;
  border: 1px solid var(--border);
}

.auth-gate__tabs .auth-gate__tab {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.auth-gate__tabs .auth-gate__tab:hover {
  color: var(--text-primary);
}

.auth-gate__tabs .auth-gate__tab.is-active {
  background: #2a2b2c;
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.auth-gate__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Same rhythm for login + register — no vertical centering voids */
.auth-gate[data-bw-auth-mode="login"] .auth-gate__body {
  justify-content: flex-start;
}

.auth-gate__title {
  margin: 0;
  min-height: 28px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
}

.auth-gate__sub {
  margin: 6px 0 0;
  min-height: 36px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-secondary);
}

.auth-gate__form {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.auth-gate__creds {
  display: grid;
  gap: 10px;
  flex: 0 0 auto;
}

/* Login: stretch the two fields evenly through the free space so the box doesn’t look hollow */
.auth-gate[data-bw-auth-mode="login"] .auth-gate__creds {
  flex: 1 1 auto;
  align-content: stretch;
  grid-auto-rows: minmax(0, 1fr);
  gap: 12px;
}

.auth-gate[data-bw-auth-mode="login"] .auth-gate__field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 0;
}

.auth-gate__field {
  display: grid;
  gap: 5px;
}

.auth-gate__field span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
}

.auth-gate__field input {
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-primary);
  border-radius: 0;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.auth-gate__field input::placeholder {
  color: var(--text-tertiary);
}

.auth-gate__field input:focus {
  border-color: rgba(60, 155, 244, 0.7);
  box-shadow: 0 0 0 3px rgba(60, 155, 244, 0.14);
}

.auth-gate__error {
  flex: 0 0 auto;
  min-height: 18px;
  margin: 0;
  font-size: 13px;
  color: var(--text-red);
}

.auth-gate .auth-gate__submit {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 12px 16px;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff !important;
  background: #3c9bf4 !important;
  cursor: pointer;
  transition: filter 0.16s ease;
}

.auth-gate .auth-gate__submit:hover {
  filter: brightness(1.08);
}

.auth-gate .auth-gate__submit:active {
  filter: brightness(0.96);
}

.auth-gate .auth-gate__submit:disabled {
  opacity: 0.65;
  cursor: wait;
  filter: none;
}

.auth-gate__consents {
  display: grid;
  gap: 8px;
  margin-top: 0;
  flex: 0 0 auto;
}

/* Keep action block glued to the bottom for both modes.
   Error stays in flow even when empty so login/register geometry matches. */
.auth-gate__error {
  margin-top: auto;
}

.auth-gate__error[hidden] {
  display: block !important;
  visibility: hidden;
  min-height: 18px;
  height: 18px;
  overflow: hidden;
  margin-top: auto;
  margin-bottom: 0;
  padding: 0;
  border: 0;
}

.auth-gate__field.is-collapsed,
.auth-gate__consents.is-collapsed,
.auth-gate__creds.is-collapsed,
.auth-gate__tabs.is-collapsed {
  display: none !important;
}

.auth-gate__check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.auth-gate__check input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  box-sizing: border-box;
  border: 1.5px solid var(--border-strong, #3a3b3c);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.auth-gate__check input:checked {
  background: #3c9bf4;
  border-color: #3c9bf4;
}

.auth-gate__check input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.auth-gate__check a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-gate__check a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .lk-modal__box--auth {
    --auth-gate-w: 100%;
    --auth-gate-h: min(88vh, 620px);
    width: var(--auth-gate-w);
    min-width: 0;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
  }

  .auth-gate {
    border-radius: 16px 16px 0 0;
  }

  .auth-gate__main {
    overflow-y: auto;
  }

  .auth-gate[data-bw-auth-mode="login"] .auth-gate__creds {
    flex: 0 0 auto;
    grid-auto-rows: auto;
  }
}


/* ——— Site-wide matte charcoal (no blue wash) ——— */
html.pm-shell--dark,
html.pm-shell--dark body {
  --bw-matte: #0b0b0c;
  --background: #0b0b0c;
  --surface-1: #121213;
  --surface-2: #161617;
  --bg-elevated: #181819;
  --tertiary: rgba(255, 255, 255, 0.055);
  background: #0b0b0c;
  background-color: #0b0b0c;
}

html.pm-shell--dark .lk-layout[data-v-e41fc834],
html.pm-shell--dark .lk-layout {
  --background: #0b0b0c;
  --surface-1: #121213;
  --surface-2: #161617;
  --bg-elevated: #181819;
  --tertiary: rgba(255, 255, 255, 0.055);
  color: var(--text-primary);
  background-color: #0b0b0c;
  background-image:
    radial-gradient(ellipse 85% 50% at 50% -8%, rgba(255, 255, 255, 0.04) 0%, transparent 58%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(255, 255, 255, 0.018) 0%, transparent 55%),
    linear-gradient(180deg, #0d0d0e 0%, #0b0b0c 52%, #09090a 100%);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Header / content / sidebar share the same matte plane */
html.pm-shell--dark .lk-header[data-v-062e97a7],
html.pm-shell--dark .lk-header,
html.pm-shell--dark .lk-sidebar,
html.pm-shell--dark .lk-layout__page,
html.pm-shell--dark .lk-layout__content[data-v-e41fc834],
html.pm-shell--dark .lk-layout .lk-layout__content {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

html.pm-shell--dark .lk-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Kill leftover blue neon orb behind header user block */
.lk-user[data-v-586e76de]::before,
.lk-user::before {
  display: none !important;
  content: none !important;
}

/* Header deposit — matte sage, same chrome weight as guest Sign Up */
.lk-user__balance .lk-btn.lk-btn--deposit,
.lk-user__balance .lk-btn[data-bw-lk-action="deposit"],
.lk-header .lk-btn.lk-btn--deposit,
.lk-header .lk-btn[data-bw-lk-action="deposit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: #c9d8cf !important;
  background-color: #c9d8cf !important;
  color: #15231c !important;
  box-shadow: none !important;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lk-user__balance .lk-btn.lk-btn--deposit:hover,
.lk-user__balance .lk-btn[data-bw-lk-action="deposit"]:hover,
.lk-header .lk-btn.lk-btn--deposit:hover,
.lk-header .lk-btn[data-bw-lk-action="deposit"]:hover {
  background: #d8e5dc !important;
  background-color: #d8e5dc !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
  filter: none;
}

.lk-user__balance .lk-btn--deposit .lk-btn__content,
.lk-user__balance .lk-btn[data-bw-lk-action="deposit"] .lk-btn__content,
.lk-header .lk-btn--deposit .lk-btn__content,
.lk-header .lk-btn[data-bw-lk-action="deposit"] .lk-btn__content {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-weight: inherit;
}

/* Legacy $ chip — hide if still in cached markup */
.lk-btn__dollar {
  display: none !important;
}

html.pm-shell--light .lk-user__balance .lk-btn.lk-btn--deposit,
html.pm-shell--light .lk-user__balance .lk-btn[data-bw-lk-action="deposit"],
html.pm-shell--light .lk-header .lk-btn.lk-btn--deposit,
html.pm-shell--light .lk-header .lk-btn[data-bw-lk-action="deposit"] {
  background: #1f3d30 !important;
  background-color: #1f3d30 !important;
  border-color: #1f3d30 !important;
  color: #eef4f0 !important;
}

html.pm-shell--light .lk-user__balance .lk-btn.lk-btn--deposit:hover,
html.pm-shell--light .lk-user__balance .lk-btn[data-bw-lk-action="deposit"]:hover,
html.pm-shell--light .lk-header .lk-btn.lk-btn--deposit:hover,
html.pm-shell--light .lk-header .lk-btn[data-bw-lk-action="deposit"]:hover {
  background: #2a5241 !important;
  background-color: #2a5241 !important;
  border-color: #2a5241 !important;
}

/* Guest auth — matte header pair (no glow / neon) */
.lk-user--guest[data-v-586e76de],
.lk-user.lk-user--guest {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lk-user--guest .lk-user__login[data-v-586e76de],
.lk-user--guest .lk-user__login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(245, 245, 245, 0.72);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.lk-user--guest .lk-user__login:hover {
  color: #f5f5f5;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.lk-user--guest .lk-btn.lk-btn--primary,
.lk-user--guest a.lk-btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #eceff3 !important;
  background-color: #eceff3 !important;
  color: #12141a !important;
  box-shadow: none !important;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lk-user--guest .lk-btn.lk-btn--primary:hover,
.lk-user--guest a.lk-btn--primary:hover {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none !important;
  filter: none;
}

.lk-user--guest .lk-btn--primary .lk-btn__content {
  color: inherit;
  font-weight: inherit;
}

html.pm-shell--light .lk-user--guest .lk-user__login {
  color: rgba(18, 20, 26, 0.62);
}

html.pm-shell--light .lk-user--guest .lk-user__login:hover {
  color: #12141a;
  background: rgba(18, 20, 26, 0.04);
  border-color: rgba(18, 20, 26, 0.08);
}

html.pm-shell--light .lk-user--guest .lk-btn.lk-btn--primary,
html.pm-shell--light .lk-user--guest a.lk-btn--primary {
  background: #12141a !important;
  background-color: #12141a !important;
  border-color: #12141a;
  color: #ffffff !important;
}

html.pm-shell--light .lk-user--guest .lk-btn.lk-btn--primary:hover,
html.pm-shell--light .lk-user--guest a.lk-btn--primary:hover {
  background: #2a2e38 !important;
  background-color: #2a2e38 !important;
  border-color: #2a2e38;
}

html.pm-shell--dark nav.mbn,
html.pm-shell--dark .mbn[data-v-9e607d92] {
  background: #0b0b0c !important;
  background-color: #0b0b0c !important;
  border-top-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
}

/* ——— LK desk shell ≈ worker admin (colors + content chrome) ——— */
html.pm-shell--dark .lk-layout:has([data-bw-profile]),
html.pm-shell--dark .lk-layout:has(.profile-page--desk) {
  --bg: #0b0b0c;
  --bg-soft: #111214;
  --bg-ink: #131722;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #ffffff;
  --muted: #e8eaed;
  --faint: rgba(255, 255, 255, 0.82);
  --accent: #3c9bf4;
  --accent-soft: rgba(60, 155, 244, 0.18);
  --background: #0b0b0c;
  --surface-1: #111214;
  --surface-2: #131722;
  --bg-elevated: #111214;
  --text-primary: #ffffff;
  --text-secondary: #e8eaed;
  --text-tertiary: #d0d4da;
  --text-muted: #d0d4da;
  --border: rgba(255, 255, 255, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.14);
  --divider: rgba(255, 255, 255, 0.16);
  --primary: #3c9bf4;
  --font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  /* Atmosphere set by folio block below — do not force flat black here */
  color: #ffffff;
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
}

.lk-layout:has([data-bw-profile]),
.lk-layout:has(.profile-page--desk) {
  --font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
}

.lk-layout:has([data-bw-profile]) .lk-layout__page,
.lk-layout:has(.profile-page--desk) .lk-layout__page {
  background: transparent !important;
  justify-content: flex-start;
  gap: 0;
}

.lk-layout:has([data-bw-profile]) .lk-layout__content,
.lk-layout:has(.profile-page--desk) .lk-layout__content {
  background: transparent !important;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 40px;
  padding-right: 40px;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lk-layout:has([data-bw-profile]) .lk-layout__content::-webkit-scrollbar,
.lk-layout:has(.profile-page--desk) .lk-layout__content::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Site header stays full-bleed — never shrink/center with desk content */
.lk-layout:has([data-bw-profile]) .lk-header,
.lk-layout:has(.profile-page--desk) .lk-header {
  width: 100%;
  max-width: none;
  margin: 0;
}

html.pm-shell--dark .lk-layout:has([data-bw-profile]) .lk-header,
html.pm-shell--dark .lk-layout:has(.profile-page--desk) .lk-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: #0b0b0c !important;
}

/* Profile content: admin-like sections, no card chrome */
.profile-page--desk,
[data-bw-profile].profile-page {
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 0 48px;
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
}

/* Head, tabs, panels: shared centered column */
.profile-page--desk .profile-page__head,
.profile-page--desk .profile-page__tabs,
.profile-page--desk [data-bw-profile-panel],
[data-bw-profile] .profile-page__head,
[data-bw-profile] .profile-page__tabs,
[data-bw-profile] [data-bw-profile-panel] {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.lk-layout:has([data-bw-profile]) .bw-site-footer,
.lk-layout:has(.profile-page--desk) .bw-site-footer {
  width: 100%;
  max-width: none;
  margin: 0;
}

.profile-page--desk .profile-page__head,
[data-bw-profile] .profile-page__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 4px 0 14px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.profile-page--desk .profile-page__head-actions,
[data-bw-profile] .profile-page__head-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.profile-page--desk .profile-page__identity,
[data-bw-profile] .profile-page__identity {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.profile-page--desk .profile-page__title,
[data-bw-profile] .profile-page__title {
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #ffffff;
}

.profile-page--desk .profile-page__tabs,
[data-bw-profile] .profile-page__tabs {
  gap: 0;
  margin: 0 auto 14px;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
}

.profile-page--desk .profile-page__tab,
[data-bw-profile] .profile-page__tab {
  position: relative;
  margin: 0;
  padding: 12px 16px 12px 0;
  margin-right: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #c2c8d0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.profile-page--desk .profile-page__tab:hover,
[data-bw-profile] .profile-page__tab:hover {
  color: #ffffff;
  background: transparent;
}

.profile-page--desk .profile-page__tab--active,
[data-bw-profile] .profile-page__tab--active {
  color: #ffffff;
  background: transparent;
}

.profile-page--desk .profile-page__tab--active::after,
[data-bw-profile] .profile-page__tab--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 20px;
  bottom: -1px;
  height: 2px;
  background: #3c9bf4;
}

.profile-page--desk .lk-card,
.profile-page--desk .profile-page__card,
[data-bw-profile] .lk-card {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.profile-page--desk .bw-desk__pane-title,
.profile-page--desk .bw-desk__eyebrow,
.profile-page--desk .bw-desk__stat-label {
  color: #c2c8d0;
}

.profile-page--desk .bw-desk__top,
.profile-page--desk .bw-desk__hero,
.profile-page--desk .bw-desk__rail,
.profile-page--desk .bw-tx__row,
.profile-page--desk .profile-page__pos-row {
  border-color: rgba(255, 255, 255, 0.16);
}

.profile-page--desk .bw-desk__balance,
.profile-page--desk .bw-desk__stat-value {
  color: #ffffff;
  letter-spacing: -0.03em;
}

.profile-page--desk .lk-btn--primary {
  background: #2f8fed;
  border-color: rgba(47, 143, 237, 0.35);
  border-radius: 10px;
  color: #0a0b0c;
  box-shadow: none;
}

.profile-page--desk .lk-btn--tertiary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: transparent;
  color: #ffffff;
  box-shadow: none;
}

.profile-page--desk .bw-tx__head,
.profile-page--desk .profile-page__positions-head {
  color: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

/* ——— Profile desk: event-page visual system ——— */

.profile-page--desk[data-v-9243197e],
.profile-page[data-v-9243197e] {
  gap: 0;
}

.profile-page__overview--desk[data-v-9243197e] {
  gap: 0;
}

.bw-desk {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 8px;
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
}

.bw-desk--panel {
  padding-top: 0;
}

/* Top: balance | chart — open, no boxed frames */
.bw-desk__top,
.bw-desk__hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.4fr);
  gap: 16px 24px;
  align-items: stretch;
  padding: 4px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.bw-desk__balance-col,
.bw-desk__hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 0;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
}

.bw-desk__eyebrow,
.bw-desk__pane-title,
.bw-desk__stat-label,
.bw-desk__viz-label {
  margin: 0;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #c2c8d0;
  line-height: 1.2;
}

.bw-desk__figure {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
}

.bw-desk__balance {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.bw-desk__ccy {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #c2c8d0;
  transform: none;
}

.bw-desk__lede {
  display: none;
}

.bw-desk__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.bw-desk__cta .lk-btn--primary,
.bw-desk__cta .lk-btn[data-bw-lk-action='deposit'] {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #12141a !important;
  box-shadow: none !important;
}

.bw-desk__cta .lk-btn--primary:hover,
.bw-desk__cta .lk-btn[data-bw-lk-action='deposit']:hover {
  background: #eceff3 !important;
  background-color: #eceff3 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #12141a !important;
  filter: none !important;
}

.bw-desk__cta .lk-btn--primary .lk-btn__content,
.bw-desk__cta .lk-btn[data-bw-lk-action='deposit'] .lk-btn__content {
  color: inherit !important;
}

.bw-desk__viz,
.bw-desk__hero-viz {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  gap: 10px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
}

.bw-desk__viz-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.bw-desk__viz-label {
  display: none;
}

.bw-desk__legend {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  min-width: 0;
}

.bw-desk__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: #c2c8d0;
  line-height: 1;
}

.bw-desk__legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.bw-desk__chart.desk-chart,
.bw-desk .desk-chart.bw-desk__chart {
  position: relative;
  flex: 1 1 auto;
  min-height: 180px;
  height: 200px;
  margin: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  display: block;
  overflow: hidden;
}

.bw-desk__chart--empty.desk-chart,
.bw-desk .desk-chart.bw-desk__chart--empty {
  min-height: 120px;
  height: 132px;
}

.bw-desk__chart-lede {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #c2c8d0;
}

.bw-desk__chart-lede a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bw-desk__chart-lede a:hover {
  color: #2f8fed;
}

.bw-desk__chart.desk-chart canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.bw-desk__chart .balance-chart__empty {
  display: none !important;
}

.bw-desk__chart .balance-chart__empty-text {
  display: none !important;
}

.bw-desk__range {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.bw-desk__range-btn {
  appearance: none;
  position: relative;
  box-sizing: border-box;
  min-width: 36px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #c2c8d0;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  line-height: 1;
  text-align: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.bw-desk__range-btn.is-active,
.bw-desk__range-btn.profile-page__range-btn--active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: none;
}

.bw-desk__range-btn.is-active::after,
.bw-desk__range-btn.profile-page__range-btn--active::after {
  display: none;
}

.bw-desk__range-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.bw-desk__range-btn.is-active:hover,
.bw-desk__range-btn.profile-page__range-btn--active:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

/* Metrics strip — hairline only, no frame */
.bw-desk__rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 14px 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  overflow: visible;
}

.bw-desk__rail--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bw-desk__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding: 0 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.bw-desk__stat:first-child {
  padding-left: 0;
}

.bw-desk__stat:last-child {
  border-right: 0;
  padding-right: 0;
}

.bw-desk__stat-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.bw-desk__stat-value--flat {
  color: #ffffff;
}

.bw-desk__stat-value.is-in {
  color: #41cc59;
}

.bw-desk__stat-value.is-out {
  color: #f87171;
}

.bw-desk__stat-hint {
  font-size: 12px;
  line-height: 1;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.62));
}

.profile-page__pill--won {
  color: #0a0b0c;
  border-color: transparent;
  background: #2ee59d;
}

.profile-page__pill--lost {
  color: #0a0b0c;
  border-color: transparent;
  background: #ff6b7a;
}

.profile-page__pill--void {
  color: #0a0b0c;
  border-color: transparent;
  background: #eab308;
}

/* Floor: activity | status — open columns, no boxed panes */
.bw-desk__floor,
.bw-desk__lower {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.85fr);
  gap: 0 32px;
  align-items: start;
  padding-top: 16px;
}

.bw-desk__pane {
  min-width: 0;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
}

.bw-desk__pane--status {
  padding-left: 40px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.bw-desk__pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  min-height: 22px;
}

.bw-desk__pane-title {
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: #c2c8d0;
}

.bw-desk__activity {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bw-desk__activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: transparent;
}

.bw-desk__activity-row:first-child {
  border-top: 0;
  padding-top: 0;
  min-height: 36px;
}

.bw-desk__activity-thumb {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bw-desk__activity-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Coin logos: no box frame — clean circular glyph */
.bw-desk__activity-thumb--coin,
.bw-desk__activity-thumb--plain.bw-desk__activity-thumb--coin {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  overflow: visible;
  padding: 0;
}

.bw-desk__activity-thumb-coin {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50%;
  object-fit: cover !important;
  display: block;
}

.bw-desk__activity-thumb-letter {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1;
}

.bw-desk__activity-thumb--plain {
  background: rgba(255, 255, 255, 0.03);
}

.bw-desk__activity-thumb.is-filled {
  border-color: transparent;
  background: transparent;
  padding: 0;
}

a.bw-desk__activity-thumb:hover:not(.bw-desk__activity-thumb--coin) {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

a.bw-desk__activity-thumb--coin:hover {
  opacity: 0.9;
}

.bw-desk__activity-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.bw-desk__activity-title {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.bw-desk__activity-title {
  color: #ffffff;
  text-decoration: none;
}

a.bw-desk__activity-title:hover {
  color: #2f8fed;
}

.bw-desk__activity-sub,
.bw-desk__empty {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.62));
}

.bw-desk__empty {
  padding: 4px 0 0;
}

.bw-desk__activity-amt {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

.bw-desk__activity-amt.is-in {
  color: #86efac;
}

.bw-desk__activity-amt.is-out {
  color: #fca5a5;
}

.profile-page__tx.bw-desk--panel {
  margin: 0 auto;
}

/* LK positions / history pagination */
.bw-lk-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.bw-lk-pager__pages {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.bw-lk-pager__nav,
.bw-lk-pager__num {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  background: transparent;
  color: #c2c8d0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.bw-lk-pager__num {
  min-width: 34px;
  padding: 0 8px;
}

.bw-lk-pager__nav:hover:not(:disabled),
.bw-lk-pager__num:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.bw-lk-pager__num.is-current {
  color: #0b0b0c;
  background: #eceff3;
  border-color: transparent;
}

.bw-lk-pager__nav:disabled {
  opacity: 0.4;
  cursor: default;
}

.profile-page__pos-row.is-page-hidden,
.bw-tx__row.is-page-hidden,
.profile-page__pos-row[hidden],
.bw-tx__row[hidden] {
  display: none !important;
}

/* VIP tier — same pill language as YES/NO outcome chips */
.bw-desk__tier-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  min-width: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: #ffffff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.bw-desk__tier-pill--bronze {
  background: #8a7355;
  color: #0b0b0c;
}

.bw-desk__tier-pill--silver {
  background: #9aa3ad;
  color: #0b0b0c;
}

.bw-desk__tier-pill--gold {
  background: #c4a35a;
  color: #0b0b0c;
}

.bw-desk__tier-pill--platinum {
  background: #a8b4c0;
  color: #0b0b0c;
}

.bw-desk__tier-meta,
.bw-desk__tier-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.bw-desk__tier-note {
  display: none;
}

.bw-desk__bar {
  height: 4px;
  margin-top: 14px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.bw-desk__bar-fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: #2f8fed;
}

.bw-desk__tier-scale {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.bw-desk__tier-scale span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #c2c8d0;
}

.bw-desk__tier-scale span.is-active {
  color: #ffffff;
  font-weight: 700;
}

.bw-desk__tiers,
.bw-desk__tier {
  display: none;
}

.bw-desk__ledger {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.bw-desk__ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.bw-desk__ledger-meta {
  display: grid;
  gap: 3px;
}

.bw-desk__ledger-meta strong {
  font-size: 14px;
  font-weight: 650;
  color: var(--text-primary);
}

.bw-desk__ledger-meta span {
  font-size: 12px;
  color: var(--text-tertiary);
}

.bw-desk__ledger-amt {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.bw-desk__ledger-row--total .bw-desk__ledger-amt {
  font-size: 20px;
  color: #9fd0ff;
}

.bw-desk__table-wrap {
  margin-top: 8px;
}

.profile-page__settings[data-v-9243197e] {
  display: block;
}

.profile-page__settings-stack[data-v-9243197e] {
  display: grid;
  gap: 32px;
}

.profile-page__settings-desk[data-v-9243197e] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Kill card chrome inside desk settings */
.profile-page--desk .profile-page__settings-desk .lk-card[data-v-f27b632d],
.profile-page--desk .profile-page__settings-profile {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  height: auto !important;
}

.profile-page--desk .profile-page__settings-desk .lk-card__head[data-v-f27b632d],
.profile-page--desk .profile-page__settings-desk .profile-page__card-head[data-v-9243197e] {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-page--desk .profile-page__settings-desk .lk-card__title[data-v-f27b632d] {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.profile-page__settings-bio[data-v-9243197e],
.profile-page__settings-bio--ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 18px;
  padding: 0;
}

.profile-page__settings-field[data-v-9243197e] {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.profile-page__settings-label[data-v-9243197e] {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.profile-page__settings-value {
  display: block;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-page__settings-value--money {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.profile-page__settings-ccy {
  margin-left: 4px;
  font-style: normal;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.45));
  vertical-align: 0.1em;
}

.profile-page__settings-desk[data-v-9243197e] .lk-card__head[data-v-f27b632d],
.profile-page__settings-desk[data-v-9243197e] .profile-page__card-head[data-v-9243197e] {
  margin-bottom: 8px;
  min-height: 28px;
}

.profile-page__settings-desk[data-v-9243197e] .lk-card__title[data-v-f27b632d] {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.profile-page__card-head[data-v-9243197e] {
  margin-bottom: 16px;
  align-items: center;
  min-height: 28px;
}

.profile-page__card-title[data-v-9243197e] {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.profile-page__balance-card[data-v-9243197e] {
  gap: 12px;
  height: 100%;
}

.profile-page__balance-amount[data-v-9243197e] {
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.profile-page__chart.balance-chart[data-v-85cc884c],
.profile-page__balance-card .profile-page__chart {
  flex: 1 1 auto;
  min-height: 148px !important;
  height: auto !important;
  margin-top: 4px;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(60, 155, 244, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 48%,
    transparent 100%
  );
  border: 1px solid var(--border-subtle, var(--border));
  overflow: hidden;
}

.balance-chart__empty[data-v-85cc884c] {
  gap: 10px;
}

.balance-chart__empty-icon[data-v-85cc884c] {
  opacity: 0.55;
  color: #3c9bf4;
}

.balance-chart__empty-text[data-v-85cc884c] {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.profile-page__range[data-v-9243197e] {
  width: 100%;
  margin-top: auto;
  padding: 3px;
  gap: 2px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-subtle, var(--border));
  align-self: stretch;
}

.profile-page__range-btn[data-v-9243197e] {
  border-radius: 9px;
  padding: 7px 8px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.profile-page__range-btn--active[data-v-9243197e] {
  background: rgba(60, 155, 244, 0.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(60, 155, 244, 0.35);
}

.profile-page__perf[data-v-9243197e] {
  gap: 14px;
  height: 100%;
}

.profile-page__period[data-v-9243197e] {
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 12px;
  gap: 6px;
  background: rgba(0, 0, 0, 0.22);
}

.profile-page__perf-stats[data-v-9243197e] {
  gap: 0;
  padding: 14px 6px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-subtle, var(--border));
}

.profile-page__perf-stat[data-v-9243197e] {
  padding: 0 12px;
  gap: 8px;
}

.profile-page__perf-stat-label[data-v-9243197e] {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.profile-page__perf-stat-value[data-v-9243197e] {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile-page__perf-activity[data-v-9243197e] {
  margin-top: auto;
  padding-top: 4px;
  gap: 10px;
}

.profile-page__perf-activity-label[data-v-9243197e] {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.profile-page__perf-activity-empty[data-v-9243197e] {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px dashed var(--border-subtle, var(--border));
  background: rgba(255, 255, 255, 0.015);
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
}

.profile-page__status[data-v-9243197e],
.profile-page__status--compact[data-v-9243197e] {
  height: 100%;
  gap: 10px;
}

.profile-page__status-tier[data-v-9243197e] {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.profile-page__status-meta[data-v-9243197e],
.profile-page__status-sublabel[data-v-9243197e],
.profile-page__status-volume[data-v-9243197e] {
  font-size: 12px;
  line-height: 1.35;
}

.profile-page__status-bar[data-v-9243197e] {
  height: 7px;
  margin: 2px 0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.profile-page__status-fill[data-v-9243197e] {
  background: linear-gradient(90deg, #2f87d9, #3c9bf4 55%, #7ec2ff);
}

.profile-page__status-perks[data-v-9243197e] {
  gap: 8px;
  margin: 2px 0 0;
  font-size: 12.5px;
}

.profile-page__status-perks li[data-v-9243197e] svg {
  color: #3c9bf4;
}

.profile-page__view-benefits[data-v-9243197e] {
  margin-top: 4px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(60, 155, 244, 0.1);
  border: 1px solid rgba(60, 155, 244, 0.28);
  color: #dceeff;
  font-size: 12.5px;
  font-weight: 600;
}

.profile-page__view-benefits[data-v-9243197e]:hover {
  background: rgba(60, 155, 244, 0.16);
  border-color: rgba(60, 155, 244, 0.45);
}

.profile-page__status-sublabel--top[data-v-9243197e] {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.profile-page__vip-tiers[data-v-9243197e] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 0;
}

.profile-page__vip-tier[data-v-9243197e] {
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle, var(--border));
  gap: 2px;
}

.profile-page__vip-tier--active[data-v-9243197e] {
  background: rgba(60, 155, 244, 0.12);
  border-color: rgba(60, 155, 244, 0.55);
  box-shadow: inset 0 0 0 1px rgba(60, 155, 244, 0.15);
}

.profile-page__vip-tier-name[data-v-9243197e] {
  font-size: 12.5px;
  font-weight: 650;
}

.profile-page__vip-tier-min[data-v-9243197e],
.profile-page__vip-tier-fee[data-v-9243197e] {
  font-size: 11px;
}

/* Security + Notifications: list rows, not nested boxes */
.profile-page__security[data-v-9243197e],
.profile-page__security--flat[data-v-9243197e] {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
}

.profile-page__security-row[data-v-9243197e] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 2px;
  margin: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-top: 1px solid var(--divider, rgba(255, 255, 255, 0.08)) !important;
  box-shadow: none !important;
}

.profile-page__security-row[data-v-9243197e]:first-child {
  border-top: 0 !important;
  padding-top: 2px;
}

.profile-page__security-row[data-v-9243197e]:hover {
  background: transparent !important;
}

.profile-page__security-icon[data-v-9243197e] {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(60, 155, 244, 0.1);
  color: #8ec5f5;
  border: 1px solid rgba(60, 155, 244, 0.18);
}

.profile-page__security-row[data-bw-email-row] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.profile-page__security-row[data-bw-email-row] .profile-page__security-text {
  flex: 1 1 180px;
  min-width: 0;
}

.profile-page__security-row[data-bw-email-row] .profile-page__badge,
.profile-page__security-row[data-bw-email-row] .lk-btn {
  flex-shrink: 0;
}

.profile-page__security-text strong[data-v-9243197e] {
  font-size: 13.5px;
  font-weight: 600;
}

.profile-page__badge[data-v-9243197e] {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.profile-page__notif-list[data-v-9243197e] {
  gap: 0;
}

.profile-page__notif-row[data-v-9243197e] {
  gap: 12px;
  padding: 13px 2px;
}

.profile-page__notif-row + .profile-page__notif-row[data-v-9243197e] {
  border-top: 1px solid var(--divider, rgba(255, 255, 255, 0.08));
}

.profile-page__notif-ico[data-v-9243197e] {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle, var(--border));
}

.profile-page__notif-ico--on[data-v-9243197e] {
  background: rgba(60, 155, 244, 0.12);
  color: #9fd0ff;
  border-color: rgba(60, 155, 244, 0.28);
}

.profile-page__notif-text strong[data-v-9243197e] {
  font-size: 13.5px;
  font-weight: 600;
}

.profile-page__switch[data-v-9243197e] {
  width: 40px;
  height: 22px;
  background: rgba(255, 255, 255, 0.12);
}

.profile-page__switch--on[data-v-9243197e] {
  background: #3c9bf4;
}

.profile-page__switch-thumb[data-v-9243197e],
.profile-page__switch--on .profile-page__switch-thumb[data-v-9243197e] {
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ——— Settings → admin graphite desk (scoped to profile settings only) ——— */
.profile-page--desk .profile-page__settings-stack {
  gap: 36px;
}

.profile-page__promo-lede {
  margin: 0 0 18px;
  max-width: 52ch;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted, rgba(255, 255, 255, 0.48));
}

.profile-page__promo-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  max-width: 520px;
}

.profile-page__promo-field {
  display: grid;
  gap: 7px;
  margin: 0;
  min-width: 0;
}

.profile-page__promo-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, rgba(255, 255, 255, 0.42));
}

.profile-page__promo-field input {
  width: 100%;
  box-sizing: border-box;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: transparent;
  color: var(--text, #f2f2f2);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.profile-page__promo-field input::placeholder {
  color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.profile-page__promo-field input:focus {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.02);
}

.profile-page__promo-submit {
  appearance: none;
  height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: transparent;
  color: var(--text, #f2f2f2);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.profile-page__promo-submit:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.profile-page__promo-submit:disabled {
  opacity: 0.45;
  cursor: wait;
}

.profile-page__promo-msg {
  margin: 12px 0 0;
  max-width: 520px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted, rgba(255, 255, 255, 0.55));
}

.profile-page__promo-msg.is-ok {
  color: rgba(255, 255, 255, 0.85);
}

.profile-page__promo-msg.is-err {
  color: #f5a8a8;
}

@media (max-width: 560px) {
  .profile-page__promo-form {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .profile-page__promo-submit {
    width: 100%;
  }
}

.auth-gate__field em {
  font-style: normal;
  color: var(--text-secondary, #8b949e);
  font-weight: 400;
}

.profile-page--desk .profile-page__settings-profile .bw-desk__pane-head,
.profile-page--desk .profile-page__settings-desk .lk-card__head[data-v-f27b632d],
.profile-page--desk .profile-page__settings-desk .profile-page__card-head[data-v-9243197e] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 4px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  min-height: 0;
}

.profile-page--desk .profile-page__settings-profile .bw-desk__pane-title,
.profile-page--desk .profile-page__settings-desk .lk-card__title[data-v-f27b632d],
.profile-page--desk .profile-page__settings-desk .profile-page__card-title[data-v-9243197e] {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.profile-page--desk .profile-page__settings-bio--ledger {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.profile-page--desk .profile-page__settings-bio--ledger .profile-page__settings-field {
  padding: 18px 16px 18px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  gap: 10px;
}

.profile-page--desk .profile-page__settings-bio--ledger .profile-page__settings-field:not(:first-child) {
  padding-left: 20px;
}

.profile-page--desk .profile-page__settings-bio--ledger .profile-page__settings-field:last-child {
  border-right: 0;
  padding-right: 0;
}

.profile-page--desk .profile-page__settings-bio--ledger .profile-page__settings-label {
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.62);
}

.profile-page--desk .profile-page__settings-bio--ledger .profile-page__settings-value {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.profile-page--desk .profile-page__settings-desk {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  align-items: start;
}

.profile-page--desk .profile-page__settings-desk .lk-card[data-v-f27b632d],
.profile-page--desk .profile-page__settings-desk > .lk-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.profile-page--desk .profile-page__settings-desk .profile-page__security-icon,
.profile-page--desk .profile-page__settings-desk .profile-page__notif-ico {
  display: none !important;
}

.profile-page--desk .profile-page__settings-desk .profile-page__security-row,
.profile-page--desk .profile-page__settings-desk .profile-page__security-row[data-bw-email-row],
.profile-page--desk .profile-page__settings-desk .profile-page__notif-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px 16px;
  margin: 0;
  padding: 16px 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: none !important;
}

.profile-page--desk .profile-page__settings-desk .profile-page__security-row:last-child,
.profile-page--desk .profile-page__settings-desk .profile-page__notif-row:last-child {
  border-bottom: 0 !important;
}

.profile-page--desk .profile-page__settings-desk .profile-page__security-text,
.profile-page--desk .profile-page__settings-desk .profile-page__notif-text {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.profile-page--desk .profile-page__settings-desk .profile-page__security-text strong,
.profile-page--desk .profile-page__settings-desk .profile-page__notif-text strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.profile-page--desk .profile-page__settings-desk .profile-page__security-text span,
.profile-page--desk .profile-page__settings-desk .profile-page__notif-text span {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: #c2c8d0;
}

.profile-page--desk .profile-page__settings-desk .lk-btn--tertiary,
.profile-page--desk .profile-page__settings-desk .lk-btn--small {
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.profile-page--desk .profile-page__settings-desk .lk-btn--tertiary:hover,
.profile-page--desk .profile-page__settings-desk .lk-btn--small:hover {
  border-color: rgba(255, 255, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  filter: none;
}

.profile-page--desk .profile-page__settings-desk .profile-page__switch {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.profile-page--desk .profile-page__settings-desk .profile-page__switch--on {
  background: #3c9bf4;
}

.profile-page--desk .profile-page__settings-desk .profile-page__switch-thumb {
  width: 16px;
  height: 16px;
  box-shadow: none !important;
}

@media (max-width: 900px) {
  .profile-page--desk .profile-page__settings-desk {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .profile-page--desk .profile-page__settings-bio--ledger {
    grid-template-columns: 1fr;
  }

  .profile-page--desk .profile-page__settings-bio--ledger .profile-page__settings-field {
    border-right: 0;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .profile-page--desk .profile-page__settings-bio--ledger .profile-page__settings-field:last-child {
    border-bottom: 0;
  }
}

.profile-page__activity-row {
  padding: 10px 0;
  border-top: 1px solid var(--divider, rgba(255, 255, 255, 0.08));
}

.profile-page__activity-row:first-child {
  border-top: 0;
  padding-top: 0;
}

@media (max-width: 1100px) {
  .bw-desk__top,
  .bw-desk__hero,
  .bw-desk__floor,
  .bw-desk__lower {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bw-desk__pane--status {
    padding-left: 0;
    padding-top: 22px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .bw-desk__rail,
  .bw-desk__rail--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bw-desk__stat:nth-child(2) {
    border-right: 0;
    padding-right: 0;
  }

  .bw-desk__stat:nth-child(3),
  .bw-desk__stat:nth-child(4) {
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .bw-desk__stat:nth-child(3) {
    padding-left: 0;
  }
}

@media (max-width: 900px) {
  .bw-desk__top,
  .bw-desk__hero,
  .bw-desk__floor,
  .bw-desk__lower,
  .bw-desk__rail,
  .bw-desk__rail--compact,
  .profile-page__settings-desk[data-v-9243197e],
  .profile-page__settings-bio[data-v-9243197e] {
    grid-template-columns: 1fr;
  }

  .bw-desk__viz-bar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .bw-desk__stat {
    border-right: 0;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .bw-desk__stat:nth-child(3),
  .bw-desk__stat:nth-child(4) {
    margin-top: 0;
    border-top: 0;
    padding-top: 14px;
  }

  .bw-desk__stat:last-child {
    border-bottom: 0;
  }
}


/* Support chat bubbles styled in matte block below */

/* Hide account avatars in header and profile LK */
.lk-user__avatar,
.lk-user__avatar.bw-lk-avatar,
.profile-page--desk .profile-page__avatar,
.profile-page--desk .profile-page__avatar.bw-lk-avatar,
[data-bw-profile] .profile-page__avatar,
[data-bw-profile] .profile-page__avatar.bw-lk-avatar {
  display: none !important;
}

.profile-page__identity-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.profile-page__meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 16px;
  line-height: 1;
}

.profile-page__status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.profile-page__status-item {
  appearance: none;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: default;
}

button.profile-page__status-item {
  cursor: pointer;
}

button.profile-page__status-item:hover .profile-page__status-v {
  color: #ffffff;
}

button.profile-page__status-item--ok:hover .profile-page__status-v {
  color: #62e078;
}

button.profile-page__status-item--off:hover .profile-page__status-v {
  color: #ff6b6b;
}

.profile-page__status-k {
  color: rgba(255, 255, 255, 0.55);
  margin-right: 5px;
}

.profile-page__status-v {
  color: rgba(255, 255, 255, 0.82);
}

.profile-page__status-item--ok .profile-page__status-v {
  color: #41cc59;
}

.profile-page__status-item--off .profile-page__status-v {
  color: #f04444;
}

.profile-page__status-item--pending .profile-page__status-v {
  color: rgba(220, 196, 140, 0.75);
}

.profile-page__status-sep {
  color: rgba(255, 255, 255, 0.35);
  user-select: none;
}

.profile-page__hash {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-muted, var(--text-secondary));
  white-space: nowrap;
}

.profile-page__hash-label {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

.bw-lk-logout {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  color: #c2c8d0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.bw-lk-logout:hover {
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.bw-lk-logout:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.28);
  outline-offset: 2px;
}

.bw-lk-desk {
  display: grid;
  gap: 16px;
  margin: 0 0 4px;
}

.bw-lk-desk__card {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
}

.bw-lk-desk__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bw-lk-desk__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.bw-lk-desk__meta dt {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
}

.bw-lk-desk__meta dd {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 650;
  color: var(--text-primary);
}

.bw-lk-pos {
  overflow-x: auto;
}

.bw-lk-pos__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.bw-lk-pos__table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  font-weight: 600;
  padding: 0 10px 10px 0;
}

.bw-lk-pos__table td {
  padding: 10px 10px 10px 0;
  border-top: 1px solid var(--divider);
  color: var(--text-secondary);
}

.bw-lk-pos__link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
}

.bw-lk-pos__link:hover {
  color: var(--primary, #3c9bf4);
}

.bw-lk-pos__row--empty td {
  color: var(--text-tertiary);
  font-style: italic;
}

.bw-lk-inline-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.profile-page__panel[hidden],
[data-bw-profile-panel][hidden] {
  display: none !important;
}

/* Profile tab panels — original class names + layout when shell markup was missing */
.profile-page__balance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.profile-page__pos-overview {
  padding: 8px 4px 4px;
}

/* Same 7-col grid for head + rows (overrides Vue scoped flex on .pos-row) */
.profile-page--desk .profile-page__positions-head,
.profile-page--desk .profile-page__pos-row,
.profile-page--desk .profile-page__positions-head[data-v-9243197e],
.profile-page--desk .profile-page__pos-row[data-v-9243197e] {
  display: grid !important;
  grid-template-columns:
    minmax(160px, 2.2fr)
    88px
    88px
    72px
    88px
    88px
    84px;
  gap: 10px 12px;
  padding: 12px 14px;
  align-items: center;
  font-size: 13px;
  flex-wrap: unset;
  width: 100%;
  box-sizing: border-box;
}

.profile-page--desk .profile-page__positions-head,
.profile-page--desk .profile-page__positions-head[data-v-9243197e] {
  color: var(--text-tertiary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.profile-page--desk .profile-page__pos-row {
  border-top: 1px solid var(--divider);
}

.profile-page--desk .profile-page__positions-head > span,
.profile-page--desk .profile-page__pos-row > div {
  min-width: 0;
}

/* Market — left */
.profile-page--desk .profile-page__positions-head > span:nth-child(1),
.profile-page--desk .profile-page__pos-row > div:nth-child(1) {
  justify-self: stretch;
  text-align: left;
}

.profile-page--desk .profile-page__pos-market,
.profile-page--desk .profile-page__pos-market[data-v-9243197e] {
  min-width: 0;
  width: 100%;
}

.profile-page--desk .profile-page__pos-market--link,
.profile-page--desk .profile-page__pos-market--link[data-v-9243197e] {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.profile-page--desk .profile-page__pos-market-text,
.profile-page--desk .profile-page__pos-market-text[data-v-9243197e] {
  display: block !important;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #f5f5f5;
  line-height: 1.25;
}

.profile-page--desk .profile-page__pos-market--link:hover .profile-page__pos-market-text {
  color: #ffffff;
}

/* Outcome — center under label */
.profile-page--desk .profile-page__positions-head > span:nth-child(2),
.profile-page--desk .profile-page__pos-row > div:nth-child(2) {
  justify-self: center;
  text-align: center;
}

/* Shares / Avg / Payout / Stake — right-aligned under headers */
.profile-page--desk .profile-page__positions-head > span:nth-child(n + 3):nth-child(-n + 6),
.profile-page--desk .profile-page__pos-num {
  justify-self: stretch;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Status — right */
.profile-page--desk .profile-page__positions-head > span:nth-child(7),
.profile-page--desk .profile-page__pos-actions {
  justify-self: end;
  text-align: right;
}

.profile-page--desk .profile-page__pos-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.profile-page__pos-empty,
.profile-page__tx-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
}

.profile-page__orders {
  margin: 0 0 16px;
  padding: 14px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.profile-page__order-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto auto;
  gap: 10px 14px;
  align-items: center;
  padding: 10px 4px;
  border-radius: 10px;
}
.profile-page__order-row:hover {
  background: rgba(255, 255, 255, 0.03);
}
.profile-page__order-market {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text-primary, #f5f5f5);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.profile-page__order-market > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-page__order-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-page--desk .profile-page__pos-image,
.profile-page--desk .profile-page__pos-image[data-v-9243197e] {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px;
  min-height: 38px;
  border-radius: 8px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  display: block !important;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-page--desk .profile-page__pos-image--placeholder,
.profile-page--desk .profile-page__pos-image--placeholder[data-v-9243197e] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 700;
  color: rgba(245, 245, 245, 0.5);
  letter-spacing: -0.02em;
}

.profile-page__order-icon--letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 700;
  color: rgba(245, 245, 245, 0.55);
  flex-shrink: 0;
}

.profile-page__order-market:hover { text-decoration: underline; }
.profile-page__order-side {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.profile-page__order-cancel {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  color: rgba(245, 245, 245, 0.72);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.profile-page__order-cancel:hover {
  color: #ff6b7a;
  background: rgba(255, 107, 122, 0.08);
  border-color: rgba(255, 107, 122, 0.35);
}
.profile-page__order-cancel:focus-visible {
  outline: none;
  border-color: rgba(255, 107, 122, 0.45);
  color: #ff6b7a;
}

/* History — aligned 5-col ledger */
.bw-tx {
  width: 100%;
  max-width: none;
  padding: 0;
}

.bw-tx__head,
.bw-tx__row {
  display: grid;
  grid-template-columns:
    minmax(88px, 0.9fr)
    minmax(140px, 1.5fr)
    minmax(120px, 1.1fr)
    minmax(88px, 0.9fr);
  column-gap: 24px;
  padding: 12px 0;
  align-items: center;
  font-size: 13px;
}

.bw-tx__head {
  padding-bottom: 10px;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.62));
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.bw-tx__head > span {
  min-width: 0;
}

.bw-tx__head > span:last-child {
  text-align: right;
}

.bw-tx__row {
  border-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary, #ffffff);
}

.bw-tx__row:last-child {
  border-bottom: 0;
}

.bw-tx__type,
.bw-tx__detail,
.bw-tx__date,
.bw-tx__amt {
  min-width: 0;
}

.bw-tx__type {
  font-weight: 600;
  color: var(--text-secondary, #c2c8d0);
}

.bw-tx__detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text-primary, #ffffff);
}

.bw-tx__detail > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bw-tx__coin {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.bw-tx__event {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.bw-tx__letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 700;
  color: rgba(245, 245, 245, 0.55);
  flex-shrink: 0;
}

.bw-tx__date {
  color: var(--text-tertiary, rgba(245, 245, 245, 0.38));
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bw-tx__hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bw-tx__tx {
  color: var(--text-secondary, #8b949e);
  text-decoration: none;
}

.bw-tx__tx:hover {
  color: var(--text-primary, #f5f5f5);
}

.bw-tx__muted {
  color: var(--text-tertiary, rgba(245, 245, 245, 0.38));
}

.bw-tx__link {
  color: inherit;
  text-decoration: none;
}

.bw-tx__link:hover {
  color: #fff;
}

.bw-tx__amt {
  text-align: right;
  white-space: nowrap;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary, #8b949e);
}

.bw-tx__amt.is-in {
  color: var(--text-green, #86efac);
}

.bw-tx__amt.is-out {
  color: var(--text-red, #fca5a5);
}

.profile-page__tx-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 8px;
}

.profile-page__tx-head--detail,
.profile-page__tx-row {
  display: grid;
  grid-template-columns: 0.7fr 1.6fr 0.8fr 0.9fr 0.9fr;
  gap: 12px;
  padding: 12px 18px;
  align-items: center;
  font-size: 13px;
}

.profile-page__tx-head--detail {
  color: var(--text-tertiary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  border-bottom: 1px solid var(--divider);
}

.profile-page__tx-row {
  border-top: 1px solid var(--divider);
}

/* settings desk styles live with overview polish block above */

.profile-page__perf-activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.profile-page__activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-page__activity-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.profile-page__activity-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-page__activity-sub {
  font-size: 12px;
  color: var(--text-tertiary);
}

.profile-page__activity-amount {
  font-size: 13px;
  font-weight: 650;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .profile-page--desk .profile-page__positions-head,
  .profile-page--desk .profile-page__pos-row,
  .profile-page--desk .profile-page__positions-head[data-v-9243197e],
  .profile-page--desk .profile-page__pos-row[data-v-9243197e],
  .profile-page__tx-head--detail,
  .profile-page__tx-row {
    grid-template-columns: minmax(120px, 1.4fr) 72px 72px !important;
  }

  .profile-page--desk .profile-page__positions-head span:nth-child(n + 4),
  .profile-page--desk .profile-page__pos-row > :nth-child(n + 4),
  .profile-page__tx-head--detail span:nth-child(n + 4),
  .profile-page__tx-row > :nth-child(n + 4) {
    display: none;
  }

  .bw-tx__head,
  .bw-tx__row {
    grid-template-columns: 72px minmax(0, 1fr) 84px;
    column-gap: 16px;
  }

  .bw-tx__head span:nth-child(3),
  .bw-tx__row > .bw-tx__date {
    display: none;
  }

  .bw-tx__head > span:nth-child(4),
  .bw-tx__amt {
    text-align: right;
  }
}

.bw-sec-form {
  display: grid;
  gap: 14px;
}

.bw-sec-form__lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.bw-sec-form__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

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

.bw-sec-form__control {
  position: relative;
  display: flex;
  align-items: center;
}

.bw-sec-form__input {
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  margin: 0;
  padding: 11px 44px 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.bw-sec-form__input--code {
  padding-right: 12px;
  letter-spacing: 0.28em;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.bw-sec-form__input::placeholder {
  color: var(--text-tertiary);
  letter-spacing: normal;
}

.bw-sec-form__input:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.bw-sec-form__input:focus {
  border-color: rgba(60, 155, 244, 0.75);
  box-shadow: 0 0 0 3px rgba(60, 155, 244, 0.14);
}

.bw-sec-form__reveal {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.bw-sec-form__reveal:hover {
  color: var(--text-primary);
  background: var(--overlay-hover, rgba(255, 255, 255, 0.06));
}

.bw-sec-form__hint {
  margin: -2px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-tertiary);
}

.bw-sec-form__secret-wrap {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.bw-sec-form__qr {
  display: grid;
  place-items: center;
  margin: 0 auto 4px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  width: fit-content;
}

.bw-sec-form__qr img {
  display: block;
  width: 168px;
  height: 168px;
  border-radius: 8px;
  background: transparent;
}

.bw-sec-form__secret-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bw-sec-form__secret {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow-x: auto;
  word-break: normal;
  user-select: all;
  color: var(--text-primary);
  line-height: 1.2;
}

.bw-sec-form__copy {
  appearance: none;
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary, #8b949e);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.bw-sec-form__copy:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
}

.bw-sec-form__link {
  font-size: 13px;
  font-weight: 500;
  color: #3c9bf4;
  text-decoration: none;
}

.bw-sec-form__link:hover {
  text-decoration: underline;
}

.bw-sec-form__error {
  margin: 0;
  min-height: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-red, #f87171);
}

.bw-sec-form__error[hidden] {
  display: none !important;
}

.bw-sec-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--divider, rgba(255, 255, 255, 0.08));
}

.bw-sec-form__actions--end {
  border-top: 0;
  padding-top: 0;
}

.bw-sec-form__actions .lk-btn--medium {
  min-width: 112px;
}

.lk-modal__box--sm .bw-sec-form {
  gap: 12px;
}

.bw-sec-form__input--select {
  padding-right: 36px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa3af' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

/* Dark custom select (KYC country etc.) — portal menu escapes modal overflow */
.bw-pretty-select {
  position: relative;
  display: block;
  width: 100%;
  z-index: 1;
}

.bw-pretty-select.is-open {
  z-index: 40;
}

.bw-pretty-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.bw-pretty-select__btn {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 0 36px 0 12px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa3af' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: var(--text-primary, #f5f5f5);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.bw-pretty-select__btn-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 16px;
}

.bw-pretty-select__btn-flag[hidden] {
  display: none !important;
}

.bw-pretty-select__btn.is-placeholder .bw-pretty-select__value,
.bw-pretty-select__value.is-placeholder {
  color: var(--text-tertiary, #8b949e);
}

.bw-pretty-select__btn:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.bw-pretty-select.is-open .bw-pretty-select__btn,
.bw-pretty-select__btn:focus {
  outline: none;
  border-color: rgba(60, 155, 244, 0.75);
  box-shadow: 0 0 0 3px rgba(60, 155, 244, 0.14);
}

.bw-pretty-select__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bw-pretty-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  max-height: min(260px, 42vh);
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #151718;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 20px 48px rgba(0, 0, 0, 0.55);
}

.bw-pretty-select__menu--portal {
  position: fixed;
  right: auto;
}

.bw-pretty-select__menu[hidden] {
  display: none !important;
}

.bw-pretty-select__search {
  flex-shrink: 0;
  padding: 8px 8px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #151718;
}

.bw-pretty-select__search-input {
  appearance: none;
  width: 100%;
  height: 34px;
  margin: 0;
  padding: 0 10px 0 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa3af' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
  color: #f5f5f5;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.bw-pretty-select__search-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.bw-pretty-select__search-input:focus {
  border-color: rgba(60, 155, 244, 0.65);
  box-shadow: 0 0 0 2px rgba(60, 155, 244, 0.12);
}

.bw-pretty-select__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.04);
}

.bw-pretty-select__list::-webkit-scrollbar {
  width: 7px;
}

.bw-pretty-select__list::-webkit-scrollbar-track {
  margin: 4px 2px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.bw-pretty-select__list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.bw-pretty-select__list::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.bw-pretty-select__flag {
  display: block;
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.bw-pretty-select__flag--globe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 15px;
  font-size: 13px;
  line-height: 1;
  box-shadow: none;
  background: transparent;
}

.bw-pretty-select__opt {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d0d4da;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.bw-pretty-select__opt-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bw-pretty-select__opt:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.bw-pretty-select__opt.is-selected {
  background: rgba(60, 155, 244, 0.16);
  color: #ffffff;
}

.bw-pretty-select__opt.is-disabled,
.bw-pretty-select__opt:disabled {
  opacity: 0.45;
  cursor: default;
}

.bw-pretty-select__empty {
  padding: 16px 12px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12.5px;
  text-align: center;
}

html.pm-shell--light .bw-pretty-select__btn {
  background-color: #ffffff;
  border-color: rgba(18, 20, 26, 0.12);
  color: #12141a;
}

html.pm-shell--light .bw-pretty-select__menu {
  background: #ffffff;
  border-color: rgba(18, 20, 26, 0.1);
  box-shadow: 0 16px 40px rgba(18, 20, 26, 0.16);
}

html.pm-shell--light .bw-pretty-select__search {
  background: #ffffff;
  border-bottom-color: rgba(18, 20, 26, 0.08);
}

html.pm-shell--light .bw-pretty-select__search-input {
  background-color: #f4f5f7;
  border-color: rgba(18, 20, 26, 0.1);
  color: #12141a;
}

html.pm-shell--light .bw-pretty-select__search-input::placeholder {
  color: rgba(18, 20, 26, 0.4);
}

html.pm-shell--light .bw-pretty-select__list {
  scrollbar-color: rgba(18, 20, 26, 0.28) rgba(18, 20, 26, 0.06);
}

html.pm-shell--light .bw-pretty-select__opt {
  color: rgba(18, 20, 26, 0.78);
}

html.pm-shell--light .bw-pretty-select__opt:hover:not(:disabled) {
  background: rgba(18, 20, 26, 0.05);
  color: #12141a;
}

html.pm-shell--light .bw-pretty-select__opt.is-selected {
  background: rgba(60, 155, 244, 0.12);
  color: #12141a;
}

html.pm-shell--light .bw-pretty-select__empty {
  color: rgba(18, 20, 26, 0.45);
}

/* ——— KYC modal: horizontal desk layout ——— */
.lk-modal__box--lg:has(.bw-kyc) {
  max-width: 960px;
}

.lk-modal__box--lg:has(.bw-kyc) .lk-modal__head {
  padding: 16px 22px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.lk-modal__box--lg:has(.bw-kyc) .lk-modal__title {
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.lk-modal__box--lg:has(.bw-kyc) .lk-modal__meta {
  margin-top: 4px;
  font-size: 12.5px;
  color: #8b949e;
}

.lk-modal__box--lg:has(.bw-kyc) .lk-modal__body {
  padding: 16px 22px 18px;
}

.bw-kyc {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
}

.bw-kyc__shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px 22px;
  align-items: start;
}

.bw-kyc__pane {
  min-width: 0;
}

.bw-kyc__pane--docs {
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.bw-kyc__section {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: #8b949e;
  line-height: 1.2;
}

.bw-kyc__docs-hint {
  margin: -4px 0 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #8b949e;
}

.bw-kyc__lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #8b949e;
}

.bw-kyc__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.bw-kyc__span-2 {
  grid-column: 1 / -1;
}

.bw-kyc .bw-sec-form__field {
  gap: 5px;
}

.bw-kyc .bw-sec-form__label {
  font-size: 11.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: #8b949e;
  text-transform: none;
}

.bw-kyc .bw-sec-form__input {
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
}

.bw-kyc .bw-sec-form__input:focus {
  border-color: rgba(47, 143, 237, 0.45);
  outline: none;
  box-shadow: none;
}

.bw-kyc__uploads {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.bw-kyc__upload {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.bw-kyc__upload:hover,
.bw-kyc__upload.is-drag {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.bw-kyc__upload.is-filled {
  border-color: rgba(47, 143, 237, 0.35);
  background: rgba(47, 143, 237, 0.06);
}

.bw-kyc__upload-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: #8b949e;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bw-kyc__upload.is-filled .bw-kyc__upload-ico {
  color: #f5f5f5;
  background: rgba(47, 143, 237, 0.14);
  border-color: transparent;
}

.bw-kyc__upload-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.bw-kyc__upload-title {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #f5f5f5;
}

.bw-kyc__upload-hint,
.bw-kyc__upload-file {
  font-size: 11.5px;
  line-height: 1.3;
  color: #8b949e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bw-kyc__upload.is-filled .bw-kyc__upload-file {
  color: #9fd0ff;
}

.bw-kyc__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: end;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.bw-kyc__foot-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.bw-kyc__secured {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.bw-kyc__sumsub-mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 3px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bw-kyc__sumsub {
  width: 20px;
  height: 22px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.bw-kyc__legal {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  color: #8b949e;
  white-space: nowrap;
  min-width: 0;
}

.bw-kyc__actions {
  margin: 0;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.bw-kyc .bw-sec-form__error {
  margin: 0;
}

.bw-kyc__status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: none;
}

.bw-kyc__status-badge--pending {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.bw-kyc__status-badge--ok {
  background: rgba(46, 229, 157, 0.12);
  color: #2ee59d;
}

.bw-kyc__summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.bw-kyc__summary > div {
  display: grid;
  gap: 3px;
  align-items: start;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bw-kyc__summary dt {
  margin: 0;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #8b949e;
}

.bw-kyc__summary dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #f5f5f5;
}

.bw-kyc--status {
  gap: 14px;
}

@media (max-width: 820px) {
  .bw-kyc__shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bw-kyc__pane--docs {
    padding-left: 0;
    border-left: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .bw-kyc__uploads {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bw-kyc__upload {
    grid-template-columns: 1fr;
    justify-items: start;
    min-height: 0;
    padding: 12px;
    align-content: start;
  }
}

@media (max-width: 560px) {
  .bw-kyc__grid,
  .bw-kyc__uploads,
  .bw-kyc__summary {
    grid-template-columns: 1fr;
  }

  .bw-kyc__foot {
    grid-template-columns: 1fr;
  }

  .bw-kyc__legal {
    white-space: normal;
  }

  .bw-kyc__actions {
    width: 100%;
  }

  .bw-kyc__actions .lk-btn {
    flex: 1 1 auto;
  }
}

/* Legacy selectors kept inert (doc-type removed) */
.bw-kyc__doc-types,
.bw-kyc__doc-type,
.bw-kyc__block,
.bw-kyc__block-label,
.bw-kyc__upload-btn {
  display: none !important;
}

.profile-page__notif-row[data-bw-notify] {
  cursor: pointer;
}

.profile-page__notif-row[data-bw-notify]:focus-visible {
  outline: 2px solid rgba(60, 155, 244, 0.55);
  outline-offset: 2px;
}

/* Deposit / Withdraw desk modals */
.bw-pay {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: "Instrument Sans", var(--font-family, system-ui);
}

.bw-pay__ledger {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bw-pay__ledger-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.45));
}

.bw-pay__ledger-row strong {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.bw-pay__block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bw-pay__label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.42));
}

.bw-pay__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bw-pay__chip {
  appearance: none;
  min-width: 64px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary, rgba(255, 255, 255, 0.65));
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.bw-pay__chip--net {
  min-width: 0;
}

.bw-pay__chips--methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.bw-pay__chips--methods .bw-pay__chip {
  min-width: 0;
  width: 100%;
  justify-content: flex-start;
  padding: 0 12px;
  font-size: 12px;
}

.bw-pay__chip--method {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 10px;
}

.bw-pay__chip-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  border-radius: 50%;
}

.bw-pay__chip--method .bw-pay__chip-icon {
  border-radius: 0;
}

.bw-pay__unit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bw-pay__unit .bw-pay__chip-icon {
  width: 16px;
  height: 16px;
  border-radius: 0;
}

.bw-pay__chip:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.bw-pay__chip.is-active {
  color: #fff;
  background: rgba(60, 155, 244, 0.14);
  border-color: rgba(60, 155, 244, 0.45);
}

.bw-pay__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bw-pay__amount {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.bw-pay__amount:focus-within {
  border-color: rgba(60, 155, 244, 0.55);
  box-shadow: 0 0 0 3px rgba(60, 155, 244, 0.12);
}

.bw-pay__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  outline: none;
}

.bw-pay__input[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.bw-pay__input[type='number']::-webkit-outer-spin-button,
.bw-pay__input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bw-pay__input::placeholder {
  color: rgba(255, 255, 255, 0.28);
  font-weight: 500;
}

.bw-pay__unit {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.45));
}

.bw-pay__max {
  appearance: none;
  flex-shrink: 0;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(60, 155, 244, 0.16);
  color: #9fd0ff;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.bw-pay__max:hover {
  background: rgba(60, 155, 244, 0.24);
  color: #fff;
}

.bw-pay__presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: -6px;
}

.bw-pay__preset {
  appearance: none;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary, rgba(255, 255, 255, 0.6));
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.bw-pay__preset:hover,
.bw-pay__preset.is-active {
  color: #fff;
  border-color: rgba(60, 155, 244, 0.4);
  background: rgba(60, 155, 244, 0.1);
}

.bw-pay__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bw-pay__fact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.bw-pay__fact span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.4));
}

.bw-pay__fact em {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.bw-pay__status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(60, 155, 244, 0.08);
  border: 1px solid rgba(60, 155, 244, 0.22);
}

.bw-pay__status.is-ok {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.35);
}

.bw-pay__status.is-ok .bw-pay__status-dot {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.bw-pay__status.is-err {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
}

.bw-pay__status.is-err .bw-pay__status-dot {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}

.bw-pay__status-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #3c9bf4;
  box-shadow: 0 0 0 4px rgba(60, 155, 244, 0.16);
  flex-shrink: 0;
}

.bw-wd-result {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--overlay-scrim, rgba(9, 10, 11, 0.72));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.bw-wd-result__card {
  width: min(400px, 100%);
  padding: 28px 24px 24px;
  border-radius: 24px;
  background: var(--surface-2, #161617);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  box-shadow: var(--shadow-pop, 0 1px 2px rgba(0, 0, 0, 0.2), 0 16px 48px rgba(0, 0, 0, 0.45));
  color: var(--text-primary, #f5f5f5);
  text-align: center;
  display: grid;
  gap: 14px;
  justify-items: stretch;
  animation: bwWdIn 0.22s ease both;
}

.bw-wd-result__icon {
  width: 64px;
  height: 64px;
  margin: 2px auto 4px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  animation: bwWdIconIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bw-wd-result__svg {
  width: 64px;
  height: 64px;
  display: block;
  overflow: visible;
}

.bw-wd-result__disc {
  stroke: none;
}

.bw-wd-result__mark {
  fill: none;
  stroke: #fff;
  stroke-width: 3.4;
}

.bw-wd-result__dot {
  fill: #fff;
  stroke: none;
}

.bw-wd-result.is-ok .bw-wd-result__disc {
  fill: #22c55e;
}

.bw-wd-result.is-err .bw-wd-result__disc {
  fill: #ef4444;
}

@keyframes bwWdIconIn {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.bw-wd-result__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 130%;
  color: var(--text-primary, #f5f5f5);
}

.bw-wd-result__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary, rgba(255, 255, 255, 0.55));
  white-space: pre-wrap;
}

.bw-wd-result__btn {
  appearance: none;
  width: 100%;
  height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 32px;
  background: var(--primary, #3c9bf4);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.bw-wd-result__btn:hover {
  background: color-mix(in srgb, var(--primary, #3c9bf4) 88%, #fff);
}

.bw-wd-result__btn:active {
  transform: scale(0.99);
}

@keyframes bwWdIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* Trade placed success */
.bw-trade-ok {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--overlay-scrim, rgba(9, 10, 11, 0.72));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.bw-trade-ok__card {
  width: min(420px, 100%);
  padding: 28px 24px 22px;
  border-radius: 20px;
  background: var(--surface-2, #161617);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  color: var(--text-primary, #f5f5f5);
  display: grid;
  gap: 12px;
  justify-items: stretch;
  animation: bwWdIn 0.22s ease both;
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
}

.bw-trade-ok__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 2px;
  display: grid;
  place-items: center;
  animation: bwWdIconIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bw-trade-ok__svg {
  width: 56px;
  height: 56px;
  display: block;
}

.bw-trade-ok__disc {
  fill: #22c55e;
}

.bw-trade-ok__mark {
  fill: none;
  stroke: #fff;
  stroke-width: 3.4;
}

.bw-trade-ok__title {
  margin: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.bw-trade-ok__lede {
  margin: -4px 0 4px;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary, rgba(255, 255, 255, 0.55));
}

.bw-trade-ok__meta {
  margin: 4px 0 0;
  padding: 4px 0;
  border-top: 1px solid var(--divider, rgba(255, 255, 255, 0.08));
  border-bottom: 1px solid var(--divider, rgba(255, 255, 255, 0.08));
  display: grid;
  gap: 0;
}

.bw-trade-ok__row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: baseline;
  padding: 11px 2px;
  border-bottom: 1px solid var(--divider, rgba(255, 255, 255, 0.06));
}

.bw-trade-ok__row:last-child {
  border-bottom: 0;
}

.bw-trade-ok__row dt {
  margin: 0;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.02em;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.42));
}

.bw-trade-ok__row dd {
  margin: 0;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary, #f5f5f5);
  word-break: break-word;
}

.bw-trade-ok__side {
  display: inline-block;
  font-weight: 700;
}

.bw-trade-ok__side--yes {
  color: #41cc59;
}

.bw-trade-ok__side--no {
  color: #ff5d47;
}

.bw-trade-ok__actions {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.bw-trade-ok__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.bw-trade-ok__btn--primary {
  background: var(--primary, #3c9bf4);
  color: #fff;
}

.bw-trade-ok__btn--primary:hover {
  background: color-mix(in srgb, var(--primary, #3c9bf4) 88%, #fff);
}

.bw-trade-ok__btn--ghost {
  background: transparent;
  border-color: var(--border, rgba(255, 255, 255, 0.12));
  color: var(--text-primary, #f5f5f5);
}

.bw-trade-ok__btn--ghost:hover {
  border-color: var(--border-strong, rgba(255, 255, 255, 0.2));
  background: var(--tertiary, rgba(255, 255, 255, 0.04));
}

.bw-trade-ok__btn:active {
  transform: scale(0.99);
}

html.pm-shell--light .bw-trade-ok__card {
  background: #ffffff;
  border-color: rgba(18, 20, 26, 0.1);
  color: #12141a;
  box-shadow: 0 16px 40px rgba(18, 20, 26, 0.12);
}

html.pm-shell--light .bw-trade-ok__lede,
html.pm-shell--light .bw-trade-ok__row dt {
  color: #5c6370;
}

html.pm-shell--light .bw-trade-ok__row dd {
  color: #12141a;
}

html.pm-shell--light .bw-trade-ok__meta,
html.pm-shell--light .bw-trade-ok__row {
  border-color: rgba(18, 20, 26, 0.08);
}

html.pm-shell--light .bw-trade-ok__btn--ghost {
  border-color: rgba(18, 20, 26, 0.12);
  color: #12141a;
}

.bw-pay__status p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary, rgba(255, 255, 255, 0.7));
}

.bw-pay__invoice {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
}

.bw-pay__invoice[hidden] {
  display: none;
}

.bw-pay__invoice-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.bw-pay__invoice-row strong,
.bw-pay__invoice-row code {
  color: #fff;
  font-size: 12px;
  text-align: right;
  word-break: break-all;
}

.bw-pay__addr {
  cursor: pointer;
}

.bw-pay__link {
  color: #3c9bf4;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.bw-pay__link:hover {
  text-decoration: underline;
}

.bw-pay__err {
  margin: 0;
  padding: 10px 12px;
  border-radius: 0;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  font-size: 13px;
  line-height: 1.4;
}

.bw-pay__err[hidden] {
  display: none !important;
}

.bw-pay--deposit {
  display: grid;
  gap: 18px;
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
}

.bw-pay__amount--deposit {
  border-radius: 0;
  padding-left: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.14);
}

.bw-pay__amount--deposit:focus-within {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.bw-pay__currency {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}

.bw-pay__hint {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted, rgba(255, 255, 255, 0.48));
  line-height: 1.35;
}

.bw-pay--deposit .bw-pay__actions .lk-btn--primary {
  background: #fff;
  color: #0b0b0c;
  border-color: #fff;
}

.bw-pay--deposit .bw-pay__actions .lk-btn--primary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.92);
}

.bw-pay__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}

.bw-pay__actions .lk-btn:disabled,
.bw-pay__actions .lk-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* —— Deposit pay step (address + QR) —— */
.bw-dep {
  display: grid;
  gap: 14px;
  color: var(--text, #f2f2f2);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
}

.bw-dep__asset {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bw-dep__asset img,
.bw-dep__asset .bw-pay__chip-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  border-radius: 0;
}

.bw-dep__asset-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  line-height: 1.2;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text, #f2f2f2);
}

.bw-dep__asset-meta strong,
.bw-dep__asset-meta span {
  margin: 0;
  font: inherit;
  font-weight: inherit;
  color: inherit;
  white-space: nowrap;
}

.bw-dep__asset-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.bw-dep__pay {
  display: grid;
  gap: 0;
  margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bw-dep__exact,
.bw-dep__addr-block {
  display: grid;
  gap: 8px;
  padding: 14px 0;
}

.bw-dep__exact + .bw-dep__addr-block {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bw-dep__label,
.bw-dep__lbl {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, rgba(255, 255, 255, 0.48));
}

.bw-dep__exact-row,
.bw-dep__addr-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.bw-dep__exact-amt {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text, #f2f2f2);
  word-break: break-all;
  line-height: 1.25;
}

.bw-dep__exact-amt span {
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  margin-left: 4px;
}

.bw-dep__exact-usd {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted, rgba(255, 255, 255, 0.5));
}

.bw-dep__head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.bw-dep__ico {
  width: 36px;
  height: 36px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.bw-dep__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text, #f2f2f2);
  line-height: 1.2;
}

.bw-dep__sub {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, rgba(255, 255, 255, 0.48));
}

.bw-dep__qr {
  width: min(168px, 52vw);
  aspect-ratio: 1;
  margin: 2px auto 0;
  display: grid;
  place-items: center;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #fff;
  padding: 8px;
  box-sizing: border-box;
}

.bw-dep__qr img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
}

.bw-dep__lbl {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, rgba(255, 255, 255, 0.45));
}

.bw-dep__addr {
  margin: 0;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text, #f2f2f2);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.45;
  word-break: break-all;
}

.bw-dep__copy {
  appearance: none;
  align-self: stretch;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: transparent;
  color: var(--text, #f2f2f2);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 12px;
  min-height: 36px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.bw-dep__copy:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.bw-dep__copy:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bw-dep__note {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted, rgba(255, 255, 255, 0.55));
  font-size: 13px;
  line-height: 1.5;
}

.bw-dep__note strong {
  color: var(--text, #f2f2f2);
  font-weight: 600;
}

.bw-dep__status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
  color: var(--muted, rgba(255, 255, 255, 0.55));
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.bw-dep__status p {
  margin: 0;
}

.bw-dep__status.is-ok {
  border-top-color: rgba(52, 211, 153, 0.28);
  color: #ecfdf5;
}

.bw-dep__status.is-ok [data-bw-dep-status-text] {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #6ee7b7;
}

.bw-dep__status.is-err {
  border-top-color: rgba(248, 113, 113, 0.28);
  color: #f5a8a8;
}

.bw-dep__ind {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  position: relative;
  display: grid;
  place-items: center;
}

.bw-dep__wait {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  animation: bw-dep-spin 0.7s linear infinite;
}

.bw-dep__check {
  width: 22px;
  height: 22px;
  display: block;
}

.bw-dep__check circle {
  fill: rgba(16, 185, 129, 0.14);
  stroke: rgba(52, 211, 153, 0.85);
  stroke-width: 1.25;
}

.bw-dep__check path {
  fill: none;
  stroke: #34d399;
  stroke-width: 2;
}

.bw-dep__status.is-err .bw-dep__wait {
  animation: none;
  border-color: rgba(232, 136, 136, 0.35);
  border-top-color: #e88;
}

.bw-dep__copy.is-copied {
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}

@keyframes bw-dep-spin {
  to { transform: rotate(360deg); }
}


.bw-dep__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.bw-dep__link {
  color: var(--text, #f2f2f2);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.28);
}

.bw-dep__link:hover {
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

.bw-dep__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}


@media (max-width: 640px) {
  .bw-pay__facts {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bw-pay__presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bw-pay__actions,
  .bw-dep__actions {
    flex-direction: column-reverse;
  }

  .bw-pay__actions .lk-btn,
  .bw-dep__actions .lk-btn {
    width: 100%;
  }

  .bw-dep__exact-row,
  .bw-dep__addr-row {
    grid-template-columns: 1fr;
  }

  .bw-dep__copy {
    width: 100%;
    min-height: 40px;
  }
}

@media (max-width: 640px) {
  .bw-lk-desk__meta {
    grid-template-columns: 1fr;
  }
}

/* How it works — outline ! mark (blue on dark, ink on light) */
.lk-header__how {
  color: var(--primary, #3c9bf4);
}

.lk-header__how .lk-header__how-icon,
.lk-header__how svg {
  flex-shrink: 0;
  display: block;
  color: inherit;
}

.lk-header__how .lk-header__how-text {
  color: var(--text-primary, #f5f5f5);
}

html.pm-shell--light .lk-header__how {
  color: var(--primary, #2f8fed);
}

html.pm-shell--light .lk-header__how .lk-header__how-text {
  color: var(--text-primary, #12141a);
}

/* Header menu panel extras (scoped CSS lives in HeaderMenu-*.css) */
.hmenu__panel[data-v-33ad9f9e],
.hmenu .hmenu__panel {
  box-shadow: none !important;
}

.hmenu__panel[hidden] {
  display: none !important;
}

.hmenu__flag-img {
  display: block;
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
}

.hmenu__langlist[hidden] {
  display: none !important;
}

/* ——— How it works quiz ——— */
.lk-modal__box--hiw {
  max-width: min(400px, calc(100vw - 24px));
  width: 100%;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.lk-modal__box--hiw .lk-modal__body {
  padding: 0;
  overflow: hidden;
}

.hiw-quiz {
  position: relative;
  background: #121314;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  font-family: "Instrument Sans", var(--font-family, system-ui);
}

.hiw-quiz__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(9, 10, 11, 0.55);
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.hiw-quiz__step {
  display: flex;
  flex-direction: column;
}

.hiw-quiz__step[hidden] {
  display: none !important;
}

.hiw-quiz__art {
  position: relative;
  min-height: 220px;
  padding: 28px 20px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(60, 155, 244, 0.16), transparent 55%),
    linear-gradient(180deg, #0d1117 0%, #15191f 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.hiw-quiz__art--1 {
  min-height: 248px;
  padding: 36px 28px 28px;
}

.hiw-quiz__art--3 {
  background:
    radial-gradient(circle at 20% 30%, rgba(65, 204, 89, 0.12), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(60, 155, 244, 0.14), transparent 42%),
    linear-gradient(180deg, #0d1117 0%, #15191f 100%);
}

.hiw-quiz__market {
  position: relative;
  z-index: 1;
  width: min(300px, 100%);
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  color: #111;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hiw-quiz__market--back {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 46%;
  width: min(286px, 86%);
  transform: translate(-58%, -56%) rotate(-9deg);
  opacity: 0.55;
  filter: saturate(0.85) brightness(0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.hiw-quiz__market--front {
  z-index: 2;
  transform: translate(10px, 6px) rotate(2.5deg);
}

.hiw-quiz__market-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.hiw-quiz__market-q {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #111;
}

.hiw-quiz__gauge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(#41cc59 0 180deg, #e6e8ea 180deg 360deg);
  box-shadow: inset 0 0 0 6px #fff;
  font-size: 11px;
  font-weight: 700;
  color: #111;
}

.hiw-quiz__gauge span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
}

.hiw-quiz__market-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.hiw-quiz__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.hiw-quiz__pill--yes {
  background: #41cc59;
  color: #fff;
  box-shadow: 0 6px 14px rgba(65, 204, 89, 0.35);
}

.hiw-quiz__pill--no {
  background: #eceff1;
  color: #333;
}

.hiw-quiz__art--2 {
  position: relative;
  gap: 0;
  min-height: 240px;
}

.hiw-quiz__ticket {
  width: min(210px, 58%);
  padding: 16px 14px 12px;
  border-radius: 16px;
  background: #fff;
  color: #111;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.hiw-quiz__ticket--yes {
  transform: rotate(-8deg) translate(-18px, 8px);
  z-index: 2;
}

.hiw-quiz__ticket--no {
  position: absolute;
  right: 14%;
  top: 50%;
  transform: translateY(-50%) rotate(10deg) translate(8px, -4px);
  z-index: 1;
  opacity: 0.96;
}

.hiw-quiz__amt-row {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.hiw-quiz__amt-row span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eef1f3;
  display: grid;
  place-items: center;
  color: #666;
  font-weight: 700;
}

.hiw-quiz__amt-row strong,
.hiw-quiz__ticket--no > strong {
  display: block;
  text-align: center;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.hiw-quiz__towin {
  margin: 0 0 12px;
  text-align: center;
  font-size: 13px;
  color: #555;
}

.hiw-quiz__towin em {
  font-style: normal;
  font-weight: 700;
  color: #41cc59;
}

.hiw-quiz__buy {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.hiw-quiz__buy--yes {
  background: #41cc59;
}

.hiw-quiz__buy--no {
  background: #ff5d47;
}

.hiw-quiz__confetti {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 30%, #3c9bf4 0 2px, transparent 3px),
    radial-gradient(circle at 78% 22%, #41cc59 0 2px, transparent 3px),
    radial-gradient(circle at 30% 70%, #3c9bf4 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 86% 64%, #41cc59 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px);
  opacity: 0.85;
  pointer-events: none;
}

.hiw-quiz__slip {
  position: relative;
  z-index: 1;
  width: min(260px, 86%);
  padding: 16px 16px 14px;
  border-radius: 14px 14px 0 0;
  background: #fff;
  color: #111;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 10px),
    96% 100%,
    92% calc(100% - 10px),
    88% 100%,
    84% calc(100% - 10px),
    80% 100%,
    76% calc(100% - 10px),
    72% 100%,
    68% calc(100% - 10px),
    64% 100%,
    60% calc(100% - 10px),
    56% 100%,
    52% calc(100% - 10px),
    48% 100%,
    44% calc(100% - 10px),
    40% 100%,
    36% calc(100% - 10px),
    32% 100%,
    28% calc(100% - 10px),
    24% 100%,
    20% calc(100% - 10px),
    16% 100%,
    12% calc(100% - 10px),
    8% 100%,
    4% calc(100% - 10px),
    0 100%
  );
}

.hiw-quiz__slip-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
}

.hiw-quiz__slip-head p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.hiw-quiz__slip-chart {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 20px;
}

.hiw-quiz__slip-chart svg {
  display: block;
  width: 28px;
  height: 20px;
}

.hiw-quiz__slip-rows {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.hiw-quiz__slip-rows > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #777;
}

.hiw-quiz__slip-rows i {
  display: block;
  width: 72px;
  height: 8px;
  border-radius: 999px;
  background: #e8ebed;
}

.hiw-quiz__slip-rows em {
  font-style: normal;
  font-weight: 700;
  font-size: 18px;
  color: #41cc59;
}

.hiw-quiz__cashout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 10px;
  background: #3c9bf4;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.hiw-quiz__copy {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hiw-quiz__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
}

.hiw-quiz__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.hiw-quiz__legal {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-tertiary);
}

.hiw-quiz__legal a {
  color: var(--text-secondary);
  text-decoration: underline;
}

.hiw-quiz__cta,
button.hiw-quiz__cta[data-hiw-next],
button.hiw-quiz__cta[data-hiw-start] {
  appearance: none;
  border: 0 !important;
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border-radius: 12px;
  background: #3c9bf4 !important;
  background-color: #3c9bf4 !important;
  color: #fff !important;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none;
  transition: background-color 0.16s ease;
}

.hiw-quiz__cta:hover,
button.hiw-quiz__cta[data-hiw-next]:hover,
button.hiw-quiz__cta[data-hiw-start]:hover {
  background: #2f8fe8 !important;
  background-color: #2f8fe8 !important;
  filter: none !important;
}

@media (max-width: 480px) {
  .lk-modal__box--hiw {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
  }

  .hiw-quiz {
    border-radius: 20px 20px 0 0;
  }

  .hiw-quiz__title {
    font-size: 20px;
  }
}

/* Trade panel — balance gate */
.pm-trade__avail {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.45));
}

.pm-trade__avail strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary, #f5f5f5);
}

.pm-trade__error {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #ff8f7e;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-trade__error[hidden] {
  display: none !important;
}

.pm-trade button.pm-trade__submit.is-blocked {
  background: rgba(255, 255, 255, 0.06);
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  box-shadow: none;
  cursor: not-allowed;
}

.pm-trade button.pm-trade__submit.is-blocked:hover {
  background: rgba(255, 255, 255, 0.06);
  background-color: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.45);
  box-shadow: none;
  transform: none;
}

/* Mobile bottom nav — removed on phone */
  .mbn[data-v-9e607d92],
  nav.mbn {
  display: none !important;
}

@media (max-width: 650px) {
  .lk-layout .lk-layout__content,
  .lk-layout__content[data-v-e41fc834] {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .hmenu__panel[data-v-33ad9f9e],
  .hmenu .hmenu__panel {
    position: fixed !important;
    left: 12px;
    right: 12px;
    top: auto !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: auto !important;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    z-index: 130;
    transform-origin: bottom center;
  }
}

.bw-mbn-search {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bw-mbn-search__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bw-mbn-search__label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.45));
}

.bw-mbn-search__input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-primary);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.bw-mbn-search__input:focus {
  border-color: rgba(60, 155, 244, 0.55);
  box-shadow: 0 0 0 3px rgba(60, 155, 244, 0.12);
}

.bw-mbn-search__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ─── Phone density: event / profile / auth / legal (≤720 / ≤480) ─── */
@media (max-width: 720px) {
  .event-page {
    gap: 14px;
  }

  .event-page__back {
    font-size: 13px;
  }

  .event-head__title {
    font-size: 22px;
    letter-spacing: -0.03em;
  }

  .event-head__meta {
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 12px;
  }

  .pm-trade {
    padding: 14px !important;
    gap: 12px !important;
    border-radius: 14px;
  }

  .pm-trade__title {
    font-size: 15px;
  }

  .pm-trade__avail {
    font-size: 11px;
  }

  .pm-trade__avail strong {
    font-size: 12px;
  }

  .pm-trade__amount {
    font-size: 18px;
  }

  .pm-trade__quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .pm-trade__chip {
    min-width: 0;
    height: 32px;
    padding: 0 6px;
    font-size: 12px;
  }

  .pm-trade button.pm-trade__submit {
    height: 44px;
    font-size: 14px;
  }

  .event-chart,
  .event-chart__canvas {
    max-width: 100%;
  }

  .event-page__ranges,
  [data-bw-event-chart] .event-chart__ranges {
    flex-wrap: wrap;
    gap: 6px;
  }

  .profile-page__head[data-v-9243197e],
  .profile-page__head {
    gap: 12px;
  }

  .profile-page__title[data-v-9243197e],
  .profile-page__title {
    font-size: 20px;
  }

  .profile-page__tabs[data-v-9243197e],
  .profile-page__tabs {
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .profile-page__tabs::-webkit-scrollbar {
    display: none;
  }

  .profile-page__tab[data-v-9243197e],
  .profile-page__tab {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 8px 10px;
  }

  .bw-desk__balance {
    font-size: 40px;
  }

  .bw-desk__chart.desk-chart,
  .bw-desk .desk-chart.bw-desk__chart {
    min-height: 160px;
    height: 176px;
  }

  .bw-desk__chart--empty.desk-chart,
  .bw-desk .desk-chart.bw-desk__chart--empty {
    min-height: 100px;
    height: 112px;
  }

  .bw-desk__cta {
    width: 100%;
  }

  .bw-desk__cta .lk-btn {
    flex: 1 1 auto;
  }

  /* Settings → Profile: phone ledger (statement, not form) */
  .profile-page__settings-profile {
    padding: 2px 0 6px;
  }

  .profile-page__settings-profile .bw-desk__pane-head {
    margin-bottom: 2px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .profile-page__settings-profile .bw-desk__pane-title {
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .profile-page__settings-bio[data-v-9243197e],
  .profile-page__settings-bio--ledger {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .profile-page__settings-profile .profile-page__settings-field[data-v-9243197e],
  .profile-page__settings-profile .profile-page__settings-field {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: baseline;
    column-gap: 14px;
    row-gap: 0;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .profile-page__settings-profile .profile-page__settings-field:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
  }

  .profile-page__settings-profile .profile-page__settings-label[data-v-9243197e],
  .profile-page__settings-profile .profile-page__settings-label {
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.38);
  }

  .profile-page__settings-profile .profile-page__settings-value {
    text-align: right;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.025em;
  }

  .profile-page__settings-profile .profile-page__settings-field--balance .profile-page__settings-value--money {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.1;
  }

  .profile-page__settings-profile .profile-page__settings-ccy {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .profile-page__security-row[data-v-9243197e],
  .profile-page__security-row[data-bw-email-row] {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
  }

  .profile-page__security-row[data-bw-email-row] .profile-page__security-icon {
    display: inline-flex;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .profile-page__security-row[data-bw-email-row] .profile-page__security-text {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0;
  }

  .profile-page__security-row[data-bw-email-row] .profile-page__security-text strong[data-bw-email-title],
  .profile-page__security-row[data-bw-email-row] [data-bw-email-title] {
    display: none;
  }

  .profile-page__security-row[data-bw-email-row] .profile-page__security-text span,
  .profile-page__security-row[data-bw-email-row] [data-bw-email-label] {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #fff);
  }

  .profile-page__security-row[data-bw-email-row] .profile-page__badge,
  .profile-page__security-row [data-bw-email-badge] {
    display: none !important;
  }

  .profile-page__security-row[data-bw-email-row] .lk-btn {
    flex-shrink: 0;
    min-width: 0;
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  .bw-desk__table-wrap,
  .profile-page__pos .bw-desk__table-wrap,
  .profile-page__tx .bw-desk__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .auth-gate__headline {
    font-size: 22px;
  }

  .auth-gate__main {
    padding: 18px 16px 20px;
  }

  .bw-pay {
    gap: 14px;
  }

  .bw-pay__input {
    font-size: 16px;
  }

  .legal-doc__hero,
  .legal-doc__title {
    padding-top: 8px;
  }

  .legal-doc__title {
    font-size: 26px;
  }

  .markets-page__title,
  .activity-page .markets-page__title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .event-head__title {
    font-size: 20px;
  }

  .pm-trade__sides {
    gap: 2px;
    min-height: 40px;
  }

  .pm-trade__side {
    min-height: 34px;
    padding: 0 10px;
  }

  .pm-trade__error {
    font-size: 11.5px;
    padding: 0;
    white-space: nowrap;
  }

  .bw-desk__balance {
    font-size: 34px;
  }

  .bw-desk__cta {
    flex-direction: column;
  }

  .bw-desk__cta .lk-btn {
    width: 100%;
  }

  .bw-desk__chart.desk-chart,
  .bw-desk .desk-chart.bw-desk__chart {
    min-height: 148px;
    height: 160px;
  }

  .auth-gate__headline {
    font-size: 20px;
  }

  .legal-doc__title {
    font-size: 22px;
  }
}

/* ——— Support chat — matte trading desk (event language, not SaaS chat) ——— */
.sw[data-v-67495b29] {
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  right: 20px;
  bottom: 20px;
}

.sw__btn[data-v-67495b29] {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eceff3;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #0a0b0c;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sw__btn[data-v-67495b29]:hover {
  transform: none;
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  color: #0a0b0c;
}

.sw__btn[data-v-67495b29]:active {
  transform: none;
  background: #dfe3e8;
}

.sw__btn--open[data-v-67495b29] {
  background: #161617;
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.sw__btn--open[data-v-67495b29]:hover {
  background: #1c1d1e;
  color: #fff;
  box-shadow: none;
}

.sw__btn-dot[data-v-67495b29] {
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ee59d;
  border: 0;
  box-shadow: none;
  animation: none;
}

.sw__btn--open .sw__btn-dot[data-v-67495b29] {
  background: #2f8fed;
  border: 0;
}

.sw__panel[data-v-67495b29] {
  bottom: 58px;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100dvh - 100px));
  background: #0b0b0c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: none;
  color: #f5f5f5;
  overflow: hidden;
}

.sw-pop-enter-active[data-v-67495b29],
.sw-pop-leave-active[data-v-67495b29] {
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.sw-pop-enter-from[data-v-67495b29],
.sw-pop-leave-to[data-v-67495b29] {
  opacity: 0;
  transform: translateY(6px);
}

.sw__header[data-v-67495b29] {
  height: auto;
  min-height: 56px;
  padding: 14px 14px 14px 16px;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #0b0b0c;
}

.sw__avatar[data-v-67495b29] {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sw__header-text[data-v-67495b29] {
  flex: 1;
  min-width: 0;
}

.sw__title[data-v-67495b29] {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #f5f5f5;
}

.sw__sub[data-v-67495b29] {
  gap: 0;
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #8b949e;
}

.sw__pulse[data-v-67495b29] {
  display: none !important;
}

.sw__icon-btn[data-v-67495b29] {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: #8b949e;
  transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.sw__icon-btn[data-v-67495b29]:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
}

.sw__list[data-v-67495b29] {
  padding: 14px 14px 12px;
  gap: 10px;
  background: #0b0b0c;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.sw__list[data-v-67495b29]::-webkit-scrollbar {
  width: 6px;
}

.sw__list[data-v-67495b29]::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 6px;
}

.sw__welcome[data-v-67495b29] {
  margin: 4px 0 2px;
  text-align: left;
  max-width: none;
  width: 100%;
  border: 0;
  padding: 0;
}

.sw__welcome-title[data-v-67495b29] {
  display: none;
}

.sw__welcome-body[data-v-67495b29] {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #8b949e;
  font-weight: 450;
}

.sw__msg[data-v-67495b29] {
  max-width: 88%;
  gap: 4px;
}

.sw__msg--out[data-v-67495b29] {
  align-self: flex-end;
  align-items: flex-end;
}

.sw__msg--in[data-v-67495b29] {
  align-self: flex-start;
  align-items: flex-start;
}

.sw__bubble[data-v-67495b29] {
  padding: 9px 12px !important;
  border-radius: 12px !important;
  font-size: 13.5px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  border: 1px solid transparent !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #f5f5f5 !important;
  font-weight: 450;
  box-shadow: none !important;
}

.sw__msg--out .sw__bubble[data-v-67495b29] {
  background: #2f8fed !important;
  border-color: transparent !important;
  color: #0a0b0c !important;
  font-weight: 550;
}

.sw__msg--in .sw__bubble[data-v-67495b29] {
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
  color: rgba(245, 245, 245, 0.92) !important;
}

.sw__time[data-v-67495b29] {
  font-size: 11px;
  color: #8b949e;
  padding: 0 2px;
  letter-spacing: -0.01em;
}

.sw__msg--out .sw__time[data-v-67495b29] {
  text-align: right;
}

.sw__footer[data-v-67495b29] {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #0b0b0c;
}

.sw__compose[data-v-67495b29] {
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 8px 8px 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sw__compose[data-v-67495b29]:focus-within {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.sw__compose--off[data-v-67495b29] {
  opacity: 0.5;
}

.sw__input[data-v-67495b29] {
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.45;
  color: #f5f5f5;
  padding: 6px 0;
}

.sw__input[data-v-67495b29]::placeholder {
  color: #8b949e;
}

.sw__send[data-v-67495b29] {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8b949e;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.sw__send[data-v-67495b29]:active:not(:disabled) {
  transform: none;
}

.sw__send--ready[data-v-67495b29] {
  background: #eceff3;
  border-color: rgba(255, 255, 255, 0.1);
  color: #0a0b0c;
}

.sw__send--ready[data-v-67495b29]:hover {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
}

.sw__skeleton[data-v-67495b29] {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  animation: none;
}

.sw__typing-dot[data-v-67495b29] {
  border-radius: 50%;
  background: #8b949e;
  animation: none;
  opacity: 0.55;
}

@media (max-width: 650px) {
  .sw[data-v-67495b29] {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .sw__panel[data-v-67495b29] {
    border-radius: 14px;
    width: 100%;
  }
}


/* Support widget */
html.pm-shell--light .sw__btn[data-v-67495b29] {
  background: #12141a;
  border-color: rgba(18, 20, 26, 0.12);
  color: #ffffff;
  box-shadow: none;
}

html.pm-shell--light .sw__btn[data-v-67495b29]:hover {
  background: #1a1d24;
  box-shadow: none;
  transform: none;
}

html.pm-shell--light .sw__btn--open[data-v-67495b29] {
  background: #eceff3;
  color: #12141a;
  border-color: rgba(18, 20, 26, 0.1);
  box-shadow: none;
}

html.pm-shell--light .sw__panel[data-v-67495b29] {
  background: #ffffff;
  border-color: rgba(18, 20, 26, 0.1);
  border-radius: 14px;
  box-shadow: none;
  color: #12141a;
}

html.pm-shell--light .sw__header[data-v-67495b29],
html.pm-shell--light .sw__footer[data-v-67495b29],
html.pm-shell--light .sw__list[data-v-67495b29] {
  background: #ffffff;
}

html.pm-shell--light .sw__title[data-v-67495b29] {
  color: #12141a;
}

html.pm-shell--light .sw__sub[data-v-67495b29],
html.pm-shell--light .sw__time[data-v-67495b29],
html.pm-shell--light .sw__welcome-body[data-v-67495b29] {
  color: #8b949e;
}

html.pm-shell--light .sw__bubble[data-v-67495b29] {
  background: rgba(18, 20, 26, 0.04) !important;
  border: 1px solid rgba(18, 20, 26, 0.08) !important;
  color: #12141a !important;
}

html.pm-shell--light .sw__msg--out .sw__bubble[data-v-67495b29] {
  background: #2f8fed !important;
  border-color: transparent !important;
  color: #0a0b0c !important;
}

html.pm-shell--light .sw__msg--in .sw__bubble[data-v-67495b29] {
  background: rgba(18, 20, 26, 0.04) !important;
  border-color: rgba(18, 20, 26, 0.08) !important;
  color: #12141a !important;
}

html.pm-shell--light .sw__compose[data-v-67495b29] {
  background: rgba(18, 20, 26, 0.03);
  border-color: rgba(18, 20, 26, 0.1);
}

html.pm-shell--light .sw__input[data-v-67495b29] {
  color: #12141a;
}

html.pm-shell--light .sw__send[data-v-67495b29] {
  border-color: rgba(18, 20, 26, 0.12);
  color: #8b949e;
}

html.pm-shell--light .sw__send--ready[data-v-67495b29] {
  background: #12141a;
  border-color: #12141a;
  color: #ffffff;
}

html.pm-shell--light .sw__avatar[data-v-67495b29] {
  background: #eef0f4;
  border-color: rgba(18, 20, 26, 0.1);
}

/* Inputs / search */
html.pm-shell--light .lk-input__field,
html.pm-shell--light .lk-input__wrapper,
html.pm-shell--light .search-dd {
  background: #ffffff;
  color: #12141a;
  border-color: rgba(18, 20, 26, 0.1);
}

html.pm-shell--light .lk-input__field::placeholder {
  color: #8b929e;
}

html.pm-shell--light .search-dd__item:hover {
  background: rgba(18, 20, 26, 0.04);
}

/* Buttons that relied on light-on-dark defaults */
html.pm-shell--light .lk-btn--ghost,
html.pm-shell--light .lk-user__login {
  color: #12141a;
  border-color: rgba(18, 20, 26, 0.12);
}

html.pm-shell--light .lk-btn--primary {
  color: #ffffff;
}

/* Charts keep a dark panel for readability of TradingView */
html.pm-shell--light .bw-tv-widget .tradingview-widget-container,
html.pm-shell--light .bw-tv-widget .tradingview-widget-container__widget {
  background: #131722 !important;
  color-scheme: dark;
}

html.pm-shell--light .bw-chart-nav {
  border-color: rgba(18, 20, 26, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #12141a;
}

/* Misc chrome that used white translucency on dark */
html.pm-shell--light .feat-carousel,
html.pm-shell--light .updown-intro,
html.pm-shell--light .event-page,
html.pm-shell--light .activity-page,
html.pm-shell--light .legal-doc {
  color: #12141a;
}

html.pm-shell--light .desk-muted,
html.pm-shell--light .bw-desk__muted,
html.pm-shell--light .profile-page__meta {
  color: #5c6370;
}

html.pm-shell--light .bw-desk__top,
html.pm-shell--light .bw-desk__hero {
  border-bottom-color: rgba(18, 20, 26, 0.08);
}

html.pm-shell--light .profile-page--desk .profile-page__settings-bio--ledger,
html.pm-shell--light .profile-page--desk .profile-page__settings-bio--ledger .profile-page__settings-field {
  border-color: rgba(18, 20, 26, 0.08);
}

html.pm-shell--light .profile-page--desk .profile-page__settings-bio--ledger .profile-page__settings-label {
  color: rgba(18, 20, 26, 0.42);
}

html.pm-shell--light .profile-page--desk .profile-page__settings-bio--ledger .profile-page__settings-value,
html.pm-shell--light .profile-page--desk .bw-desk__balance,
html.pm-shell--light .profile-page--desk .bw-desk__stat-value {
  color: #12141a;
}

html.pm-shell--light .profile-page--desk .bw-desk__stat-value.is-in {
  color: #16a34a;
}

html.pm-shell--light .profile-page--desk .bw-desk__stat-value.is-out {
  color: #dc2626;
}

html.pm-shell--light .hiw-quiz {
  background: #ffffff;
  border-color: rgba(18, 20, 26, 0.1);
  box-shadow: 0 24px 70px rgba(18, 20, 26, 0.16);
  color: #12141a;
}

html.pm-shell--light .hiw-quiz__close {
  background: rgba(244, 245, 247, 0.92);
  color: #12141a;
  border: 1px solid rgba(18, 20, 26, 0.08);
}

html.pm-shell--light .bw-wd-result__card {
  background: #ffffff;
  border-color: rgba(18, 20, 26, 0.1);
  color: #12141a;
}

/* Catch remaining hard-coded near-white text on light surfaces */
html.pm-shell--light .profile-page--desk [style*="color:#f5f5f5"],
html.pm-shell--light .profile-page--desk [style*="color: #f5f5f5"] {
  color: #12141a !important;
}


/* ——— Dedicated auth pages (/login /register) ——— */
.bw-auth-body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  background: #0b0b0c;
  color: #f2f2f2;
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.bw-auth {
  min-height: 100dvh;
  background: #0b0b0c;
}

.bw-auth--gate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
}

.bw-auth__brand {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
  padding: 36px 56px 40px;
  box-sizing: border-box;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b0b0c;
  overflow: hidden;
}

.bw-auth__brand::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.bw-auth__brand-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
  min-height: 0;
}

.bw-auth__logo {
  position: relative;
  z-index: 2;
  justify-self: start;
  align-self: start;
  margin: 0;
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #fff;
  text-decoration: none;
}

.bw-auth__logo:hover { color: #fff; }

.bw-auth__tagline {
  display: none;
}

.bw-auth__featured {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  justify-items: center;
  padding-top: 24px;
}

.bw-auth__featured-label {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.bw-auth__press {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 28px;
  max-width: 520px;
}

.bw-auth__press-mark {
  display: block;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
  user-select: none;
}

.bw-auth__press-mark--bloomberg {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bw-auth__press-mark--wsj {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: "Times New Roman", Times, serif;
}

.bw-auth__press-mark--forbes {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.bw-auth__press-mark--coindesk {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bw-auth__press-mark--reuters {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bw-auth__mobile-logo {
  display: none;
}

/* Shared reel — desktop brand + mobile hero */
.bw-auth__reel {
  --bw-reel-row: 48px;
  --bw-reel-visible: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  width: 100%;
  min-height: calc(var(--bw-reel-row) * var(--bw-reel-visible));
  overflow: hidden;
}

.bw-auth__reel-prefix {
  flex-shrink: 0;
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: var(--bw-reel-row);
  color: #fff;
  white-space: nowrap;
}

.bw-auth__reel-slot {
  position: relative;
  height: calc(var(--bw-reel-row) * var(--bw-reel-visible));
  min-width: 8ch;
  overflow: hidden;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.25) 14%,
    #000 38%,
    #000 62%,
    rgba(0, 0, 0, 0.25) 86%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.25) 14%,
    #000 38%,
    #000 62%,
    rgba(0, 0, 0, 0.25) 86%,
    transparent 100%
  );
}

.bw-auth__reel-track {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  will-change: transform;
}

.bw-auth__reel-word {
  display: flex;
  align-items: center;
  height: var(--bw-reel-row);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.2);
  text-transform: lowercase;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.bw-auth__reel-word.is-active {
  color: #fff;
}

.bw-auth__panel--gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 48px 40px;
  box-sizing: border-box;
  background: #0b0b0c;
}

.bw-auth__gate {
  width: min(100%, 360px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bw-auth__title { order: 1; }
.bw-auth__sub { order: 2; }
.bw-auth__legal { order: 3; }
.bw-auth__stack { order: 4; }
.bw-auth__switch { order: 5; }

.bw-auth__title {
  margin: 0;
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.15;
  color: #fff;
  text-align: center;
}

.bw-auth__sub {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.bw-auth__legal {
  margin: 16px auto 0;
  width: max-content;
  max-width: 100%;
  padding: 0;
  box-sizing: border-box;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.bw-auth__legal--center {
  text-align: center;
}

.bw-auth__legal a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  font-weight: 600;
}

.bw-auth__legal a:hover {
  color: #fff;
}

.bw-auth__legal.is-collapsed { display: none !important; }

.bw-auth__stack {
  display: grid;
  gap: 10px;
  margin: 28px auto 0;
  width: min(100%, 320px);
}

.bw-auth__pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 83ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 83ms cubic-bezier(0.4, 0, 0.2, 1),
    color 83ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 167ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 83ms cubic-bezier(0.4, 0, 0.2, 1);
}

.bw-auth__pill:active {
  transform: scale(0.97);
}

.bw-auth__pill--outline {
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.bw-auth__pill--outline:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.bw-auth__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.bw-auth__ico svg {
  display: block;
  width: 20px;
  height: 20px;
}

.bw-auth__g,
.bw-auth__at {
  display: inline-flex;
  width: 20px;
  justify-content: center;
  font-weight: 700;
}

.bw-auth__switch {
  margin: 28px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.48);
  text-align: center;
}

.bw-auth__switch a {
  margin-left: 6px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.bw-auth__switch a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* —— Email / login flow — same matte split as /register —— */
.bw-auth--flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
  background: #0b0b0c;
}

.bw-auth__brand--flow {
  grid-template-rows: auto 1fr auto;
}

.bw-auth__progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.bw-auth__progress i {
  display: block;
  height: 100%;
  width: 12%;
  background: rgba(255, 255, 255, 0.85);
  transition: width 0.25s ease;
}

.bw-auth__flow-bar {
  display: none;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bw-auth__nav-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease;
}

.bw-auth__nav-link--end {
  justify-self: end;
}

.bw-auth__nav-chev {
  display: block;
  flex: 0 0 auto;
  margin-left: -2px;
}

.bw-auth__nav-link:hover {
  color: #fff;
}

.bw-auth__flow-brand {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  text-decoration: none;
}

.bw-auth__flow-main {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: #0b0b0c;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.bw-auth__flow-form {
  width: min(100%, 400px);
  display: grid;
  gap: 12px;
  align-content: center;
  margin: auto;
  padding: 48px 28px;
  box-sizing: border-box;
}

.bw-auth__flow-title {
  margin: 0 0 8px;
  width: max-content;
  max-width: 100%;
  justify-self: center;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.15;
  white-space: nowrap;
  color: #fff;
  text-align: center;
}

.bw-auth__creds { display: grid; gap: 10px; }
.bw-auth__creds.is-collapsed { display: none !important; }

.bw-auth__field { display: grid; gap: 0; margin: 0; }
.bw-auth__field.is-collapsed { display: none !important; }

.bw-auth__pass-step {
  display: grid;
  gap: 10px;
  margin: 0;
}
.bw-auth__pass-step.is-collapsed { display: none !important; }

.bw-auth__hint {
  margin: -2px 4px 0;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.45);
  text-align: left;
}

.bw-auth__rules {
  list-style: none;
  margin: 2px 0 4px;
  padding: 0 6px;
  display: grid;
  gap: 6px;
}

.bw-auth__rules li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.38);
  transition: color 0.15s ease;
}

.bw-auth__rules li::before {
  content: '';
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-sizing: border-box;
  background: transparent;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.bw-auth__rules li.is-met {
  color: rgba(134, 239, 172, 0.95);
}

.bw-auth__rules li.is-met::before {
  content: '✓';
  border-color: #4ade80;
  background: #4ade80;
  color: #0b0b0c;
}

.bw-auth__field input {
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border-radius: 999px;
  padding: 0 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.bw-auth__field input::placeholder { color: rgba(255, 255, 255, 0.34); font-weight: 400; }
.bw-auth__field input:focus {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.05);
}

.bw-auth__error {
  min-height: 18px;
  margin: 0;
  font-size: 13px;
  color: #ef4444;
  text-align: center;
}

.bw-auth__error[hidden] {
  display: block !important;
  visibility: hidden;
}

.bw-auth__submit {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  padding: 0 18px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #0a0c0f;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  transition:
    background 83ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 167ms cubic-bezier(0.4, 0, 0.2, 1);
}

.bw-auth__submit:hover {
  background: #f3f4f6;
}

.bw-auth__submit:active {
  transform: scale(0.97);
}

.bw-auth__submit:disabled {
  opacity: 0.4;
  cursor: wait;
}

.bw-auth__skip.is-collapsed { display: none !important; }

.bw-auth--flow .bw-auth__switch {
  margin-top: 8px;
}

.bw-auth--flow .bw-auth__legal {
  margin-top: 8px;
  justify-self: center;
}

@keyframes bw-auth-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  /* Mobile gate: brand stays as full-page background, CTAs dock over it */
  .bw-auth--gate {
    display: block;
    position: relative;
    min-height: 100dvh;
    min-height: 100svh;
  }

  .bw-auth__brand {
    position: absolute;
    inset: 0;
    z-index: 0;
    min-height: 100%;
    height: 100%;
    padding: 40px 20px 220px;
    border-right: 0;
    grid-template-rows: auto 1fr;
    justify-items: center;
  }

  .bw-auth__brand-center {
    gap: 18px;
    justify-content: center;
    height: 100%;
    min-height: 0;
    padding-top: 0;
    width: 100%;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
  }

  .bw-auth__logo {
    justify-self: center;
    align-self: center;
    font-size: 30px;
    animation: bw-auth-fade-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .bw-auth__reel {
    --bw-reel-row: 42px;
    --bw-reel-visible: 3;
    flex: 0 0 auto;
    min-height: calc(var(--bw-reel-row) * var(--bw-reel-visible));
    animation: bw-auth-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
  }

  /* Password step: nudge reel up so it clears the tall form */
  .bw-auth--pass-step .bw-auth__brand-center {
    transform: translateY(-80px);
    opacity: 0.5;
  }

  .bw-auth__reel-slot {
    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.35) 22%,
      #000 42%,
      #000 58%,
      rgba(0, 0, 0, 0.35) 78%,
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.35) 22%,
      #000 42%,
      #000 58%,
      rgba(0, 0, 0, 0.35) 78%,
      transparent 100%
    );
  }

  .bw-auth__reel-prefix,
  .bw-auth__reel-word {
    font-size: clamp(28px, 7.5vw, 34px);
  }

  .bw-auth__featured {
    display: none;
  }

  .bw-auth__panel--gate {
    position: relative;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    min-height: 100dvh;
    min-height: 100svh;
    padding: 12px 28px calc(28px + env(safe-area-inset-bottom, 0px));
    background: transparent;
    pointer-events: none;
  }

  .bw-auth__gate {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    flex-shrink: 0;
    box-sizing: border-box;
    animation: bw-auth-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
    pointer-events: auto;
  }

  .bw-auth__brand .bw-auth__logo {
    position: relative;
    z-index: 2;
    pointer-events: auto;
  }

  .bw-auth__title,
  .bw-auth__sub {
    display: none;
  }

  .bw-auth__stack {
    order: 1;
    width: min(100%, 300px);
    margin: 0 auto;
    gap: 10px;
  }

  .bw-auth__switch {
    order: 2;
    margin: 18px 0 0;
}

.bw-auth__legal {
    order: 3;
    width: max-content;
    max-width: 100%;
    margin: 14px auto 0;
    font-size: 11.5px;
  }

  .bw-auth__pill {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
  }

  .bw-auth__pill--outline {
    border-color: rgba(255, 255, 255, 0.32);
  }

  .bw-auth--flow {
    display: block;
    position: relative;
    min-height: 100dvh;
    min-height: 100svh;
  }

  .bw-auth__brand--flow {
    display: grid;
  }

  .bw-auth__flow-main {
    position: relative;
    z-index: 1;
    border-left: 0;
    min-height: 100dvh;
    min-height: 100svh;
    background: transparent;
    pointer-events: none;
  }

  .bw-auth__flow-bar,
  .bw-auth__flow-form,
  .bw-auth--flow .bw-auth__progress {
    pointer-events: auto;
  }

  .bw-auth__flow-bar {
    display: grid;
    border-bottom-color: transparent;
    padding: 12px 22px 4px;
  }

  .bw-auth__flow-brand {
    visibility: hidden;
    pointer-events: none;
  }

  .bw-auth__nav-link {
    color: rgba(255, 255, 255, 0.62);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  }

  .bw-auth--flow .bw-auth__progress {
    background: transparent;
  }

  .bw-auth__flow-form {
    width: min(100%, 360px);
    margin: auto auto 0;
    padding: 24px 24px calc(28px + env(safe-area-inset-bottom, 0px));
    align-content: end;
  }
}

@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .bw-auth__logo,
  .bw-auth__reel,
  .bw-auth__gate {
    animation: none;
  }
}


/* ——— Event trade panel modes (BUY/SELL + Dollars/Shares/Limit) ——— */
.pm-trade__tabs {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 0 2px;
}
.pm-trade__action-tabs {
  display: inline-flex;
  align-items: flex-end;
  gap: 16px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.pm-trade button.pm-trade__action,
.pm-trade__action {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.38) !important;
  font: inherit;
  font-size: 15px !important;
  font-weight: 750 !important;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  padding: 4px 2px 10px !important;
  min-height: 0;
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease;
}
.pm-trade button.pm-trade__action:hover,
.pm-trade__action:hover {
  color: rgba(255, 255, 255, 0.72) !important;
  background: transparent !important;
}
.pm-trade button.pm-trade__action.is-active,
.pm-trade__action.is-active {
  color: #fff !important;
  background: transparent !important;
  border-bottom-color: #fff !important;
}
.pm-trade__type-wrap { position: relative; }
.pm-trade__type-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.pm-trade__type-btn:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.pm-trade__type-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  min-width: 120px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121314;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 2px;
}
.pm-trade__type-menu[hidden] { display: none !important; }
.pm-trade__type-menu button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
}
.pm-trade__type-menu button:hover,
.pm-trade__type-menu button.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.pm-trade__avail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.pm-trade__avail-row strong,
.pm-trade__avail-val {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.pm-trade__signin {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #7dd3fc;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pm-trade__signin:hover {
  color: #bae6fd;
}
.pm-trade__market { margin: 0; }
.pm-trade__market-name {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
}
.pm-trade__mode.is-collapsed,
.pm-trade__mode[hidden] { display: none !important; }
.pm-trade__hint {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: -0.01em;
}
.pm-trade__currency--suffix {
  left: auto;
  right: 12px;
}
.pm-trade__amount-row:has(.pm-trade__currency--suffix) .pm-trade__amount {
  padding-left: 14px;
  padding-right: 28px;
}
.pm-trade__summary {
  display: grid;
  gap: 6px;
  padding-top: 4px;
}
.pm-trade__sum-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}
.pm-trade__sum-row strong {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.pm-trade__pos-hint {
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.pm-trade__pos-hint.is-collapsed,
.pm-trade__pos-hint[hidden] { display: none !important; }
.pm-trade__orders {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  display: grid;
  gap: 6px;
}
.pm-trade__orders.is-collapsed,
.pm-trade__orders[hidden] { display: none !important; }
.pm-trade__orders-head {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.pm-trade__orders-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.pm-trade__order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.pm-trade__order button {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.pm-trade__side-pct {
  font-variant-numeric: tabular-nums;
}

/* Segmented Yes/No pill (Polymarket-style) */
.pm-trade .pm-trade__sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  min-height: 44px;
  border-radius: 999px;
  background: #141516;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.pm-trade .pm-trade__side {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
  transform: none !important;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}
.pm-trade .pm-trade__side:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}
.pm-trade .pm-trade__side--yes.is-active,
.pm-trade .pm-trade__side--yes.is-active:hover,
.pm-trade .pm-trade__side--yes.is-active:focus {
  background: #2ee59d !important;
  color: #0a0b0c !important;
}
.pm-trade .pm-trade__side--no.is-active,
.pm-trade .pm-trade__side--no.is-active:hover,
.pm-trade .pm-trade__side--no.is-active:focus {
  background: #ff6b7a !important;
  color: #0a0b0c !important;
}
.pm-trade .pm-trade__side-label,
.pm-trade .pm-trade__side-pct {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  color: inherit;
  opacity: 1;
}

/* === Site unify: markets + LK = event matte === */
.markets-page[data-v-905ee66d],
.markets-page {
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  gap: 18px;
}

.markets-page__title[data-v-905ee66d],
.markets-page__title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f5f5f5;
}

.markets-page__subtitle[data-v-905ee66d],
.markets-page__subtitle {
  color: #8b949e;
}

.markets-page__how[data-v-905ee66d],
.markets-page__how {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #f5f5f5;
  box-shadow: none;
  transform: none;
}

.markets-page__how:hover,
.markets-page__how[data-v-905ee66d]:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  transform: none;
  color: #f5f5f5;
}

.markets-page__more {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #eceff3;
  color: #12141a;
  box-shadow: none;
}

.markets-page__more:hover:not(:disabled) {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  color: #12141a;
}

.cat-rail__item {
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #8b949e;
  box-shadow: none;
}

.cat-rail__item:hover {
  color: #f5f5f5;
  background: transparent;
}

.cat-rail__item.is-active {
  color: #f5f5f5;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.profile-page--desk .profile-page__tab--active::after,
[data-bw-profile] .profile-page__tab--active::after,
.profile-page__tab--active[data-v-9243197e]::after {
  background: #2f8fed !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  height: 2px !important;
  border-radius: 0 !important;
  opacity: 1 !important;
}

.profile-page--desk .lk-btn[data-v-8b01bbcb],
[data-bw-profile] .lk-btn[data-v-8b01bbcb],
.profile-page--desk .lk-btn,
[data-bw-profile] .lk-btn {
  border-radius: 10px !important;
  box-shadow: none !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}

.profile-page--desk .lk-btn--primary,
[data-bw-profile] .lk-btn--primary {
  background: #2f8fed !important;
  background-color: #2f8fed !important;
  border: 1px solid rgba(47, 143, 237, 0.35) !important;
  color: #0a0b0c !important;
  box-shadow: none !important;
  border-radius: 10px !important;
}

.profile-page--desk .bw-desk__cta .lk-btn--primary,
.profile-page--desk .bw-desk__cta .lk-btn[data-bw-lk-action='deposit'],
[data-bw-profile] .bw-desk__cta .lk-btn--primary,
[data-bw-profile] .bw-desk__cta .lk-btn[data-bw-lk-action='deposit'] {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #12141a !important;
}

.profile-page--desk .lk-btn--primary:hover,
[data-bw-profile] .lk-btn--primary:hover {
  background: #3c9bf4 !important;
  background-color: #3c9bf4 !important;
  box-shadow: none !important;
  filter: none !important;
}

.profile-page--desk .bw-desk__cta .lk-btn--primary:hover,
.profile-page--desk .bw-desk__cta .lk-btn[data-bw-lk-action='deposit']:hover,
[data-bw-profile] .bw-desk__cta .lk-btn--primary:hover,
[data-bw-profile] .bw-desk__cta .lk-btn[data-bw-lk-action='deposit']:hover {
  background: #eceff3 !important;
  background-color: #eceff3 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #12141a !important;
  filter: none !important;
}

.profile-page--desk .lk-btn--tertiary,
[data-bw-profile] .lk-btn--tertiary,
.profile-page--desk .lk-btn--small,
[data-bw-profile] .lk-btn--small {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f5f5f5 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.profile-page--desk .bw-desk__range-btn.is-active,
[data-bw-profile] .bw-desk__range-btn.is-active,
.profile-page--desk .bw-desk__range-btn.profile-page__range-btn--active {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f5f5f5 !important;
  box-shadow: none !important;
}

.profile-page--desk .profile-page__switch--on,
[data-bw-profile] .profile-page__switch--on {
  background: #2f8fed !important;
  box-shadow: none !important;
}

/* LK labels muted / values hot — event hierarchy */
.profile-page--desk .bw-desk__pane-title,
.profile-page--desk .bw-desk__eyebrow,
.profile-page--desk .bw-desk__stat-label,
.profile-page--desk .bw-desk__viz-label,
[data-bw-profile] .bw-desk__pane-title,
[data-bw-profile] .bw-desk__eyebrow,
[data-bw-profile] .bw-desk__stat-label {
  font-size: 13px !important;
  font-weight: 550 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  color: #8b949e !important;
  line-height: 1.2 !important;
}

.profile-page--desk .bw-desk__balance,
.profile-page--desk .bw-desk__stat-value,
.profile-page--desk .bw-desk__activity-title,
[data-bw-profile] .bw-desk__balance,
[data-bw-profile] .bw-desk__stat-value {
  color: #ffffff !important;
}

.profile-page--desk .bw-desk__stat-value.is-in,
[data-bw-profile] .bw-desk__stat-value.is-in {
  color: #41cc59 !important;
}

.profile-page--desk .bw-desk__stat-value.is-out,
[data-bw-profile] .bw-desk__stat-value.is-out {
  color: #f87171 !important;
}

.profile-page--desk .bw-desk__stat-hint,
.profile-page--desk .bw-desk__activity-sub,
.profile-page--desk .bw-desk__empty,
.profile-page--desk .bw-tx__type,
.profile-page--desk .bw-tx__date,
.profile-page--desk .bw-desk__ccy {
  color: #8b949e !important;
  text-transform: none;
  letter-spacing: -0.01em;
}

.profile-page--desk .bw-desk__ledger-row--total .bw-desk__ledger-amt {
  color: #f5f5f5 !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

.profile-page--desk .bw-desk__tier-pill {
  border: 0 !important;
  box-shadow: none !important;
}

.profile-page--desk .bw-desk__tier-pill--bronze {
  background: #8a7355 !important;
  color: #0b0b0c !important;
}

.profile-page--desk .bw-desk__tier-pill--silver {
  background: #9aa3ad !important;
  color: #0b0b0c !important;
}

.profile-page--desk .bw-desk__tier-pill--gold {
  background: #c4a35a !important;
  color: #0b0b0c !important;
}

.profile-page--desk .bw-desk__tier-pill--platinum {
  background: #a8b4c0 !important;
  color: #0b0b0c !important;
}

.profile-page--desk .bw-desk__bar-fill {
  background: #2f8fed !important;
  box-shadow: none !important;
}

.profile-page--desk .bw-desk__activity-amt.is-in,
.profile-page--desk .bw-tx__amt.is-in {
  color: #2ee59d !important;
}

.profile-page--desk .bw-desk__activity-amt.is-out,
.profile-page--desk .bw-tx__amt.is-out {
  color: #ff6b7a !important;
}

/* Flat list rows like event-market */
.profile-page--desk .profile-page__positions-head,
.profile-page--desk .bw-tx__head {
  font-size: 11px !important;
  font-weight: 550 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: rgba(255, 255, 255, 0.4) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  background: transparent !important;
  padding: 0 10px 8px !important;
}

.profile-page--desk .profile-page__pos-row,
.profile-page--desk .profile-page__pos-row[data-v-9243197e],
.profile-page--desk .bw-tx__row,
.profile-page--desk .bw-desk__activity-row,
.profile-page--desk .profile-page__order-row {
  border-radius: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 8px 6px !important;
  min-height: 40px;
}

.profile-page--desk .profile-page__pos-row:hover,
.profile-page--desk .bw-tx__row:hover,
.profile-page--desk .bw-desk__activity-row:hover,
.profile-page--desk .profile-page__order-row:hover {
  background: rgba(255, 255, 255, 0.035) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  transform: none !important;
}

.profile-page--desk .profile-page__pos-outcome,
.profile-page--desk .profile-page__pos-outcome[data-v-9243197e],
.profile-page--desk .profile-page__pill,
.profile-page--desk .profile-page__pill[data-v-9243197e] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 22px !important;
  min-width: 42px;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  color: #f5f5f5 !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
}

.profile-page--desk .profile-page__pos-outcome--yes,
.profile-page--desk .profile-page__pos-outcome--yes[data-v-9243197e],
.profile-page--desk .profile-page__pill--won,
.profile-page--desk .profile-page__pill--won[data-v-9243197e] {
  background: #2ee59d !important;
  color: #0a0b0c !important;
  border-color: transparent !important;
}

.profile-page--desk .profile-page__pos-outcome--no,
.profile-page--desk .profile-page__pos-outcome--no[data-v-9243197e],
.profile-page--desk .profile-page__pill--lost,
.profile-page--desk .profile-page__pill--lost[data-v-9243197e] {
  background: #ff6b7a !important;
  color: #0a0b0c !important;
  border-color: transparent !important;
}

.profile-page--desk .profile-page__pill--void,
.profile-page--desk .profile-page__pill--void[data-v-9243197e] {
  background: #eab308 !important;
  color: #0a0b0c !important;
}

.profile-page--desk .profile-page__order-cancel {
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 12px !important;
  border-radius: 9px !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
  color: rgba(245, 245, 245, 0.72) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
}

.profile-page--desk .profile-page__order-cancel:hover {
  color: #ff6b7a !important;
  background: rgba(255, 107, 122, 0.08) !important;
  border-color: rgba(255, 107, 122, 0.35) !important;
  filter: none !important;
}

.profile-page--desk .lk-card,
.profile-page--desk .profile-page__card,
.profile-page--desk .lk-card[data-v-f27b632d] {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.profile-page--desk .profile-page__settings-desk > .lk-card,
.profile-page--desk .profile-page__settings-desk > .lk-card[data-v-f27b632d] {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 0 24px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.profile-page--desk .bw-desk__rail,
.profile-page--desk .bw-desk__floor,
.profile-page--desk .bw-desk__top {
  border-color: rgba(255, 255, 255, 0.06) !important;
}

.lk-layout:has(.markets-page) .lk-layout__content,
.lk-layout:has(.event-page) .lk-layout__content,
.lk-layout:has(.profile-page--desk) .lk-layout__content,
.lk-layout:has([data-bw-profile]) .lk-layout__content {
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
}

/* Event page — markets + trades: same plain panel as .pm-trade */
.event-page .event-markets,
.event-page .ev-trades {
  padding: 14px 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: var(--surface-1, #121213);
  box-shadow: none;
}

.event-page .ev-trades {
  margin-top: 4px;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.event-page .ev-trades__cols {
  background: var(--surface-1, #121213);
}

/* Title + count share one baseline (small count was floating up with center align) */
.event-page .event-markets__head,
.event-page .ev-trades__head {
  align-items: baseline;
  min-height: 0;
  padding: 0 2px 10px;
}

.event-page .event-markets__head-left,
.event-page .ev-trades__head-left {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-height: 0;
  line-height: 1.15;
}

.event-page .event-markets__title,
.event-page .ev-trades__title {
  margin: 0;
  padding: 0;
  height: auto;
  line-height: 1.15;
  display: inline;
  align-items: unset;
}

.event-page .event-markets__count,
.event-page .ev-trades__count {
  display: inline;
  height: auto;
  min-height: 0;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.45);
  transform: none;
  position: static;
  top: auto;
}

.event-page .event-markets__chance {
  line-height: 1.15;
  display: inline;
  height: auto;
  padding-right: 0;
  align-self: baseline;
}

@media (max-width: 720px) {
  .event-page .event-markets,
  .event-page .ev-trades {
    padding: 12px 10px 10px;
    border-radius: 12px;
  }
}

/* ——— Site-wide text contrast (dark shell) ——— */
html.pm-shell--dark {
  --text-primary: #ffffff;
  --text-secondary: #e8eaed;
  --text-tertiary: #d0d4da;
  --text-muted: #c8ccd2;
  --muted: #e8eaed;
  --faint: rgba(255, 255, 255, 0.78);
  color: #ffffff;
}

html.pm-shell--dark .lk-layout,
html.pm-shell--dark .lk-layout__content,
html.pm-shell--dark .lk-layout__page {
  --text-primary: #ffffff;
  --text-secondary: #e8eaed;
  --text-tertiary: #d0d4da;
  --text-muted: #c8ccd2;
  color: #ffffff;
}

html.pm-shell--dark .lk-layout:has(.profile-page--desk),
html.pm-shell--dark .lk-layout:has([data-bw-profile]) {
  --font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --text-secondary: #e8eaed;
  --text-muted: #d0d4da;
  --text-tertiary: #d0d4da;
}




/* ——— LK desk folio (two-column portfolio + charcoal wash) ——— */
html.pm-shell--dark .lk-layout:has(.profile-page--desk),
html.pm-shell--dark .lk-layout:has([data-bw-profile]) {
  background-color: #0e0f12 !important;
  background-image:
    radial-gradient(ellipse 85% 50% at 50% -8%, rgba(255, 255, 255, 0.045) 0%, transparent 58%),
    radial-gradient(ellipse 55% 38% at 0% 100%, rgba(255, 255, 255, 0.02) 0%, transparent 55%),
    linear-gradient(180deg, #121316 0%, #0e0f12 48%, #0b0b0c 100%) !important;
  background-attachment: fixed !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.profile-page--desk,
[data-bw-profile].profile-page {
  padding: 8px 0 72px;
}

.profile-page--desk .profile-page__title,
[data-bw-profile] .profile-page__title {
  font-size: clamp(26px, 2.8vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.profile-page--desk .profile-page__tab,
[data-bw-profile] .profile-page__tab {
  color: #c8ced6;
  font-size: 13px;
  font-weight: 600;
}

.profile-page--desk .profile-page__tab--active,
[data-bw-profile] .profile-page__tab--active {
  color: #ffffff;
}

/* Two-column folio root — !important beats legacy .bw-desk flex / .bw-desk__rail metrics grid */
.bw-desk--folio.bw-desk,
.profile-page--desk .bw-desk--folio,
[data-bw-profile] .bw-desk--folio {
  display: grid !important;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) !important;
  gap: 0 !important;
  padding: 0 !important;
  align-items: start !important;
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
}

.bw-desk--folio .bw-desk__aside {
  position: sticky;
  top: 88px;
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  gap: 0;
  padding: 4px 28px 24px 0;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
  background: transparent;
  overflow: visible;
}

.bw-desk--folio .bw-desk__cash {
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: none;
  box-shadow: none;
}

.bw-desk--folio .bw-desk__eyebrow {
  margin: 0;
  color: #c8ced6;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bw-desk--folio .bw-desk__figure {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.bw-desk--folio .bw-desk__balance {
  font-size: clamp(36px, 4vw, 44px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.bw-desk--folio .bw-desk__ccy {
  color: #c8ced6;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.bw-desk--folio .bw-desk__lede--show {
  display: block;
  margin: 10px 0 0;
  color: #c8ced6;
  font-size: 12px;
  line-height: 1.35;
}

.bw-desk--folio .bw-desk__cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bw-desk--folio .bw-desk__cta .lk-btn {
  width: 100%;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 650;
  justify-content: center;
}

.bw-desk--folio .bw-desk__cta .lk-btn--primary,
.bw-desk--folio .bw-desk__cta .lk-btn[data-bw-lk-action="deposit"] {
  background: #c9d8cf;
  border: 0;
  color: #132019;
}

.bw-desk--folio .bw-desk__cta .lk-btn--primary:hover,
.bw-desk--folio .bw-desk__cta .lk-btn[data-bw-lk-action="deposit"]:hover {
  background: #dae7de;
  color: #132019;
  filter: none;
}

.bw-desk--folio .bw-desk__cta .lk-btn--tertiary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.bw-desk--folio .bw-desk__status {
  padding: 18px 0 0;
  background: transparent;
  border: 0;
}

.bw-desk--folio .bw-desk__pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.bw-desk--folio .bw-desk__pane-title {
  margin: 0;
  color: #ffffff;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.bw-desk--folio .bw-desk__tier-pill {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bw-desk--folio .bw-desk__tier-meta {
  margin: 0;
  color: #c8ced6;
  font-size: 12px;
  line-height: 1.4;
}

.bw-desk--folio .bw-desk__bar {
  height: 2px;
  margin-top: 14px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.bw-desk--folio .bw-desk__bar-fill {
  display: block;
  height: 100%;
  background: #3c9bf4;
  border-radius: 0;
}

.bw-desk--folio .bw-desk__tier-scale {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-top: 10px;
}

.bw-desk--folio .bw-desk__tier-scale span {
  color: #8b939e;
  font-size: 9px;
  font-weight: 550;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.bw-desk--folio .bw-desk__tier-scale span.is-active {
  color: #ffffff;
  font-weight: 700;
}

/* Main column */
.bw-desk--folio .bw-desk__main {
  min-width: 0;
  padding: 0 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bw-desk--folio .bw-desk__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
}

.bw-desk--folio .bw-desk__metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 16px 14px 0;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
}

.bw-desk--folio .bw-desk__metric:last-child {
  border-right: 0;
  padding-right: 0;
}

.bw-desk--folio .bw-desk__stat-label {
  color: #c8ced6;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bw-desk--folio .bw-desk__stat-value {
  color: #ffffff;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.bw-desk--folio .bw-desk__stat-value.is-in {
  color: #5a9e72;
}

.bw-desk--folio .bw-desk__stat-value.is-out {
  color: #e07070;
}

.bw-desk--folio .bw-desk__plot {
  padding: 14px 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
}

.bw-desk--folio .bw-desk__viz-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.bw-desk--folio .bw-desk__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.bw-desk--folio .bw-desk__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c8ced6;
  font-size: 12px;
  font-weight: 550;
}

.bw-desk--folio .bw-desk__legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.bw-desk--folio .bw-desk__range {
  display: inline-flex;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
}

.bw-desk--folio .bw-desk__range-btn {
  position: relative;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #c8ced6;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.bw-desk--folio .bw-desk__range-btn:hover {
  color: #ffffff;
}

.bw-desk--folio .bw-desk__range-btn.is-active {
  color: #ffffff;
  background: transparent;
}

.bw-desk--folio .bw-desk__range-btn.is-active::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 0;
  height: 2px;
  background: #3c9bf4;
}

.bw-desk--folio .bw-desk__chart.desk-chart,
.bw-desk--folio .desk-chart.bw-desk__chart {
  min-height: 190px;
  height: 210px;
  border-radius: 0;
  border: 0;
  background: transparent;
}

/* Ledger table */
.bw-desk--folio .bw-desk__ledger {
  padding: 16px 0 0;
  background: transparent;
  border: 0;
}

.bw-desk--folio .bw-desk__ledger .bw-desk__pane-head {
  margin-bottom: 10px;
}

.bw-desk--folio .bw-desk__ledger-head,
.bw-desk--folio .bw-desk__ledger-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.4fr) 110px 88px;
  gap: 12px;
  align-items: center;
}

.bw-desk--folio .bw-desk__ledger-head {
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #c8ced6;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bw-desk--folio .bw-desk__ledger-head span:last-child,
.bw-desk--folio .bw-desk__ledger-amt {
  text-align: right;
}

.bw-desk--folio .bw-desk__ledger-row {
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.bw-desk--folio .bw-desk__ledger-type {
  color: #c8ced6;
  font-size: 12px;
  font-weight: 600;
}

.bw-desk--folio .bw-desk__ledger-market {
  color: #ffffff;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.bw-desk__ledger-market:hover {
  color: #3c9bf4;
}

.bw-desk--folio .bw-desk__ledger-when {
  color: #c8ced6;
  font-size: 12px;
}

.bw-desk--folio .bw-desk__ledger-amt {
  color: #ffffff;
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.bw-desk--folio .bw-desk__ledger-amt.is-in {
  color: #5a9e72;
}

.bw-desk--folio .bw-desk__ledger-amt.is-out {
  color: #e07070;
}

.bw-desk--folio .bw-desk__empty {
  margin: 14px 0 0;
  color: #c8ced6;
  font-size: 13px;
}

/* Positions / history / settings — same skeletal language */
.profile-page--desk .bw-desk--panel,
[data-bw-profile] .bw-desk--panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.profile-page--desk .bw-desk__rail--compact,
[data-bw-profile] .bw-desk__rail--compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
}

.profile-page--desk .bw-desk__rail--compact .bw-desk__stat,
[data-bw-profile] .bw-desk__rail--compact .bw-desk__stat {
  padding: 14px 16px 14px 0;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
}

.profile-page--desk .bw-desk__rail--compact .bw-desk__stat:last-child,
[data-bw-profile] .bw-desk__rail--compact .bw-desk__stat:last-child {
  border-right: 0;
  padding-right: 0;
}

.profile-page--desk .bw-desk__table-wrap,
[data-bw-profile] .bw-desk__table-wrap {
  padding: 18px 0 8px;
  border: 0;
  background: transparent;
}

.profile-page--desk .profile-page__positions-head,
.profile-page--desk .bw-tx__head,
[data-bw-profile] .profile-page__positions-head,
[data-bw-profile] .bw-tx__head {
  color: #c8ced6;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-page--desk .profile-page__pos-row,
.profile-page--desk .bw-tx__row,
[data-bw-profile] .profile-page__pos-row,
[data-bw-profile] .bw-tx__row {
  border-color: rgba(255, 255, 255, 0.07);
}

.profile-page--desk .profile-page__settings-stack,
[data-bw-profile] .profile-page__settings-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-page--desk .profile-page__settings-profile,
.profile-page--desk .profile-page__promo,
.profile-page--desk .profile-page__settings-card,
.profile-page--desk .lk-card.profile-page__settings-card,
[data-bw-profile] .profile-page__settings-profile,
[data-bw-profile] .profile-page__promo,
[data-bw-profile] .profile-page__settings-card {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 18px 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.profile-page--desk .profile-page__settings-card:last-child,
[data-bw-profile] .profile-page__settings-card:last-child {
  border-bottom: 0 !important;
}

.profile-page--desk .lk-card__title,
.profile-page--desk .profile-page__card-title,
[data-bw-profile] .lk-card__title,
[data-bw-profile] .profile-page__card-title {
  color: #ffffff;
  font-size: 13px;
  font-weight: 650;
}

.profile-page--desk .bw-desk__section-lede,
[data-bw-profile] .bw-desk__section-lede {
  color: #c8ced6;
  font-size: 12px;
}

@media (max-width: 960px) {
  .bw-desk--folio.bw-desk,
  .profile-page--desk .bw-desk--folio,
  [data-bw-profile] .bw-desk--folio {
    grid-template-columns: 1fr !important;
  }

  .bw-desk--folio .bw-desk__aside {
    position: static;
    padding: 0 0 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .bw-desk--folio .bw-desk__cta {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .bw-desk--folio .bw-desk__cta .lk-btn {
    width: auto;
    flex: 1 1 auto;
  }

  .bw-desk--folio .bw-desk__main {
    padding: 18px 0 0;
  }

  .bw-desk--folio .bw-desk__metrics {
    grid-template-columns: 1fr 1fr;
  }

  .bw-desk--folio .bw-desk__metric:nth-child(2) {
    border-right: 0;
    padding-right: 0;
  }

  .bw-desk--folio .bw-desk__metric:nth-child(3),
  .bw-desk--folio .bw-desk__metric:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
  }

  .bw-desk--folio .bw-desk__ledger-head,
  .bw-desk--folio .bw-desk__ledger-row {
    grid-template-columns: 64px minmax(0, 1fr) 72px;
  }

  .bw-desk--folio .bw-desk__ledger-when {
    display: none;
  }

  .profile-page--desk .bw-desk__rail--compact,
  [data-bw-profile] .bw-desk__rail--compact {
    grid-template-columns: 1fr;
  }

  .profile-page--desk .bw-desk__rail--compact .bw-desk__stat,
  [data-bw-profile] .bw-desk__rail--compact .bw-desk__stat {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 0;
  }
}

/* ——— KPI / metrics strip: always one stylish row ——— */
.bw-desk__kpi,
.bw-desk--v2 .bw-desk__kpi,
.bw-desk--pm .bw-desk__metrics,
.bw-desk--folio .bw-desk__metrics,
.profile-page--desk .bw-desk__kpi,
[data-bw-profile] .bw-desk__kpi {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  width: 100%;
  margin: 0;
  padding: 14px 0 16px !important;
  border: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.bw-desk__kpi-item,
.bw-desk--v2 .bw-desk__kpi-item,
.bw-desk__metric,
.profile-page--desk .bw-desk__kpi-item,
[data-bw-profile] .bw-desk__kpi-item {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center;
  gap: 6px !important;
  min-width: 0;
  min-height: 0 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 2px 18px 2px 0 !important;
  border: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.bw-desk__kpi-item:last-child,
.bw-desk__metric:last-child,
.profile-page--desk .bw-desk__kpi-item:last-child,
[data-bw-profile] .bw-desk__kpi-item:last-child {
  border-right: 0 !important;
  padding-right: 0 !important;
}

.bw-desk__kpi-item .bw-desk__stat-label,
.bw-desk__metric .bw-desk__stat-label {
  color: #8b939e !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  line-height: 1.2;
}

.bw-desk__kpi-item .bw-desk__stat-value,
.bw-desk__metric .bw-desk__stat-value {
  color: #ffffff !important;
  font-size: 22px !important;
  font-weight: 650 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.1 !important;
  font-variant-numeric: tabular-nums;
}

.bw-desk__kpi-item .bw-desk__stat-value.is-in,
.bw-desk__metric .bw-desk__stat-value.is-in {
  color: #5a9e72 !important;
}

.bw-desk__kpi-item .bw-desk__stat-value.is-out,
.bw-desk__metric .bw-desk__stat-value.is-out {
  color: #e07070 !important;
}

/* Legacy v2 hero: cash full width, then KPI row (no stacked cards) */
.bw-desk--v2.bw-desk,
.profile-page--desk .bw-desk--v2 {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.bw-desk--v2 .bw-desk__band,
.bw-desk--v2 .bw-desk__band--hero {
  display: block !important;
  width: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

.bw-desk--v2 .bw-desk__cash {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  width: 100%;
  padding: 4px 0 18px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.bw-desk--v2 .bw-desk__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

@media (max-width: 720px) {
  .bw-desk__kpi,
  .bw-desk--v2 .bw-desk__kpi,
  .bw-desk--folio .bw-desk__metrics,
  .profile-page--desk .bw-desk__kpi,
  [data-bw-profile] .bw-desk__kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .bw-desk__kpi-item:nth-child(2),
  .bw-desk__metric:nth-child(2) {
    border-right: 0 !important;
    padding-right: 0 !important;
  }

  .bw-desk__kpi-item:nth-child(n + 3),
  .bw-desk__metric:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 12px !important;
    margin-top: 12px !important;
  }
}

/* ——— LK masthead + tabs (editorial / expensive, no AI chrome) ——— */
.profile-page--desk .profile-page__head,
[data-bw-profile] .profile-page__head {
  align-items: flex-end;
  padding: 10px 0 20px;
  margin-bottom: 0;
  border-bottom: 0;
}

.profile-page--desk .profile-page__identity,
[data-bw-profile] .profile-page__identity {
  gap: 0;
  flex: 1;
  min-width: 0;
}

.profile-page--desk .profile-page__identity-text,
[data-bw-profile] .profile-page__identity-text {
  gap: 10px;
  width: 100%;
}

.profile-page--desk .profile-page__title,
[data-bw-profile] .profile-page__title {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 38px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: #ffffff;
}

.profile-page--desk .profile-page__subline,
[data-bw-profile] .profile-page__subline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  min-width: 0;
}

.profile-page--desk .profile-page__meta,
[data-bw-profile] .profile-page__meta {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  gap: 0;
}

.profile-page--desk .profile-page__hash,
[data-bw-profile] .profile-page__hash {
  color: #9aa3ae;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.profile-page--desk .profile-page__hash-label,
[data-bw-profile] .profile-page__hash-label {
  margin-right: 6px;
  color: #6f7884;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-page--desk .profile-page__status,
[data-bw-profile] .profile-page__status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  line-height: 1.2;
}

.profile-page--desk .profile-page__status-k,
[data-bw-profile] .profile-page__status-k {
  margin-right: 4px;
  color: #7a8490;
  font-weight: 550;
}

.profile-page--desk .profile-page__status-v,
[data-bw-profile] .profile-page__status-v {
  color: #c8ced6;
  font-weight: 600;
}

.profile-page--desk .profile-page__status-item--ok .profile-page__status-v,
[data-bw-profile] .profile-page__status-item--ok .profile-page__status-v {
  color: #6fad86;
}

.profile-page--desk .profile-page__status-item--off .profile-page__status-v,
[data-bw-profile] .profile-page__status-item--off .profile-page__status-v {
  color: #c47a7a;
}

.profile-page--desk .profile-page__status-item--pending .profile-page__status-v,
[data-bw-profile] .profile-page__status-item--pending .profile-page__status-v {
  color: #b9a679;
}

.profile-page--desk .profile-page__status-sep,
[data-bw-profile] .profile-page__status-sep {
  color: #3d4450;
}

.profile-page--desk .profile-page__head-actions,
[data-bw-profile] .profile-page__head-actions {
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
}

.profile-page--desk .profile-page__head-actions .lk-btn,
[data-bw-profile] .profile-page__head-actions .lk-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #e8eaed;
  box-shadow: none;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.profile-page--desk .profile-page__head-actions .lk-btn:hover,
[data-bw-profile] .profile-page__head-actions .lk-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  filter: none;
}

.profile-page--desk .profile-page__head-actions .lk-btn .lk-btn__content,
[data-bw-profile] .profile-page__head-actions .lk-btn .lk-btn__content {
  gap: 6px;
}

.profile-page--desk .profile-page__head-actions .bw-lk-logout,
[data-bw-profile] .profile-page__head-actions .bw-lk-logout {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8b939e;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.profile-page--desk .profile-page__head-actions .bw-lk-logout:hover,
[data-bw-profile] .profile-page__head-actions .bw-lk-logout:hover {
  color: #ffffff;
  background: transparent;
  border: 0;
}

.profile-page--desk .profile-page__tabs,
[data-bw-profile] .profile-page__tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0 auto 22px;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
}

.profile-page--desk .profile-page__tab,
[data-bw-profile] .profile-page__tab {
  position: relative;
  margin: 0;
  margin-right: 28px;
  padding: 14px 0 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8b939e;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.015em;
  transition: color 0.15s ease;
}

.profile-page--desk .profile-page__tab:hover,
[data-bw-profile] .profile-page__tab:hover {
  color: #d8dce2;
  background: transparent;
}

.profile-page--desk .profile-page__tab--active,
[data-bw-profile] .profile-page__tab--active {
  color: #ffffff;
  background: transparent;
}

.profile-page--desk .profile-page__tab--active::after,
[data-bw-profile] .profile-page__tab--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #3c9bf4;
  box-shadow: none;
  filter: none;
}

@media (max-width: 720px) {
  .profile-page--desk .profile-page__head,
  [data-bw-profile] .profile-page__head {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-bottom: 16px;
  }

  .profile-page--desk .profile-page__head-actions,
  [data-bw-profile] .profile-page__head-actions {
    justify-content: flex-start;
    margin-left: 0;
  }

  .profile-page--desk .profile-page__tabs,
  [data-bw-profile] .profile-page__tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .profile-page--desk .profile-page__tab,
  [data-bw-profile] .profile-page__tab {
    margin-right: 20px;
    flex: 0 0 auto;
  }
}

/* ——— LK terminal (absolute new skeleton) ——— */
html.pm-shell--dark .lk-layout:has(.profile-page--term),
html.pm-shell--dark .lk-layout:has([data-lk-term]) {
  background-color: #0e0f12 !important;
  background-image:
    radial-gradient(ellipse 80% 48% at 50% -10%, rgba(255, 255, 255, 0.04) 0%, transparent 56%),
    linear-gradient(180deg, #121316 0%, #0e0f12 50%, #0c0d10 100%) !important;
  background-attachment: fixed !important;
}

.profile-page--term.profile-page--desk,
[data-bw-profile].profile-page--term {
  display: grid !important;
  grid-template-columns: 168px minmax(0, 1fr) !important;
  grid-template-rows: auto auto 1fr !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 0 64px !important;
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
}

.profile-page--term .profile-page__head,
.profile-page--term .profile-page__tabs,
.profile-page--term [data-bw-profile-panel],
.profile-page--term .lk-term-panel {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.profile-page--term .profile-page__head {
  grid-column: 1 / -1;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 6px 0 14px !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.profile-page--term .profile-page__identity,
.profile-page--term .profile-page__identity-text {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center !important;
  gap: 10px 16px !important;
}

.profile-page--term .profile-page__title {
  font-size: 22px !important;
  font-weight: 650 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.1 !important;
  margin: 0 !important;
}

.profile-page--term .profile-page__subline {
  display: inline-flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px !important;
  margin: 0 !important;
}

.profile-page--term .profile-page__status {
  margin: 0 !important;
}

.profile-page--term .profile-page__head-actions {
  margin-left: auto;
  padding-bottom: 0 !important;
}

/* Vertical nav — left column */
.profile-page--term .profile-page__tabs {
  grid-column: 1;
  grid-row: 2 / span 2;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 2px !important;
  width: 168px !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 16px 14px 0 0 !important;
  border: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-bottom: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

.profile-page--term .profile-page__tab {
  position: relative;
  display: block !important;
  width: 100%;
  margin: 0 !important;
  padding: 10px 12px 10px 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #8b939e !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em;
  text-align: left !important;
}

.profile-page--term .profile-page__tab:hover {
  color: #d8dce2 !important;
  background: transparent !important;
}

.profile-page--term .profile-page__tab--active {
  color: #ffffff !important;
  background: transparent !important;
}

.profile-page--term .profile-page__tab--active::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 8px !important;
  bottom: 8px !important;
  right: auto !important;
  width: 2px !important;
  height: auto !important;
  background: #3c9bf4 !important;
  box-shadow: none !important;
  filter: none !important;
  border-radius: 0 !important;
}

/* Workspace panels — right column */
.profile-page--term .lk-term-panel,
.profile-page--term [data-bw-profile-panel] {
  grid-column: 2;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 16px 0 0 28px !important;
  min-width: 0;
}

.profile-page--term .lk-term-panel[hidden],
.profile-page--term [data-bw-profile-panel][hidden] {
  display: none !important;
}

/* Terminal overview root */
.lk-term {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
}

.lk-term__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lk-term__cash {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lk-term__cash-label {
  color: #8b939e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lk-term__cash-val {
  color: #ffffff;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.lk-term__cash-val em {
  margin-left: 4px;
  color: #8b939e;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lk-term__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lk-term__cta .lk-btn {
  min-height: 32px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}

.lk-term__cta .lk-btn--primary,
.lk-term__cta .lk-btn[data-bw-lk-action="deposit"] {
  background: #c9d8cf !important;
  border: 0 !important;
  color: #132019 !important;
}

.lk-term__cta .lk-btn--tertiary {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

.lk-term__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.lk-term__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.lk-term__stat:first-child {
  padding-left: 0;
}

.lk-term__stat:last-child {
  border-right: 0;
  padding-right: 0;
}

.lk-term__stat-k {
  color: #8b939e;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lk-term__stat-v {
  color: #ffffff;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.lk-term__stat-v.is-in {
  color: #5a9e72;
}

.lk-term__stat-v.is-out {
  color: #c47a7a;
}

.lk-term__vip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 110px;
  padding-left: 4px;
}

.lk-term__vip-tier {
  color: #c8ced6;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lk-term__vip-bar {
  flex: 1;
  height: 2px;
  min-width: 40px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.lk-term__vip-bar i {
  display: block;
  height: 100%;
  background: #3c9bf4;
}

.lk-term__vip-pct {
  color: #8b939e;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Compact sparkline */
.lk-term__spark {
  padding: 12px 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lk-term__spark-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.lk-term__spark-title {
  color: #8b939e;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lk-term__range {
  display: inline-flex;
  gap: 0;
}

.lk-term__range-btn {
  position: relative;
  min-width: 30px;
  height: 24px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: #8b939e;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.lk-term__range-btn:hover {
  color: #d8dce2;
}

.lk-term__range-btn.is-active {
  color: #ffffff;
}

.lk-term__range-btn.is-active::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 0;
  height: 2px;
  background: #3c9bf4;
}

.lk-term__spark .bw-desk__chart.desk-chart,
.lk-term__spark .desk-chart {
  min-height: 120px !important;
  height: 120px !important;
  max-height: 120px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.lk-term__spark .bw-desk__chart-lede {
  display: none;
}

/* Primary ledger table */
.lk-term__table {
  padding: 14px 0 0;
  min-height: 280px;
}

.lk-term__table-head {
  margin-bottom: 8px;
}

.lk-term__table-title {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.lk-term__cols,
.lk-term__row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.5fr) 120px 96px;
  gap: 12px;
  align-items: center;
}

.lk-term__cols {
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #8b939e;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lk-term__cols span:last-child,
.lk-term__amt {
  text-align: right;
}

.lk-term__row {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lk-term__type {
  color: #8b939e;
  font-size: 12px;
  font-weight: 600;
}

.lk-term__mkt {
  color: #ffffff;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.lk-term__mkt:hover {
  color: #3c9bf4;
}

.lk-term__when {
  color: #8b939e;
  font-size: 12px;
}

.lk-term__amt {
  color: #ffffff;
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.lk-term__amt.is-in {
  color: #5a9e72;
}

.lk-term__amt.is-out {
  color: #c47a7a;
}

.lk-term__empty {
  margin: 16px 0 0;
  color: #8b939e;
  font-size: 13px;
}

/* Side panels denser under terminal */
.profile-page--term .bw-desk--panel,
.profile-page--term .bw-desk__rail--compact,
.profile-page--term .bw-desk__table-wrap {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 900px) {
  .profile-page--term.profile-page--desk,
  [data-bw-profile].profile-page--term {
    display: flex !important;
    flex-direction: column !important;
    max-width: 100%;
  }

  .profile-page--term .profile-page__tabs {
    flex-direction: row !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 0 12px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    overflow-x: auto !important;
  }

  .profile-page--term .profile-page__tab {
    flex: 0 0 auto;
    width: auto !important;
    padding: 12px 14px 11px !important;
  }

  .profile-page--term .profile-page__tab--active::after {
    left: 14px !important;
    right: 14px !important;
    top: auto !important;
    bottom: -1px !important;
    width: auto !important;
    height: 2px !important;
  }

  .profile-page--term .lk-term-panel,
  .profile-page--term [data-bw-profile-panel] {
    padding: 8px 0 0 !important;
  }

  .lk-term__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .lk-term__stats {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .lk-term__cols,
  .lk-term__row {
    grid-template-columns: 56px minmax(0, 1fr) 72px;
  }

  .lk-term__when {
    display: none;
  }
}
