/* 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: #22272B !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%, #22272B 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: #22272B;
  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: #22272B !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: #22272B !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(47, 107, 255, 0.22);
  border-color: rgba(47, 107, 255, 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(47, 107, 255, 0.14);
  border-color: rgba(47, 107, 255, 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(47, 107, 255, 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 ? Polymarket 1/2/3/4 grid, ~180px cards ??? */
.markets-page__grid[data-v-905ee66d],
.markets-page .markets-page__grid {
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .markets-page__grid[data-v-905ee66d],
  .markets-page .markets-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .markets-page__grid[data-v-905ee66d],
  .markets-page .markets-page__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .markets-page__grid[data-v-905ee66d],
  .markets-page .markets-page__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.markets-page .pm-card[data-v-a0b383ef],
.markets-page .pm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  height: 100%;
  padding: 12px 12px 10px;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid #242b32;
  background: #22272B;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  font-family: "Inter", var(--font-family, system-ui);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  transform: none;
}

.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: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.12);
  background: #22292e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  border-radius: 12px;
}

.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);
}

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

.markets-page .pm-card__head,
.markets-page .pm-card__head[data-v-a0b383ef] {
  display: grid !important;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center !important;
}

.markets-page .pm-card__head--multi,
.markets-page .pm-card__head--multi[data-v-a0b383ef] {
  grid-template-columns: 32px minmax(0, 1fr);
}

.markets-page .pm-card__head-copy {
  min-width: 0;
  padding-top: 0;
  display: flex;
  align-items: center;
}

.markets-page .pm-card__icon,
.markets-page .pm-card__icon[data-v-a0b383ef] {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  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: 13px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-primary, #f5f5f5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -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,
.markets-page .pm-card__gauge[data-v-a0b383ef] {
  position: relative;
  width: auto;
  min-width: 44px;
  flex-shrink: 0;
  color: #c9d8cf;
  text-align: right;
  display: flex !important;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

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

.markets-page .pm-card__gauge-track,
.markets-page .pm-card__gauge-fill {
  display: none;
}

.markets-page .pm-card__gauge-text,
.markets-page .pm-card__gauge-text[data-v-a0b383ef] {
  position: static !important;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.markets-page .pm-card__gauge-pct,
.markets-page .pm-card__gauge-pct[data-v-a0b383ef] {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary, #f5f5f5);
  line-height: 1.25 !important;
}

.markets-page .pm-card__gauge-sub {
  display: none;
}

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

.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: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  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: 18px;
  height: 18px;
  border-radius: 5px;
  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: 12px;
  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: #2F6BFF;
  border-radius: inherit;
}

.markets-page .pm-card__list-pct,
.markets-page .pm-card__list-pct[data-v-a0b383ef] {
  position: static;
  min-width: 36px;
  height: auto;
  padding: 0;
  display: inline-flex;
  justify-content: flex-end;
  font-size: 12px;
  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: 6px;
}

.markets-page .pm-card__btn,
.markets-page .pm-card__btn[data-v-a0b383ef] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  border: 1px solid transparent !important;
  text-decoration: none !important;
  transition: filter 0.15s ease !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}

.markets-page .pm-card__btn-side {
  font-weight: 750 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  color: inherit !important;
}

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

/* Same language as event-page Yes/No pills */
.markets-page .pm-card__btn--yes,
.markets-page .pm-card__btn--yes[data-v-a0b383ef] {
  color: #0a0b0c !important;
  background: #2ee59d !important;
  background-color: #2ee59d !important;
  border-color: #2ee59d !important;
}

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

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

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

.markets-page .pm-card__foot,
.markets-page .pm-card__foot[data-v-a0b383ef] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  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: 767px) {
  .markets-page .pm-card,
  .markets-page .pm-card[data-v-a0b383ef] {
    min-height: 168px;
    padding: 11px 12px 9px;
    gap: 8px;
  }

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

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

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

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

/* ??? 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;
}

/* Full-bleed scrollport ? gutters must still scroll (not dead zones beside max-width) */
.lk-layout--no-cat-sidebar:has(.markets-page) .lk-layout__content,
.lk-layout:has(.markets-page) .lk-layout__content {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: max(16px, calc((100% - var(--pm-content-max, 1350px)) / 2 + 16px));
  padding-right: max(16px, calc((100% - var(--pm-content-max, 1350px)) / 2 + 16px));
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .lk-layout--no-cat-sidebar:has(.markets-page) .lk-layout__content,
  .lk-layout:has(.markets-page) .lk-layout__content {
    padding-left: max(24px, calc((100% - var(--pm-content-max, 1350px)) / 2 + 24px));
    padding-right: max(24px, calc((100% - var(--pm-content-max, 1350px)) / 2 + 24px));
  }
}

/* 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);
  overflow: visible;
}

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

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

.cat-rail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #252A31;
  color: #B8C0CC;
  cursor: pointer;
  position: relative;
  z-index: 2;
  box-shadow: none;
  transition:
    color 150ms ease-out,
    background 150ms ease-out,
    border-color 150ms ease-out,
    transform 150ms ease-out;
}

.cat-rail__btn svg {
  display: block;
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.cat-rail__btn:hover {
  color: #FFFFFF;
  background: #2A3036;
  border-color: rgba(255, 255, 255, 0.14);
}

.cat-rail__btn:active {
  transform: scale(0.96);
  background: #22272B;
  border-color: rgba(47, 107, 255, 0.35);
  color: #6B93FF;
}

.cat-rail__btn:focus-visible {
  outline: none;
  border-color: #2F6BFF;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.22);
}

.cat-rail__btn:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
  background: #22272B;
  color: #5E6773;
  border-color: rgba(255, 255, 255, 0.05);
}

.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;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 0;
  mask-image: none;
  -webkit-mask-image: none;
}

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

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

.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: "Inter", 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;
  scroll-snap-align: start;
  visibility: visible !important;
  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 0 12px;
    width: 100%;
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }

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

  .cat-rail {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 6px;
    padding: 0 4px;
  }

  .cat-rail__btn {
    display: inline-flex !important;
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .cat-rail__scroller {
    mask-image: none;
    -webkit-mask-image: none;
    scroll-padding-inline: 4px;
  }

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

  .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: 20px 0 8px;
}

.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: 8px 0 24px;
}

.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 {
  display: block;
  margin: 0;
  max-width: 64ch;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Exactly two rows on every locale: company+rights / market delay */
.bw-site-footer__copy-row {
  display: block;
}

.bw-site-footer__copy-row + .bw-site-footer__copy-row {
  margin-top: 2px;
}

/* Keep brand inline inside the ? line ? never a stacked block */
.bw-site-footer__copy .bw-site-footer__copy-brand,
.bw-site-footer__copy [data-bw-site-brand] {
  display: inline !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  color: inherit !important;
}

/* 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: block;
}

.legal-doc__hero-aside,
.legal-doc__aside-label,
.legal-doc__aside-line,
.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);
}

.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(47, 107, 255, 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 hero: no card chrome — sit on page background (all breakpoints) */
.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.is-active,
.feat-carousel--updown-only .feat-slide__inner,
.feat-carousel--updown-only .feat-slide__inner.updown-card,
.feat-carousel--updown-only .updown-card,
.feat-carousel--updown-only .updown-card[data-v-a31d07d0] {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.feat-carousel--updown-only .feat-carousel__stage {
  overflow: visible;
}

.feat-carousel--updown-only .updown-card__body.updown-stage {
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.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: block;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.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;
}

/* Live book chart ? same surface as the slide, no framed panel chrome */
.updown-brief__livechart {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.updown-brief__chart-hud {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 0 10px;
  pointer-events: none;
  background: transparent;
  border-bottom: none;
}

.updown-brief__chart-plot {
  position: relative;
  flex: 1 1 auto;
  min-height: 260px;
  width: 100%;
  overflow: hidden;
  background: transparent;
}

.updown-brief__canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  cursor: crosshair;
  background: transparent;
}

.updown-brief__chart-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  min-width: 0;
}

.updown-brief__chart-cap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.updown-brief__chart-k {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.updown-brief__chart-v {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.1;
}

.updown-brief__chart-sides {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.updown-brief__chart-side {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

.updown-brief__chart-side span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.updown-brief__chart-side strong {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1;
}

.updown-brief__chart-side--yes span,
.updown-brief__chart-side--yes strong {
  color: #10b981;
}

.updown-brief__chart-side--no span,
.updown-brief__chart-side--no strong {
  color: #ef4444;
}

.updown-brief__chart-caps,
.updown-brief__chart-sides {
  transition: opacity 0.25s ease;
  opacity: calc(1 - var(--bw-flash, 0) * 0.08);
}

.feat-carousel .updown-brief__chart-plot {
  min-height: 268px;
}

@media (max-width: 560px) {
  .updown-brief__chart-hud {
    padding: 8px 0 6px;
  }

  .updown-brief__chart-sides {
    margin-left: 0;
  }

  .updown-brief__chart-plot,
  .updown-brief__canvas,
  .feat-carousel .updown-brief__chart-plot {
    min-height: 180px;
  }
}

/* Legacy meter / stats (unused after livechart) */
.updown-brief__chart-bar {
  display: none;
}

.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__chart-sides {
    margin-left: 0;
    justify-content: flex-start;
  }

  .updown-brief__chart-plot,
  .updown-brief__canvas {
    min-height: 220px;
  }

  .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: none;
  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(47, 107, 255, 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(47, 107, 255, 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: 0;
  border-bottom: none;
}

.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: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.updown-intro__lede > span {
  display: block;
}

/* Desktop: exactly two rows ? one span per line, no wrap */
@media (min-width: 901px) {
  .updown-intro__lede {
    font-size: 13px;
    line-height: 1.4;
  }

  .updown-intro__lede > span {
    white-space: nowrap;
  }
}

.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 1 auto;
  min-height: 420px;
  height: min(476px, 56vh);
  max-height: min(520px, 62vh);
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.feat-carousel .updown-stage__tape {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-right: none;
  background: transparent;
}

.feat-carousel .updown-stage__settle {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  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-brief__livechart {
  flex: 1 1 auto;
  min-height: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.feat-carousel .updown-brief__chart-plot {
  flex: 1 1 auto;
  min-height: 200px;
  max-height: 100%;
  background: transparent;
}

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

.feat-carousel .updown-tape__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 14px 18px 10px;
  border-bottom: none;
}

.feat-carousel .updown-tape__live {
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #c2c8d0;
}

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

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

.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: 2px 18px 12px;
  list-style: none;
  overflow: hidden;
  min-height: 0;
  height: 0;
  max-height: none;
  gap: 0;
  contain: layout style;
}

.feat-carousel .updown-tape__row {
  position: relative;
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  flex: 0 0 auto;
  min-height: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-top: none;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  transition: background 0.15s ease;
}

.feat-carousel .updown-tape__row:first-child {
  border-top: 0;
}

.feat-carousel .updown-tape__row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.feat-carousel .updown-tape__rail,
.feat-carousel .updown-tape__body,
.feat-carousel .updown-tape__meta {
  display: none !important;
}

.feat-carousel .updown-tape__lead {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

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

.feat-carousel .updown-tape__row--up .updown-tape__amt {
  color: #10b981;
}

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

.feat-carousel .updown-tape__side {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  color: var(--text-muted);
}

.feat-carousel .updown-tape__row--up .updown-tape__side,
.feat-carousel .updown-tape__row--down .updown-tape__side {
  color: var(--text-muted);
  background: transparent;
  border: 0;
}

.feat-carousel .updown-tape__event {
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #c2c8d0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feat-carousel .updown-tape__wallet {
  min-width: 0;
  max-width: none;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.34);
  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;
  }

  .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: 12px 14px 8px;
  }

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

  .feat-carousel .updown-tape__row {
    grid-template-columns: 5.25rem minmax(0, 1fr);
    column-gap: 10px;
    min-height: 34px;
    height: 34px;
    padding: 0;
  }

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

  .feat-carousel .updown-tape__side {
    font-size: 12px;
    padding: 0;
  }

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

  .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 {
    display: flex !important;
    flex-direction: column;
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    min-height: 0;
  }

  /* Chart first (PM phone), tape below — exact N rows, no clipped line */
  .feat-carousel .updown-stage__settle {
    order: 1;
    padding: 14px 12px 12px;
  }

  .feat-carousel .updown-stage__tape {
    order: 2;
    border-right: none;
    border-bottom: none;
    height: auto;
    max-height: none;
    min-height: 0;
  }

  .feat-carousel .updown-tape {
    height: auto;
    min-height: 0;
  }

  .feat-carousel .updown-tape__list {
    flex: 0 0 auto;
    height: auto !important;
    max-height: calc(9 * 34px);
    overflow: hidden;
    padding: 0 14px 8px;
  }

  .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: 10px 8px 8px;
  }

  .feat-carousel .updown-stage__tape {
    height: auto;
    max-height: none;
    min-height: 0;
  }

  .feat-carousel .updown-tape__list {
    height: auto !important;
    max-height: calc(9 * 32px);
    overflow: hidden;
    padding: 0 12px 8px;
  }

  .feat-carousel .updown-tape__row {
    min-height: 32px;
    height: 32px;
  }

  .updown-brief__chart-plot,
  .updown-brief__canvas,
  .feat-carousel .updown-brief__chart-plot {
    min-height: 180px;
  }

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

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

  .feat-carousel .updown-tape__list {
    height: auto !important;
    max-height: calc(10 * 32px);
    overflow: hidden;
    padding: 0 12px 8px;
  }

  .feat-carousel .updown-tape__row {
    min-height: 32px;
    height: 32px;
    padding: 0;
  }

  .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: none;
  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: "Inter", 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(47, 107, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 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: #2F6BFF !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: #2F6BFF;
  border-color: #2F6BFF;
}

.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;
  }
}


/* ??? Polymarket canvas tokens (from PM dump) ??? */
html.pm-shell--dark,
html.pm-shell--dark body {
  --bw-matte: #030712;
  --background: #030712;
  --surface-1: #20252B;
  --surface-2: #22272B;
  --bg-elevated: #22272B;
  --pm-neutral-0: #15191d;
  --pm-neutral-50: #22272B;
  --pm-neutral-100: #242b32;
  --tertiary: rgba(255, 255, 255, 0.055);
  background: #030712;
  background-color: #030712;
}

html.pm-shell--dark .lk-layout[data-v-e41fc834],
html.pm-shell--dark .lk-layout {
  --background: #030712;
  --surface-1: #20252B;
  --surface-2: #22272B;
  --bg-elevated: #22272B;
  --tertiary: rgba(255, 255, 255, 0.055);
  color: var(--text-primary);
  background-color: #030712;
  background-image: none;
  background-attachment: fixed;
  background-size: auto;
  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 balance ? label + green amount + muted deposit pill (example layout) */
.lk-header .lk-user,
.lk-user[data-v-586e76de] {
  gap: 16px !important;
  min-width: 0;
  max-width: 100%;
}

/* Nickname: never paint over Deposit or hamburger */
.lk-header .lk-user__menu-wrap,
.lk-user__menu-wrap[data-v-586e76de],
.lk-user__menu-wrap {
  min-width: 0;
  max-width: min(140px, 26vw);
  flex: 0 1 auto;
  overflow: hidden;
}

.lk-header .lk-user__menu,
.lk-user__menu[data-v-586e76de],
.lk-user__menu {
  display: flex !important;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.lk-header .lk-user__name,
.lk-user__name[data-v-586e76de],
.lk-user__name {
  display: block !important;
  min-width: 0;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.lk-header .lk-user__balance,
.lk-user__balance[data-v-586e76de],
.lk-user__balance {
  flex: 0 0 auto;
}

.lk-header .hmenu,
.lk-layout .lk-header__right > .hmenu {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

.lk-header .lk-user__balance,
.lk-user__balance[data-v-586e76de],
.lk-user__balance {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.lk-user__balance-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  max-width: min(160px, 28vw);
  line-height: 1.15;
}

.lk-user__balance-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.lk-header .lk-user__balance-value,
.lk-user__balance-value[data-v-586e76de],
.lk-user__balance-value {
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #22c55e !important;
  white-space: nowrap;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.lk-user__balance .lk-btn.lk-btn--deposit,
.lk-user__balance .lk-btn[data-bw-lk-action="deposit"],
.lk-header .lk-user__balance .lk-btn.lk-btn--deposit,
.lk-header .lk-user__balance .lk-btn[data-bw-lk-action="deposit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  border: 0 !important;
  background: #2F6BFF !important;
  background-color: #2F6BFF !important;
  color: #ffffff !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.15s ease !important;
  filter: none !important;
}

.lk-user__balance .lk-btn.lk-btn--deposit:hover,
.lk-user__balance .lk-btn[data-bw-lk-action="deposit"]:hover,
.lk-header .lk-user__balance .lk-btn.lk-btn--deposit:hover,
.lk-header .lk-user__balance .lk-btn[data-bw-lk-action="deposit"]:hover {
  background: #2459DA !important;
  background-color: #2459DA !important;
  color: #ffffff !important;
  box-shadow: none !important;
  filter: none !important;
}

.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-user__balance .lk-btn--deposit .lk-btn__content,
.lk-header .lk-user__balance .lk-btn[data-bw-lk-action="deposit"] .lk-btn__content {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: inherit !important;
  font-weight: inherit !important;
}

.lk-user__deposit-icon {
  display: block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: inherit;
}

html.pm-shell--light .lk-user__balance-label {
  color: rgba(18, 20, 26, 0.5);
}

html.pm-shell--light .lk-header .lk-user__balance-value,
html.pm-shell--light .lk-user__balance-value {
  color: #16a34a !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"] {
  background: #2F6BFF !important;
  background-color: #2F6BFF !important;
  border: 0 !important;
  color: #ffffff !important;
  box-shadow: none !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 {
  background: #2459DA !important;
  background-color: #2459DA !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* Legacy $ chip ? hide if still in cached markup */
.lk-btn__dollar {
  display: none !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: #030712 !important;
  background-color: #030712 !important;
  border-top-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
}

/* ??? LK desk shell ? Polymarket canvas ??? */
html.pm-shell--dark .lk-layout:has([data-bw-profile]),
html.pm-shell--dark .lk-layout:has(.profile-page--desk) {
  --bg: #030712;
  --bg-soft: #20252B;
  --bg-ink: #22272B;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --muted: #e8eaed;
  --faint: rgba(255, 255, 255, 0.82);
  --accent: #2F6BFF;
  --accent-soft: rgba(47, 107, 255, 0.18);
  --background: #030712;
  --surface-1: #20252B;
  --surface-2: #22272B;
  --bg-elevated: #22272B;
  --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: #2F6BFF;
  --font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  /* Atmosphere set by folio block below ? do not force flat black here */
  color: #ffffff;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

.lk-layout:has([data-bw-profile]),
.lk-layout:has(.profile-page--desk) {
  --font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-family: "Inter", 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-left: 0;
  margin-right: 0;
  padding-left: max(16px, calc((100% - var(--pm-content-max, 1350px)) / 2 + 16px));
  padding-right: max(16px, calc((100% - var(--pm-content-max, 1350px)) / 2 + 16px));
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

@media (min-width: 1024px) {
  .lk-layout:has([data-bw-profile]) .lk-layout__content,
  .lk-layout:has(.profile-page--desk) .lk-layout__content {
    padding-left: max(24px, calc((100% - var(--pm-content-max, 1350px)) / 2 + 24px));
    padding-right: max(24px, calc((100% - var(--pm-content-max, 1350px)) / 2 + 24px));
  }
}

.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: full-bleed bar, inner content aligned to --pm-content-max column */
.lk-layout .lk-header,
.lk-layout .lk-header[data-v-062e97a7],
.lk-layout:has([data-bw-profile]) .lk-header,
.lk-layout:has(.profile-page--desk) .lk-header,
.lk-layout:has(.markets-page) .lk-header,
.lk-layout:has(.event-page) .lk-header,
.lk-layout--no-cat-sidebar .lk-header {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
  padding-left: max(16px, calc((100% - var(--pm-content-max, 1350px)) / 2 + 16px)) !important;
  padding-right: max(16px, calc((100% - var(--pm-content-max, 1350px)) / 2 + 16px)) !important;
}

@media (min-width: 1024px) {
  .lk-layout .lk-header,
  .lk-layout .lk-header[data-v-062e97a7],
  .lk-layout:has([data-bw-profile]) .lk-header,
  .lk-layout:has(.profile-page--desk) .lk-header,
  .lk-layout:has(.markets-page) .lk-header,
  .lk-layout:has(.event-page) .lk-header,
  .lk-layout--no-cat-sidebar .lk-header {
    padding-left: max(24px, calc((100% - var(--pm-content-max, 1350px)) / 2 + 24px)) !important;
    padding-right: max(24px, calc((100% - var(--pm-content-max, 1350px)) / 2 + 24px)) !important;
  }
}

@media (max-width: 720px) {
  .lk-layout .lk-header,
  .lk-layout .lk-header[data-v-062e97a7],
  .lk-layout--no-cat-sidebar .lk-header {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

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.06);
  background: #191D21 !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: "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* Head, tabs, panels: fill parent 1350 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: none;
  margin-left: 0;
  margin-right: 0;
}

.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 {
  display: none !important;
}

.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: #2F6BFF;
}

.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: "Inter", 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: #191D21;
  background: #eceff3;
  border-color: transparent;
}

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

/* PM table card: equal air above/below pager (was flush to card bottom) */
.profile-page--pm .pm-lk__table-card .bw-lk-pager {
  margin: 0;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.profile-page--pm .pm-lk__table-card .pm-lk__empty {
  padding: 28px 16px 32px;
  box-sizing: border-box;
}

.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;
}

.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(47, 107, 255, 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: #2F6BFF;
}

.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(47, 107, 255, 0.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(47, 107, 255, 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, #2459DA, #2F6BFF 55%, #6B93FF);
}

.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: #2F6BFF;
}

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

.profile-page__view-benefits[data-v-9243197e]:hover {
  background: rgba(47, 107, 255, 0.16);
  border-color: rgba(47, 107, 255, 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;
}

/* 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(47, 107, 255, 0.1);
  color: #8ec5f5;
  border: 1px solid rgba(47, 107, 255, 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(47, 107, 255, 0.12);
  color: #9fd0ff;
  border-color: rgba(47, 107, 255, 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: #2F6BFF;
}

.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: 10px;
  align-items: end;
  max-width: 560px;
}

.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: 10px;
  background: rgba(255, 255, 255, 0.03);
  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(47, 107, 255, 0.55);
  background: rgba(47, 107, 255, 0.06);
}

.profile-page__promo-submit {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 42px;
  min-height: 42px;
  min-width: 132px;
  padding: 0 28px;
  border: 0 !important;
  border-radius: 10px;
  background: #2F6BFF !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: none;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: background 0.15s ease;
}

.profile-page__promo-submit:hover:not(:disabled) {
  background: #2459DA !important;
  color: #ffffff !important;
}

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

/* Profile Settings promo CTA ? keep primary blue, wide horizontal chip */
.profile-page--pm .profile-page__promo-submit,
.pm-set .profile-page__promo-submit {
  height: 42px !important;
  min-height: 42px !important;
  min-width: 132px !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #2F6BFF !important;
  color: #ffffff !important;
}

.profile-page--pm .profile-page__promo-submit:hover:not(:disabled),
.pm-set .profile-page__promo-submit:hover:not(:disabled) {
  background: #2459DA !important;
}

.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: #2F6BFF;
}

.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 !important;
}

.profile-page__status-item--off .profile-page__status-v {
  color: #f04444 !important;
}

.profile-page__status-item--pending .profile-page__status-v {
  color: #e0b45a !important;
}

.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, #2F6BFF);
}

.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 12px;
  padding: 0;
  border-top: 0;
}
.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: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #323841;
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  min-height: 42px;
  outline: none;
  transition: border-color 0.16s ease, background-color 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: rgba(255, 255, 255, 0.35);
  letter-spacing: normal;
}

.bw-sec-form__input:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: #2E353C;
}

.bw-sec-form__input:focus,
.bw-sec-form__input:focus-visible {
  border-color: rgba(255, 255, 255, 0.22);
  background: #2E353C;
  box-shadow: none;
  outline: none;
}

.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__resend {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3c9bf4;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  cursor: pointer;
  text-align: left;
}

.bw-sec-form__resend:hover:not(:disabled) {
  color: #6eb6f8;
  text-decoration: underline;
}

.bw-sec-form__resend:disabled {
  color: var(--text-tertiary, rgba(255, 255, 255, 0.45));
  cursor: default;
  text-decoration: none;
}

.bw-sec-form__resend:focus-visible {
  outline: 2px solid rgba(60, 155, 244, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

.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 {
  appearance: none;
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 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: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  color: var(--text-primary, #f5f5f5);
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease;
}

.bw-sec-form__secret:hover {
  color: #fff;
  background: transparent;
  border: 0;
}

.bw-sec-form__secret:focus,
.bw-sec-form__secret:focus-visible,
.bw-sec-form__secret:active {
  outline: none;
  color: var(--text-primary, #f5f5f5);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.bw-sec-form__secret.is-copied,
.bw-sec-form__secret.is-copied:hover,
.bw-sec-form__secret.is-copied:focus,
.bw-sec-form__secret.is-copied:focus-visible,
.bw-sec-form__secret.is-copied:active {
  color: #2DBE6C;
}

.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: #2F6BFF;
  text-decoration: none;
}

.bw-sec-form__link:hover {
  text-decoration: underline;
}

.bw-sec-form__error {
  margin: 0;
  min-height: 0;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.35;
  color: #f87171;
  background: transparent;
  border: 0;
  padding: 0;
}

.bw-sec-form__error[hidden] {
  display: none !important;
}

.bw-sec-form__actions .lk-btn:disabled,
.bw-sec-form__actions .lk-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.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;
}

/* Desk country select ? matches bw-sec-form / lk-modal language */
.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: 42px;
  margin: 0;
  padding: 0 40px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background-color: #323841;
  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='%238B94A3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.16s ease, background-color 0.16s 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: rgba(255, 255, 255, 0.35);
}

.bw-pretty-select__btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background-color: #3A424C;
}

.bw-pretty-select.is-open .bw-pretty-select__btn,
.bw-pretty-select__btn:focus,
.bw-pretty-select__btn:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.28);
  background-color: #3A424C;
  box-shadow: none;
}

.bw-pretty-select__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bw-pretty-select__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  max-height: min(280px, 44vh);
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #1C2128;
  box-shadow: none;
}

.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: 10px 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #1C2128;
}

.bw-pretty-select__search-input {
  appearance: none;
  width: 100%;
  min-height: 38px;
  height: 38px;
  margin: 0;
  padding: 0 12px 0 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background-color: #323841;
  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='%238B94A3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%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: 11px center;
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  outline: none;
  box-shadow: none;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.bw-pretty-select__search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.bw-pretty-select__search-input:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background-color: #3A424C;
}

.bw-pretty-select__search-input:focus,
.bw-pretty-select__search-input:focus-visible {
  border-color: rgba(255, 255, 255, 0.24);
  background-color: #3A424C;
  box-shadow: none;
  outline: none;
}

.bw-pretty-select__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.bw-pretty-select__list::-webkit-scrollbar {
  width: 6px;
}

.bw-pretty-select__list::-webkit-scrollbar-track {
  margin: 4px 0;
  background: transparent;
}

.bw-pretty-select__list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.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: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
  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;
  color: #8B94A3;
  box-shadow: none;
  background: transparent;
}

.bw-pretty-select__flag--globe svg {
  display: block;
  width: 16px;
  height: 16px;
}

.bw-pretty-select__opt {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 13.5px;
  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.06);
  color: #fff;
}

.bw-pretty-select__opt.is-selected {
  background: rgba(60, 155, 244, 0.14);
  color: #fff;
}

.bw-pretty-select__opt.is-selected:hover:not(:disabled) {
  background: rgba(60, 155, 244, 0.2);
}

.bw-pretty-select__opt.is-disabled,
.bw-pretty-select__opt:disabled {
  opacity: 0.4;
  cursor: default;
}

.bw-pretty-select__empty {
  padding: 18px 12px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  text-align: center;
}

/* Beat global .pm-shell input paint for trigger + menu */
html.pm-shell .bw-pretty-select__btn,
html.pm-shell .lk-modal .bw-pretty-select__btn,
.lk-modal .bw-pretty-select__btn {
  background-color: #323841 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  color: #fff !important;
  min-height: 42px !important;
}

html.pm-shell .bw-pretty-select__btn:hover,
html.pm-shell .lk-modal .bw-pretty-select__btn:hover,
html.pm-shell .bw-pretty-select.is-open .bw-pretty-select__btn,
html.pm-shell .bw-pretty-select__btn:focus,
html.pm-shell .bw-pretty-select__btn:focus-visible,
.lk-modal .bw-pretty-select__btn:hover,
.lk-modal .bw-pretty-select.is-open .bw-pretty-select__btn,
.lk-modal .bw-pretty-select__btn:focus,
.lk-modal .bw-pretty-select__btn:focus-visible {
  background-color: #3A424C !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: none !important;
  outline: none !important;
}

html.pm-shell .bw-pretty-select__menu,
.bw-pretty-select__menu.bw-pretty-select__menu--portal {
  background: #1C2128 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

html.pm-shell .bw-pretty-select__search-input,
.bw-pretty-select__menu .bw-pretty-select__search-input {
  background-color: #323841 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  color: #fff !important;
}

html.pm-shell .bw-pretty-select__search-input:focus,
html.pm-shell .bw-pretty-select__search-input:focus-visible,
.bw-pretty-select__menu .bw-pretty-select__search-input:focus,
.bw-pretty-select__menu .bw-pretty-select__search-input:focus-visible {
  background-color: #3A424C !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  box-shadow: none !important;
  outline: none !important;
}

html.pm-shell--light .bw-pretty-select__btn {
  background-color: #ffffff !important;
  border-color: rgba(18, 20, 26, 0.12) !important;
  color: #12141a !important;
}

html.pm-shell--light .bw-pretty-select__menu,
html.pm-shell--light .bw-pretty-select__menu.bw-pretty-select__menu--portal {
  background: #ffffff !important;
  border-color: rgba(18, 20, 26, 0.1) !important;
  box-shadow: none !important;
}

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 !important;
  border-color: rgba(18, 20, 26, 0.1) !important;
  color: #12141a !important;
}

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) transparent;
}

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: "Inter", 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: "Inter", 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: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #2A3036;
  font-size: 13px;
}

.bw-kyc .bw-sec-form__input:focus {
  border-color: rgba(255, 255, 255, 0.22);
  background: #2E353C;
  outline: none;
  box-shadow: none;
}

.bw-kyc__uploads {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.bw-kyc__upload {
  position: relative;
  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;
}

/* Visually hide file input but keep it in the a11y tree (never HTML hidden) */
.bw-kyc__file {
  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-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 {
    grid-template-columns: 1fr 1fr;
  }

  /* Keep upload tiles in a row on phone (overridden denser inside KYC modal ≤640) */
  .bw-kyc__uploads {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .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(47, 107, 255, 0.55);
  outline-offset: 2px;
}

/* Deposit / Withdraw desk modals */
.bw-pay {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: "Inter", 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__ledger-row--muted strong {
  font-size: 13px;
  font-weight: 550;
  color: var(--text-secondary, rgba(255, 255, 255, 0.72));
}

.bw-pay__ledger-row--net {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bw-pay__ledger-row--net strong {
  color: #3c9bf4;
}

.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__chip:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.bw-pay__chip.is-active {
  color: #fff;
  background: rgba(47, 107, 255, 0.14);
  border-color: rgba(47, 107, 255, 0.45);
}

.bw-pay__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bw-pay__amount,
.bw-pay__amount--solo,
.bw-pay__amount--deposit {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 10px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: #2A3036;
  box-shadow: none;
  transition: border-color 150ms ease-out, background-color 150ms ease-out;
}

.bw-pay__amount:hover,
.bw-pay__amount--solo:hover,
.bw-pay__amount--deposit:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: #2E353C;
}

.bw-pay__amount:focus-within,
.bw-pay__amount--solo:focus-within,
.bw-pay__amount--deposit:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
  background: #2E353C;
  box-shadow: none;
}

/* Beat global .pm-shell input paint ? the shell is the field, not the <input> */
.bw-pay__amount .bw-pay__input,
.bw-pay .bw-pay__input,
.lk-modal .bw-pay__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  outline: none !important;
}

.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.32);
  font-weight: 500;
}

.bw-pay__unit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 0 4px 0 0;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
}

.bw-pay__unit .bw-pay__chip-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.bw-pay__max {
  appearance: none;
  flex-shrink: 0;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.bw-pay__max:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  filter: none;
}

.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(47, 107, 255, 0.4);
  background: rgba(47, 107, 255, 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(47, 107, 255, 0.08);
  border: 1px solid rgba(47, 107, 255, 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: #2F6BFF;
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 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, #252A31);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  box-shadow: none;
  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: #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.is-ok .bw-wd-result__btn,
.bw-wd-result.is-err .bw-wd-result__btn {
  background: #3c9bf4;
  color: #fff;
}

.bw-wd-result__btn:hover {
  background: #4aa6f7;
  color: #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, #252A31);
  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: "Inter", 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, #2F6BFF);
  color: #fff;
}

.bw-trade-ok__btn--primary:hover {
  background: color-mix(in srgb, var(--primary, #2F6BFF) 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: #2F6BFF;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.bw-pay__link:hover {
  text-decoration: underline;
}

.bw-pay__err {
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f87171;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.35;
  text-align: left;
}

.bw-pay__err[hidden] {
  display: none !important;
}

.bw-pay--deposit {
  display: grid;
  gap: 18px;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

.bw-pay__amount--deposit {
  padding-left: 14px;
}

.bw-pay__currency {
  flex-shrink: 0;
  font-size: 17px;
  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__hint--fee {
  margin: -4px 0 0;
  padding-bottom: 2px;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.52);
}

.bw-pay--deposit .bw-pay__actions .lk-btn--primary {
  background: #fff;
  color: #191D21;
  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: "Inter", 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__chips--methods {
    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, #2F6BFF);
}

.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: "Inter", 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(47, 107, 255, 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(47, 107, 255, 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%, #2F6BFF 0 2px, transparent 3px),
    radial-gradient(circle at 78% 22%, #41cc59 0 2px, transparent 3px),
    radial-gradient(circle at 30% 70%, #2F6BFF 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: #2F6BFF;
  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: #2F6BFF !important;
  background-color: #2F6BFF !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(47, 107, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 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: 20px;
  }

  .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 {
    display: none !important;
  }

  .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: "Inter", 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: #252A31;
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.sw__btn--open[data-v-67495b29]:hover {
  background: #20252B;
  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;
}

/* Hide support FAB / panel while LK modals or trade sheet are open */
html:has(#bw-modals [data-bw-modal-open]) .sw,
html:has(#bw-modals .lk-modal) .sw,
html.bw-trade-sheet-open .sw,
body.bw-trade-sheet-open .sw {
  visibility: hidden !important;
  pointer-events: none !important;
}

html:has(#bw-modals [data-bw-modal-open]) .sw__btn,
html:has(#bw-modals .lk-modal) .sw__btn,
html.bw-trade-sheet-open .sw__btn,
body.bw-trade-sheet-open .sw__btn {
  display: none !important;
}

.sw__panel[data-v-67495b29] {
  bottom: 58px;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100dvh - 100px));
  background: #191D21;
  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: #191D21;
}

.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 8px 12px 14px;
  gap: 10px;
  background: #191D21;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) rgba(255, 255, 255, 0.04);
}

.sw__list[data-v-67495b29]::-webkit-scrollbar {
  width: 5px;
}

.sw__list[data-v-67495b29]::-webkit-scrollbar-track {
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.sw__list[data-v-67495b29]::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
}

.sw__list[data-v-67495b29]::-webkit-scrollbar-thumb:hover {
  background: rgba(60, 155, 244, 0.55);
  border: 1px solid transparent;
  background-clip: padding-box;
}

.sw__list[data-v-67495b29]::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.sw__list[data-v-67495b29]::-webkit-scrollbar-corner {
  background: transparent;
}

.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__day-sep[data-v-67495b29],
.sw__day-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 10px 0 6px;
  padding: 0 8px;
  flex: 0 0 auto;
}

.sw__day-sep-label[data-v-67495b29],
.sw__day-sep-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

html.pm-shell--light .sw__day-sep-label[data-v-67495b29],
html.pm-shell--light .sw__day-sep-label {
  background: transparent;
  border: 0;
  color: rgba(18, 20, 26, 0.72);
}

.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: #191D21;
}

.sw__compose[data-v-67495b29] {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px;
  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__compose-row[data-v-67495b29] {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Visually hide native file control; keep it clickable via attach button */
.sw__file[data-v-67495b29],
.sw__compose .sw__file,
.sw__compose input[type='file'] {
  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;
}

.sw__attach[data-v-67495b29] {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8b949e;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.sw__attach[data-v-67495b29]:hover:not(:disabled) {
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.sw__attach[data-v-67495b29]:disabled {
  opacity: 0.45;
  cursor: default;
}

.sw__attach-preview[data-v-67495b29] {
  position: relative;
  align-self: stretch;
  max-width: 100%;
  margin: 2px 2px 0;
}

.sw__attach-preview[data-v-67495b29][hidden] {
  display: none !important;
}

.sw__attach-preview-img[data-v-67495b29] {
  display: block;
  max-width: min(220px, 70vw);
  max-height: 140px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sw__attach-clear[data-v-67495b29] {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(25, 29, 33, 0.88);
  color: #8b949e;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.sw__attach-clear[data-v-67495b29]:hover {
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(32, 37, 43, 0.94);
}

.sw__attach-clear[data-v-67495b29]:focus-visible {
  outline: none;
  border-color: rgba(60, 155, 244, 0.55);
  color: #f5f5f5;
}

.sw__attach-clear[data-v-67495b29] svg {
  display: block;
}

.sw__body[data-v-67495b29] {
  margin: 0;
  word-break: break-word;
}

.sw__body[data-v-67495b29] .sw__link {
  color: #3c9bf4;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.sw__msg--out .sw__body[data-v-67495b29] .sw__link {
  color: #0a3d6e;
}

.sw__img-wrap[data-v-67495b29],
.sw__body[data-v-67495b29] .sw__img-wrap {
  display: block;
  margin-top: 8px;
  max-width: min(240px, 72vw);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
  font: inherit;
  color: inherit;
}

.sw__img-wrap[data-v-67495b29]:focus-visible,
.sw__body[data-v-67495b29] .sw__img-wrap:focus-visible {
  outline: 2px solid #3c9bf4;
  outline-offset: 2px;
  border-radius: 10px;
}

.sw__img[data-v-67495b29],
.sw__body[data-v-67495b29] .sw__img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.chat-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: max(20px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px))
    max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  overflow: hidden;
  background: rgba(6, 8, 12, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.chat-lightbox[hidden] {
  display: none !important;
}

.chat-lightbox__img {
  display: block;
  box-sizing: border-box;
  max-width: min(960px, calc(100vw - 40px));
  max-height: calc(100dvh - 48px);
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.chat-lightbox__close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top, 0px));
  right: max(14px, env(safe-area-inset-right, 0px));
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 22, 28, 0.92);
  color: #f5f5f5;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.chat-lightbox__close:hover {
  background: rgba(32, 38, 48, 0.96);
  border-color: rgba(60, 155, 244, 0.45);
}

.chat-lightbox__close:focus-visible {
  outline: 2px solid #3c9bf4;
  outline-offset: 2px;
}

.sw__input[data-v-67495b29] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  align-self: center;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.45;
  color: #f5f5f5;
  padding: 7px 4px;
  margin: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  resize: none;
}

.sw__input[data-v-67495b29]:focus,
.sw__input[data-v-67495b29]:focus-visible {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.sw__input[data-v-67495b29]::placeholder {
  color: #8b949e;
}

.sw__send[data-v-67495b29] {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  display: inline-grid;
  place-items: center;
  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: 768px) {
  /* Support chat: FAB stays in corner; open panel is true full-screen */
  .sw[data-v-67495b29],
  .sw {
    left: auto !important;
    right: 16px !important;
    top: auto !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    height: auto !important;
    z-index: 240 !important;
  }

  .sw__btn[data-v-67495b29],
  .sw__btn {
    position: relative;
    z-index: 2;
  }

  /* Hide FAB while chat is open — close lives in header */
  .sw:has(.sw__btn--open) .sw__btn[data-v-67495b29],
  .sw:has(.sw__btn--open) .sw__btn {
    display: none !important;
  }

  .sw__panel[data-v-67495b29],
  .sw__panel {
    position: fixed !important;
    inset: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 0 !important;
    /* svh = stable visible height; JS visualViewport adjusts when keyboard opens */
    height: 100% !important;
    height: 100svh !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding-top: env(safe-area-inset-top, 0px) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    background: #191D21 !important;
    z-index: 241 !important;
    transform: none !important;
  }

  .sw__panel[data-v-67495b29]:not([hidden]),
  .sw__panel:not([hidden]) {
    display: flex !important;
  }

  .sw__panel[data-v-67495b29][hidden],
  .sw__panel[hidden] {
    display: none !important;
  }

  /* Lock page scroll while support chat is fullscreen */
  html.bw-sw-open,
  html.bw-sw-open body {
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
  }

  html.bw-sw-open .lk-layout,
  html.bw-sw-open .lk-layout__page,
  html.bw-sw-open .lk-layout__content {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  html.bw-sw-open .sw__list,
  html.bw-sw-open .sw__list[data-v-67495b29] {
    touch-action: pan-y;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  html.bw-sw-open .sw__input,
  html.bw-sw-open .sw__compose {
    touch-action: auto;
  }

  .sw__header[data-v-67495b29],
  .sw__header {
    flex: 0 0 auto !important;
    min-height: 56px;
    padding: 12px 14px !important;
    gap: 12px;
  }

  .sw__avatar[data-v-67495b29],
  .sw__avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .sw__title[data-v-67495b29],
  .sw__title {
    font-size: 15px;
  }

  .sw__icon-btn[data-v-67495b29],
  .sw__icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .sw__list[data-v-67495b29],
  .sw__list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 12px 12px 10px 14px !important;
  }

  .sw__footer[data-v-67495b29],
  .sw__footer {
    flex: 0 0 auto !important;
    padding: 10px 12px 12px !important;
  }

  .sw__compose[data-v-67495b29],
  .sw__compose {
    border-radius: 14px;
    padding: 8px;
  }

  .sw__input[data-v-67495b29],
  .sw__input {
    font-size: 16px; /* iOS zoom lock */
    min-height: 40px;
  }

  .sw__send[data-v-67495b29],
  .sw__send,
  .sw__attach[data-v-67495b29],
  .sw__attach {
    width: 40px;
    height: 40px;
  }

  html.pm-shell--light .sw__panel[data-v-67495b29],
  html.pm-shell--light .sw__panel {
    background: #ffffff !important;
  }
}


/* 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__list[data-v-67495b29] {
  scrollbar-color: rgba(18, 20, 26, 0.28) rgba(18, 20, 26, 0.06);
}

html.pm-shell--light .sw__list[data-v-67495b29]::-webkit-scrollbar-track {
  background: rgba(18, 20, 26, 0.06);
}

html.pm-shell--light .sw__list[data-v-67495b29]::-webkit-scrollbar-thumb {
  background: rgba(18, 20, 26, 0.28);
  background-clip: padding-box;
}

html.pm-shell--light .sw__list[data-v-67495b29]::-webkit-scrollbar-thumb:hover {
  background: rgba(60, 155, 244, 0.55);
  background-clip: padding-box;
}

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: #22272B !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;
  box-shadow: none;
}

/* 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: #191D21;
  color: #f2f2f2;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.bw-auth {
  min-height: 100dvh;
  background: #191D21;
}

.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: #191D21;
  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: #191D21;
}

.bw-auth__gate {
  width: min(100%, 440px);
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}

.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(30px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.12;
  color: #fff;
  text-align: center;
}

.bw-auth__sub {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}

.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: 24px auto 0;
  width: min(100%, 400px);
}

.bw-auth__pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 0 22px;
  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: #191D21;
}

.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: #191D21;
  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: #191D21;
}

.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: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #2A3036;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.28);
  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.82);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  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: 16px;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
}
.pm-trade__amount-row:has(.pm-trade__currency--suffix) .pm-trade__amount {
  padding-left: 14px;
  padding-right: 36px;
}
.pm-trade .pm-trade__amount-row {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #2A3036;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}
.pm-trade .pm-trade__amount-row:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: #2E353C;
}
.pm-trade .pm-trade__amount-row:focus-within {
  border-color: rgba(60, 155, 244, 0.55);
  background: #2E353C;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 3px rgba(60, 155, 244, 0.14);
}
.pm-trade .pm-trade__amount {
  width: 100%;
  height: 50px;
  padding: 0 12px;
  border: 0 !important;
  border-radius: 12px;
  background: transparent !important;
  color: #f5f5f5 !important;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  box-shadow: none !important;
  outline: none !important;
}

/* Bare amount inputs (no amount-row) ? same visible field chrome */
.pm-trade .pm-trade__field > input.pm-trade__amount {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 14px !important;
  background: #2A3036 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.pm-trade .pm-trade__amount-row > .pm-trade__amount {
  min-height: 50px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pm-trade .pm-trade__amount-row > .pm-trade__amount:focus {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pm-trade .pm-trade__field > input.pm-trade__amount:focus {
  border-color: rgba(60, 155, 244, 0.55) !important;
  background: #2E353C !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 3px rgba(60, 155, 244, 0.14) !important;
}
.pm-trade .pm-trade__currency {
  left: 16px;
  font-size: 18px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.45);
}
.pm-trade .pm-trade__field-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}
.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 ? sliding thumb + tactile press */
.pm-trade .pm-trade__sides {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 3px;
  min-height: 46px;
  border-radius: 12px;
  background: #1C2128;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.pm-trade .pm-trade__sides::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 9px;
  background: #2ee59d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.35);
  transform: translateX(0) scale(1);
  transform-origin: center;
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.28s ease,
    box-shadow 0.2s ease;
  pointer-events: none;
  will-change: transform;
}
.pm-trade .pm-trade__sides:has(.pm-trade__side--no.is-active)::before {
  background: #ff6b7a;
  transform: translateX(100%) scale(1);
}
.pm-trade .pm-trade__sides:has(.pm-trade__side--yes.is-active:active)::before {
  transform: translateX(0) scale(0.965);
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 transparent;
}
.pm-trade .pm-trade__sides:has(.pm-trade__side--no.is-active:active)::before {
  transform: translateX(100%) scale(0.965);
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 transparent;
}
.pm-trade .pm-trade__side {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  border: 0;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.34) !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
  transform: none !important;
  cursor: pointer;
  font: inherit;
  overflow: visible;
  isolation: auto;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.22s ease, opacity 0.18s ease;
}
.pm-trade .pm-trade__side::before {
  content: none !important;
  display: none !important;
}
.pm-trade .pm-trade__side--yes:not(.is-active) {
  color: rgba(255, 255, 255, 0.92) !important;
}
.pm-trade .pm-trade__side--no:not(.is-active) {
  color: rgba(255, 255, 255, 0.92) !important;
}
.pm-trade .pm-trade__side--yes:not(.is-active):hover,
.pm-trade .pm-trade__side--yes:not(.is-active):focus-visible {
  background: transparent !important;
  color: #ffffff !important;
}
.pm-trade .pm-trade__side--no:not(.is-active):hover,
.pm-trade .pm-trade__side--no:not(.is-active):focus-visible {
  background: transparent !important;
  color: #ffffff !important;
}
.pm-trade .pm-trade__side--yes:not(.is-active):active,
.pm-trade .pm-trade__side--no:not(.is-active):active {
  opacity: 0.72;
}
.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,
.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: transparent !important;
  color: #0a0b0c !important;
  filter: none;
}
.pm-trade .pm-trade__side-label,
.pm-trade .pm-trade__side-pct {
  position: static;
  z-index: auto;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  color: inherit;
  opacity: 1;
  transition: letter-spacing 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.pm-trade .pm-trade__side.is-active .pm-trade__side-label {
  letter-spacing: 0.01em;
}
.pm-trade .pm-trade__side-pct {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.pm-trade .pm-trade__side.is-active .pm-trade__side-pct {
  letter-spacing: -0.02em;
}

/* === Site unify: markets + LK = event matte === */
.markets-page[data-v-905ee66d],
.markets-page {
  font-family: "Inter", 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: #2F6BFF !important;
  background-color: #2F6BFF !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: #191D21 !important;
}

.profile-page--desk .bw-desk__tier-pill--silver {
  background: #9aa3ad !important;
  color: #191D21 !important;
}

.profile-page--desk .bw-desk__tier-pill--gold {
  background: #c4a35a !important;
  color: #191D21 !important;
}

.profile-page--desk .bw-desk__tier-pill--platinum {
  background: #a8b4c0 !important;
  color: #191D21 !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: 10px !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: "Inter", 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, #20252B);
  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, #20252B);
}

/* 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;
}

.event-page .event-markets__list {
  gap: 8px;
}

.event-page .event-market {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.event-page .event-market:first-child {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.event-page .event-market:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
}

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

.event-page .event-market:first-child.is-selected {
  border-top-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.event-page .event-market.is-selected:not(:first-child) {
  box-shadow: none;
}

@media (max-width: 720px) {
  .event-page .event-markets,
  .event-page .ev-trades {
    padding: 12px 10px 10px;
    border-radius: 12px;
  }

  .event-page .event-markets__list {
    gap: 8px;
  }

  .event-page .event-market__row {
    padding-top: 12px;
    padding-bottom: 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: "Inter", 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%, #191D21 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 {
  display: none !important;
}

.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: "Inter", 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: #2F6BFF;
  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: #2F6BFF;
}

.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: #2F6BFF;
}

.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 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 14px 12px !important;
  border: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-align: center !important;
}

.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 !important;
}

.profile-page--desk .bw-desk__rail--compact .bw-desk__stat-label,
.profile-page--desk .bw-desk__rail--compact .bw-desk__stat-value,
.profile-page--desk .bw-desk__rail--compact .bw-desk__stat-hint,
[data-bw-profile] .bw-desk__rail--compact .bw-desk__stat-label,
[data-bw-profile] .bw-desk__rail--compact .bw-desk__stat-value,
[data-bw-profile] .bw-desk__rail--compact .bw-desk__stat-hint {
  width: 100%;
  text-align: center !important;
}

.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;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-width: 0;
  min-height: 0 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 4px 12px !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;
  text-align: center !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;
}

.bw-desk__kpi-item .bw-desk__stat-label,
.bw-desk__metric .bw-desk__stat-label {
  width: 100%;
  color: #8b939e !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  line-height: 1.2;
  text-align: center !important;
}

.bw-desk__kpi-item .bw-desk__stat-value,
.bw-desk__metric .bw-desk__stat-value {
  width: 100%;
  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;
  text-align: center !important;
}

.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:not(.bw-desk__band--chart),
.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__band--chart {
  display: block !important;
  width: 100%;
  overflow: hidden !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 {
  display: none !important;
}

.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;
}

/* Meta row: one size + one font (ID / 2FA / Email / KYC) */
.profile-page--desk .profile-page__subline,
.profile-page--desk .profile-page__subline *,
[data-bw-profile] .profile-page__subline,
[data-bw-profile] .profile-page__subline * {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
}

.profile-page--desk .profile-page__hash,
[data-bw-profile] .profile-page__hash {
  color: #a8b0ba !important;
  font-weight: 500 !important;
}

.profile-page--desk .profile-page__hash-label,
[data-bw-profile] .profile-page__hash-label {
  margin-right: 5px;
  color: #a8b0ba !important;
  font-weight: 500 !important;
}

.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;
}

.profile-page--desk .profile-page__status-k,
[data-bw-profile] .profile-page__status-k {
  margin-right: 4px;
  color: #a8b0ba !important;
  font-weight: 500 !important;
}

.profile-page--desk .profile-page__status-v,
[data-bw-profile] .profile-page__status-v {
  font-weight: 600 !important;
}

.profile-page--desk .profile-page__status-item--ok .profile-page__status-v,
.profile-page--term .profile-page__status-item--ok .profile-page__status-v,
[data-bw-profile] .profile-page__status-item--ok .profile-page__status-v,
html.pm-shell--dark .profile-page__status-item--ok .profile-page__status-v {
  color: #41cc59 !important;
}

.profile-page--desk .profile-page__status-item--off .profile-page__status-v,
.profile-page--term .profile-page__status-item--off .profile-page__status-v,
[data-bw-profile] .profile-page__status-item--off .profile-page__status-v,
html.pm-shell--dark .profile-page__status-item--off .profile-page__status-v {
  color: #f04444 !important;
}

.profile-page--desk .profile-page__status-item--pending .profile-page__status-v,
.profile-page--term .profile-page__status-item--pending .profile-page__status-v,
[data-bw-profile] .profile-page__status-item--pending .profile-page__status-v,
html.pm-shell--dark .profile-page__status-item--pending .profile-page__status-v {
  color: #e0b45a !important;
}

button.profile-page__status-item--ok:hover .profile-page__status-v {
  color: #62e078 !important;
}

button.profile-page__status-item--off:hover .profile-page__status-v {
  color: #ff6b6b !important;
}

.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: #2F6BFF;
  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 {
  --lk-panel: #1e1f23;
  --lk-panel-border: rgba(255, 255, 255, 0.1);
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 0 64px !important;
  font-family: "Inter", 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;
}

/* Masthead: identity + actions on top, compact tabs under identity only */
.profile-page--term .profile-page__head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "identity actions"
    "tabs ." !important;
  align-items: center !important;
  justify-items: start !important;
  column-gap: 16px !important;
  row-gap: 12px !important;
  width: 100%;
  min-height: 0;
  margin: 0 0 14px !important;
  padding: 14px 14px 12px !important;
  border: 1px solid var(--lk-panel-border, rgba(255, 255, 255, 0.1)) !important;
  border-radius: 14px !important;
  background: var(--lk-panel, #1e1f23) !important;
  box-shadow: none !important;
}

.profile-page--term .profile-page__head::after {
  display: none !important;
}

.profile-page--term .profile-page__identity {
  grid-area: identity;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center !important;
  gap: 12px 16px !important;
  width: 100%;
  min-width: 0;
}

.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;
  min-width: 0;
  flex: 1 1 auto;
}

.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__subline,
.profile-page--term .profile-page__subline * {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
}

.profile-page--term .profile-page__status {
  margin: 0 !important;
}

.profile-page--term .profile-page__head-actions {
  grid-area: actions;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto;
}

/* Tabs under identity ? compact, not full-bleed */
.profile-page--term .profile-page__head .profile-page__tabs,
.profile-page--term .profile-page__tabs {
  grid-area: tabs;
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 3px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  background: rgba(0, 0, 0, 0.22) !important;
  overflow: hidden !important;
}

.profile-page--term .profile-page__tab {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0;
  min-height: 34px;
  margin: 0 !important;
  padding: 7px 14px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.45) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em;
  text-align: center !important;
  white-space: nowrap;
  cursor: pointer;
}

.profile-page--term .profile-page__tab:hover {
  color: rgba(255, 255, 255, 0.82) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.profile-page--term .profile-page__tab--active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.profile-page--term .profile-page__tab--active::after {
  display: none !important;
}

/* Workspace panels ? full width under tabs */
.profile-page--term .lk-term-panel,
.profile-page--term [data-bw-profile-panel] {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !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 ? balance | performance side by side */
.lk-term {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
  min-width: 0;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* With hero wrap (preferred) */
.lk-term__hero {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
  margin: 0 !important;
  min-width: 0;
}

/* Without hero wrap (legacy DOM): siblings still sit left/right */
.lk-term > .lk-term__toolbar {
  grid-column: 1;
  grid-row: 1;
}

.lk-term > .lk-term__spark {
  grid-column: 2;
  grid-row: 1;
}

.lk-term > .lk-term__table {
  grid-column: 1 / -1;
}

.lk-term__toolbar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  min-width: 0;
  height: auto;
  min-height: 0;
}

.lk-term__cash-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
}

.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: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  margin: 0;
}

.lk-term__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 0;
}

.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;
}

/* Compact sparkline */
.lk-term__spark {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: auto;
  min-height: 0;
}

.lk-term__spark-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.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: #2F6BFF;
}

.lk-term__spark .bw-desk__chart.desk-chart,
.lk-term__spark .desk-chart {
  flex: 0 0 auto;
  min-height: 148px !important;
  height: 148px !important;
  max-height: 148px !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 {
  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 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
}

.lk-term__mkt > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lk-term__thumb {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.lk-term__thumb--coin {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.lk-term__thumb--letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

a.lk-term__mkt:hover {
  color: #2F6BFF;
}

.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;
}

/* Panel chrome comes from event-markets shell below */

@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 .lk-term-panel,
  .profile-page--term [data-bw-profile-panel] {
    padding: 0 !important;
  }

  .lk-term,
  .lk-term__hero {
    grid-template-columns: 1fr !important;
  }

  .lk-term > .lk-term__toolbar,
  .lk-term > .lk-term__spark {
    grid-column: 1;
    grid-row: auto;
  }

  .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;
  }
}

/* ??? LK chart: drop legend, soft event-markets card ??? */
.profile-page--desk .bw-desk__legend,
[data-bw-profile] .bw-desk__legend,
.bw-desk--v2 .bw-desk__legend,
.bw-desk--folio .bw-desk__legend,
.lk-term .bw-desk__legend {
  display: none !important;
}

.profile-page--desk .bw-desk__band--chart,
[data-bw-profile] .bw-desk__band--chart,
.bw-desk--v2 .bw-desk__band--chart,
.lk-term__spark {
  margin: 0 0 12px !important;
  padding: 14px 12px 12px !important;
  border-radius: 14px !important;
  border: 1px solid var(--lk-panel-border, rgba(255, 255, 255, 0.1)) !important;
  background: var(--lk-panel, #1e1f23) !important;
  box-shadow: none !important;
}

.profile-page--desk .bw-desk__band--chart .bw-desk__viz-bar,
[data-bw-profile] .bw-desk__band--chart .bw-desk__viz-bar,
.bw-desk--v2 .bw-desk__band--chart .bw-desk__viz-bar {
  justify-content: flex-end;
  margin: 0 0 8px;
  min-height: 0;
}

.profile-page--desk .bw-desk__band--chart .bw-desk__chart.desk-chart,
[data-bw-profile] .bw-desk__band--chart .bw-desk__chart.desk-chart,
.bw-desk--v2 .bw-desk__band--chart .bw-desk__chart.desk-chart {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  min-height: 180px !important;
  height: 200px !important;
  max-height: none !important;
}

.lk-term__spark .bw-desk__chart.desk-chart,
.lk-term__spark .desk-chart {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  min-height: 140px !important;
  height: auto !important;
  max-height: none !important;
}

.lk-term__spark {
  border-bottom: 0 !important;
}

.lk-term__spark::after {
  display: none !important;
}

.lk-term__spark-bar {
  padding: 0 2px 10px;
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .profile-page--desk .bw-desk__band--chart,
  [data-bw-profile] .bw-desk__band--chart,
  .bw-desk--v2 .bw-desk__band--chart,
  .lk-term__spark {
    padding: 12px 10px 10px !important;
    border-radius: 12px !important;
  }

  .profile-page--desk .bw-desk__band--chart .bw-desk__chart.desk-chart,
  [data-bw-profile] .bw-desk__band--chart .bw-desk__chart.desk-chart,
  .bw-desk--v2 .bw-desk__band--chart .bw-desk__chart.desk-chart,
  .lk-term__spark .bw-desk__chart.desk-chart,
  .lk-term__spark .desk-chart {
    min-height: 150px !important;
    height: 160px !important;
  }
}

/* ??? LK tables = event-markets panel language ??? */
.profile-page--desk .profile-page__orders.bw-desk__table-wrap,
.profile-page--desk .profile-page__pos > .bw-desk__table-wrap,
.profile-page--desk .profile-page__tx > .bw-desk__table-wrap,
[data-bw-profile] .profile-page__orders.bw-desk__table-wrap,
[data-bw-profile] .profile-page__pos > .bw-desk__table-wrap,
[data-bw-profile] .profile-page__tx > .bw-desk__table-wrap {
  margin: 0 0 12px !important;
  padding: 14px 12px 12px !important;
  border-radius: 14px !important;
  border: 1px solid var(--lk-panel-border, rgba(255, 255, 255, 0.1)) !important;
  background: var(--lk-panel, #1e1f23) !important;
  box-shadow: none !important;
}

.profile-page--desk .profile-page__orders .bw-desk__pane-head,
.profile-page--desk .profile-page__pos > .bw-desk__table-wrap > .bw-desk__pane-head,
.profile-page--desk .profile-page__tx > .bw-desk__table-wrap > .bw-desk__pane-head,
[data-bw-profile] .profile-page__orders .bw-desk__pane-head,
[data-bw-profile] .profile-page__pos > .bw-desk__table-wrap > .bw-desk__pane-head,
[data-bw-profile] .profile-page__tx > .bw-desk__table-wrap > .bw-desk__pane-head {
  display: flex;
  align-items: baseline;
  min-height: 0;
  padding: 0 2px 10px !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.profile-page--desk .profile-page__orders .bw-desk__pane-title,
.profile-page--desk .profile-page__pos > .bw-desk__table-wrap .bw-desk__pane-title,
.profile-page--desk .profile-page__tx > .bw-desk__table-wrap .bw-desk__pane-title,
[data-bw-profile] .profile-page__orders .bw-desk__pane-title,
[data-bw-profile] .profile-page__pos > .bw-desk__table-wrap .bw-desk__pane-title,
[data-bw-profile] .profile-page__tx > .bw-desk__table-wrap .bw-desk__pane-title {
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  line-height: 1.15 !important;
  background: transparent !important;
}

.profile-page--desk .profile-page__orders .profile-page__order-row,
.profile-page--desk .profile-page__pos > .bw-desk__table-wrap .profile-page__pos-row,
.profile-page--desk .profile-page__tx .bw-tx__row,
[data-bw-profile] .profile-page__orders .profile-page__order-row,
[data-bw-profile] .profile-page__pos > .bw-desk__table-wrap .profile-page__pos-row,
[data-bw-profile] .profile-page__tx .bw-tx__row {
  border-radius: 10px;
}

.profile-page--desk .profile-page__orders .profile-page__pos-empty,
.profile-page--desk .profile-page__pos > .bw-desk__table-wrap .profile-page__pos-empty,
[data-bw-profile] .profile-page__orders .profile-page__pos-empty {
  padding: 20px 8px !important;
}

@media (max-width: 720px) {
  .profile-page--desk .profile-page__orders.bw-desk__table-wrap,
  .profile-page--desk .profile-page__pos > .bw-desk__table-wrap,
  .profile-page--desk .profile-page__tx > .bw-desk__table-wrap,
  [data-bw-profile] .profile-page__orders.bw-desk__table-wrap,
  [data-bw-profile] .profile-page__pos > .bw-desk__table-wrap,
  [data-bw-profile] .profile-page__tx > .bw-desk__table-wrap {
    padding: 12px 10px 10px !important;
    border-radius: 12px !important;
  }
}

/* ??? LK separators: fade mist + soft wells (no hard hairlines) ??? */
.profile-page--desk:not(.profile-page--term) .profile-page__head,
[data-bw-profile]:not(.profile-page--term) .profile-page__head {
  position: relative;
  border-bottom: 0 !important;
  padding-bottom: 18px !important;
  margin-bottom: 6px !important;
}

.profile-page--desk .profile-page__head::after,
[data-bw-profile] .profile-page__head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.16) 18%,
    rgba(255, 255, 255, 0.16) 82%,
    transparent 100%
  );
  pointer-events: none;
}

.profile-page--desk .profile-page__tabs,
[data-bw-profile] .profile-page__tabs {
  border-bottom: 0 !important;
}

/* Legacy desk (non-term): soft mist wells */
.profile-page--desk:not(.profile-page--term) .bw-desk__kpi,
.profile-page--desk:not(.profile-page--term) .bw-desk__rail--compact,
[data-bw-profile]:not(.profile-page--term) .bw-desk__kpi,
[data-bw-profile]:not(.profile-page--term) .bw-desk__rail--compact {
  position: relative;
  border: 0 !important;
  border-radius: 14px !important;
  margin: 10px 0 16px !important;
  padding: 18px 10px !important;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(255, 255, 255, 0.055), transparent 55%),
    rgba(255, 255, 255, 0.025) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.profile-page--desk .bw-desk__kpi-item,
.profile-page--desk .bw-desk__metric,
.profile-page--desk .bw-desk__rail--compact .bw-desk__stat,
.profile-page--desk .bw-desk__cash,
.profile-page--desk .bw-desk__top,
.profile-page--desk .bw-desk__hero,
.profile-page--desk .bw-desk__plot,
.profile-page--desk .bw-desk__band:not(.bw-desk__band--chart),
.profile-page--desk .bw-desk__pane--activity,
.profile-page--desk .bw-desk__status,
.profile-page--desk .bw-desk__split,
.profile-page--desk .bw-desk__rail,
[data-bw-profile] .bw-desk__kpi-item,
[data-bw-profile] .bw-desk__metric,
[data-bw-profile] .bw-desk__rail--compact .bw-desk__stat,
[data-bw-profile] .bw-desk__cash,
[data-bw-profile] .bw-desk__rail {
  border: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Soft dots between KPI / rail cells instead of vertical bars */
.profile-page--desk .bw-desk__kpi-item,
.profile-page--desk .bw-desk__rail--compact .bw-desk__stat,
[data-bw-profile] .bw-desk__kpi-item,
[data-bw-profile] .bw-desk__rail--compact .bw-desk__stat {
  position: relative !important;
}

.profile-page--desk .bw-desk__kpi-item:not(:last-child)::after,
.profile-page--desk .bw-desk__rail--compact .bw-desk__stat:not(:last-child)::after,
[data-bw-profile] .bw-desk__kpi-item:not(:last-child)::after,
[data-bw-profile] .bw-desk__rail--compact .bw-desk__stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  transform: translate(50%, -50%);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.lk-term__stat {
  position: relative;
  border: 0 !important;
}

.lk-term__stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  transform: translate(50%, -50%);
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.lk-term__cash,
.lk-term__cols,
.lk-term__row {
  border: 0 !important;
}

/* Chart card keeps event-markets shell; only table head keeps fade rule */
.lk-term__table-head::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 12px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.14) 22%,
    rgba(255, 255, 255, 0.14) 78%,
    transparent 100%
  );
}

.lk-term__table-head {
  position: relative;
  margin-bottom: 6px;
}

.lk-term__cols {
  padding-bottom: 8px !important;
  opacity: 0.75;
}

/* Ledger / positions rows: hover wash, no zebra lines */
.profile-page--desk .profile-page__positions-head,
.profile-page--desk .bw-tx__head,
.profile-page--desk .profile-page__pos-row,
.profile-page--desk .bw-tx__row,
.profile-page--desk .bw-desk__activity-row,
.lk-term__row,
[data-bw-profile] .profile-page__positions-head,
[data-bw-profile] .bw-tx__head,
[data-bw-profile] .profile-page__pos-row,
[data-bw-profile] .bw-tx__row {
  border: 0 !important;
  border-bottom: 0 !important;
}

.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 {
  position: relative;
  padding-bottom: 10px !important;
  margin-bottom: 4px;
}

.profile-page--desk .profile-page__positions-head::after,
.profile-page--desk .bw-tx__head::after,
[data-bw-profile] .profile-page__positions-head::after,
[data-bw-profile] .bw-tx__head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 20%,
    rgba(255, 255, 255, 0.12) 80%,
    transparent 100%
  );
}

.profile-page--desk .profile-page__pos-row,
.profile-page--desk .bw-tx__row,
.lk-term__row,
[data-bw-profile] .profile-page__pos-row,
[data-bw-profile] .bw-tx__row {
  border-radius: 10px;
  transition: background-color 0.15s ease;
}

.profile-page--desk .profile-page__pos-row:hover,
.profile-page--desk .bw-tx__row:hover,
.lk-term__row:hover,
[data-bw-profile] .profile-page__pos-row:hover,
[data-bw-profile] .bw-tx__row:hover {
  background: rgba(255, 255, 255, 0.035) !important;
}

/* Legacy desk settings: soft wells (term uses solid shell below) */
.profile-page--desk:not(.profile-page--term) .profile-page__settings-card,
.profile-page--desk:not(.profile-page--term) .profile-page__settings-profile,
.profile-page--desk:not(.profile-page--term) .profile-page__promo,
.profile-page--desk:not(.profile-page--term) .lk-card.profile-page__settings-card,
[data-bw-profile]:not(.profile-page--term) .profile-page__settings-card,
[data-bw-profile]:not(.profile-page--term) .profile-page__settings-profile,
[data-bw-profile]:not(.profile-page--term) .profile-page__promo {
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 14px !important;
  margin: 0 0 12px !important;
  padding: 16px 14px !important;
  background: rgba(255, 255, 255, 0.025) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.profile-page--desk .profile-page__status-sep,
[data-bw-profile] .profile-page__status-sep {
  color: rgba(255, 255, 255, 0.28) !important;
}

@media (max-width: 900px) {
  .profile-page--desk .bw-desk__kpi-item:not(:last-child)::after,
  .profile-page--desk .bw-desk__rail--compact .bw-desk__stat:not(:last-child)::after,
  [data-bw-profile] .bw-desk__kpi-item:not(:last-child)::after,
  [data-bw-profile] .bw-desk__rail--compact .bw-desk__stat:not(:last-child)::after {
    display: none;
  }
}

/* ??? LK shell: one event-markets panel language everywhere ??? */
.profile-page--term .lk-term__toolbar,
.profile-page--term .lk-term__spark,
.profile-page--term .lk-term__table,
.profile-page--term .bw-desk__rail--compact,
.profile-page--term .profile-page__orders.bw-desk__table-wrap,
.profile-page--term .profile-page__pos > .bw-desk__table-wrap,
.profile-page--term .profile-page__tx > .bw-desk__table-wrap,
.profile-page--term .profile-page__settings-profile,
.profile-page--term .profile-page__promo,
.profile-page--term .profile-page__settings-desk > .lk-card,
.profile-page--term .profile-page__settings-desk > .lk-card[data-v-f27b632d],
.profile-page--term .profile-page__settings-card,
.profile-page--term .lk-card.profile-page__settings-card {
  margin: 0 0 12px !important;
  padding: 14px 12px 12px !important;
  border-radius: 14px !important;
  border: 1px solid var(--lk-panel-border, rgba(255, 255, 255, 0.1)) !important;
  background: var(--lk-panel, #1e1f23) !important;
  box-shadow: none !important;
}

/* Hero / sibling pair: two equal cards */
.profile-page--term .lk-term,
.profile-page--term .lk-term__hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
}

.profile-page--term .lk-term__hero {
  grid-column: 1 / -1 !important;
  margin: 0 !important;
}

.profile-page--term .lk-term > .lk-term__toolbar,
.profile-page--term .lk-term > .lk-term__spark,
.profile-page--term .lk-term__hero > .lk-term__toolbar,
.profile-page--term .lk-term__hero > .lk-term__spark {
  margin: 0 !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
}

.profile-page--term .lk-term > .lk-term__table {
  grid-column: 1 / -1 !important;
}

/* Tabs shell already set above as horizontal segmented control */

/* Toolbar: stacked cash ? metrics grid */
.profile-page--term .lk-term__toolbar {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  height: auto !important;
  min-height: 0 !important;
}

.profile-page--term .lk-term__stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  width: 100% !important;
  margin: 0 !important;
}

.profile-page--term .lk-term__stat:not(:last-child)::after {
  display: none !important;
}

.profile-page--term .lk-term__spark .bw-desk__chart.desk-chart,
.profile-page--term .lk-term__spark .desk-chart {
  flex: 0 0 auto !important;
  min-height: 148px !important;
  height: 148px !important;
  max-height: 148px !important;
}

.profile-page--term .lk-term__table {
  min-height: 0;
}

.profile-page--term .lk-term__table-head {
  padding: 0 2px 10px;
  margin: 0 0 4px;
}

.profile-page--term .lk-term__table-title,
.profile-page--term .bw-desk__pane-title,
.profile-page--term .lk-card__title,
.profile-page--term .profile-page__card-title {
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  line-height: 1.15 !important;
}

.profile-page--term .lk-term__spark-title {
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
}

.profile-page--term .bw-desk__section-lede,
.profile-page--term .profile-page__promo-lede {
  color: rgba(255, 255, 255, 0.45) !important;
  font-size: 13px !important;
}

.profile-page--term .profile-page__settings-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-page--term .profile-page__settings-desk {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-page--term .profile-page__settings-desk > .lk-card,
.profile-page--term .profile-page__settings-desk > .lk-card[data-v-f27b632d],
.profile-page--term .profile-page__settings-card {
  overflow: hidden;
}

.profile-page--term .profile-page__settings-profile .bw-desk__pane-head,
.profile-page--term .profile-page__promo .bw-desk__pane-head,
.profile-page--term .profile-page__settings-desk .lk-card__head,
.profile-page--term .profile-page__settings-desk .profile-page__card-head {
  padding: 0 2px 10px !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

@media (max-width: 900px) {
  .profile-page--term .lk-term,
  .profile-page--term .lk-term__hero {
    grid-template-columns: 1fr !important;
  }

  .profile-page--term .lk-term > .lk-term__toolbar,
  .profile-page--term .lk-term > .lk-term__spark {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .profile-page--term .profile-page__head {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "identity"
      "actions"
      "tabs" !important;
    padding: 12px 10px 10px !important;
  }

  .profile-page--term .profile-page__head-actions {
    justify-content: flex-start;
  }

  .profile-page--term .profile-page__tabs {
    width: auto !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    padding: 3px !important;
  }

  .profile-page--term .profile-page__tab {
    min-height: 32px;
    padding: 6px 12px !important;
    font-size: 12px !important;
  }

  .profile-page--term .lk-term__toolbar,
  .profile-page--term .lk-term__spark,
  .profile-page--term .lk-term__table,
  .profile-page--term .bw-desk__rail--compact,
  .profile-page--term .profile-page__orders.bw-desk__table-wrap,
  .profile-page--term .profile-page__pos > .bw-desk__table-wrap,
  .profile-page--term .profile-page__tx > .bw-desk__table-wrap,
  .profile-page--term .profile-page__settings-profile,
  .profile-page--term .profile-page__promo,
  .profile-page--term .profile-page__settings-desk > .lk-card,
  .profile-page--term .profile-page__settings-card {
    padding: 12px 10px 10px !important;
    border-radius: 12px !important;
  }
}

/* ??? Polymarket-style LK skeleton (profile-page--pm) ??? */
html.pm-shell--dark .lk-layout:has(.profile-page--pm),
html.pm-shell--dark .lk-layout:has([data-lk-pm]) {
  background-color: #030712 !important;
  background-image: none !important;
  background-attachment: fixed !important;
}

.profile-page--pm.profile-page--desk,
[data-bw-profile].profile-page--pm {
  --pm-surface: #22272B;
  --pm-border: #242b32;
  --pm-muted: rgba(255, 255, 255, 0.55);
  --pm-text: rgba(255, 255, 255, 0.92);
  --pm-accent: #2F6BFF;
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 0 72px !important;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  color: var(--pm-text);
}

.profile-page--pm .profile-page__head {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 16px;
  width: 100%;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.profile-page--pm .profile-page__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.profile-page--pm .profile-page__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-page--pm .profile-page__title {
  display: none !important;
}

.profile-page--pm .profile-page__subline,
.profile-page--pm .profile-page__hash,
.profile-page--pm .profile-page__meta {
  color: var(--pm-muted);
  font-size: 0.8125rem;
}

.profile-page--pm .profile-page__head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.profile-page--pm .profile-page__tabs--pm,
.profile-page--pm .profile-page__tabs,
.profile-page--pm .pm-lk__seg {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  /* Own row under identity, but only as wide as the buttons */
  flex: 0 0 auto;
  width: auto !important;
  max-width: max-content !important;
}

.profile-page--pm .profile-page__tabs--pm,
.profile-page--pm .profile-page__tabs {
  flex-basis: 100%;
}

/* Same chrome as settings Verify (lk-btn--tertiary) ? also Profile/Account/? settings nav */
.profile-page--pm .profile-page__tab,
.profile-page--pm .pm-lk__seg-btn,
.pm-set__nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-height: 32px;
  min-width: 0;
  margin: 0 !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font: inherit;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.profile-page--pm .profile-page__tab:hover,
.profile-page--pm .pm-lk__seg-btn:hover,
.pm-set__nav-item:hover {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

.profile-page--pm .profile-page__tab--active,
.profile-page--pm .pm-lk__seg-btn.is-active,
.pm-set__nav-item.is-active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
}

.pm-set__nav-item.is-active:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
}

.profile-page--pm .profile-page__tab--active::after,
.profile-page--pm .profile-page__tab::after {
  display: none !important;
  content: none !important;
}

/* Chart range ? compact segmented control (not six outlined pills) */
.profile-page--pm .pm-lk__range {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 1px;
  padding: 3px;
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  width: auto !important;
  max-width: max-content !important;
}

.profile-page--pm .pm-lk__range-btn,
.profile-page--pm .pm-lk__range .lk-term__range-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  min-height: 26px;
  min-width: 34px;
  margin: 0 !important;
  padding: 0 9px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.42) !important;
  font: inherit;
  font-size: 11px !important;
  font-weight: 650 !important;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.profile-page--pm .pm-lk__range-btn:hover,
.profile-page--pm .pm-lk__range .lk-term__range-btn:hover {
  color: rgba(255, 255, 255, 0.78) !important;
  background: transparent !important;
}

.profile-page--pm .pm-lk__range-btn.is-active,
.profile-page--pm .pm-lk__range .lk-term__range-btn.is-active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}

.profile-page--pm .pm-lk__range-btn::after,
.profile-page--pm .pm-lk__range .lk-term__range-btn::after,
.profile-page--pm .pm-lk__range-btn.is-active::after,
.profile-page--pm .pm-lk__range .lk-term__range-btn.is-active::after {
  display: none !important;
  content: none !important;
}

.profile-page--pm .profile-page__overview,
.profile-page--pm .profile-page__settings,
.profile-page--pm [data-bw-profile-panel] {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.profile-page--pm [data-bw-profile-panel][hidden] {
  display: none !important;
}

/* Overview hero */
.pm-lk {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pm-lk__hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 840px) {
  .pm-lk__hero {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.pm-lk__card {
  background: var(--pm-surface, #15191d);
  border: 1px solid var(--pm-border, #242b32);
  border-radius: 12px;
  padding: 18px 18px 16px;
}

.pm-lk__identity {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pm-lk__id-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pm-lk__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: 0 0 auto;
  /* Neutral until user palette is set (SSR style / boot CSS) — no stock green flash */
  --pm-av-1: transparent;
  --pm-av-2: transparent;
  --pm-av-3: transparent;
  --pm-av-4: #2a3138;
  background:
    radial-gradient(at 66% 77%, var(--pm-av-1) 0px, transparent 50%),
    radial-gradient(at 29% 97%, var(--pm-av-2) 0px, transparent 50%),
    radial-gradient(at 99% 86%, var(--pm-av-3) 0px, transparent 50%),
    var(--pm-av-4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pm-lk__name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pm-lk__joined {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: var(--pm-muted, rgba(255, 255, 255, 0.55));
}

.pm-lk__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

.pm-lk__metric-v {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--pm-text, #fff);
}

.pm-lk__metric-k {
  font-size: 0.75rem;
  color: var(--pm-muted, rgba(255, 255, 255, 0.55));
}

.pm-lk__cta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.pm-lk__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 120px;
  height: 40px;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid transparent;
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* Hide Deposit only */
.pm-lk__cta .pm-lk__btn[data-bw-lk-action="deposit"] {
  display: none !important;
}

/* Same surface as Overview tab (active), but a real rectangular CTA size */
.pm-lk__btn--withdraw,
.pm-lk__cta .pm-lk__btn[data-bw-lk-action="withdraw"],
.pm-lk__cta .pm-lk__btn--ghost[data-bw-lk-action="withdraw"],
.pm-lk__cta .pm-lk__btn--primary[data-bw-lk-action="withdraw"] {
  display: inline-flex !important;
  min-width: 140px;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 22px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  filter: none !important;
}

.pm-lk__btn--withdraw:hover,
.pm-lk__cta .pm-lk__btn[data-bw-lk-action="withdraw"]:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
}

.pm-lk__btn--withdraw:focus-visible,
.pm-lk__cta .pm-lk__btn[data-bw-lk-action="withdraw"]:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.pm-lk__balance-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 4px 0 0;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--pm-muted, rgba(255, 255, 255, 0.62));
}

.pm-lk__balance-line strong {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--pm-text, #fff);
}

.pm-lk__pnl {
  display: flex;
  flex-direction: column;
  min-height: 225px;
}

.pm-lk__pnl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 12px;
}

.pm-lk__pnl-lead {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 1.5rem;
  line-height: 1.5rem;
}

.pm-lk__pnl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex: 0 0 auto;
  display: block;
  margin: 0;
}

.pm-lk__pnl-title,
.pm-lk__pnl-amount,
.pm-lk__pnl-lead .pm-lk__pnl-amount,
.pm-lk__pnl .pm-lk__pnl-amount {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.5rem;
  height: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.pm-lk__pnl-title {
  color: var(--pm-muted, rgba(255, 255, 255, 0.72));
}

.pm-lk__pnl-amount,
.pm-lk__pnl-lead .pm-lk__pnl-amount,
.pm-lk__pnl .pm-lk__pnl-amount {
  color: var(--pm-text, #fff);
}

.pm-lk__pnl-amount.is-in { color: #4ade80; }
.pm-lk__pnl-amount.is-out { color: #f87171; }
.pm-lk__pnl-amount.is-flat { color: var(--pm-text, #fff); }

.pm-lk__pnl [data-bw-perf-chart],
.pm-lk__pnl .desk-chart,
.pm-lk__pnl .bw-desk__chart {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 110px;
  margin-top: 0;
  gap: 8px;
}

.pm-lk__chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

.pm-lk__chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.pm-lk__chart-legend-item i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.pm-lk__chart-legend-item.is-pnl { color: #2F6BFF; }
.pm-lk__chart-legend-item.is-pnl i { background: #2F6BFF; }
.pm-lk__chart-legend-item.is-dep { color: #22c55e; }
.pm-lk__chart-legend-item.is-dep i { background: #22c55e; }
.pm-lk__chart-legend-item.is-win { color: #4ade80; }
.pm-lk__chart-legend-item.is-win i { background: #4ade80; }
.pm-lk__chart-legend-item.is-loss { color: #ef4444; }
.pm-lk__chart-legend-item.is-loss i { background: #ef4444; }

.pm-lk__pnl [data-bw-perf-chart] canvas,
.pm-lk__pnl .bw-desk__chart canvas {
  flex: 1 1 auto;
  min-height: 0;
}

.pm-lk__subnav {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--pm-border, #242b32);
  margin-top: 4px;
}

.pm-lk__subtab {
  position: relative;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--pm-muted, rgba(255, 255, 255, 0.55));
  font-size: 0.9375rem;
  font-weight: 550;
  cursor: pointer;
}

.pm-lk__subtab:hover { color: var(--pm-text, #fff); }

.pm-lk__subtab.is-active {
  color: var(--pm-text, #fff);
}

.pm-lk__subtab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--pm-accent, #2F6BFF);
  border-radius: 2px 2px 0 0;
}

.pm-lk__subpanel[hidden] { display: none !important; }

.pm-lk__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 12px;
}

.pm-lk__section-title {
  margin: 0 0 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pm-muted, rgba(255, 255, 255, 0.7));
}

.pm-lk__orders {
  margin-bottom: 14px;
  padding: 14px 16px;
  background: var(--pm-surface, #15191d);
  border: 1px solid var(--pm-border, #242b32);
  border-radius: 12px;
}

.pm-lk__table-card {
  background: var(--pm-surface, #15191d);
  border: 1px solid var(--pm-border, #242b32);
  border-radius: 12px;
  overflow: hidden;
}

/* Positions / activity tables ? one shared grid, beat desk !important noise */
.profile-page--pm .pm-lk__table-card .profile-page__positions-head,
.profile-page--pm .pm-lk__table-card .profile-page__pos-row,
.profile-page--pm .pm-lk__table-card .profile-page__positions-head[data-v-9243197e],
.profile-page--pm .pm-lk__table-card .profile-page__pos-row[data-v-9243197e] {
  display: grid !important;
  grid-template-columns:
    minmax(160px, 2.6fr)
    minmax(70px, 0.75fr)
    minmax(70px, 0.7fr)
    minmax(58px, 0.6fr)
    minmax(72px, 0.75fr)
    minmax(72px, 0.75fr)
    minmax(72px, 0.7fr) !important;
  grid-template-areas: none !important;
  grid-auto-flow: row !important;
  column-gap: 12px !important;
  row-gap: 0 !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  flex-wrap: unset !important;
}

/* Kill Vue phone grid-area stacking (market full-bleed + 2nd row).
   Do NOT set flex:none here — phone compact rows need flex:1 on market. */
.profile-page--pm .pm-lk__table-card .profile-page__pos-row > *,
.profile-page--pm .pm-lk__table-card .profile-page__pos-row[data-v-9243197e] > *,
.profile-page--pm .pm-lk__table-card .profile-page__positions-head > * {
  grid-area: auto !important;
  grid-column: auto !important;
  grid-row: auto !important;
}

.profile-page--pm .pm-lk__table-card .profile-page__positions-head,
.profile-page--pm .pm-lk__table-card .profile-page__positions-head[data-v-9243197e] {
  min-height: 40px;
  padding: 12px 16px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.42) !important;
  background: rgba(0, 0, 0, 0.22) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  position: relative;
}

.profile-page--pm .pm-lk__table-card .profile-page__positions-head::after,
.profile-page--pm .pm-lk__table-card .bw-tx__head::after {
  display: none !important;
  content: none !important;
}

.profile-page--pm .pm-lk__table-card .profile-page__pos-row,
.profile-page--pm .pm-lk__table-card .profile-page__pos-row[data-v-9243197e] {
  min-height: 56px;
  padding: 12px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 0.875rem !important;
}

.profile-page--pm .pm-lk__table-card .profile-page__pos-row:last-child {
  border-bottom: 0 !important;
}

.profile-page--pm .pm-lk__table-card .profile-page__pos-row:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

.profile-page--pm .pm-lk__table-card .profile-page__positions-head > span,
.profile-page--pm .pm-lk__table-card .profile-page__pos-row > div {
  min-width: 0;
  overflow: hidden;
}

.profile-page--pm .pm-lk__table-card .profile-page__pos-cell {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: inherit;
  width: 100%;
  min-width: 0;
}

/* Mobile metric labels — hidden on desk table */
.profile-page--pm .pm-lk__table-card .profile-page__pos-k {
  display: none;
}


/* Market ? left */
.profile-page--pm .pm-lk__table-card .profile-page__positions-head > span:nth-child(1),
.profile-page--pm .pm-lk__table-card .profile-page__pos-row > div:nth-child(1) {
  justify-self: stretch !important;
  text-align: left !important;
}

/* Outcome ? center under label */
.profile-page--pm .pm-lk__table-card .profile-page__positions-head > span:nth-child(2),
.profile-page--pm .pm-lk__table-card .profile-page__pos-row > div:nth-child(2) {
  justify-self: center !important;
  text-align: center !important;
}

/* Shares / Avg / Payout / Stake ? right, tabular */
.profile-page--pm .pm-lk__table-card .profile-page__positions-head > span:nth-child(n + 3):nth-child(-n + 6),
.profile-page--pm .pm-lk__table-card .profile-page__pos-num {
  justify-self: stretch !important;
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Status ? end */
.profile-page--pm .pm-lk__table-card .profile-page__positions-head > span:nth-child(7),
.profile-page--pm .pm-lk__table-card .profile-page__pos-actions {
  justify-self: end !important;
  text-align: right !important;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.profile-page--pm .pm-lk__table-card .bw-tx__head,
.profile-page--pm .pm-lk__table-card .bw-tx__row {
  display: grid !important;
  grid-template-columns: 0.7fr minmax(0, 2fr) 0.9fr 0.8fr !important;
  column-gap: 12px !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 12px 16px !important;
}

.profile-page--pm .pm-lk__table-card .bw-tx__head {
  min-height: 40px;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.42) !important;
  background: rgba(0, 0, 0, 0.22) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.profile-page--pm .pm-lk__table-card .bw-tx__row {
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  font-size: 0.875rem !important;
}

.profile-page--pm .pm-lk__table-card .bw-tx__row:last-child {
  border-bottom: 0 !important;
}

.profile-page--pm .profile-page__order-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 0.8fr 0.9fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8125rem;
}

.profile-page--pm .profile-page__order-row:last-child { border-bottom: 0; }

.pm-lk__empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--pm-muted, rgba(255, 255, 255, 0.45));
  font-size: 0.875rem;
}

/* Settings ? horizontal top nav (exact chrome as Overview / Settings tabs) */
.profile-page--pm .pm-set,
.pm-set {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch;
}

.pm-set__side {
  position: static;
  top: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  width: auto;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
}

.pm-set__nav-item {
  box-sizing: border-box;
  width: auto;
  text-align: center;
  white-space: nowrap;
}

.pm-set__nav-item + .pm-set__nav-item::before {
  display: none;
  content: none;
}

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

.pm-set__section[hidden] { display: none !important; }

.pm-set__title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pm-set__card {
  background: var(--pm-surface, #15191d);
  border: 1px solid var(--pm-border, #242b32);
  border-radius: 12px;
  padding: 4px 16px;
  margin-bottom: 12px;
}

.pm-set__card.profile-page__promo,
.pm-set__stub,
.pm-set__relayer {
  padding: 16px;
}

.pm-relayer__empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pm-relayer__empty[hidden],
.pm-relayer__keybox[hidden] {
  display: none !important;
}

.pm-relayer__empty-text {
  margin: 0;
  flex: 1 1 220px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

.pm-relayer__label {
  display: block;
  margin: 14px 0 8px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.pm-relayer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pm-relayer__input {
  flex: 1 1 240px;
  min-width: 0;
  height: 42px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  outline: none;
}

.pm-relayer__input:focus {
  border-color: rgba(47, 107, 255, 0.55);
  background: rgba(47, 107, 255, 0.06);
}

.pm-relayer__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.pm-relayer__btn {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-height: 32px;
  min-width: 0;
  margin: 0;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pm-relayer__btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.pm-relayer__btn--primary {
  border: 0;
  background: #2F6BFF;
  color: #ffffff;
}

.pm-relayer__btn--primary:hover {
  background: #2459DA;
  border-color: transparent;
}

.pm-relayer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 10px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.pm-relayer__regen {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: #8eb6ff;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.pm-relayer__regen:hover {
  color: #ffffff;
  text-decoration: underline;
}

.pm-relayer__warn {
  margin: 12px 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.4);
}

.pm-set__relayer .lk-btn--primary {
  background: #2F6BFF !important;
  border: 0 !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  min-height: 36px;
  padding: 0 16px !important;
}

.pm-set__h {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
}

.pm-set__lede {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  color: var(--pm-muted, rgba(255, 255, 255, 0.55));
  line-height: 1.45;
}

.pm-set__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.875rem;
}

.pm-set__row:last-child { border-bottom: 0; }

.pm-set__row span { color: var(--pm-muted, rgba(255, 255, 255, 0.55)); }
.pm-set__row strong { font-weight: 600; color: var(--pm-text, #fff); }

.profile-page--pm .pm-set__desk.profile-page__settings-desk,
.profile-page--pm .profile-page__settings-desk,
.pm-set__desk.profile-page__settings-desk {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  gap: 16px !important;
  width: 100% !important;
}

.profile-page--pm .pm-set__desk .lk-card.profile-page__settings-card:empty,
.pm-set__desk .lk-card.profile-page__settings-card:empty {
  display: none !important;
}

/* Account Security ? Polymarket desk: full-width horizontal rows, no tiles/icons */
.profile-page--pm .pm-set__desk .lk-card.profile-page__settings-card,
.profile-page--pm .pm-set__desk .profile-page__settings-card {
  width: 100% !important;
  max-width: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.profile-page--pm .pm-set__desk .lk-card__head,
.profile-page--pm .pm-set__desk .profile-page__card-head {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 0 0 4px !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  min-height: 0 !important;
}

.profile-page--pm .pm-set__desk .lk-card__title,
.profile-page--pm .pm-set__desk .profile-page__card-title {
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  color: var(--pm-text, #fff) !important;
}

.profile-page--pm .pm-set__desk .bw-desk__section-lede {
  margin: 0 0 8px !important;
  font-size: 0.8125rem !important;
  line-height: 1.45 !important;
  color: var(--pm-muted, rgba(255, 255, 255, 0.55)) !important;
}

.profile-page--pm .pm-set__desk .profile-page__security,
.profile-page--pm .pm-set__desk .profile-page__security--flat,
.profile-page--pm .pm-set__desk .profile-page__notif-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  height: auto !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.profile-page--pm .pm-set__desk .profile-page__security-row,
.profile-page--pm .pm-set__desk .profile-page__security-row[data-bw-email-row],
.profile-page--pm .pm-set__desk .profile-page__notif-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px 24px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 16px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.profile-page--pm .pm-set__desk .profile-page__security-row:hover,
.profile-page--pm .pm-set__desk .profile-page__notif-row:hover {
  background: transparent !important;
}

.profile-page--pm .pm-set__desk .profile-page__security-row:last-child,
.profile-page--pm .pm-set__desk .profile-page__notif-row:last-child {
  border-bottom: 0 !important;
}

.profile-page--pm .pm-set__desk .profile-page__security-icon,
.profile-page--pm .pm-set__desk .profile-page__notif-ico {
  display: none !important;
}

.profile-page--pm .pm-set__desk .profile-page__security-text,
.profile-page--pm .pm-set__desk .profile-page__notif-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.profile-page--pm .pm-set__desk .profile-page__security-text strong,
.profile-page--pm .pm-set__desk .profile-page__notif-text strong {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  color: #ffffff !important;
}

.profile-page--pm .pm-set__desk .profile-page__security-text span,
.profile-page--pm .pm-set__desk .profile-page__notif-text span {
  font-size: 0.8125rem !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: var(--pm-muted, rgba(255, 255, 255, 0.55)) !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  -webkit-line-clamp: unset;
}

/* KYC approved: subtitle is green Verified (same tone as Confirmed) */
.profile-page--pm .pm-set__desk .profile-page__security-text span.profile-page__sec-verified,
.profile-page--pm .pm-set__desk .profile-page__security-text [data-bw-kyc-label].profile-page__sec-verified,
.profile-page__security-text [data-bw-kyc-label].profile-page__sec-verified {
  color: #22c55e !important;
  font-weight: 700 !important;
}

html.pm-shell--light .profile-page--pm .pm-set__desk .profile-page__security-text span.profile-page__sec-verified,
html.pm-shell--light .profile-page--pm .pm-set__desk .profile-page__security-text [data-bw-kyc-label].profile-page__sec-verified,
html.pm-shell--light .profile-page__security-text [data-bw-kyc-label].profile-page__sec-verified {
  color: #16a34a !important;
}

.profile-page--pm .pm-set__desk .profile-page__security-row > .lk-btn,
.profile-page--pm .pm-set__desk .profile-page__security-row > .bw-lk-logout,
.profile-page--pm .pm-set__desk .profile-page__security-row > .profile-page__sec-verified,
.profile-page--pm .pm-set__desk .profile-page__security-row > [data-bw-email-verified],
.profile-page--pm .pm-set__desk .profile-page__notif-row > .lk-btn {
  margin: 0 !important;
  flex: 0 0 auto !important;
  align-self: center !important;
}

/* Keep Change to the right of the green Confirmed / Verified badge */
.profile-page--pm .pm-set__desk .profile-page__security-row[data-bw-email-row] > .profile-page__sec-verified,
.profile-page--pm .pm-set__desk .profile-page__security-row[data-bw-email-row] > [data-bw-email-verified] {
  margin-left: auto !important;
}

.profile-page__sec-verified,
.profile-page--pm .pm-set__desk .profile-page__sec-verified,
.profile-page--pm .pm-set__desk .profile-page__security-row > [data-bw-email-verified] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #22c55e;
  white-space: nowrap;
}

html.pm-shell--light .profile-page__sec-verified,
html.pm-shell--light .profile-page--pm .pm-set__desk .profile-page__sec-verified,
html.pm-shell--light .profile-page--pm .pm-set__desk .profile-page__security-row > [data-bw-email-verified] {
  color: #16a34a;
}

.profile-page--pm .pm-set__desk .profile-page__security-row[data-bw-email-row] {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
}

.profile-page--pm .pm-set__desk .profile-page__security-row[data-bw-email-row] > .profile-page__security-text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.profile-page--pm .pm-set__desk .profile-page__security-row[data-bw-email-row] > .lk-btn,
.profile-page--pm .pm-set__desk .profile-page__security-row[data-bw-email-row] > .profile-page__badge {
  margin: 0 !important;
  flex: 0 0 auto !important;
}

.profile-page--pm .pm-set__desk .profile-page__security-row > .lk-btn + .lk-btn {
  margin-left: 0 !important;
}

/* Keep Verify / Change as a tight action cluster on the right */
.profile-page--pm .pm-set__desk .profile-page__security-row[data-bw-email-row] > .lk-btn:nth-of-type(1) {
  margin-left: auto !important;
}

/* Notifications ? clickable switch rows */
.profile-page--pm .pm-set__desk .profile-page__notif-row[data-bw-notify] {
  cursor: pointer;
  user-select: none;
}

.profile-page--pm .pm-set__desk .profile-page__notif-row[data-bw-notify]:focus-visible {
  outline: 2px solid rgba(47, 107, 255, 0.55);
  outline-offset: 2px;
  border-radius: 8px;
}

.profile-page--pm .pm-set__desk .profile-page__switch {
  position: relative !important;
  display: inline-block !important;
  flex: 0 0 auto !important;
  width: 40px !important;
  height: 22px !important;
  margin-left: auto !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
  pointer-events: none;
}

.profile-page--pm .pm-set__desk .profile-page__switch--on {
  background: #2F6BFF !important;
}

.profile-page--pm .pm-set__desk .profile-page__switch-thumb {
  position: absolute !important;
  top: 2px !important;
  left: 2px !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
  transform: none !important;
  transition: transform 0.15s ease;
}

.profile-page--pm .pm-set__desk .profile-page__switch--on .profile-page__switch-thumb {
  transform: translateX(18px) !important;
  background: #ffffff !important;
}

@media (max-width: 720px) {
  .profile-page--pm .pm-set__desk .profile-page__security-row,
  .profile-page--pm .pm-set__desk .profile-page__security-row[data-bw-email-row],
  .profile-page--pm .pm-set__desk .profile-page__notif-row {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 10px 12px !important;
  }

  .profile-page--pm .pm-set__desk .profile-page__security-text span,
  .profile-page--pm .pm-set__desk .profile-page__notif-text span {
    white-space: normal !important;
  }
}

.pm-set__desk .lk-card__head,
.pm-set__desk .profile-page__card-head {
  padding: 0 0 10px !important;
  border: 0 !important;
  background: transparent !important;
}

.pm-set__desk .lk-card__title,
.pm-set__desk .profile-page__card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pm-text, #fff);
}

.profile-page--pm .bw-lk-logout,
.profile-page--pm .lk-btn--tertiary {
  border-radius: 8px;
}

@media (max-width: 840px) {
  .profile-page--pm.profile-page--desk,
  [data-bw-profile].profile-page--pm {
    padding: 10px 12px 64px !important;
  }

  /* Phone (≤768) overrides to 3-col; tablet 769–840 keeps single stack */
  .pm-lk__metrics {
    grid-template-columns: 1fr;
  }

  .profile-page--pm .pm-set,
  .pm-set {
    gap: 18px;
  }

  .pm-set__side {
    width: 100%;
    max-width: none;
    gap: 8px;
  }

  .pm-set__nav-item {
    flex: 0 0 auto;
    min-width: 0;
    height: 32px;
    min-height: 32px;
    padding: 0 12px;
  }

  .profile-page--pm .pm-lk__table-card .profile-page__positions-head,
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row,
  .profile-page--pm .pm-lk__table-card .profile-page__positions-head[data-v-9243197e],
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row[data-v-9243197e] {
    grid-template-columns:
      minmax(120px, 1.6fr)
      minmax(64px, 0.7fr)
      minmax(64px, 0.7fr)
      minmax(64px, 0.7fr) !important;
    grid-template-areas: none !important;
  }

  .profile-page--pm .pm-lk__table-card .profile-page__positions-head > span:nth-child(n + 5),
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row > :nth-child(n + 5) {
    display: none !important;
  }
}

/* ??? Shared PM content column: markets + LK + event ??? */
:root {
  --pm-content-max: 1350px;
}

.lk-layout:has(.markets-page) .lk-layout__content,
.lk-layout--no-cat-sidebar:has(.markets-page) .lk-layout__content,
.lk-layout:has(.profile-page--pm) .lk-layout__content,
.lk-layout:has([data-bw-profile].profile-page--pm) .lk-layout__content,
.lk-layout:has(.profile-page--desk) .lk-layout__content,
.lk-layout:has([data-bw-profile]) .lk-layout__content,
.lk-layout:has(.event-page) .lk-layout__content,
.lk-layout--no-cat-sidebar:has(.event-page) .lk-layout__content {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: max(16px, calc((100% - var(--pm-content-max, 1350px)) / 2 + 16px)) !important;
  padding-right: max(16px, calc((100% - var(--pm-content-max, 1350px)) / 2 + 16px)) !important;
  box-sizing: border-box !important;
}

@media (min-width: 1024px) {
  .lk-layout:has(.markets-page) .lk-layout__content,
  .lk-layout--no-cat-sidebar:has(.markets-page) .lk-layout__content,
  .lk-layout:has(.profile-page--pm) .lk-layout__content,
  .lk-layout:has([data-bw-profile].profile-page--pm) .lk-layout__content,
  .lk-layout:has(.profile-page--desk) .lk-layout__content,
  .lk-layout:has([data-bw-profile]) .lk-layout__content,
  .lk-layout:has(.event-page) .lk-layout__content,
  .lk-layout--no-cat-sidebar:has(.event-page) .lk-layout__content {
    padding-left: max(24px, calc((100% - var(--pm-content-max, 1350px)) / 2 + 24px)) !important;
    padding-right: max(24px, calc((100% - var(--pm-content-max, 1350px)) / 2 + 24px)) !important;
  }
}

.lk-layout:has(.markets-page) .markets-page,
.lk-layout:has(.profile-page--pm) .profile-page--pm,
.lk-layout:has(.event-page) .event-page {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.profile-page--pm .profile-page__head,
.profile-page--pm [data-bw-profile-panel],
.profile-page--pm .profile-page__overview,
.profile-page--pm .profile-page__settings {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Solid PM canvas on markets / event */
html.pm-shell--dark .lk-layout:has(.markets-page),
html.pm-shell--dark .lk-layout:has(.event-page) {
  background-color: #030712 !important;
  background-image: none !important;
  background-attachment: fixed !important;
}

.markets-page__title[data-v-905ee66d],
.markets-page__title {
  font-size: 22px !important;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (max-width: 720px) {
  .lk-layout:has(.markets-page) .lk-layout__content,
  .lk-layout:has(.profile-page--pm) .lk-layout__content,
  .lk-layout:has(.event-page) .lk-layout__content {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* =========================================================
   Polymarket desk theme ? cascade overrides (player only)
   Tokens from product palette; do not use on staff/admin.
   ========================================================= */

html.pm-shell,
html.pm-shell body {
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bg-primary: #191D21;
  --bg-secondary: #20252B;
  --bg-tertiary: #252A31;
  --bg-card: #22272B;
  --bg-hover: #2A3036;
  --bg-input: #252A31;
  --bg-modal: #1E2328;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.1);
  --text-primary: #FFFFFF;
  --text-secondary: #B8C0CC;
  --text-muted: #8B94A3;
  --text-disabled: #5E6773;
  --primary: #2F6BFF;
  --primary-hover: #2459DA;
  --primary-active: #1D49B8;
  --success: #2DBE6C;
  --success-bg: #163A28;
  --danger: #F14D4D;
  --danger-bg: #3A1C22;
  --warning: #FFB020;
  --warning-bg: #3D2D0E;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --transition: 150ms ease-out;
  --accent: #2F6BFF;
  --accent-soft: rgba(47, 107, 255, 0.14);
  --background: #191D21;
  --header-bg: #191D21;
  --bg-elevated: #22272B;
  --surface-1: #22272B;
  --surface-2: #252A31;
  --card-bg: #22272B;
  --card-bg-hover: #2A3036;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

html.pm-shell--dark,
html.pm-shell--dark body {
  background: #191D21 !important;
  color: #FFFFFF !important;
  color-scheme: dark;
}

html.pm-shell--dark .lk-layout,
html.pm-shell--dark .lk-layout[data-v-e41fc834] {
  --background: #191D21;
  --surface-1: #22272B;
  --surface-2: #252A31;
  --bg-elevated: #22272B;
  --primary: #2F6BFF;
  --text-accent: #2F6BFF;
  --accent: #2F6BFF;
  --accent-soft: rgba(47, 107, 255, 0.14);
  background: #191D21 !important;
  background-image: none !important;
  color: #FFFFFF;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

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,
html.pm-shell--dark nav.mbn,
html.pm-shell--dark .mbn {
  background: #191D21 !important;
  background-color: #191D21 !important;
  background-image: none !important;
}

html.pm-shell--dark .lk-header {
  background: #191D21 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  min-height: 72px;
}

/* Polymarket primary actions ? blue (header deposit uses its own muted pill) */
.lk-btn.lk-btn--primary,
.lk-user--guest .lk-btn.lk-btn--primary,
.lk-user--guest a.lk-btn--primary,
.bw-auth__pill--primary,
button.lk-btn--primary,
a.lk-btn--primary {
  background: #2F6BFF !important;
  background-color: #2F6BFF !important;
  border: 1px solid transparent !important;
  color: #FFFFFF !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  transition: background var(--transition, 150ms ease-out) !important;
}

.lk-btn.lk-btn--primary:hover,
.lk-user--guest .lk-btn.lk-btn--primary:hover,
.lk-user--guest a.lk-btn--primary:hover {
  background: #2459DA !important;
  background-color: #2459DA !important;
  filter: none !important;
}

/* Header deposit pill ? flat site blue, no glow */
.lk-header .lk-user__balance .lk-btn.lk-btn--deposit,
.lk-header .lk-user__balance .lk-btn[data-bw-lk-action="deposit"],
.lk-user__balance .lk-btn.lk-btn--deposit,
.lk-user__balance .lk-btn[data-bw-lk-action="deposit"] {
  background: #2F6BFF !important;
  background-color: #2F6BFF !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  filter: none !important;
}

.lk-header .lk-user__balance .lk-btn.lk-btn--deposit:hover,
.lk-header .lk-user__balance .lk-btn[data-bw-lk-action="deposit"]:hover,
.lk-user__balance .lk-btn.lk-btn--deposit:hover,
.lk-user__balance .lk-btn[data-bw-lk-action="deposit"]:hover {
  background: #2459DA !important;
  background-color: #2459DA !important;
  color: #ffffff !important;
  box-shadow: none !important;
  filter: none !important;
}

.lk-user--guest .lk-user__login {
  color: #B8C0CC !important;
  border-radius: 14px !important;
}

.lk-user--guest .lk-user__login:hover {
  color: #FFFFFF !important;
  background: #2A3036 !important;
}

/* Cards / surfaces */
.pm-card,
.market-card,
.lk-card,
.card,
.profile-page__card,
.bw-desk__panel,
.bw-auth__panel--form .bw-auth__card,
.markets-page .pm-card,
.event-page .lk-card {
  background: #22272B !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 20px !important;
  box-shadow: none !important;
}

.pm-card:hover,
.market-card:hover {
  background: #2A3036 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Inputs ? paint the field/wrapper, never the outer .lk-input column */
.pm-shell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="search"]):not([type="file"]):not(.bw-pay__input):not(.bw-sec-form__input):not(.lk-input__field):not(.sw__input):not(.sw__file):not(.pm-trade__amount),
.pm-shell textarea:not(.sw__input),
.pm-shell select,
.lk-input__wrapper,
.bw-auth input,
.profile-page input:not([type="file"]):not(.bw-pay__input):not(.bw-sec-form__input):not(.sw__input):not(.sw__file),
.profile-page textarea:not(.sw__input),
.profile-page select {
  background: #252A31 !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  color: #FFFFFF !important;
  font-family: inherit !important;
  transition: border-color 150ms ease-out !important;
}

/* Security / KYC modal fields ? must beat global input paint */
html.pm-shell .lk-modal .bw-sec-form__input,
html.pm-shell .bw-sec-form .bw-sec-form__input,
html.pm-shell input.bw-sec-form__input,
.lk-modal input.bw-sec-form__input {
  background: #323841 !important;
  background-color: #323841 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  color: #fff !important;
  min-height: 42px !important;
}

html.pm-shell .lk-modal .bw-sec-form__input:hover,
html.pm-shell .bw-sec-form .bw-sec-form__input:hover,
html.pm-shell input.bw-sec-form__input:hover,
html.pm-shell .lk-modal .bw-sec-form__input:focus,
html.pm-shell .lk-modal .bw-sec-form__input:focus-visible,
html.pm-shell input.bw-sec-form__input:focus,
html.pm-shell input.bw-sec-form__input:focus-visible,
.lk-modal input.bw-sec-form__input:focus,
.lk-modal input.bw-sec-form__input:focus-visible {
  background: #3A424C !important;
  background-color: #3A424C !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Pay modal fields: shell is .bw-pay__amount, input stays clear */
.pm-shell .bw-pay__amount,
.pm-shell .bw-pay__amount--solo,
.pm-shell .bw-pay__amount--deposit {
  background: #2A3036 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

.pm-shell .bw-pay__amount:hover,
.pm-shell .bw-pay__amount--solo:hover,
.pm-shell .bw-pay__amount--deposit:hover,
.pm-shell .bw-pay__amount:focus-within,
.pm-shell .bw-pay__amount--solo:focus-within,
.pm-shell .bw-pay__amount--deposit:focus-within {
  background: #2E353C !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: none !important;
}

.pm-shell .bw-pay__input,
.pm-shell .bw-pay__amount input,
.lk-modal .bw-pay__input,
.pm-shell .bw-pay__input:focus,
.pm-shell .bw-pay__input:focus-visible,
.pm-shell .bw-pay__amount input:focus,
.pm-shell .bw-pay__amount input:focus-visible,
.lk-modal .bw-pay__input:focus,
.lk-modal .bw-pay__input:focus-visible {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  color: #fff !important;
}

.pm-shell .bw-pay__max {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  box-shadow: none !important;
}

.pm-shell .bw-pay__max:hover {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #fff !important;
}

.pm-shell .bw-wd-result__btn,
.bw-wd-result .bw-wd-result__btn,
.bw-wd-result.is-ok .bw-wd-result__btn,
.bw-wd-result.is-err .bw-wd-result__btn {
  background: #3c9bf4 !important;
  background-color: #3c9bf4 !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.pm-shell .bw-wd-result__btn:hover,
.bw-wd-result .bw-wd-result__btn:hover {
  background: #4aa6f7 !important;
  background-color: #4aa6f7 !important;
  color: #fff !important;
}

/* Never paint a border on header search input itself */
.lk-input__field,
.lk-header__search .lk-input__field,
.lk-header__search input[type="search"] {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.lk-input,
.lk-input.lk-input--full {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Header search ? quiet field, no hover/focus chrome */
.lk-header__search .lk-input,
.lk-header__search .lk-input--full {
  background: transparent !important;
  height: auto !important;
  padding: 0 !important;
}

.lk-header__search .lk-input__wrapper,
.lk-header__search .lk-input__wrapper[data-v-5cc1d308],
.lk-header__search .lk-input__wrapper:hover,
.lk-header__search .lk-input__wrapper:focus,
.lk-header__search .lk-input__wrapper:focus-within,
.lk-header__search .lk-input__wrapper[data-v-5cc1d308]:hover,
.lk-header__search .lk-input__wrapper[data-v-5cc1d308]:focus-within {
  background: #252A31 !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
  height: 44px !important;
  min-height: 44px !important;
  box-shadow: none !important;
  outline: none !important;
  transition: none !important;
}

.lk-header__search .lk-input__field,
.lk-header__search .lk-input__field[data-v-5cc1d308],
.lk-header__search input.lk-input__field,
.lk-header__search input.lk-input__field:hover,
.lk-header__search input.lk-input__field:focus,
.lk-header__search input.lk-input__field:focus-visible,
.lk-header__search input.lk-input__field:active {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
  outline: none !important;
  ring: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.lk-header__search .lk-input__field::placeholder {
  color: #8B94A3 !important;
}

.lk-header__search .lk-input__icon {
  color: #8B94A3 !important;
}

.pm-shell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="search"]):not(.bw-pay__input):not(.bw-sec-form__input):not(.lk-input__field):not(.sw__input):not(.pm-trade__amount):focus,
.pm-shell textarea:not(.sw__input):focus,
.pm-shell select:focus,
.lk-input__wrapper:focus-within:not(:has(input[type="search"])),
.bw-auth input:focus {
  border-color: #2F6BFF !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Support chat compose: shell is .sw__compose ? never blue focus on the textarea */
.pm-shell .sw__input,
.pm-shell .sw__input:focus,
.pm-shell .sw__input:focus-visible,
.sw__compose .sw__input,
.sw__compose .sw__input:focus,
.sw__compose .sw__input:focus-visible {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Country select ? desk field language after global input paint */
.bw-pretty-select__btn,
.bw-pretty-select__btn:hover,
.bw-pretty-select.is-open .bw-pretty-select__btn,
.bw-pretty-select__btn:focus,
.bw-pretty-select__btn:focus-visible {
  background-color: #323841 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  outline: none !important;
  color: #fff !important;
}

.bw-pretty-select__btn:hover,
.bw-pretty-select.is-open .bw-pretty-select__btn,
.bw-pretty-select__btn:focus,
.bw-pretty-select__btn:focus-visible {
  background-color: #3A424C !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

.bw-pretty-select__menu,
.bw-pretty-select__menu--portal {
  background: #1C2128 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

.bw-pretty-select__search-input,
.bw-pretty-select__search-input:focus,
.bw-pretty-select__search-input:focus-visible {
  background-color: #323841 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  outline: none !important;
  color: #fff !important;
}

.bw-pretty-select__search-input:focus,
.bw-pretty-select__search-input:focus-visible {
  background-color: #3A424C !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
}

/* Header search stays quiet ? override focus chrome above */
.lk-header__search .lk-input__wrapper,
.lk-header__search .lk-input__wrapper:hover,
.lk-header__search .lk-input__wrapper:focus-within,
.lk-header__search .lk-input__wrapper[data-v-5cc1d308],
.lk-header__search .lk-input__wrapper[data-v-5cc1d308]:hover,
.lk-header__search .lk-input__wrapper[data-v-5cc1d308]:focus-within {
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  outline: none !important;
  box-shadow: none !important;
  background: #252A31 !important;
}

.lk-header__search input.lk-input__field,
.lk-header__search input.lk-input__field[data-v-5cc1d308],
.lk-header__search input[type="search"],
.lk-header__search input[type="search"].lk-input__field,
.lk-header__search input.lk-input__field:hover,
.lk-header__search input.lk-input__field:focus,
.lk-header__search input.lk-input__field:focus-visible,
.lk-header__search input.lk-input__field:active,
.lk-header__search input[type="search"]:hover,
.lk-header__search input[type="search"]:focus,
.lk-header__search input[type="search"]:focus-visible,
.pm-shell .lk-header__search input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus {
  border: 0 !important;
  border-width: 0 !important;
  border-color: transparent !important;
  border-style: none !important;
  border-radius: 0 !important;
  outline: none !important;
  outline-width: 0 !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  caret-color: #FFFFFF;
}

.pm-shell input::placeholder,
.pm-shell textarea::placeholder {
  color: #8B94A3 !important;
}

/* Modals */
.lk-modal__box,
.lk-modal__dialog,
.lk-modal__panel,
.bw-modal,
[data-bw-modal] .lk-modal__content,
.how-it-works-modal,
.deposit-modal {
  background: #1E2328 !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 24px !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Badges */
.badge-success,
.profile-page__pill--won,
.profile-page__pos-outcome--yes {
  background: #163A28 !important;
  color: #2DBE6C !important;
}

.badge-danger,
.profile-page__pill--lost,
.profile-page__pos-outcome--no {
  background: #3A1C22 !important;
  color: #F14D4D !important;
}

/* Auth shell ? desktop columns flat; mobile keeps docked CTAs over brand */
.bw-auth-body,
.bw-auth,
html.pm-shell--dark .bw-auth__brand {
  background: #191D21 !important;
  color: #FFFFFF;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.bw-auth__panel,
.bw-auth__panel--gate {
  background: #191D21 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.bw-auth__gate {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  box-sizing: border-box;
}

/* Desktop: wider, flatter auth block */
@media (min-width: 861px) {
  .bw-auth__panel--gate {
    padding: 56px 64px;
  }

  .bw-auth__gate {
    width: min(100%, 460px);
  }

  .bw-auth__stack {
    width: min(100%, 420px);
    margin-top: 22px;
  }

  .bw-auth__pill {
    min-height: 52px;
    padding: 0 24px;
  }

  .bw-auth__legal {
    margin-top: 14px;
  }

  .bw-auth__switch {
    margin-top: 18px;
  }
}

.bw-auth__panel--form .bw-auth__card {
  background: #1E2328 !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 24px !important;
}

.bw-auth__logo,
.bw-auth a {
  color: #FFFFFF;
}

.bw-auth__pill--outline {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: #FFFFFF !important;
  border-radius: 10px !important;
}

.bw-auth__pill--outline:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
}

/* Mobile gate: restore previous layout ? brand visible, CTAs docked, no card chrome */
@media (max-width: 860px) {
  .bw-auth__panel--gate {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .bw-auth__gate {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .bw-auth__pill--outline {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    border-radius: 10px !important;
  }

  .bw-auth__pill--outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
  }
}

/* Profile / LK desk */
html.pm-shell--dark .lk-layout:has([data-bw-profile]),
html.pm-shell--dark .lk-layout:has(.profile-page--desk) {
  --bg: #191D21;
  --bg-soft: #20252B;
  --bg-ink: #22272B;
  --accent: #2F6BFF;
  --accent-soft: rgba(47, 107, 255, 0.14);
  --primary: #2F6BFF;
  --background: #191D21;
  --surface-1: #22272B;
  --surface-2: #252A31;
  --bg-elevated: #22272B;
  --text-primary: #FFFFFF;
  --text-secondary: #B8C0CC;
  --text-muted: #8B94A3;
  --border: rgba(255, 255, 255, 0.06);
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #191D21 !important;
  background-image: none !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !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,
.lk-header,
.lk-sidebar,
.bw-site-footer,
.mbn {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Links / accent text */
.lk-header__how,
a.text-accent,
.text-accent,
[data-bw-accent] {
  color: #2F6BFF !important;
}

.lk-header__how-text {
  color: #FFFFFF !important;
}

/* Scrollbar ? kill visual gutter on all player pages (scroll still works) */
html.pm-shell,
html.pm-shell body,
html.pm-shell .lk-layout,
html.pm-shell .lk-layout__page,
html.pm-shell .lk-layout__content,
html.pm-shell .bw-auth,
html.pm-shell .bw-auth__panel,
.pm-shell,
.pm-shell * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  scrollbar-gutter: auto !important;
}

html.pm-shell::-webkit-scrollbar,
html.pm-shell body::-webkit-scrollbar,
html.pm-shell *::-webkit-scrollbar,
.pm-shell::-webkit-scrollbar,
.pm-shell *::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}

html.pm-shell *::-webkit-scrollbar-track,
html.pm-shell *::-webkit-scrollbar-thumb,
html.pm-shell *::-webkit-scrollbar-corner,
.pm-shell *::-webkit-scrollbar-track,
.pm-shell *::-webkit-scrollbar-thumb,
.pm-shell *::-webkit-scrollbar-corner {
  background: transparent !important;
  border: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Main desk scroller ? no reserved gutter / no edge line */
html.pm-shell .lk-layout__content,
html.pm-shell .lk-layout__content[data-v-e41fc834] {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  scrollbar-gutter: auto !important;
}

/* Support chat list ? keep a slim desk scrollbar (global pm-shell hide is above). */
html.pm-shell .sw__list[data-v-67495b29],
.pm-shell .sw__list[data-v-67495b29] {
  scrollbar-width: thin !important;
  -ms-overflow-style: auto !important;
  scrollbar-gutter: stable !important;
  scrollbar-color: rgba(255, 255, 255, 0.22) rgba(255, 255, 255, 0.04) !important;
}

html.pm-shell--light .sw__list[data-v-67495b29] {
  scrollbar-color: rgba(18, 20, 26, 0.28) rgba(18, 20, 26, 0.06) !important;
}

html.pm-shell .sw__list[data-v-67495b29]::-webkit-scrollbar,
.pm-shell .sw__list[data-v-67495b29]::-webkit-scrollbar {
  width: 5px !important;
  height: 0 !important;
  display: block !important;
  background: transparent !important;
}

html.pm-shell .sw__list[data-v-67495b29]::-webkit-scrollbar-track,
.pm-shell .sw__list[data-v-67495b29]::-webkit-scrollbar-track {
  margin: 8px 0 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: none !important;
  width: 5px !important;
  height: auto !important;
  border-radius: 999px !important;
}

html.pm-shell--light .sw__list[data-v-67495b29]::-webkit-scrollbar-track {
  background: rgba(18, 20, 26, 0.06) !important;
}

html.pm-shell .sw__list[data-v-67495b29]::-webkit-scrollbar-thumb,
.pm-shell .sw__list[data-v-67495b29]::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22) !important;
  border: 1px solid transparent !important;
  background-clip: padding-box !important;
  width: 5px !important;
  height: auto !important;
  border-radius: 999px !important;
}

html.pm-shell .sw__list[data-v-67495b29]::-webkit-scrollbar-thumb:hover,
.pm-shell .sw__list[data-v-67495b29]::-webkit-scrollbar-thumb:hover {
  background: rgba(60, 155, 244, 0.55) !important;
  background-clip: padding-box !important;
}

html.pm-shell--light .sw__list[data-v-67495b29]::-webkit-scrollbar-thumb {
  background: rgba(18, 20, 26, 0.28) !important;
  background-clip: padding-box !important;
}

html.pm-shell--light .sw__list[data-v-67495b29]::-webkit-scrollbar-thumb:hover {
  background: rgba(60, 155, 244, 0.55) !important;
  background-clip: padding-box !important;
}

html.pm-shell .sw__list[data-v-67495b29]::-webkit-scrollbar-corner,
.pm-shell .sw__list[data-v-67495b29]::-webkit-scrollbar-corner {
  background: transparent !important;
  width: 0 !important;
  height: 0 !important;
  border: none !important;
}

html.pm-shell,
html.pm-shell body {
  overflow-x: hidden !important;
}

/* Footer / mobile nav */
html.pm-shell--dark .bw-site-footer,
html.pm-shell--dark nav.mbn {
  background: #191D21 !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}


/* === FINAL: header search input ? kill blue ring no matter what === */
html.pm-shell .lk-header__search input.lk-input__field,
html.pm-shell .lk-header__search input.lk-input__field[data-v-5cc1d308],
html.pm-shell .lk-header__search input[type="search"],
html.pm-shell .lk-header__search input[type="search"]:focus,
html.pm-shell .lk-header__search input[type="search"]:focus-visible,
html.pm-shell .lk-header__search input.lk-input__field:focus,
html.pm-shell .lk-header__search input.lk-input__field:focus-visible,
html.pm-shell .lk-header__search input.lk-input__field:hover,
html.pm-shell .lk-header input[name="q"],
html.pm-shell .lk-header input[name="q"]:focus,
html.pm-shell .lk-header input[name="q"]:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  -webkit-box-shadow: none !important;
}

/* ==========================================================================
   Phone shell (≤768) — Polymarket-style density
   Desktop unchanged. Full-page login/register (.bw-auth) excluded.
   ========================================================================== */

@media (max-width: 768px) {
  /* —— Header: logo | compact actions —— */
  html.pm-shell:not(:has(.bw-auth)) .lk-header,
  .lk-layout .lk-header {
    gap: 10px;
    min-height: 52px;
    padding: 8px 12px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
  }

  .lk-layout .lk-header__left {
    gap: 6px;
    min-width: 0;
  }

  .lk-layout .lk-header__logo-text {
    font-size: 22px !important;
    letter-spacing: -0.04em;
  }

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

  .lk-layout .lk-header__how .lk-header__how-text {
    display: none;
  }

  .lk-layout .lk-header__how {
    padding: 6px;
    gap: 0;
  }

  .lk-layout .lk-header__search-trigger {
    display: none !important;
  }

  .lk-layout .lk-header__right {
    flex: 0 0 auto;
    gap: 6px;
    min-width: 0;
  }

  .lk-layout .lk-header__right > :not(.lk-header__search-trigger) {
    flex-shrink: 0;
  }

  /* Allow user cluster to shrink; name ellipsizes — Deposit/hmenu stay fixed */
  .lk-layout .lk-header__right > .lk-user,
  .lk-layout .lk-header__right > .lk-user[data-v-586e76de] {
    flex-shrink: 1;
    min-width: 0;
  }

  .lk-header .lk-user__menu-wrap,
  .lk-user__menu-wrap[data-v-586e76de],
  .lk-user__menu-wrap {
    max-width: min(96px, 22vw);
  }

  .lk-layout .lk-header__right .lang-sw__label,
  .lk-layout .lk-header__right .lang-sw__chev {
    display: none !important;
  }

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

  .lk-header .lk-user,
  .lk-user[data-v-586e76de] {
    gap: 8px !important;
  }

  .lk-user__balance-meta {
    max-width: min(96px, 26vw);
  }

  .lk-user__balance-label {
    display: none;
  }

  .lk-header .lk-user__balance-value,
  .lk-user__balance-value {
    font-size: 13px !important;
  }

  .lk-user__balance .lk-btn.lk-btn--deposit,
  .lk-user__balance .lk-btn[data-bw-lk-action="deposit"],
  .lk-header .lk-user__balance .lk-btn.lk-btn--deposit {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
  }

  .lk-header .lk-btn--login,
  .lk-header .lk-btn--signup,
  .lk-header a.lk-btn,
  .lk-header button.lk-btn {
    height: 34px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 8px;
  }

  /* —— Page gutters —— */
  .lk-layout:has(.markets-page) .lk-layout__content,
  .lk-layout--no-cat-sidebar:has(.markets-page) .lk-layout__content,
  .lk-layout:has(.profile-page--pm) .lk-layout__content,
  .lk-layout:has([data-bw-profile]) .lk-layout__content,
  .lk-layout:has(.event-page) .lk-layout__content,
  .lk-layout--no-cat-sidebar:has(.event-page) .lk-layout__content,
  .lk-layout .lk-layout__content,
  .lk-layout__content[data-v-e41fc834] {
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* —— Markets hero / intro —— */
  .markets-page__hero {
    margin: 0 0 10px;
  }

  /*
   * Phone first paint: reserve viewport under header+rail so category grid
   * starts below the fold. Do NOT flex-stretch children (that blew up the chart).
   */
  .markets-page:not(.markets-page--search) > .markets-page__hero {
    box-sizing: border-box;
    margin: 0 0 20px;
    min-height: calc(
      100vh - env(safe-area-inset-top, 0px) - 56px - 12px - 48px
    );
    min-height: calc(
      100svh - env(safe-area-inset-top, 0px) - 56px - 12px - 48px
    );
  }

  .feat-carousel--updown-only .feat-slide {
    padding: 12px 10px;
  }

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

  .updown-intro__eyebrow {
    font-size: 11px;
  }

  .updown-intro__title {
    font-size: 20px;
    letter-spacing: -0.035em;
    line-height: 1.15;
  }

  .updown-intro__lede {
    margin-top: 4px;
    font-size: 12.5px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: visible;
    max-height: none;
  }

  .updown-intro__lede > span {
    display: block;
    white-space: normal;
  }

  .updown-intro__coins {
    max-width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

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

  /* Chart HUD denser */
  .updown-brief__chart-hud {
    gap: 8px 12px;
    padding: 6px 0 8px;
  }

  .updown-brief__chart-caps {
    gap: 8px 14px;
  }

  .updown-brief__chart-k {
    font-size: 10px;
  }

  .updown-brief__chart-v {
    font-size: 13px;
  }

  .updown-brief__chart-sides {
    gap: 10px;
  }

  .updown-brief__chart-side {
    font-size: 13px;
  }

  .updown-brief__title {
    white-space: normal;
    font-size: 17px;
  }

  /* Category rail — keep arrows inside gutters on phone */
  .cat-rail-wrap {
    margin: 2px 0 10px;
    width: 100%;
  }

  /* Updown hero phone: collapse empty chrome padding */
  .feat-carousel--updown-only .feat-carousel__stage {
    min-height: 0 !important;
  }

  .feat-carousel--updown-only .feat-slide,
  .feat-carousel--updown-only .feat-slide.is-active {
    padding: 0 !important;
  }

  .markets-page > .markets-page__head {
    margin-top: 8px;
    margin-bottom: 10px;
    scroll-margin-top: 12px;
  }

  .markets-page__grid-wrap,
  .markets-page [data-bw-markets-grid] {
    scroll-margin-top: 12px;
  }

  .markets-page .pm-card {
    border-radius: 12px;
  }

  /* Trade / event */
  .pm-trade__error {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .event-page__grid,
  .event-page .event-page__layout {
    gap: 12px;
  }

  /* —— Profile LK (phone): premium, desk-like, fits without overflow —— */
  .profile-page--pm.profile-page--desk,
  [data-bw-profile].profile-page--pm {
    padding: 4px 0 56px !important;
  }

  .profile-page--pm .profile-page__head {
    flex-direction: column !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    gap: 10px 12px;
    margin-bottom: 14px !important;
    overflow: visible !important;
  }

  .profile-page--pm .profile-page__identity {
    flex: 0 0 auto !important;
    width: 100%;
    max-width: none;
  }

  .profile-page--pm .profile-page__avatar {
    width: 40px;
    height: 40px;
  }

  .profile-page--pm .profile-page__status,
  .profile-page--pm .profile-page__subline {
    flex-wrap: wrap;
    gap: 6px 8px;
  }

  /* Overview / Settings — always visible full-width row under identity */
  .profile-page--pm .profile-page__tabs,
  .profile-page--pm .profile-page__tabs--pm,
  [data-bw-profile].profile-page--pm .profile-page__tabs {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    flex: 0 0 auto !important;
    flex-basis: auto !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
  }

  .profile-page--pm .profile-page__tab {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-right: 0 !important;
    height: 34px;
    min-height: 34px;
    padding: 0 14px !important;
  }

  .profile-page--pm .pm-lk {
    gap: 14px;
  }

  .profile-page--pm .pm-lk__card {
    padding: 14px 14px 12px;
    border-radius: 12px;
  }

  .profile-page--pm .pm-lk__avatar {
    width: 44px;
    height: 44px;
  }

  .profile-page--pm .pm-lk__name {
    font-size: 1.2rem;
  }

  .profile-page--pm .pm-lk__joined {
    font-size: 0.75rem;
  }

  .profile-page--pm .pm-lk__metrics,
  .pm-lk__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .profile-page--pm .pm-lk__metric-v {
    font-size: 0.875rem;
    letter-spacing: -0.02em;
  }

  .profile-page--pm .pm-lk__metric-k {
    font-size: 0.625rem;
    line-height: 1.25;
  }

  .profile-page--pm .pm-lk__balance-line {
    font-size: 1rem;
  }

  .profile-page--pm .pm-lk__balance-line strong {
    font-size: 1.5rem;
  }

  .profile-page--pm .pm-lk__btn--withdraw,
  .profile-page--pm .pm-lk__cta .pm-lk__btn[data-bw-lk-action="withdraw"] {
    min-width: 120px;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
  }

  .profile-page--pm .pm-lk__pnl {
    min-height: 0;
  }

  .profile-page--pm .pm-lk__pnl-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .profile-page--pm .pm-lk__pnl-lead {
    flex-wrap: wrap;
    height: auto;
    line-height: 1.25;
  }

  .profile-page--pm .pm-lk__pnl-title,
  .profile-page--pm .pm-lk__pnl-amount,
  .profile-page--pm .pm-lk__pnl-lead .pm-lk__pnl-amount,
  .profile-page--pm .pm-lk__pnl .pm-lk__pnl-amount {
    font-size: 1.125rem;
    height: auto;
    line-height: 1.25;
  }

  .profile-page--pm .pm-lk__range {
    width: auto !important;
    max-width: max-content !important;
    align-self: flex-start;
    overflow-x: visible;
    justify-content: flex-start;
  }

  .profile-page--pm .pm-lk__range::-webkit-scrollbar {
    display: none;
  }

  .profile-page--pm .pm-lk__range-btn,
  .profile-page--pm .pm-lk__range .lk-term__range-btn {
    flex: 0 0 auto;
    min-width: 0;
    height: 28px;
    min-height: 28px;
    padding: 0 7px !important;
    font-size: 10.5px !important;
  }

  .profile-page--pm .pm-lk__subtab {
    padding: 12px 0;
    min-height: 44px;
  }

  .profile-page--pm .pm-lk__seg-btn {
    height: 36px;
    min-height: 36px;
    padding: 0 14px !important;
  }

  /* Positions phone: icon + title + outcome only (no horizontal overflow) */
  .profile-page--pm .pm-lk__table-card {
    overflow-x: hidden !important;
    border-radius: 12px;
  }

  .profile-page--pm .pm-lk__table-card .bw-lk-pager {
    padding: 14px 12px 20px;
    gap: 10px;
  }

  .profile-page--pm .pm-lk__table-card .bw-lk-pager__nav,
  .profile-page--pm .pm-lk__table-card .bw-lk-pager__num {
    min-height: 36px;
    height: 36px;
  }

  .profile-page--pm .pm-lk__table-card .pm-lk__empty {
    padding: 28px 16px 36px;
  }

  .profile-page--pm .pm-lk__table-card .profile-page__positions-head,
  .profile-page--pm .pm-lk__table-card .profile-page__positions-head[data-v-9243197e] {
    display: none !important;
  }

  .profile-page--pm .pm-lk__table-card .profile-page__pos-row,
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row[data-v-9243197e] {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
    grid-auto-flow: row !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .profile-page--pm .pm-lk__table-card .profile-page__pos-row > *,
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row[data-v-9243197e] > * {
    grid-area: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .profile-page--pm .pm-lk__table-card .profile-page__pos-row > .profile-page__pos-market,
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row[data-v-9243197e] > .profile-page__pos-market,
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row > :nth-child(1),
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row[data-v-9243197e] > :nth-child(1) {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: hidden !important;
    color: #f5f5f5 !important;
    grid-area: auto !important;
  }

  .profile-page--pm .pm-lk__table-card .profile-page__pos-row > .profile-page__pos-cell--outcome,
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row[data-v-9243197e] > .profile-page__pos-cell--outcome,
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row > :nth-child(2),
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row[data-v-9243197e] > :nth-child(2) {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: 0 !important;
    overflow: visible !important;
    grid-area: auto !important;
  }

  .profile-page--pm .pm-lk__table-card .profile-page__pos-row > .profile-page__pos-cell--shares,
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row > .profile-page__pos-cell--avg,
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row > .profile-page__pos-cell--payout,
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row > .profile-page__pos-cell--stake,
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row > .profile-page__pos-actions,
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row > :nth-child(n + 3),
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row[data-v-9243197e] > :nth-child(n + 3),
  .profile-page--pm .pm-lk__table-card .profile-page__pos-cell .profile-page__pos-k {
    display: none !important;
  }

  .profile-page--pm .pm-lk__table-card .profile-page__pos-market--link,
  .profile-page--pm .pm-lk__table-card .profile-page__pos-market--link[data-v-9243197e],
  .profile-page--pm .pm-lk__table-card .profile-page__pos-market[data-v-9243197e] {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    color: #f5f5f5 !important;
    text-decoration: none !important;
    pointer-events: none;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .profile-page--pm .pm-lk__table-card .profile-page__pos-image,
  .profile-page--pm .pm-lk__table-card .profile-page__pos-image[data-v-9243197e] {
    display: block !important;
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    border-radius: 10px !important;
    opacity: 1 !important;
    visibility: visible !important;
    object-fit: cover !important;
  }

  .profile-page--pm .pm-lk__table-card .profile-page__pos-market-text,
  .profile-page--pm .pm-lk__table-card .profile-page__pos-market-text[data-v-9243197e],
  .profile-page--pm .pm-lk__table-card .profile-page__pos-market-text strong,
  .profile-page--pm .pm-lk__table-card .profile-page__pos-market-text strong[data-v-9243197e] {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    white-space: nowrap !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #f5f5f5 !important;
  }

  .profile-page--pm .pm-lk__table-card .profile-page__pos-outcome,
  .profile-page--pm .pm-lk__table-card .profile-page__pos-outcome[data-v-9243197e] {
    width: auto !important;
    min-width: 48px;
    padding: 0 10px !important;
    height: 26px !important;
    font-size: 11px !important;
  }

  .profile-page--pm .pm-lk__table-card .bw-tx__head,
  .profile-page--pm .pm-lk__table-card .bw-tx__row,
  .profile-page--pm .pm-lk__table-card .bw-tx__head[data-v-9243197e],
  .profile-page--pm .pm-lk__table-card .bw-tx__row[data-v-9243197e] {
    min-width: 0 !important;
  }

  /* Activity phone: left stack (type/detail/date) | amount right, aligned */
  .profile-page--pm .pm-lk__table-card .bw-tx__head,
  .profile-page--pm .pm-lk__table-card .bw-tx__head[data-v-9243197e] {
    display: none !important;
  }

  .profile-page--pm .pm-lk__table-card .bw-tx__row,
  .profile-page--pm .pm-lk__table-card .bw-tx__row[data-v-9243197e] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    grid-template-areas:
      "type amount"
      "detail amount"
      "date amount" !important;
    column-gap: 12px !important;
    row-gap: 3px !important;
    align-items: center !important;
    padding: 12px !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .profile-page--pm .pm-lk__table-card .bw-tx__row > .bw-tx__type {
    grid-area: type !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48) !important;
    min-width: 0 !important;
  }

  .profile-page--pm .pm-lk__table-card .bw-tx__row > .bw-tx__amt {
    grid-area: amount !important;
    align-self: center !important;
    justify-self: end !important;
    text-align: right !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums !important;
    letter-spacing: -0.02em;
    white-space: nowrap !important;
    min-width: 4.75rem;
    line-height: 1.2 !important;
  }

  .profile-page--pm .pm-lk__table-card .bw-tx__row > .bw-tx__detail {
    grid-area: detail !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #f5f5f5 !important;
  }

  .profile-page--pm .pm-lk__table-card .bw-tx__row > .bw-tx__detail > span,
  .profile-page--pm .pm-lk__table-card .bw-tx__row > .bw-tx__detail .bw-tx__link {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
  }

  .profile-page--pm .pm-lk__table-card .bw-tx__row > .bw-tx__date {
    grid-area: date !important;
    display: block !important;
    font-size: 11.5px !important;
    color: rgba(255, 255, 255, 0.4) !important;
    text-align: left !important;
  }

  .profile-page--pm .pm-lk__table-card .bw-tx__event,
  .profile-page--pm .pm-lk__table-card .bw-tx__coin,
  .profile-page--pm .pm-lk__table-card .bw-tx__letter {
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
  }

  /* Shared LK detail sheet — ledger rows like deposit modal */
  .bw-lk-sheet {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .bw-lk-sheet__top {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .bw-lk-sheet__thumb,
  .bw-lk-sheet__thumb--ph {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex: 0 0 40px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
    border: 0;
    box-shadow: none;
  }

  .bw-lk-sheet__thumb--ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
  }

  .bw-lk-sheet__side {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    min-height: 36px;
    min-width: 72px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #0a0b0c;
  }

  .bw-lk-sheet__side--yes {
    background: #2ee59d;
    border-color: #2ee59d;
  }

  .bw-lk-sheet__side--no {
    background: #ff6b7a;
    border-color: #ff6b7a;
  }

  .bw-lk-sheet__top-text {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .bw-lk-sheet__kicker {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
  }

  .bw-lk-sheet__detail {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.35;
    color: #f5f5f5;
  }

  .bw-lk-sheet__ledger {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
  }

  .bw-lk-sheet__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
  }

  .bw-lk-sheet__row:last-child {
    border-bottom: 0;
  }

  .bw-lk-sheet__row > span {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
  }

  .bw-lk-sheet__row > strong {
    color: #f5f5f5;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    text-align: right;
    letter-spacing: -0.02em;
  }

  .bw-lk-sheet__row--net {
    background: rgba(255, 255, 255, 0.03);
  }

  .bw-lk-sheet__row--net > strong {
    font-size: 15px;
  }

  .bw-lk-sheet__actions {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
  }

  .bw-lk-sheet__actions .bw-lk-sheet__cancel,
  .bw-lk-sheet__actions .lk-btn.bw-lk-sheet__cancel {
    width: auto !important;
    min-width: 0 !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    justify-content: center;
    font-size: 13px !important;
  }

  .lk-modal:has(.bw-lk-sheet) {
    padding: 0;
    align-items: flex-end;
    justify-content: stretch;
  }

  .lk-modal:has(.bw-lk-sheet) .lk-modal__box {
    width: 100%;
    max-width: 100%;
    margin: 0;
    max-height: min(88vh, 100dvh);
    border-radius: 20px 20px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    background: #15191d;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  }

  .lk-modal:has(.bw-lk-sheet) .lk-modal__head {
    padding: 16px 16px 10px;
  }

  .lk-modal:has(.bw-lk-sheet) .lk-modal__title {
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  .lk-modal:has(.bw-lk-sheet) .lk-modal__body {
    padding: 8px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  }

  /* Settings nav: snap + larger pills */
  .profile-page--pm .pm-set__side,
  .pm-set__side {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    max-width: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .profile-page--pm .pm-set__side::-webkit-scrollbar,
  .pm-set__side::-webkit-scrollbar {
    display: none;
  }

  .profile-page--pm .pm-set__nav-item,
  .pm-set__nav-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    height: 36px;
    min-height: 36px;
    padding: 0 14px !important;
  }

  .profile-page--pm .pm-set__row {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 12px;
  }

  .profile-page--pm .pm-set__desk .profile-page__security-row {
    flex-wrap: wrap !important;
  }

  /* Sidebar drawer open (JS toggles body.bw-sidebar-open) */
  body.bw-sidebar-open .lk-layout .lk-sidebar:not([style*="display: none"]),
  .lk-layout .lk-sidebar.lk-sidebar--mobile-open {
    transform: translateX(0) !important;
  }
}

@media (max-width: 640px) {
  /* —— Modals as bottom sheets (skip auth-gate) —— */
  .lk-modal:has(.lk-modal__box:not(.lk-modal__box--auth)) {
    padding: 0;
    align-items: flex-end;
    justify-content: stretch;
  }

  .lk-modal__box:not(.lk-modal__box--auth) {
    width: 100%;
    max-width: 100%;
    margin: 0;
    max-height: min(92vh, 100dvh);
    border-radius: 20px 20px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  }

  .lk-modal__box:not(.lk-modal__box--auth) .lk-modal__head {
    padding: 16px 16px 10px;
    gap: 10px;
  }

  .lk-modal__box:not(.lk-modal__box--auth) .lk-modal__title {
    font-size: 17px;
    letter-spacing: -0.02em;
  }

  .lk-modal__box:not(.lk-modal__box--auth) .lk-modal__meta {
    font-size: 12.5px;
  }

  .lk-modal__box:not(.lk-modal__box--auth) .lk-modal__body {
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .lk-modal__box:not(.lk-modal__box--auth) .lk-modal__close {
    width: 36px;
    height: 36px;
  }

  .lk-modal__box--md:has(.bw-pay),
  .lk-modal__box--md:has(.bw-dep),
  .lk-modal__box--lg:has(.bw-kyc) {
    max-width: 100%;
  }

  /* KYC verify: compact bottom sheet — fit viewport, no scroll */
  .lk-modal__box--lg:has(.bw-kyc) {
    max-height: min(100dvh, 100svh) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .lk-modal__box--lg:has(.bw-kyc) .lk-modal__head {
    flex: 0 0 auto;
    padding: 10px 14px 8px !important;
    gap: 6px !important;
  }

  .lk-modal__box--lg:has(.bw-kyc) .lk-modal__title {
    font-size: 15px !important;
    letter-spacing: -0.02em;
  }

  .lk-modal__box--lg:has(.bw-kyc) .lk-modal__meta {
    margin-top: 2px !important;
    font-size: 11.5px !important;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .lk-modal__box--lg:has(.bw-kyc) .lk-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden !important;
    padding: 8px 14px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .lk-modal__box--lg:has(.bw-kyc) .bw-kyc {
    gap: 8px;
    height: 100%;
    min-height: 0;
  }

  .lk-modal__box--lg:has(.bw-kyc) .bw-kyc__shell {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .lk-modal__box--lg:has(.bw-kyc) .bw-kyc__pane--docs {
    padding-top: 8px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .lk-modal__box--lg:has(.bw-kyc) .bw-kyc__section {
    margin: 0 0 6px;
    font-size: 11px;
  }

  .lk-modal__box--lg:has(.bw-kyc) .bw-kyc__docs-hint {
    margin: -2px 0 6px;
    font-size: 11px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .lk-modal__box--lg:has(.bw-kyc) .bw-kyc__grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px 8px !important;
  }

  .lk-modal__box--lg:has(.bw-kyc) .bw-kyc .bw-sec-form__field {
    gap: 3px;
  }

  .lk-modal__box--lg:has(.bw-kyc) .bw-kyc .bw-sec-form__label {
    font-size: 10.5px;
  }

  .lk-modal__box--lg:has(.bw-kyc) .bw-kyc .bw-sec-form__input {
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 13px;
  }

  .lk-modal__box--lg:has(.bw-kyc) .bw-kyc__uploads {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .lk-modal__box--lg:has(.bw-kyc) .bw-kyc__upload {
    grid-template-columns: 1fr !important;
    justify-items: center;
    text-align: center;
    min-height: 0 !important;
    padding: 8px 6px !important;
    gap: 6px !important;
    border-radius: 10px;
  }

  .lk-modal__box--lg:has(.bw-kyc) .bw-kyc__upload-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .lk-modal__box--lg:has(.bw-kyc) .bw-kyc__upload-title {
    font-size: 11.5px;
  }

  .lk-modal__box--lg:has(.bw-kyc) .bw-kyc__upload-hint {
    display: none;
  }

  .lk-modal__box--lg:has(.bw-kyc) .bw-kyc__upload-file {
    font-size: 10px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .lk-modal__box--lg:has(.bw-kyc) .bw-kyc__foot {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding-top: 8px !important;
    align-items: stretch;
  }

  .lk-modal__box--lg:has(.bw-kyc) .bw-kyc__legal {
    font-size: 10.5px;
    line-height: 1.3;
    white-space: normal;
  }

  .lk-modal__box--lg:has(.bw-kyc) .bw-kyc__sumsub-mark {
    width: 24px;
    height: 24px;
    padding: 2px;
  }

  .lk-modal__box--lg:has(.bw-kyc) .bw-kyc__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 8px;
  }

  .lk-modal__box--lg:has(.bw-kyc) .bw-kyc__actions .lk-btn {
    width: 100%;
    min-height: 40px;
    height: 40px;
  }

  /* Deposit / Withdraw: compact bottom sheet — fit viewport, no scroll */
  .lk-modal__box--md:has(.bw-pay),
  .lk-modal__box--md:has(.bw-dep) {
    max-height: min(100dvh, 100svh) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .lk-modal__box--md:has(.bw-pay) .lk-modal__head,
  .lk-modal__box--md:has(.bw-dep) .lk-modal__head {
    flex: 0 0 auto;
    padding: 10px 14px 8px !important;
    gap: 6px !important;
  }

  .lk-modal__box--md:has(.bw-pay) .lk-modal__title,
  .lk-modal__box--md:has(.bw-dep) .lk-modal__title {
    font-size: 15px !important;
    letter-spacing: -0.02em;
  }

  .lk-modal__box--md:has(.bw-pay) .lk-modal__meta,
  .lk-modal__box--md:has(.bw-dep) .lk-modal__meta {
    margin-top: 2px !important;
    font-size: 11.5px !important;
    line-height: 1.3;
  }

  .lk-modal__box--md:has(.bw-pay) .lk-modal__body,
  .lk-modal__box--md:has(.bw-dep) .lk-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden !important;
    padding: 8px 14px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .lk-modal__box--md:has(.bw-pay) .bw-pay,
  .lk-modal__box--md:has(.bw-dep) .bw-dep {
    gap: 10px;
    height: 100%;
    min-height: 0;
  }

  .lk-modal__box--md:has(.bw-pay) .bw-pay__ledger {
    gap: 6px;
    padding-bottom: 8px;
  }

  .lk-modal__box--md:has(.bw-pay) .bw-pay__ledger-row {
    font-size: 12px;
  }

  .lk-modal__box--md:has(.bw-pay) .bw-pay__ledger-row strong {
    font-size: 13px;
  }

  .lk-modal__box--md:has(.bw-pay) .bw-pay__ledger-row--net {
    padding-top: 6px;
  }

  .lk-modal__box--md:has(.bw-pay) .bw-pay__block,
  .lk-modal__box--md:has(.bw-pay) .bw-pay__field {
    gap: 6px;
  }

  .lk-modal__box--md:has(.bw-pay) .bw-pay__label {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .lk-modal__box--md:has(.bw-pay) .bw-pay__chips--methods {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .lk-modal__box--md:has(.bw-pay) .bw-pay__chip,
  .lk-modal__box--md:has(.bw-pay) .bw-pay__chip--method {
    min-height: 0 !important;
    height: 34px !important;
    padding: 0 8px 0 8px !important;
    border-radius: 9px;
    font-size: 11px !important;
    gap: 6px;
  }

  .lk-modal__box--md:has(.bw-pay) .bw-pay__chips--methods .bw-pay__chip {
    justify-content: flex-start;
    padding-left: 8px !important;
  }

  .lk-modal__box--md:has(.bw-pay) .bw-pay__chip-icon {
    width: 16px;
    height: 16px;
  }

  .lk-modal__box--md:has(.bw-pay) .bw-pay__amount,
  .lk-modal__box--md:has(.bw-pay) .bw-pay__amount--solo,
  .lk-modal__box--md:has(.bw-pay) .bw-pay__amount--deposit {
    min-height: 40px;
    padding: 0 8px 0 12px;
    border-radius: 11px;
  }

  .lk-modal__box--md:has(.bw-pay) .bw-pay__amount .bw-pay__input,
  .lk-modal__box--md:has(.bw-pay) .bw-pay .bw-pay__input,
  .lk-modal__box--md:has(.bw-pay) .lk-modal .bw-pay__input {
    height: 38px;
    font-size: 15px;
  }

  .lk-modal__box--md:has(.bw-pay) .bw-pay__hint {
    margin: 0;
    font-size: 11px;
    line-height: 1.3;
  }

  .lk-modal__box--md:has(.bw-pay) .bw-pay__actions,
  .lk-modal__box--md:has(.bw-dep) .bw-dep__actions {
    display: grid !important;
    grid-template-columns: 1fr 1.35fr;
    flex-direction: row !important;
    gap: 8px;
    margin-top: 2px;
  }

  .lk-modal__box--md:has(.bw-pay) .bw-pay__actions .lk-btn,
  .lk-modal__box--md:has(.bw-dep) .bw-dep__actions .lk-btn {
    width: 100%;
    min-height: 40px;
    height: 40px;
  }

  /* Deposit pay screen (QR + address) */
  .lk-modal__box--md:has(.bw-dep) .bw-dep__asset {
    gap: 8px;
  }

  .lk-modal__box--md:has(.bw-dep) .bw-dep__qr {
    width: min(120px, 34vw);
    padding: 6px;
    margin-top: 0;
  }

  .lk-modal__box--md:has(.bw-dep) .bw-dep__pay {
    gap: 8px;
  }

  .lk-modal__box--md:has(.bw-dep) .bw-dep__exact,
  .lk-modal__box--md:has(.bw-dep) .bw-dep__addr-block {
    gap: 6px;
  }

  /* Amount + ≈ USD + Copy on one symmetrical row */
  .lk-modal__box--md:has(.bw-dep) .bw-dep__exact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      'label label label'
      'amt usd copy';
    align-items: center;
    column-gap: 10px;
    row-gap: 6px;
  }

  .lk-modal__box--md:has(.bw-dep) .bw-dep__exact > .bw-dep__label {
    grid-area: label;
  }

  .lk-modal__box--md:has(.bw-dep) .bw-dep__exact-row {
    display: contents;
  }

  .lk-modal__box--md:has(.bw-dep) .bw-dep__exact-amt {
    grid-area: amt;
    font-size: 15px;
    padding: 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lk-modal__box--md:has(.bw-dep) .bw-dep__exact-usd {
    grid-area: usd;
    margin: 0;
    font-size: 13px;
    font-weight: 550;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    justify-self: end;
  }

  .lk-modal__box--md:has(.bw-dep) .bw-dep__exact-row > .bw-dep__copy {
    grid-area: copy;
  }

  .lk-modal__box--md:has(.bw-dep) .bw-dep__addr-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px;
  }

  .lk-modal__box--md:has(.bw-dep) .bw-dep__addr {
    font-size: 12px;
    padding: 8px 10px;
  }

  .lk-modal__box--md:has(.bw-dep) .bw-dep__copy {
    width: auto;
    min-width: 64px;
    min-height: 36px;
    height: 36px;
    padding: 0 12px;
  }

  .lk-modal__box--md:has(.bw-dep) .bw-dep__note {
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .lk-modal__box--md:has(.bw-dep) .bw-dep__status {
    padding: 8px 10px;
    gap: 8px;
  }

  .lk-modal__box--md:has(.bw-dep) .bw-dep__status p {
    font-size: 12px;
  }

  .hiw-quiz {
    max-width: 100%;
  }

  .bw-wd-result {
    padding: 8px 0 4px;
  }

  .bw-wd-result__card {
    border-radius: 14px;
    box-shadow: none !important;
  }

  .bw-mbn-search {
    gap: 14px;
  }

  .bw-mbn-search__input {
    height: 48px;
    border-radius: 12px;
    font-size: 16px; /* iOS zoom lock */
  }

  /* Positions / activity tables — keep fluid (no forced horizontal scroll) */
  .profile-page--pm .pm-lk__table-card {
    overflow-x: visible;
    border-radius: 12px;
  }

  .profile-page--pm .pm-lk__table-card .profile-page__positions-head,
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row,
  .profile-page--pm .pm-lk__table-card .bw-tx__head,
  .profile-page--pm .pm-lk__table-card .bw-tx__row {
    min-width: 0 !important;
    font-size: 12px;
  }

  .profile-page--pm .pm-lk__metrics,
  .pm-lk__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .profile-page--pm.profile-page--desk,
  [data-bw-profile].profile-page--pm {
    padding: 4px 0 48px !important;
  }
}

@media (max-width: 480px) {
  .lk-layout .lk-header__logo-text {
    font-size: 20px !important;
  }

  .feat-carousel .updown-stage__tape {
    height: auto;
    max-height: none;
  }

  .feat-carousel .updown-tape__list {
    height: auto !important;
    max-height: calc(10 * 32px);
    overflow: hidden;
  }

  .updown-brief__chart-plot,
  .updown-brief__canvas,
  .feat-carousel .updown-brief__chart-plot {
    min-height: 160px;
  }

  .lk-header .lk-btn--login,
  .lk-header a.lk-btn--login {
    padding: 0 10px;
  }

  .lk-user__balance-meta {
    max-width: 72px;
  }

  .bw-pay__chips--methods {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Event page phone — stack like Polymarket (desktop untouched)
   ========================================================================== */
@media (max-width: 960px) {
  .lk-layout:has(.event-page) .lk-layout__content,
  .lk-layout--no-cat-sidebar:has(.event-page) .lk-layout__content {
    overflow-x: hidden !important;
  }

  .event-page {
    max-width: 100% !important;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .event-page__layout {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100%;
    min-width: 0;
  }

  .event-page__info {
    order: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Tablet: trade still in flow under markets */
  .event-page__sidebar {
    order: 2 !important;
    position: static !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
    box-sizing: border-box;
  }

  .event-page__sidebar .pm-trade {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .bw-trade-sheet__bar {
    display: none;
  }

  .bw-trade-sheet-backdrop {
    display: none;
  }
}

/* Phone: trade panel = bottom sheet on market tap */
@media (max-width: 768px) {
  .event-page__sidebar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 220 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translate3d(0, 110%, 0);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    visibility: hidden;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html.bw-trade-sheet-open .event-page__sidebar,
  body.bw-trade-sheet-open .event-page__sidebar {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
    visibility: visible;
  }

  html.bw-trade-sheet-open,
  html.bw-trade-sheet-open body {
    overflow: hidden !important;
  }

  .bw-trade-sheet-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 210;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    -webkit-tap-highlight-color: transparent;
  }

  html.bw-trade-sheet-open .bw-trade-sheet-backdrop,
  body.bw-trade-sheet-open .bw-trade-sheet-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .event-page__sidebar .pm-trade {
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(88vh, 680px);
    margin: 0 !important;
    padding: 8px 16px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 20px 20px 0 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: 0 !important;
    background: #1c2127 !important;
    box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.55) !important;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .bw-trade-sheet__bar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 28px;
    margin: 0 0 6px;
    flex-shrink: 0;
  }

  .bw-trade-sheet__handle {
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
  }

  .bw-trade-sheet__close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
  }

  .bw-trade-sheet__close:active {
    background: rgba(255, 255, 255, 0.1);
  }

  .event-page__sidebar .pm-trade__tabs {
    padding-top: 2px;
  }

  .event-page__sidebar .pm-trade button.pm-trade__submit {
    height: 48px;
    font-size: 15px;
    border-radius: 12px;
  }
}

@media (max-width: 720px) {
  .event-page {
    gap: 12px !important;
  }

  .event-page__back {
    font-size: 13px;
    margin-bottom: 2px;
  }

  .event-head {
    gap: 12px;
  }

  .event-head__icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
  }

  .event-head__title {
    font-size: 18px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .event-head__meta {
    font-size: 12px;
    gap: 6px 8px;
  }

  .event-chart[data-v-c2539afa],
  .event-page .event-chart {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100%;
    min-width: 0;
  }

  .event-page .event-chart__plot,
  .event-page .event-chart__canvas,
  .event-chart__plot,
  .event-chart__canvas {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 180px !important;
    height: 180px !important;
  }

  .event-page .event-chart__legend,
  .event-chart__legend {
    gap: 6px 12px;
  }

  .event-page .event-chart__legend-item,
  .event-chart__legend-item {
    white-space: normal;
    max-width: 100%;
  }

  .event-page .event-chart__ranges,
  .event-chart__ranges {
    flex-wrap: wrap;
    gap: 6px;
  }

  .event-page .event-markets,
  .event-page .ev-trades {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .event-page .event-market__row {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "name mid"
      "actions actions" !important;
  }

  .event-page .event-market__actions {
    width: 100% !important;
    max-width: none !important;
  }

  .event-page .event-market__btn {
    flex: 1 1 0;
    min-width: 0;
  }

  .event-page .pm-trade {
    padding: 14px 12px !important;
    border-radius: 14px;
  }

  .event-page .pm-trade__quick {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .event-page .pm-trade__amount,
  .event-page .pm-trade input {
    font-size: 16px; /* iOS zoom lock */
  }

  .event-page .ev-trades__sheet {
    max-height: min(320px, 45vh);
  }
}

@media (max-width: 480px) {
  .event-head__title {
    font-size: 16.5px !important;
  }

  .event-page .event-chart__plot,
  .event-page .event-chart__canvas,
  .event-chart__plot,
  .event-chart__canvas {
    min-height: 160px !important;
    height: 160px !important;
  }

  .event-page .pm-trade__error {
    white-space: normal !important;
    overflow: visible !important;
  }

  .event-page .pm-trade__tabs {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* === Event market Yes/No — always green / always red (wins cascade) === */
.event-page .event-market__actions,
.event-markets .event-market__actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.event-page .event-market__actions::before,
.event-markets .event-market__actions::before {
  content: none !important;
  display: none !important;
}

.event-page .event-market__btn,
.event-markets .event-market__btn {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  min-height: 36px !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
  border-style: solid !important;
  border-width: 1px !important;
  font: inherit !important;
  cursor: pointer !important;
  box-shadow: none !important;
  outline: none !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  visibility: visible !important;
}

.event-page .event-market__btn--yes,
.event-page .event-market__btn--yes:hover,
.event-page .event-market__btn--yes:focus,
.event-page .event-market__btn--yes:active,
.event-page .event-market__btn--yes.is-active,
.event-page .event-market__btn--yes.is-active:hover,
.event-page .event-market__btn--yes.is-active:focus,
.event-markets .event-market__btn--yes,
.event-markets .event-market__btn--yes:hover,
.event-markets .event-market__btn--yes:focus,
.event-markets .event-market__btn--yes:active,
.event-markets .event-market__btn--yes.is-active {
  color: #0a0b0c !important;
  background: #2ee59d !important;
  background-color: #2ee59d !important;
  border-color: #2ee59d !important;
}

.event-page .event-market__btn--no,
.event-page .event-market__btn--no:hover,
.event-page .event-market__btn--no:focus,
.event-page .event-market__btn--no:active,
.event-page .event-market__btn--no.is-active,
.event-page .event-market__btn--no.is-active:hover,
.event-page .event-market__btn--no.is-active:focus,
.event-markets .event-market__btn--no,
.event-markets .event-market__btn--no:hover,
.event-markets .event-market__btn--no:focus,
.event-markets .event-market__btn--no:active,
.event-markets .event-market__btn--no.is-active {
  color: #0a0b0c !important;
  background: #ff6b7a !important;
  background-color: #ff6b7a !important;
  border-color: #ff6b7a !important;
}

.event-page .event-market__btn-label,
.event-page .event-market__btn-pct,
.event-markets .event-market__btn-label,
.event-markets .event-market__btn-pct {
  color: inherit !important;
  opacity: 1 !important;
}

/* ==========================================================================
   LK phone positions — bw-pos-phone (icon + title + YES/NO), host-proof
   ========================================================================== */
@media (max-width: 768px) {
  .bw-pos-phone {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  .pm-lk__table-card .profile-page__pos-row > .bw-pos-desk,
  .pm-lk__table-card .profile-page__pos-row[data-v-9243197e] > .bw-pos-desk,
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row > .bw-pos-desk,
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row[data-v-9243197e] > .bw-pos-desk,
  .pm-lk__table-card .profile-page__positions-head {
    display: none !important;
  }

  .profile-page--pm .pm-lk__table-card .profile-page__pos-row,
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row[data-v-9243197e],
  [data-bw-profile].profile-page--pm .pm-lk__table-card .profile-page__pos-row[data-v-9243197e] {
    display: block !important;
    padding: 0 !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
    min-height: 0 !important;
  }

  .profile-page--pm .pm-lk__table-card .profile-page__pos-row[hidden],
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row[data-v-9243197e][hidden],
  [data-bw-profile].profile-page--pm .pm-lk__table-card .profile-page__pos-row[hidden] {
    display: none !important;
  }

  .profile-page--pm .pm-lk__table-card .profile-page__pos-row > *,
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row[data-v-9243197e] > * {
    grid-area: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .bw-pos-phone__title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    color: #f5f5f5 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .bw-pos-phone__icon {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
  }

  .bw-pos-phone__side--yes {
    background: #2ee59d !important;
    color: #0a0b0c !important;
  }

  .bw-pos-phone__side--no {
    background: #ff6b7a !important;
    color: #0a0b0c !important;
  }
}

@media (min-width: 769px) {
  .bw-pos-phone {
    display: none !important;
  }
}

/* ==========================================================================
   Phone scroll — native document scroll (not nested 100dvh overflow)
   Fixes clipped / “can't reach bottom” scroll on iOS/Android without
   changing desktop nested-scroll layout.
   ========================================================================== */
@media (max-width: 768px) {
  html.pm-shell:not(:has(.bw-auth)),
  html.pm-shell:not(:has(.bw-auth)) body {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100%;
  }

  .lk-layout:not(:has(.bw-auth)),
  .lk-layout[data-v-e41fc834]:not(:has(.bw-auth)) {
    height: auto !important;
    min-height: 100dvh !important;
    min-height: 100svh;
    overflow: visible !important;
  }

  .lk-layout:not(:has(.bw-auth)) .lk-layout__page,
  .lk-layout__page[data-v-e41fc834] {
    overflow: visible !important;
    max-height: none !important;
  }

  .lk-layout:not(:has(.bw-auth)) .lk-layout__content,
  .lk-layout__content[data-v-e41fc834] {
    overflow-x: hidden !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    /* Room under last content + home indicator / chat fab */
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .lk-layout:not(:has(.bw-auth)) .lk-layout__legal.bw-site-footer {
    padding-bottom: 8px;
  }
}
