/* LK chrome copied from PolyBet assets (data-v stripped). Colors come from exchange tokens.css. */

.lk-layout {
  --lk-header-ctl-h: 36px;
  --background: var(--ink);
  --text-primary: var(--bone);
  --text-black: var(--bone);
  --text-secondary: var(--stone);
  --text-tertiary: var(--faint);
  --text-muted: var(--faint);
  --text-accent: var(--signal);
  --text-red: var(--bad);
  --text-green: var(--ok);
  --primary: var(--signal);
  --primary-hover: var(--signal-strong);
  --secondary: var(--bone);
  --on-secondary: var(--ink);
  --secondary-hover: var(--bone);
  --tertiary: var(--panel-2);
  --border: var(--line);
  --border-hover: var(--line);
  --border-strong: var(--line);
  --border-subtle: var(--line-soft);
  --divider: var(--line);
  --stroke-error: var(--bad);
  --bg-elevated: var(--panel-2);
  --card-bg: var(--panel);
  --surface-1: var(--panel);
  --surface-2: var(--panel-2);
  --surface-sunken: var(--panel);
  --overlay-hover: var(--panel-2);
  --overlay-press: var(--panel-3);
  --overlay-strong: var(--panel-3);
  --overlay-scrim: color-mix(in srgb, var(--ink) 72%, transparent);
  --accent-soft: color-mix(in srgb, var(--signal) 14%, transparent);
  --red-soft: color-mix(in srgb, var(--bad) 18%, transparent);
  --red-soft-hover: color-mix(in srgb, var(--bad) 28%, transparent);
  --shadow-pop: 0 18px 50px rgba(0, 0, 0, .5);
}

html:has(.lk-layout),
html:has(.lk-layout) body {
  overflow: hidden;
  height: 100%;
}

.lk-layout .landing__nav-bar {
  flex-shrink: 0;
  position: relative;
}

.lk-app-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
}

.lk-app-tabs .profile-page__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--bone);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
}

.lk-app-tabs .profile-page__tab:hover {
  background: rgba(255, 255, 255, 0.03);
}

.lk-app-tabs .profile-page__tab--active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
}

.lk-sidebar { position: relative; }

.lk-layout .lk-input__field {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  height: auto !important;
  box-shadow: none !important;
}

.hmenu__panel[hidden] { display: none !important; }
.hmenu__item { text-decoration: none; }
.hmenu__item--danger { color: var(--text-red); }
.nb__btn { text-decoration: none; }
.lk-btn--deposit { text-decoration: none; }

@media (max-width: 650px) {
  .lk-sidebar__backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--overlay-scrim);
    z-index: 99;
  }
  body.bw-sidebar-open .lk-sidebar__backdrop,
  .lk-sidebar--mobile-open ~ .lk-sidebar__backdrop { display: block; }
  body.bw-sidebar-open .lk-sidebar,
  .lk-sidebar.lk-sidebar--mobile-open {
    transform: translate(0);
    visibility: visible;
  }
}


/* assets/LkLayout-D8JC1FIO.css */
.lk-layout{height:100dvh;min-height:100vh;width:100%;display:flex;flex-direction:column;background:var(--background);color:var(--text-primary)}.lk-layout__page{display:flex;justify-content:space-between;gap:24px;flex-grow:1;overflow:hidden;width:100%;max-height:100%}.lk-layout__content{position:relative;flex-grow:1;min-width:0;overflow-x:hidden;overflow-y:auto;min-height:350px;width:100%;padding:16px 20px 40px;background-image:radial-gradient(ellipse at top right,color-mix(in srgb, var(--signal) 8%, transparent) 0%,transparent 40%),radial-gradient(ellipse at bottom left,color-mix(in srgb, var(--signal) 4%, transparent) 0%,transparent 50%);background-size:cover;background-position:center;background-repeat:no-repeat}.lk-layout__legal{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin-top:48px;padding:20px 0 8px;border-top:1px solid var(--divider);font-size:13px;color:var(--text-secondary)}.lk-layout__legal a{color:inherit;text-decoration:none;transition:color .15s ease}.lk-layout__legal a:hover{color:var(--text-primary)}.lk-layout__legal-dot{opacity:.5}@media(max-width:650px){.lk-layout__content{padding:12px 12px calc(76px + env(safe-area-inset-bottom,0px))}}


/* assets/LkHeader-BT--crTC.css */
.lk-header{padding:14px 24px;padding-top:calc(14px + env(safe-area-inset-top,0px));display:flex;align-items:center;justify-content:space-between;gap:24px;position:relative;z-index:55}.lk-header__left{flex-shrink:0;display:flex;align-items:center;gap:10px}.lk-header__burger{display:none;width:36px;height:36px;align-items:center;justify-content:center;border:none;background:transparent;color:var(--text-primary);border-radius:8px;cursor:pointer;flex-shrink:0}.lk-header__burger:hover{background:var(--tertiary)}.lk-header__logo{display:flex;align-items:center;gap:8px}.lk-header__logo-image{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;color:var(--text-black);border-radius:8px;overflow:hidden}.lk-header__logo-img{width:100%;height:100%;object-fit:contain;display:block}.lk-header__logo-text{font-size:14px;color:var(--text-primary);font-weight:500}.lk-header__middle{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:16px}.lk-header__search{position:relative;max-width:720px;width:100%}.lk-header__right{flex-shrink:0;display:flex;align-items:center;justify-content:flex-end;gap:8px}.lk-header__search-trigger{display:none;width:36px;height:36px;align-items:center;justify-content:center;border:none;background:transparent;color:var(--text-primary);border-radius:8px;cursor:pointer;flex-shrink:0}.lk-header__search-trigger:hover{background:var(--tertiary)}.lk-header__how{flex-shrink:0;display:inline-flex;align-items:center;gap:7px;padding:8px 6px;border:none;background:transparent;color:var(--primary);font-size:14px;font-weight:600;white-space:nowrap;cursor:pointer;transition:opacity .15s ease}.lk-header__how:hover{opacity:.8}@media(max-width:768px){.lk-header__how{display:none}}@media(max-width:768px){.lk-header{padding:12px 10px;padding-top:calc(12px + env(safe-area-inset-top,0px))}.lk-header__middle{display:none}.lk-header__search-trigger{display:inline-flex}.lk-header__left,.lk-header__logo{min-width:0}.lk-header__logo-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}@media(max-width:650px){.lk-header__burger,.lk-header__search-trigger{display:none}}


/* assets/LkSidebar-D-eOVEPN.css */
.lk-sidebar{max-width:316px;width:100%;padding:16px 24px;display:flex;flex-direction:column;height:100%;flex-shrink:0;overflow:hidden}.lk-sidebar__scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:24px;padding-right:4px;margin-right:-4px;scrollbar-width:thin;scrollbar-color:var(--overlay-press) transparent}.lk-sidebar__scroll::-webkit-scrollbar{width:6px}.lk-sidebar__scroll::-webkit-scrollbar-thumb{background:var(--overlay-press);border-radius:3px}.lk-sidebar__scroll::-webkit-scrollbar-thumb:hover{background:var(--overlay-strong)}.lk-sidebar__group{display:flex;flex-direction:column;gap:4px}.lk-sidebar__title{font-size:11px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;padding:0 16px 8px;font-weight:500}.lk-sidebar__link{display:flex;align-items:center;gap:10px;width:100%;padding:12px 16px;border-radius:14px;font-size:14px;color:var(--text-tertiary);transition:.3s ease;white-space:nowrap;cursor:pointer}.lk-sidebar__link:hover{color:var(--secondary);background:var(--tertiary)}.lk-sidebar__link--active{color:var(--secondary);background:var(--overlay-press)}.lk-sidebar__label{flex:1}.lk-sidebar__more{border:0;background:transparent;font:inherit;text-align:left}.lk-sidebar__more-chevron{transition:transform .25s ease}.lk-sidebar__more-chevron--open{transform:rotate(180deg)}.lk-sidebar__count{font-size:12px;color:var(--text-muted);font-variant-numeric:tabular-nums}.lk-sidebar__link--active .lk-sidebar__count{color:var(--text-secondary)}.lk-sidebar__pinned{flex-shrink:0;display:flex;flex-direction:column;gap:16px;padding-top:12px;border-top:1px solid var(--divider);margin-top:12px}.lk-sidebar__footer{flex-shrink:0;padding:4px 0 8px}.lk-sidebar__backdrop{display:none}.lk-sidebar__close{display:none;position:absolute;top:12px;right:12px;width:36px;height:36px;align-items:center;justify-content:center;background:var(--tertiary);border:none;color:var(--text-primary);border-radius:999px;cursor:pointer;z-index:1}@media(max-width:1280px){.lk-sidebar{max-width:100px;padding:16px 12px}.lk-sidebar__link{justify-content:center;padding:12px}}@media(max-width:650px){.lk-sidebar{display:flex;position:fixed;top:0;left:0;bottom:0;width:84%;max-width:320px;height:100vh;height:100dvh;padding:calc(56px + env(safe-area-inset-top,0px)) 16px calc(16px + env(safe-area-inset-bottom,0px));background:var(--background);box-shadow:var(--shadow-pop);z-index:100;transform:translate(-100%);visibility:hidden;transition:transform .28s cubic-bezier(.32,.72,0,1),visibility 0s linear .28s;will-change:transform}.lk-sidebar--mobile-open{transform:translate(0);visibility:visible;transition:transform .28s cubic-bezier(.32,.72,0,1),visibility 0s linear 0s}.lk-sidebar__link{justify-content:flex-start;padding:12px 16px}.lk-sidebar__close{display:inline-flex;top:calc(12px + env(safe-area-inset-top,0px))}.lk-sidebar__backdrop{display:block;position:fixed;inset:0;background:var(--overlay-scrim);z-index:99}}.lk-backdrop-enter-active,.lk-backdrop-leave-active{transition:opacity .28s ease}.lk-backdrop-enter-from,.lk-backdrop-leave-to{opacity:0}@media(prefers-reduced-motion:reduce){.lk-sidebar,.lk-backdrop-enter-active,.lk-backdrop-leave-active{transition-duration:.01s}}


/* assets/LkButton-_wximxh8.css */
.lk-btn{position:relative;overflow:hidden;min-width:fit-content;border:none;border-radius:32px;font-family:inherit;font-size:14px;line-height:100%;color:var(--text-primary);cursor:pointer;transition:.3s ease;display:inline-flex;align-items:center;justify-content:center}.lk-btn__content{display:flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}.lk-btn--small{padding:8px 12px;font-weight:400}.lk-btn--medium{padding:12px 16px}.lk-btn--large{padding:16px 20px}.lk-btn--full{width:100%}.lk-btn--primary{background-color:var(--primary);color:#fff;font-weight:600}.lk-btn--primary:hover{box-shadow:inset 0 0 12px #ffffff40,0 4px 20px #5baaf533}.lk-btn--secondary{background-color:var(--secondary);color:var(--on-secondary)}.lk-btn--secondary:hover{background-color:var(--secondary-hover)}.lk-btn--tertiary{background-color:var(--tertiary)}.lk-btn--tertiary:hover{background-color:var(--overlay-press)}.lk-btn--red{background-color:var(--red-soft);color:var(--text-red)}.lk-btn--red:hover{background-color:var(--red-soft-hover)}.lk-btn--transparent{background-color:transparent}.lk-btn--transparent:hover{background-color:var(--tertiary)}.lk-btn:disabled{opacity:.4;pointer-events:none}


/* assets/LkInput-1lYlWzru.css */
.lk-input{display:flex;flex-direction:column;gap:12px;width:100%}.lk-input--full{width:100%}.lk-input__head{display:flex;align-items:center;justify-content:space-between;gap:24px}.lk-input__label{font-size:16px;color:var(--text-primary)}.lk-input__sublabel{font-size:14px;color:var(--text-secondary)}.lk-input__wrapper{position:relative;display:flex;align-items:center;height:48px;padding:12px;border-radius:16px;background-color:var(--tertiary);border:1px solid transparent;transition:.3s ease}.lk-input__wrapper:hover,.lk-input__wrapper:focus-within{border-color:var(--border-strong)}.lk-input__wrapper--disabled{opacity:.6;pointer-events:none}.lk-input__icon{display:flex;align-items:center;justify-content:center;margin-right:8px;color:var(--text-secondary);flex-shrink:0}.lk-input__icon--right{order:3;margin-right:0;margin-left:8px}.lk-input__field{flex:1;width:100%;background:none;border:none;outline:none;font-size:14px;color:var(--text-primary)}.lk-input__field::placeholder{color:var(--text-secondary)}.lk-input__actions{display:flex;flex-shrink:0;gap:4px;margin-left:8px}.lk-input--error .lk-input__wrapper{border-color:var(--stroke-error);box-shadow:0 0 0 2px #ff5d473d}.lk-input__error{font-size:12px;color:var(--text-red)}


/* assets/UserBlock-DO0zZ3Mr.css */
.lk-user{position:relative;display:flex;align-items:center;gap:24px}.lk-user:before{content:"";display:block;position:absolute;top:0;right:0;width:300px;height:300px;border-radius:50%;background:var(--signal);z-index:-1;transform:translateY(-120%);filter:blur(100px);opacity:.5}.lk-user__balance{display:flex;align-items:center;gap:16px}.lk-user__balance-value{font-size:14px;color:var(--text-primary);font-variant-numeric:tabular-nums;font-weight:500}.lk-user__balance-currency{color:var(--text-tertiary);margin-left:4px;font-weight:400}.lk-user__menu-wrap{position:relative}.lk-user__menu{display:flex;align-items:center;gap:8px;cursor:pointer;background:none;border:none;padding:0;color:inherit}.lk-user__avatar{width:40px;height:40px;flex-shrink:0;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center}.lk-user__avatar img{width:100%;height:100%;object-fit:cover}.lk-user__chevron{color:var(--text-secondary);transition:.3s ease}.lk-user__menu--open .lk-user__chevron{transform:rotate(180deg)}.lk-user__dropdown{position:absolute;top:calc(100% + 8px);right:0;z-index:40;width:220px;background:var(--surface-2);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow-pop);padding:6px;display:flex;flex-direction:column;gap:2px;transform-origin:top right}.lk-user-pop-enter-active{transition:opacity .18s ease,transform .28s cubic-bezier(.34,1.42,.5,1)}.lk-user-pop-leave-active{transition:opacity .14s ease,transform .16s cubic-bezier(.4,0,1,1)}.lk-user-pop-enter-from,.lk-user-pop-leave-to{opacity:0;transform:translateY(-8px) scale(.95)}.lk-user-pop-enter-active .lk-user__dd-item,.lk-user-pop-enter-active .lk-user__dd-divider{animation:lk-user-item-in-586e76de .34s both cubic-bezier(.22,1,.36,1)}.lk-user-pop-enter-active .lk-user__dd-item:nth-child(1){animation-delay:.03s}.lk-user-pop-enter-active .lk-user__dd-item:nth-child(2){animation-delay:.06s}.lk-user-pop-enter-active .lk-user__dd-item:nth-child(3){animation-delay:.09s}.lk-user-pop-enter-active .lk-user__dd-item:nth-child(4){animation-delay:.12s}.lk-user-pop-enter-active .lk-user__dd-item:nth-child(6){animation-delay:.16s}@keyframes lk-user-item-in-586e76de{0%{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.lk-user-pop-enter-active,.lk-user-pop-leave-active,.lk-user-pop-enter-active .lk-user__dd-item,.lk-user-pop-enter-active .lk-user__dd-divider{transition:none;animation:none}}.lk-user__dd-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;background:transparent;color:var(--text-secondary);font-size:13px;text-align:left;cursor:pointer;transition:.15s ease;border:none}.lk-user__dd-item:hover{background:var(--overlay-hover);color:var(--text-primary)}.lk-user__dd-item--danger{color:var(--text-red)}.lk-user__dd-item--danger:hover{background:var(--red-soft);color:var(--text-red)}.lk-user__dd-divider{height:1px;background:var(--divider);margin:4px 0}.lk-user--guest{display:flex;align-items:center;gap:14px}.lk-user__login{font-size:14px;font-weight:600;color:var(--primary);white-space:nowrap;transition:color .15s ease}.lk-user__login:hover{color:var(--text-primary)}@media(max-width:768px){.lk-user{gap:8px}.lk-user__balance .lk-btn,.lk-user__chevron{display:none}}


/* assets/HeaderMenu-BnhvYEMo.css */
.hmenu{position:relative;flex-shrink:0}.hmenu__trigger{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;background:transparent;border:none;color:var(--text-primary);cursor:pointer;transition:background-color .15s ease}.hmenu__trigger:hover,.hmenu__trigger--open{background:var(--tertiary)}.hmenu__panel{position:absolute;top:calc(100% + 10px);right:0;z-index:60;width:268px;padding:8px;background:var(--bg-elevated);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow-pop);display:flex;flex-direction:column;gap:2px;transform-origin:top right}.hmenu-pop-enter-active{transition:opacity .18s ease,transform .28s cubic-bezier(.34,1.42,.5,1)}.hmenu-pop-leave-active{transition:opacity .14s ease,transform .16s cubic-bezier(.4,0,1,1)}.hmenu-pop-enter-from,.hmenu-pop-leave-to{opacity:0;transform:translateY(-8px) scale(.95)}.hmenu-pop-enter-active>*{animation:hmenu-item-in-33ad9f9e .34s both cubic-bezier(.22,1,.36,1)}.hmenu-pop-enter-active>*:nth-child(1){animation-delay:.02s}.hmenu-pop-enter-active>*:nth-child(2){animation-delay:.04s}.hmenu-pop-enter-active>*:nth-child(3){animation-delay:.06s}.hmenu-pop-enter-active>*:nth-child(4){animation-delay:.08s}.hmenu-pop-enter-active>*:nth-child(5){animation-delay:.1s}.hmenu-pop-enter-active>*:nth-child(6){animation-delay:.12s}.hmenu-pop-enter-active>*:nth-child(7){animation-delay:.14s}.hmenu-pop-enter-active>*:nth-child(8){animation-delay:.16s}.hmenu-pop-enter-active>*:nth-child(9){animation-delay:.18s}.hmenu-pop-enter-active>*:nth-child(10){animation-delay:.2s}.hmenu-pop-enter-active>*:nth-child(11){animation-delay:.22s}.hmenu-pop-enter-active>*:nth-child(12){animation-delay:.24s}@keyframes hmenu-item-in-33ad9f9e{0%{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}.hmenu-expand-enter-active{transition:max-height .3s cubic-bezier(.22,1,.36,1),opacity .24s ease,transform .24s ease;overflow:hidden}.hmenu-expand-leave-active{transition:max-height .22s ease,opacity .16s ease,transform .16s ease;overflow:hidden}.hmenu-expand-enter-from,.hmenu-expand-leave-to{max-height:0;opacity:0;transform:translateY(-4px);padding-top:0;padding-bottom:0}.hmenu-expand-enter-to,.hmenu-expand-leave-from{max-height:360px}@media(prefers-reduced-motion:reduce){.hmenu-pop-enter-active,.hmenu-pop-leave-active,.hmenu-pop-enter-active>*,.hmenu-expand-enter-active,.hmenu-expand-leave-active{animation-duration:.01ms!important;transition-duration:.08s!important}}.hmenu__item{display:flex;align-items:center;gap:12px;width:100%;padding:11px 12px;border:none;border-radius:12px;background:transparent;color:var(--text-primary);font-size:15px;font-weight:500;text-align:left;cursor:pointer;transition:background-color .15s ease,color .15s ease,transform .12s ease}.hmenu__item:hover{background:var(--overlay-hover)}.hmenu__item--plain{padding:10px 12px;font-size:14px;color:var(--text-secondary)}.hmenu__item--plain:hover{color:var(--text-primary)}.hmenu__label{flex:1;min-width:0}.hmenu__icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;flex-shrink:0;color:var(--text-primary);transition:transform .18s cubic-bezier(.34,1.56,.64,1)}.hmenu__item:hover .hmenu__icon{transform:scale(1.14)}.hmenu__item:active{transform:scale(.98)}.hmenu__icon--gold{color:#f7c948}.hmenu__icon--green{color:#41cc59}.hmenu__icon--pink{color:#ff5da2}.hmenu__icon--moon{color:#8ab4ff}.hmenu__switch{flex-shrink:0;position:relative;width:40px;height:22px;border-radius:999px;background:var(--border-strong);transition:background-color .2s ease}.hmenu__switch--on{background:var(--primary)}.hmenu__switch-knob{position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .2s ease}.hmenu__switch--on .hmenu__switch-knob{transform:translate(18px)}.hmenu__divider{height:1px;margin:6px 4px;background:var(--border-subtle)}.hmenu__item--lang{color:var(--text-primary)}.hmenu__flag{font-size:18px;line-height:1;flex-shrink:0;display:inline-flex;align-items:center}.hmenu__chevron{flex-shrink:0;color:var(--text-tertiary);transition:transform .2s ease}.hmenu__chevron--open{transform:rotate(90deg)}.hmenu__langlist{display:flex;flex-direction:column;gap:1px;margin:2px 0 0;padding:4px;border-radius:12px;background:var(--surface-sunken)}.hmenu__lang{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border:none;border-radius:9px;background:transparent;color:var(--text-secondary);font-size:14px;text-align:left;cursor:pointer;transition:background-color .15s ease,color .15s ease}.hmenu__lang:hover{background:var(--overlay-hover);color:var(--text-primary)}.hmenu__lang--active{color:var(--text-primary)}.hmenu__check{flex-shrink:0;color:var(--primary)}@media(max-width:768px){.hmenu__panel{width:248px}}


/* assets/NotificationBell-CzxYZmxH.css */
.nb{position:relative}.nb__btn{position:relative;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:var(--overlay-hover);border:1px solid var(--border-subtle);color:var(--text-secondary);cursor:pointer;transition:background .15s,color .15s}.nb__btn:hover,.nb__btn--open{background:var(--overlay-press);color:var(--text-primary)}.nb__badge{position:absolute;top:-4px;right:-4px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:#ef4444;color:#fff;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;line-height:1}.nb__panel{position:absolute;top:calc(100% + 8px);right:0;z-index:50;width:320px;max-width:calc(100vw - 16px);max-height:calc(100vh - 80px);background:var(--surface-2);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow-pop);overflow:hidden;display:flex;flex-direction:column}@media(max-width:480px){.nb__panel{position:fixed;inset:60px 8px auto;width:auto;max-width:none;max-height:calc(100vh - 80px)}}.nb__head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 12px;border-bottom:1px solid var(--border-subtle)}.nb__head-title{font-size:13px;font-weight:600;color:var(--text-primary)}.nb__head-actions{display:flex;align-items:center;gap:10px}.nb__mark-all{font-size:11px;color:var(--primary);background:none;border:none;cursor:pointer;padding:0}.nb__clear-all{font-size:11px;color:var(--text-tertiary);background:none;border:none;cursor:pointer;padding:0;transition:color .15s}.nb__clear-all:hover{color:var(--text-red)}.nb__empty{padding:32px 16px;text-align:center;font-size:13px;color:var(--text-tertiary)}.nb__list{max-height:380px;overflow-y:auto;padding:6px;display:flex;flex-direction:column;gap:2px}.nb__item{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border-radius:10px;cursor:pointer;transition:background .15s;position:relative}.nb__item:hover{background:var(--overlay-hover)}.nb__item--unread .nb__item-dot{background:var(--primary)}.nb__item-dot{width:6px;height:6px;border-radius:50%;background:transparent;margin-top:5px;flex-shrink:0;transition:background .15s}.nb__item--success .nb__item-dot{background:var(--text-green)}.nb__item--warn .nb__item-dot{background:#f0b400}.nb__item--error .nb__item-dot{background:var(--text-red)}.nb__item-body{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}.nb__item-title{font-size:13px;color:var(--text-primary);font-weight:500;line-height:1.4}.nb__item-text{font-size:12px;color:var(--text-secondary);line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nb__item-time{font-size:11px;color:var(--text-tertiary);margin-top:2px}.nb__item-close{font-size:16px;color:var(--text-tertiary);background:none;border:none;cursor:pointer;padding:0;line-height:1;margin-top:-2px;opacity:0;transition:opacity .15s}.nb__item:hover .nb__item-close{opacity:1}.nb-pop-enter-active,.nb-pop-leave-active{transition:opacity .18s ease,transform .22s cubic-bezier(.22,1,.36,1);transform-origin:top right}.nb-pop-enter-from,.nb-pop-leave-to{opacity:0;transform:translateY(-6px) scale(.97)}


/* assets/MobileBottomNav-CNXNJXo3.css */
.mbn{display:none}@media(max-width:650px){.mbn{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:90;align-items:stretch;justify-content:space-around;gap:2px;padding:7px 6px calc(7px + env(safe-area-inset-bottom,0px));background:var(--background);border-top:1px solid var(--divider);box-shadow:0 -6px 24px #0f12182e;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}}.mbn__tab{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px 2px;border:none;background:none;color:var(--text-tertiary);font-size:11px;font-weight:500;line-height:1;cursor:pointer;border-radius:12px;transition:color .18s ease,transform .14s cubic-bezier(.34,1.56,.64,1),background-color .18s ease;-webkit-tap-highlight-color:transparent}.mbn__tab:active{transform:scale(.9);background:var(--overlay-hover)}.mbn__tab--active{color:var(--text-accent)}.mbn__icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;transition:transform .2s cubic-bezier(.34,1.56,.64,1)}.mbn__icon svg{width:24px;height:24px}.mbn__tab--active .mbn__icon{transform:translateY(-1px) scale(1.06)}.mbn__label{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(prefers-reduced-motion:reduce){.mbn__tab,.mbn__icon{transition-duration:.08s}}


/* Live PolyBet header extras (profile chip + deposit), painted with exchange tokens. */
.lk-header .hmenu__trigger--profile,
.hmenu__trigger.hmenu__trigger--profile {
  width: auto !important;
  min-width: 0;
  height: var(--lk-header-ctl-h, 36px) !important;
  min-height: var(--lk-header-ctl-h, 36px) !important;
  max-height: var(--lk-header-ctl-h, 36px) !important;
  padding: 2px 10px 2px 2px !important;
  gap: 8px;
  border-radius: 10px !important;
  border: 1px solid var(--line) !important;
  background: var(--panel-2) !important;
  color: var(--bone) !important;
  justify-content: flex-start !important;
  align-items: center !important;
  max-width: min(148px, 38vw);
  box-sizing: border-box !important;
  overflow: hidden;
}
.lk-header .hmenu,
.lk-layout .lk-header__right > .hmenu {
  height: var(--lk-header-ctl-h, 36px);
  max-width: min(148px, 38vw);
  min-width: 0;
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  position: relative;
  z-index: 2;
}
.lk-header .hmenu__trigger--profile:hover,
.lk-header .hmenu__trigger--profile.hmenu__trigger--open {
  background: var(--panel-3) !important;
  border-color: var(--line) !important;
}
.hmenu__profile-avatar {
  --hmenu-av: calc(var(--lk-header-ctl-h, 36px) - 6px);
  flex: 0 0 var(--hmenu-av);
  width: var(--hmenu-av) !important;
  height: var(--hmenu-av) !important;
  border-radius: 50% !important;
  display: block;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}
.hmenu__profile-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
  line-height: 1.2;
  overflow: hidden;
}
.hmenu__profile-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  padding: 1px 0 2px;
  color: var(--bone);
}
.hmenu__profile-sub { display: none; }
.hmenu__profile-chev {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: var(--faint);
  transition: transform 0.18s ease;
}
.hmenu__trigger--profile.hmenu__trigger--open .hmenu__profile-chev { transform: rotate(180deg); }

.lk-header .lk-user__balance,
.lk-user__balance {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex: 0 0 auto;
}
.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: var(--faint);
  white-space: nowrap;
}
.lk-header .lk-user__balance-value,
.lk-user__balance-value {
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ok) !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-header .lk-user__balance .lk-btn.lk-btn--deposit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: var(--lk-header-ctl-h, 36px) !important;
  min-height: var(--lk-header-ctl-h, 36px) !important;
  max-height: var(--lk-header-ctl-h, 36px) !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  border: 0 !important;
  background: var(--signal) !important;
  color: var(--bone) !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;
  box-sizing: border-box !important;
  line-height: 1 !important;
}
.lk-user__balance .lk-btn.lk-btn--deposit:hover,
.lk-header .lk-user__balance .lk-btn.lk-btn--deposit:hover {
  background: var(--signal-strong) !important;
}
.lk-user__balance .lk-btn--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;
}


/* PolyBet live: no category rail on LK */
.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; }
@media (max-width: 650px) {
  .lk-layout--no-cat-sidebar .lk-sidebar.lk-sidebar--mobile-open {
    display: flex !important;
  }
  .lk-layout--no-cat-sidebar .lk-sidebar__backdrop.is-on,
  .lk-layout--no-cat-sidebar body.bw-sidebar-open .lk-sidebar__backdrop {
    display: block;
  }
}

.pm-lk, .profile-page--pm, .profile-page--desk {
  --pm-text: var(--bone);
  --pm-muted: var(--stone);
  --pm-accent: var(--signal);
  --pm-border: var(--line);
  --pm-surface: var(--panel);
}

/* 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: var(--stone);
  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: var(--bone);
  background: transparent;
}

.profile-page--desk .profile-page__tab--active,
[data-bw-profile] .profile-page__tab--active {
  color: var(--bone);
  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: var(--signal);
}

.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;
  flex-wrap: wrap;
}

.pm-lk__id-text {
  flex: 1 1 auto;
  min-width: 0;
}

.pm-lk__vip-rail,
.pm-lk__prem-rail,
.pm-lk__kyc-rail {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 78px;
  max-width: 118px;
  color: inherit;
  text-decoration: none;
}

.pm-lk__rails {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-left: auto;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pm-lk__kyc-rail.is-verified .pm-lk__vip-rail-bar {
  background: color-mix(in srgb, var(--ok) 16%, transparent);
  border-color: color-mix(in srgb, var(--ok) 40%, transparent);
}

.pm-lk__vip-rail-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
  padding: 0 9px 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.pm-lk__vip-rail.is-active .pm-lk__vip-rail-bar {
  background: rgba(60, 155, 244, 0.12);
  border-color: rgba(60, 155, 244, 0.38);
  box-shadow: inset 0 0 0 1px rgba(60, 155, 244, 0.08);
}

.pm-lk__prem-rail.is-on .pm-lk__vip-rail-bar {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.42);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.08);
}

.pm-lk__vip-rail-k {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3c9bf4;
  line-height: 1;
}

.pm-lk__vip-rail.is-active .pm-lk__vip-rail-k {
  color: #3c9bf4;
}

.pm-lk__prem-rail .pm-lk__vip-rail-k {
  color: rgba(232, 201, 106, 0.72);
}

.pm-lk__prem-rail.is-on .pm-lk__vip-rail-k,
.pm-lk__prem-rail.is-on .pm-lk__vip-rail-v {
  color: #e8c96a;
}

.pm-lk__vip-rail-v {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pm-lk__vip-rail.is-active .pm-lk__vip-rail-v {
  color: #e8f4ff;
}

.pm-lk__vip-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pm-lk__vip-more:hover {
  color: var(--bone);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.pm-lk__vip-more:focus-visible {
  outline: 2px solid rgba(60, 155, 244, 0.65);
  outline-offset: 2px;
}

.pm-lk__vip-sheet {
  display: grid;
  gap: 14px;
}

.pm-lk__vip-sheet__lead {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

.pm-lk__vip-sheet__stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pm-lk__vip-sheet__stat-k {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

.pm-lk__vip-sheet__stat-v {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}

.pm-lk__vip-sheet__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pm-lk__vip-sheet__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.pm-lk__vip-sheet__item.is-on {
  border-color: rgba(60, 155, 244, 0.4);
  background: rgba(60, 155, 244, 0.1);
}

.pm-lk__vip-sheet__tier {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bone);
}

.pm-lk__vip-sheet__need {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.pm-lk__vip-sheet__hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.45);
}

.mem-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 28px;
}
.mem-hero--solo { max-width: 440px; }
@media (min-width: 720px) {
  .mem-hero:not(.mem-hero--solo) { grid-template-columns: 1fr 1fr; }
}
.mem-hero__card {
  padding: 18px 18px 16px;
  border-radius: 12px;
  background: var(--pm-surface, #15191d);
  border: 1px solid var(--pm-border, #242b32);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 148px;
}
.mem-hero__card.is-on {
  border-color: rgba(60, 155, 244, 0.42);
  background: linear-gradient(180deg, rgba(60, 155, 244, 0.1) 0%, var(--pm-surface, #15191d) 72%);
}
.mem-hero__card--prem.is-on {
  border-color: rgba(212, 175, 55, 0.46);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.12) 0%, var(--pm-surface, #15191d) 72%);
}
.mem-hero__k {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3c9bf4;
}
.mem-hero__card--prem .mem-hero__k { color: #e8c96a; }
.mem-hero__card strong {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.mem-hero__card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}
.mem-hero__card p em {
  font-style: normal;
  font-weight: 700;
  color: #e8f4ff;
}
.mem-block {
  margin: 0 0 28px;
  max-width: 760px;
}
.mem-block h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.mem-block .hint {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}
.mem-block .hint a {
  color: #3c9bf4;
  font-weight: 650;
  text-decoration: none;
}
.mem-block .hint a:hover { text-decoration: underline; }
.mem-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 12px;
}
.mem-table th,
.mem-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
}
.mem-table th {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.mem-table tr.is-you td {
  background: rgba(60, 155, 244, 0.1);
  color: #e8f4ff;
}
.mem-list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.mem-list li {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}
.mem-list li strong { color: #fff; }

.pm-lk__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: 0 0 auto;
  overflow: hidden;
  isolation: isolate;
  background-clip: padding-box;
  position: relative;
  box-sizing: border-box;
  /* Fade blobs into base — transparent stops fringed the circle edge */
  background:
    radial-gradient(120% 120% at 66% 77%, var(--pm-av-1) 0%, var(--pm-av-4, #2a3138) 58%),
    radial-gradient(120% 120% at 29% 97%, var(--pm-av-2) 0%, var(--pm-av-4, #2a3138) 58%),
    radial-gradient(120% 120% at 99% 86%, var(--pm-av-3) 0%, var(--pm-av-4, #2a3138) 58%),
    var(--pm-av-4, #2a3138);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pm-lk__avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Parent clips the circle — radius on img causes shiny AA fringe */
  border-radius: 0;
  display: block;
  z-index: 1;
  filter: none;
  -webkit-filter: none;
  image-rendering: auto;
}

/* Photo mode: kill mesh palette so it can’t fringe as a neon ring */
.pm-lk__avatar.pm-lk__avatar--photo,
.pm-lk__avatar[data-bw-avatar-url] {
  background: #1a2028 !important;
  border: 0 !important;
  /* Matte dark edge — white inset read as a glossy rim */
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

/* Header chip: same matte clip, exact square */
.hmenu__profile-avatar.pm-lk__avatar--photo,
.hmenu__profile-avatar[data-bw-avatar-url],
.lk-header .hmenu__trigger--profile .pm-lk__avatar.hmenu__profile-avatar.pm-lk__avatar--photo,
.lk-header .hmenu__trigger--profile .pm-lk__avatar.hmenu__profile-avatar[data-bw-avatar-url] {
  background: #1a2028 !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4) !important;
}

/* Exact fill — no overscan (overscan softened the photo) */
.pm-lk__avatar.pm-lk__avatar--photo .pm-lk__avatar-img,
.pm-lk__avatar[data-bw-avatar-url] .pm-lk__avatar-img,
.hmenu__profile-avatar.pm-lk__avatar--photo .pm-lk__avatar-img,
.hmenu__profile-avatar[data-bw-avatar-url] .pm-lk__avatar-img,
.lk-header .hmenu__trigger--profile .pm-lk__avatar.hmenu__profile-avatar .pm-lk__avatar-img {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  border-radius: 0 !important;
  filter: none !important;
  -webkit-filter: none !important;
}

.pm-lk__avatar[data-bw-avatar-upload] {
  cursor: pointer;
}

.pm-lk__avatar[data-bw-avatar-upload]:focus-visible {
  outline: 2px solid rgba(60, 155, 244, 0.65);
  outline-offset: 2px;
}

.pm-lk__avatar[data-bw-avatar-upload]::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background:
    rgba(8, 12, 18, 0.52)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/><circle cx='12' cy='13' r='4'/></svg>")
    center / 18px 18px no-repeat;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.pm-lk__avatar[data-bw-avatar-upload]:hover::after,
.pm-lk__avatar[data-bw-avatar-upload]:focus-visible::after {
  opacity: 1;
}

.pm-lk__avatar.is-uploading {
  opacity: 0.62;
  pointer-events: none;
}

.pm-lk__avatar-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: #f07178;
  grid-column: 1 / -1;
}

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

.hmenu__profile-avatar .pm-lk__avatar-img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  border-radius: 0 !important;
  display: block;
}

:where(.pm-lk__avatar),
:where(.hmenu__profile-avatar) {
  --pm-av-1: #2a3138;
  --pm-av-2: #2a3138;
  --pm-av-3: #2a3138;
  --pm-av-4: #2a3138;
}

.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;
  flex-wrap: wrap;
  gap: 10px;
  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: var(--bone) !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: var(--bone) !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__btn--credit {
  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: var(--bone) !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  text-decoration: none;
}
.pm-lk__btn--credit:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
}

.pm-lk__credit-line {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--stone);
}
.pm-lk__credit-line a {
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
.pm-lk__credit-line a:hover {
  border-bottom-color: var(--mint, #7ee8c2);
}

.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: var(--signal); }
.pm-lk__chart-legend-item.is-pnl i { background: var(--signal); }
.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, var(--signal));
  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 table — shared fixed tracks on head + rows (edge-to-edge head wash). */
.profile-page--pm .pm-lk__table-card[data-bw-pos-table] {
  --pm-pos-cols: minmax(160px, 1fr) 100px 92px 84px 100px 100px 120px;
  display: block !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

.profile-page--pm .pm-lk__table-card[data-bw-pos-table] > .profile-page__positions-head,
.profile-page--pm .pm-lk__table-card[data-bw-pos-table] > .profile-page__pos-row,
.profile-page--pm .pm-lk__table-card[data-bw-pos-table] > .profile-page__positions-head,
.profile-page--pm .pm-lk__table-card[data-bw-pos-table] > .profile-page__pos-row {
  display: grid !important;
  grid-template-columns: var(--pm-pos-cols) !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;
  max-width: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  flex-wrap: unset !important;
}

.profile-page--pm .pm-lk__table-card[data-bw-pos-table] > .bw-lk-pager,
.profile-page--pm .pm-lk__table-card[data-bw-pos-table] > .profile-page__pos-empty,
.profile-page--pm .pm-lk__table-card[data-bw-pos-table] > .pm-lk__empty {
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (min-width: 769px) {
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row > .bw-pos-phone,
  .profile-page--pm .pm-lk__table-card .profile-page__pos-row > .bw-pos-phone {
    display: none !important;
  }

  /* Kill Vue flex: ratios on desk cells (would fight grid tracks). */
  .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 > .bw-pos-desk,
  .profile-page--pm .pm-lk__table-card .profile-page__positions-head > span {
    flex: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !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 > .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__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 {
  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-radius: 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 {
  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 > .bw-pos-desk {
  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;
  box-sizing: border-box;
}

.profile-page--pm .pm-lk__table-card .profile-page__pos-cell--outcome {
  justify-content: center !important;
}

.profile-page--pm .pm-lk__table-card .profile-page__pos-cell--shares,
.profile-page--pm .pm-lk__table-card .profile-page__pos-cell--avg,
.profile-page--pm .pm-lk__table-card .profile-page__pos-cell--payout,
.profile-page--pm .pm-lk__table-card .profile-page__pos-cell--stake {
  justify-content: flex-end !important;
}

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


/* Market ? left (not nth-child — .bw-pos-phone is first child of each row) */
.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 > .profile-page__pos-market {
  justify-self: stretch !important;
  text-align: left !important;
}

/* Outcome — stretch track, center contents (avoid justify-self:center shrink) */
.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 > .profile-page__pos-cell--outcome {
  justify-self: stretch !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-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-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;
}

/* Live PolyBet profile chrome (pills, range, masthead) — tokens, not Inter/#2F6BFF */
.profile-page--pm.profile-page--desk,
[data-bw-profile].profile-page--pm {
  --pm-surface: var(--panel);
  --pm-border: var(--line);
  --pm-muted: var(--stone);
  --pm-text: var(--bone);
  --pm-accent: var(--signal);
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 0 72px !important;
  font-family: inherit;
  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);
  background:
    radial-gradient(120% 120% at 66% 77%, var(--pm-av-1) 0%, var(--pm-av-4, #2a3138) 58%),
    radial-gradient(120% 120% at 29% 97%, var(--pm-av-2) 0%, var(--pm-av-4, #2a3138) 58%),
    radial-gradient(120% 120% at 99% 86%, var(--pm-av-3) 0%, var(--pm-av-4, #2a3138) 58%),
    var(--pm-av-4, #2a3138);
}

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

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

.profile-page--pm .profile-page__tab,
.profile-page--pm .pm-lk__seg-btn {
  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: var(--bone) !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;
  position: relative;
}

.profile-page--pm .profile-page__tab:hover,
.profile-page--pm .pm-lk__seg-btn:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

.profile-page--pm .profile-page__tab--active,
.profile-page--pm .pm-lk__seg-btn.is-active {
  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;
}

.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);
  width: auto !important;
  max-width: max-content !important;
}

.profile-page--pm .pm-lk__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;
  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;
}

.profile-page--pm .pm-lk__range-btn:hover { color: rgba(255, 255, 255, 0.78) !important; }
.profile-page--pm .pm-lk__range-btn.is-active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

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

.pm-lk__spark { width: 100%; height: 180px; color: var(--signal); display: block; }
.pm-lk__btn { text-decoration: none; }
.bw-desk__chart-lede { margin: 0; font-size: 12px; line-height: 1.45; color: var(--stone); }
.bw-desk__chart-lede a { color: var(--bone); }
.profile-page__pos-num--up { color: var(--ok); }
.profile-page__pos-num--down { color: var(--bad); }
.profile-page--pm .profile-page__pos-market--link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.profile-page--pm a.profile-page__pos-row { color: inherit; text-decoration: none; }

.profile-page--pm .pm-lk__table-card[data-bw-pos-table] {
  --pm-pos-cols: minmax(160px, 1.4fr) 92px 84px 100px 100px 120px;
}

@media (max-width: 650px) {
  body.bw-sidebar-open .lk-layout--no-cat-sidebar .lk-sidebar,
  .lk-layout--no-cat-sidebar .lk-sidebar.lk-sidebar--mobile-open {
    display: flex !important;
  }
  body.bw-sidebar-open .lk-layout--no-cat-sidebar .lk-sidebar__backdrop {
    display: block !important;
  }
}

/* Support FAB + panel — LK, no drop shadow */
.lk-sup {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}
.lk-sup > * { pointer-events: auto; }
.lk-sup.lk-sup--modal-open .lk-sup__fab {
  display: none;
}
.lk-sup__fab {
  position: relative;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--signal) 0%, var(--signal-strong) 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: none;
  display: grid;
  place-items: center;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s ease;
}
.lk-sup__fab:hover {
  background: linear-gradient(155deg, var(--signal-strong) 0%, var(--signal) 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: none;
}
.lk-sup__fab:active { transform: translateY(0) scale(0.97); }
.lk-sup.is-open .lk-sup__fab {
  display: none;
}
.lk-sup__fab:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}
.lk-sup__fab-ico {
  display: grid;
  place-items: center;
  line-height: 0;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s ease;
}
.lk-sup__fab-ico--close { display: none; }
.lk-sup.is-open .lk-sup__fab-ico--open { display: none; }
.lk-sup.is-open .lk-sup__fab-ico--close { display: grid; }
.lk-sup__fab:hover .lk-sup__fab-ico--open { transform: rotate(-8deg) scale(1.06); }
.lk-sup.is-open .lk-sup__fab-ico--close { transform: rotate(0deg); }
.lk-sup__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--bad);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: none;
  outline: 2px solid var(--ink);
}
.lk-sup__badge[hidden] { display: none; }
.lk-sup__panel {
  width: min(360px, calc(100vw - 32px));
  height: min(520px, calc(100dvh - 108px));
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--bone) 10%, transparent);
  background: var(--panel);
  box-shadow: none;
}
.lk-sup__panel[hidden] { display: none !important; }
.lk-sup__panel .desk-sup {
  min-height: 0;
  height: 100%;
  max-width: none;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.lk-sup__panel .desk-sup__feed { min-height: 0; }
.lk-sup__close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--stone);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
}
.lk-sup__close:hover {
  background: var(--panel-2);
  color: var(--bone);
}
@media (max-width: 650px) {
  .lk-sup {
    right: 14px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .lk-sup__panel {
    width: calc(100vw - 28px);
    height: calc(100dvh - 160px);
  }
  /* The fab (relabeled a close "X" while open) sits below the panel in this
     fixed bottom-right stack and, since the panel doesn't span the full
     width/height on phone, ends up floating over whatever page content is
     visible beside it. The panel already has its own "×" in its header —
     drop the redundant floating one while the chat is open. */
  .lk-sup.is-open .lk-sup__fab {
    display: none;
  }
  /* Trade terminal is already tight on vertical room on phone (chart + order
     form stacked to fit without scrolling) — the floating support button
     sits right on top of the amount/percent buttons there. Drop it on this
     page specifically. */
  body:has(.terminal) .lk-sup__fab {
    display: none;
  }
  /* Full-screen chat on phone instead of a small floating box that leaves
     page content (and its scroll) visible/interactive around it. */
  .lk-sup.is-open {
    inset: 0;
    right: 0;
    bottom: 0;
  }
  .lk-sup.is-open .lk-sup__panel {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
  /* support-chat.js toggles this on <body> while the panel is open — the
     panel itself has no backdrop, so without this the page underneath
     keeps scrolling behind/through the full-screen chat. */
  body.lk-sup-open {
    overflow: hidden;
  }
  .lk-sup.is-open .desk-sup__composer {
    background: transparent;
  }
}

/* Widget chrome — same as LK (html.lk-html .desk-sup--widget in lk-app.css). */
.lk-sup .desk-sup--widget {
  background: transparent;
  border: 0;
}
.lk-sup .desk-sup--widget .desk-sup__top {
  gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line-ghost);
  background: var(--panel);
}
.lk-sup .desk-sup__avatar {
  position: relative;
  width: 36px;
  height: 36px;
  flex: none;
}
.lk-sup .desk-sup--widget .desk-sup__face {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--panel-2);
}
.lk-sup .desk-sup__live {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  outline: 2px solid var(--panel);
}
.lk-sup .desk-sup--widget .desk-sup__top-copy strong {
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.lk-sup .desk-sup--widget .desk-sup__top-copy span {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--faint);
  font-weight: 500;
}
.lk-sup .desk-sup--widget .desk-sup__feed {
  padding: 14px 14px 12px;
  gap: 12px;
  background: var(--ink);
  background-image: none;
}
.lk-sup .desk-sup--widget .desk-sup__feed:has(.desk-sup__guest-note) {
  justify-content: center;
}
.lk-sup .desk-sup--widget .desk-sup__guest-note {
  margin: 0 auto;
  max-width: 18em;
  text-align: center;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--stone);
}
.lk-sup .desk-sup--widget .desk-sup__composer textarea:disabled,
.lk-sup .desk-sup--widget .desk-sup__composer--locked .desk-sup__attach,
.lk-sup .desk-sup--widget .desk-sup__composer--locked .desk-sup__send {
  cursor: not-allowed;
  pointer-events: none;
}
.lk-sup .desk-sup--widget .desk-sup__composer textarea:disabled {
  opacity: 0.45;
}
.lk-sup .desk-sup--widget .desk-sup__row {
  max-width: 88%;
  align-items: flex-start;
  gap: 8px;
}
.lk-sup .desk-sup--widget .desk-sup__face--msg {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  margin-top: 2px;
}
.lk-sup .desk-sup__stack {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lk-sup .desk-sup--widget .desk-sup__row.is-me .desk-sup__stack {
  align-items: flex-end;
}
.lk-sup .desk-sup--widget .desk-sup__bubble {
  padding: 9px 12px;
  border: 0;
  border-radius: 12px 12px 12px 4px;
  background: var(--panel);
  box-shadow: none;
}
.lk-sup .desk-sup--widget .desk-sup__row.is-me .desk-sup__bubble {
  background: var(--signal);
  color: #fff;
  border-radius: 12px 12px 4px 12px;
}
.lk-sup .desk-sup--widget .desk-sup__bubble--media,
.lk-sup .desk-sup--widget .desk-sup__row.is-me .desk-sup__bubble--media {
  background: transparent;
  padding: 0;
}
.lk-sup .desk-sup--widget .desk-sup__bubble--media p {
  padding: 9px 12px 0;
}
.lk-sup .desk-sup--widget .desk-sup__bubble p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}
.lk-sup .desk-sup__meta {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--faint);
  padding: 0 2px;
}
.lk-sup .desk-sup__daydiv {
  display: flex;
  justify-content: center;
  align-self: stretch;
  margin: 4px 0;
}
.lk-sup .desk-sup__daydiv span {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lk-sup .desk-sup--widget .desk-sup__composer {
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line-ghost);
  background: var(--panel);
}
.lk-sup .desk-sup--widget .desk-sup__composer textarea {
  min-height: 40px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--bone);
  font-size: 13.5px;
}
.lk-sup .desk-sup--widget .desk-sup__composer textarea:focus {
  outline: 1px solid var(--signal);
  border-color: transparent;
  background: var(--panel-2);
}
.lk-sup .desk-sup--widget .desk-sup__send {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--signal);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.lk-sup .desk-sup--widget .desk-sup__send:hover {
  background: var(--signal-strong);
}
.lk-sup .desk-sup--widget .desk-sup__send:disabled {
  opacity: 0.4;
}
.lk-sup .desk-sup--widget .desk-sup__err {
  margin: 0 14px 12px;
  font-size: 12px;
}
