/* ==========================================================================
   XingShu Quant (星枢量化) — Phase 3 Subtle Liquid Glass & Motion System
   - Restrained dark-obsidian frosted glass (iOS 26 / Linear dark aesthetic)
   - GPU-composited zero-lag card specular sheen
   - Physics-based sliding Liquid-Glass nav capsule (.xs-liquid-glider)
   - Unified floating mobile bottom dock + anchored glass calendar popover
   ========================================================================== */

:root {
  --xs-glass-chrome-bg: rgba(14, 16, 22, 0.72);
  --xs-glass-popover-bg: rgba(16, 18, 25, 0.86);
  --xs-glass-border: rgba(255, 255, 255, 0.085);
  --xs-glass-border-hi: rgba(255, 255, 255, 0.16);
  --xs-glass-sheen: inset 0 1px 0 rgba(255, 255, 255, 0.085);
  --xs-spring-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --xs-pop-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. Hide ugly horizontal scrollbars on all pill/nav strips; ultra-thin 3px elsewhere */
.xs43-subtab-bar,
.h-scroll-strip,
.golden-strip-wrap,
.u-tab-bar,
.filter-pills,
.topnav,
.mobile-bottom-nav,
.xs-portal-bottom-dock,
.research-sticky-nav {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.xs43-subtab-bar::-webkit-scrollbar,
.h-scroll-strip::-webkit-scrollbar,
.golden-strip-wrap::-webkit-scrollbar,
.u-tab-bar::-webkit-scrollbar,
.filter-pills::-webkit-scrollbar,
.topnav::-webkit-scrollbar,
.mobile-bottom-nav::-webkit-scrollbar,
.xs-portal-bottom-dock::-webkit-scrollbar,
.research-sticky-nav::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

*::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

/* 2. Frosted Liquid Glass on Sticky Topbars & Sidebars */
header.topbar,
.topbar {
  background: var(--xs-glass-chrome-bg) !important;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--xs-glass-border) !important;
  box-shadow: var(--xs-glass-sheen), 0 8px 28px rgba(0, 0, 0, 0.28);
}

.sidebar {
  background: rgba(11, 13, 18, 0.84) !important;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-right: 1px solid var(--xs-glass-border) !important;
}

/* 3. GPU-Friendly Subtle Glass Specular Sheen on Bento Cards & Curve Banners */
.hud-card,
.fleet-curve-banner,
.combo-card,
.demo-card,
.lic-card,
.oc-auth-card,
.xs-dash-strat-card,
.ea-family-card,
.xs43-card,
.xs43-bento-card,
.s17-curve-banner,
.obs-account-card,
.xs-gov-panel {
  background: linear-gradient(168deg, rgba(24, 27, 36, 0.78) 0%, rgba(13, 15, 20, 0.88) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.075), 0 10px 28px rgba(0, 0, 0, 0.30);
  transition: transform 0.24s var(--xs-spring-ease), border-color 0.22s ease, box-shadow 0.24s ease;
}

@media (hover: hover) {
  .hud-card:hover,
  .xs-dash-strat-card:hover,
  .ea-family-card:hover,
  .xs43-bento-card:hover,
  .combo-card:hover,
  .demo-card:hover {
    border-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.095), 0 10px 28px rgba(0, 0, 0, 0.34);
    transform: none;
  }
}

/* 4. Compact Liquid-Glass Dropdown Select (.xs-glass-select) */
.xs-glass-select,
.xs-compact-select {
  appearance: none;
  -webkit-appearance: none;
  height: 34px;
  padding: 0 30px 0 12px;
  border-radius: 10px;
  background-color: rgba(22, 25, 34, 0.76);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4' 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 10px center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f4f4f5;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  max-width: 100%;
  text-overflow: ellipsis;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.14s ease;
}
.xs-glass-select:hover,
.xs-compact-select:hover {
  border-color: rgba(52, 211, 153, 0.42);
  background-color: rgba(28, 32, 44, 0.88);
}
.xs-glass-select:focus,
.xs-compact-select:focus {
  outline: none;
  border-color: rgba(52, 211, 153, 0.65);
}
.xs-glass-select option,
.xs-glass-select optgroup {
  background: #12141c;
  color: #f4f4f5;
}

/* 5. Physics-Based Liquid-Glass Sliding Pill (.xs-liquid-glider) */
[data-xs-glider-host] {
  position: relative !important;
  isolation: isolate;
}
.xs-liquid-glider {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.22) 0%, rgba(56, 189, 248, 0.14) 100%);
  border: 1px solid rgba(110, 231, 183, 0.42);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.34),
    inset 0 -1px 1px rgba(16, 185, 129, 0.16),
    0 4px 16px rgba(16, 185, 129, 0.20);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
  will-change: transform, width, height;
}
.xs-liquid-glider.is-stretching {
  filter: brightness(1.12);
}
[data-xs-glider-host] > button,
[data-xs-glider-host] > a {
  position: relative;
  z-index: 1;
}
/* When glider is active inside host, suppress static background fill on active tab so liquid capsule shines */
[data-xs-glider-ready="1"] > .active,
[data-xs-glider-ready="1"] > [aria-current="page"] {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* 6. Unified Storefront-Style Centered Floating Capsule Dock (#xsPortalSmartDock & #mobileBottomNav) */
.xs-portal-smart-dock::before,
.mobile-bottom-nav::before,
.mobile-nav-item.active::after {
  display: none !important;
  content: none !important;
}

.xs-portal-smart-dock,
#mobileBottomNav.mobile-bottom-nav {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  width: auto !important;
  max-width: calc(100vw - 16px) !important;
  height: 42px !important;
  padding: 4px 6px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  background: rgba(14, 16, 23, 0.86) !important;
  backdrop-filter: blur(22px) saturate(165%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(165%) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.20),
    0 14px 36px rgba(0, 0, 0, 0.70) !important;
  z-index: 95 !important;
  overflow: hidden !important;
}

/* On desktop (> 960px), #mobileBottomNav acts as the exact same scroll-reveal quick capsule dock as /portal! */
@media (min-width: 961px) {
  #mobileBottomNav.mobile-bottom-nav {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20px) !important;
    transition: opacity 0.22s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  }
  #mobileBottomNav.mobile-bottom-nav.is-scroll-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0) !important;
  }
}

/* On mobile (<= 960px on /admin, <= 768px on /portal), keep the sleek centered capsule dock always accessible */
@media (max-width: 960px) {
  #mobileBottomNav.mobile-bottom-nav {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate(-50%, 0) !important;
  }
}
@media (max-width: 768px) {
  .xs-portal-smart-dock {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate(-50%, 0) !important;
  }
  html:not(.xs-portal-embed) .viewport-shell {
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

html.xs-portal-embed .xs-portal-smart-dock,
body.is-embed-portal .xs-portal-smart-dock {
  display: none !important;
}

.xs-portal-smart-dock .xs-liquid-glider,
#mobileBottomNav.mobile-bottom-nav .xs-liquid-glider {
  border-radius: 999px !important;
}

#mobileBottomNav.mobile-bottom-nav .mobile-nav-item,
.xs-portal-smart-dock .xs-dock-pill {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0 !important;
  background: transparent !important;
  color: #a1a1aa !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  min-height: 0 !important;
  height: 29px !important;
  max-height: 29px !important;
  line-height: 29px !important;
  padding: 0 11px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  cursor: pointer;
  white-space: nowrap !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  text-decoration: none !important;
  transition: color 0.18s ease, transform 0.14s ease !important;
}

/* Hide stacked icons & unicode prefixes inside #mobileBottomNav so it matches /portal's clean text capsule pills 1:1 */
#mobileBottomNav.mobile-bottom-nav .mobile-nav-item svg,
#mobileBottomNav.mobile-bottom-nav .mobile-nav-item .nav-icon,
#mobileBottomNav.mobile-bottom-nav .mobile-nav-item i,
#mobileBottomNav.mobile-bottom-nav .mobile-nav-item > span {
  display: none !important;
}
#mobileBottomNav.mobile-bottom-nav .mobile-nav-item > b {
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
}

#mobileBottomNav.mobile-bottom-nav .mobile-nav-item.active,
.xs-portal-smart-dock .xs-dock-pill.is-current,
.xs-portal-smart-dock .xs-dock-pill.active {
  color: #ecfdf5 !important;
  background: transparent !important;
}

#mobileBottomNav.mobile-bottom-nav .xs-admin-dock-sep,
.xs-portal-smart-dock .xs-dock-sep {
  width: 1px;
  height: 15px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 2px;
  flex-shrink: 0;
  display: none !important;
}
#mobileBottomNav.mobile-bottom-nav.has-scroll-top .xs-admin-dock-sep,
.xs-portal-smart-dock.has-scroll-top .xs-dock-sep {
  display: inline-block !important;
}
#mobileBottomNav.mobile-bottom-nav .xs-admin-dock-top,
.xs-portal-smart-dock .xs-dock-top-btn {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 1px solid rgba(16, 185, 129, 0.38) !important;
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  cursor: pointer;
  white-space: nowrap !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
}
#mobileBottomNav.mobile-bottom-nav.has-scroll-top .xs-admin-dock-top,
.xs-portal-smart-dock.has-scroll-top .xs-dock-top-btn {
  display: inline-flex !important;
}

@media (max-width: 430px) {
  #mobileBottomNav.mobile-bottom-nav,
  .xs-portal-smart-dock {
    padding: 4px 5px !important;
    gap: 2px !important;
    min-height: 0 !important;
    height: 36px !important;
  }
  #mobileBottomNav.mobile-bottom-nav .mobile-nav-item,
  .xs-portal-smart-dock .xs-dock-pill {
    font-size: 12px !important;
    min-height: 0 !important;
    height: 28px !important;
    max-height: 28px !important;
    line-height: 28px !important;
    padding: 0 10px !important;
  }
  .xs-portal-smart-dock .xs-dock-top-btn,
  #mobileBottomNav.mobile-bottom-nav .xs-admin-dock-top {
    width: 27px !important;
    height: 27px !important;
    font-size: 12px !important;
  }
}

/* 7. Unified Anchored Liquid-Glass Calendar Button & Dropdown (.s44-cal-btn + .xs-cal-dropdown) */
button.s44-cal-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  height: 29px;
  min-height: 29px;
  padding: 0 10px 0 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #E4E4E7;
  background: linear-gradient(180deg, rgba(24, 31, 46, 0.88), rgba(15, 20, 30, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 2px 8px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
button.s44-cal-btn:hover,
button.s44-cal-btn.is-open {
  border-color: rgba(110, 231, 183, 0.48);
  background: linear-gradient(180deg, rgba(16, 40, 36, 0.90), rgba(13, 24, 28, 0.95));
  color: #ECFDF5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 14px rgba(0, 0, 0, 0.36);
}
button.s44-cal-btn.active {
  border-color: rgba(52, 211, 153, 0.36);
  color: #D1FAE5;
}
button.s44-cal-btn > i,
button.s44-cal-btn .xs-cal-chev {
  font-style: normal;
  font-size: 11px;
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  transition: transform 0.18s var(--xs-spring-ease), color 0.16s ease;
}
button.s44-cal-btn.is-open > i,
button.s44-cal-btn.is-open .xs-cal-chev {
  transform: rotate(180deg);
  color: #6EE7B7;
}
@media (max-width: 640px) {
  button.s44-cal-btn {
    height: 28px;
    min-height: 28px;
    padding: 0 9px;
    font-size: 12px;
  }
}

.xs-cal-dropdown {
  position: absolute !important;
  z-index: 99998;
  min-width: 204px;
  padding: 6px;
  border-radius: 13px;
  background: rgba(13, 17, 26, 0.96);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid rgba(110, 231, 183, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 20px 48px rgba(0, 0, 0, 0.76);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform-origin: top left;
  animation: xsPopoverIn 0.16s var(--xs-pop-ease);
}
.xs-cal-dropdown.hidden {
  display: none !important;
}
.xs-cal-opt {
  appearance: none;
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 9px;
  padding: 8px 11px;
  color: #e4e4e7;
  font-size: 12.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.14s ease, color 0.14s ease;
}
.xs-cal-opt:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}
.xs-cal-opt.active {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  font-weight: 700;
}
.xs-cal-opt .xs-cal-check {
  font-size: 12px;
  opacity: 0;
  color: #34d399;
}
.xs-cal-opt.active .xs-cal-check {
  opacity: 1;
}
.xs-cal-sep {
  height: 1px;
  margin: 4px 6px;
  background: rgba(255, 255, 255, 0.08);
}
.xs-cal-custom-box {
  padding: 6px 8px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.xs-cal-custom-box.hidden {
  display: none !important;
}
.xs-cal-date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.xs-cal-date-inp {
  height: 30px;
  padding: 0 6px;
  border-radius: 7px;
  background: rgba(9, 10, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f4f4f5;
  font-size: 11.5px;
  color-scheme: dark;
}
@media (max-width: 768px) {
  .xs-cal-date-inp {
    font-size: 16px !important;
    height: 32px;
  }
}

/* 8. Smooth View & Pane Micro-Animations + Tactile Press */
@keyframes xsViewFadeLift {
  from { opacity: 0; transform: translate3d(0, 6px, 0) scale(0.996); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes xsPopoverIn {
  from { opacity: 0; transform: scale(0.95) translateY(-4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.view.active,
.page-view:not(.hidden),
.xs43-tab-pane:not([hidden]) {
  animation: xsViewFadeLift 0.24s var(--xs-spring-ease);
}
.xs-portal-user-menu:not(.hidden),
.xs-user-popover:not(.hidden) {
  background: var(--xs-glass-popover-bg) !important;
  backdrop-filter: blur(22px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  animation: xsPopoverIn 0.18s var(--xs-pop-ease);
}
button:active,
.btn-sm:active,
.xs43-btn:active,
.range-pill:active,
.ghost-jump-btn:active {
  transform: scale(0.965);
}


/* 9. Compact Liquid-Glass Trigger Pill & Floating Mini Menu (.xs-mini-scope-btn / .xs-mini-menu) */
.xs-mini-scope-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 23px;
  padding: 0 8px 0 9px;
  border-radius: 999px;
  background: rgba(24, 28, 38, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.xs-mini-scope-btn:hover,
.xs-mini-scope-btn.is-menu-open {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(16, 185, 129, 0.13);
  color: #ecfdf5;
}
.xs-mini-scope-btn .xs-ms-caret {
  font-size: 9px;
  opacity: 0.72;
  transition: transform 0.16s ease;
}
.xs-mini-scope-btn.is-menu-open .xs-ms-caret {
  transform: rotate(180deg);
  opacity: 1;
}
.xs-mini-scope-btn.is-toolbar-cat {
  height: 31px;
  padding: 0 10px 0 11px;
  border-radius: 9px;
  font-size: 12px;
}

.xs-mini-menu {
  position: absolute !important;
  z-index: 99998;
  max-width: min(226px, calc(100vw - 20px));
  max-height: 252px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px;
  border-radius: 12px;
  background: rgba(14, 16, 23, 0.94);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 42px rgba(0, 0, 0, 0.76);
  display: flex;
  flex-direction: column;
  gap: 1.5px;
  animation: xsPopoverIn 0.15s var(--xs-pop-ease);
}
.xs-mini-menu.hidden {
  display: none !important;
}
.xs-mm-sec {
  font-size: 10px;
  font-weight: 650;
  color: #71717a;
  padding: 5px 8px 2px;
  letter-spacing: 0.02em;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 2px;
}
.xs-mm-sec:first-child {
  border-top: 0;
  margin-top: 0;
}
.xs-mm-item {
  appearance: none;
  width: 100%;
  min-height: 28px;
  padding: 4px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #e4e4e7;
  font-size: 11.5px;
  font-weight: 550;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease, color 0.12s ease;
}
.xs-mm-item:hover {
  background: rgba(255, 255, 255, 0.075);
  color: #ffffff;
}
.xs-mm-item.active {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  font-weight: 700;
}
.xs-mm-lbl {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xs-mm-right {
  flex-shrink: 0;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  color: #94a3b8;
}
.xs-mm-item.active .xs-mm-right {
  color: #34d399;
}
.xs-mm-right.is-emerald { color: #34d399; }
.xs-mm-right.is-rose { color: #fb7185; }

/* 10. Universal Obsidian Liquid Glass Custom Select Enhancer (window.XSLiquidGlassSelect) */
select.xs-lg-select-native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 1px !important;
  max-height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

button.xs-lg-select-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 29px;
  min-height: 29px;
  padding: 0 10px 0 11px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 560;
  line-height: 1;
  color: #E4E4E7;
  background: linear-gradient(180deg, rgba(24, 31, 46, 0.88), rgba(15, 20, 30, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 2px 8px rgba(0, 0, 0, 0.24);
  max-width: min(230px, 78vw);
  min-width: 0;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}
button.xs-lg-select-btn.hidden,
button.xs-lg-select-btn[hidden] {
  display: none !important;
}
button.xs-lg-select-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
button.xs-lg-select-btn:hover:not(:disabled),
button.xs-lg-select-btn.is-open {
  border-color: rgba(125, 211, 252, 0.46);
  background: linear-gradient(180deg, rgba(28, 37, 56, 0.94), rgba(16, 23, 36, 0.96));
  color: #F8FAFC;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 14px rgba(0, 0, 0, 0.36);
}
button.xs-lg-select-btn:focus-visible {
  outline: none;
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
button.xs-lg-select-btn .xs-lg-select-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
button.xs-lg-select-btn .xs-lg-select-chevron {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  color: #94A3B8;
  transition: transform 0.18s var(--xs-spring-ease), color 0.16s ease;
}
button.xs-lg-select-btn:hover .xs-lg-select-chevron,
button.xs-lg-select-btn.is-open .xs-lg-select-chevron {
  color: #7DD3FC;
}
button.xs-lg-select-btn.is-open .xs-lg-select-chevron {
  transform: rotate(180deg);
}
button.xs-lg-select-btn.is-card-compact {
  height: 25px;
  min-height: 25px;
  padding: 0 8px 0 9px;
  border-radius: 7px;
  font-size: 11px;
  max-width: min(184px, 66vw);
}

@media (max-width: 640px) {
  button.xs-lg-select-btn {
    height: 28px;
    min-height: 28px;
    padding: 0 10px 0 11px;
    font-size: 12px;
  }
  button.xs-lg-select-btn.is-card-compact {
    height: 24px;
    min-height: 24px;
    padding: 0 7px 0 8px;
    font-size: 10.5px;
    max-width: min(156px, 58vw);
  }
}

div.xs-lg-select-menu {
  position: absolute !important;
  z-index: 99999;
  max-height: 256px;
  max-width: calc(100vw - 16px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  background: rgba(13, 17, 26, 0.96);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(125, 211, 252, 0.26);
  border-radius: 11px;
  padding: 5px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 18px 42px rgba(0, 0, 0, 0.72);
  display: flex;
  flex-direction: column;
  gap: 1.5px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.28) transparent;
  animation: xsPopoverIn 0.15s var(--xs-pop-ease);
}
div.xs-lg-select-menu.hidden {
  display: none !important;
}
div.xs-lg-select-menu::-webkit-scrollbar {
  width: 4px;
}
div.xs-lg-select-menu::-webkit-scrollbar-track {
  background: transparent;
}
div.xs-lg-select-menu::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.28);
  border-radius: 999px;
}
.xs-lg-select-group {
  font-size: 10.5px;
  font-weight: 650;
  color: #71717A;
  padding: 6px 9px 3px;
  letter-spacing: 0.02em;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 2px;
  user-select: none;
}
.xs-lg-select-group:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 4px;
}
button.xs-lg-select-opt {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  color: #E4E4E7;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 540;
  line-height: 1.3;
  border-radius: 7px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease, color 0.12s ease;
}
button.xs-lg-select-opt:active,
.xs-cal-opt:active,
.xs-mm-item:active {
  transform: none !important;
  background: rgba(56, 189, 248, 0.16);
}
button.xs-lg-select-opt:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.075);
  color: #FFFFFF;
}
button.xs-lg-select-opt.active {
  background: rgba(56, 189, 248, 0.16);
  color: #E0F2FE;
  font-weight: 660;
}
button.xs-lg-select-opt:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.xs-lg-select-opt-lbl {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xs-lg-select-check {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: #34D399;
  opacity: 0;
}
button.xs-lg-select-opt.active .xs-lg-select-check {
  opacity: 1;
}

/* 11. Collapsed Desktop Sidebar Frosted Liquid-Glass Hover Tooltips ([data-nav-tip]::after) */
@media (min-width: 901px) {
  body.sidebar-collapsed .sidebar,
  body.sidebar-collapsed .sidebar .nav,
  .sidebar.collapsed,
  .sidebar.collapsed .nav {
    overflow: visible !important;
  }
  body.sidebar-collapsed .sidebar,
  .sidebar.collapsed {
    z-index: 120 !important;
  }
  body.sidebar-collapsed .sidebar .nav-item[data-nav-tip],
  .sidebar.collapsed .nav-item[data-nav-tip] {
    position: relative !important;
    overflow: visible !important;
  }
  body.sidebar-collapsed .sidebar .nav-item[data-nav-tip]::after,
  .sidebar.collapsed .nav-item[data-nav-tip]::after {
    content: attr(data-nav-tip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translate3d(-4px, -50%, 0);
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(14, 18, 27, 0.94);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(125, 211, 252, 0.36);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      0 10px 28px rgba(0, 0, 0, 0.65);
    color: #f8fafc;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    transition:
      opacity 0.14s ease,
      transform 0.16s var(--xs-spring-ease),
      visibility 0.14s ease;
  }
  body.sidebar-collapsed .sidebar .nav-item[data-nav-tip]:hover::after,
  body.sidebar-collapsed .sidebar .nav-item[data-nav-tip]:focus-visible::after,
  .sidebar.collapsed .nav-item[data-nav-tip]:hover::after,
  .sidebar.collapsed .nav-item[data-nav-tip]:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, -50%, 0);
  }
}

/* 12. @guanmo_ai "FOLLOW THE LIGHT" — Matte Obsidian Interior (#0d1017) + 1px Prismatic Specular Rim */
:is(.s44-ea-hud-card, .s45-acct-card, .xs-dash-strat-card, .xs-exec-bento-card, .xs-exec-card, .xs43-bento-card) {
  position: relative;
  background: linear-gradient(168deg, rgba(16, 20, 29, 0.96) 0%, #0d1017 100%) !important;
}

@media (hover: hover) {
  :is(.s44-ea-hud-card, .s45-acct-card, .xs-dash-strat-card, .xs-exec-bento-card, .xs-exec-card, .xs43-bento-card)::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(
      175px circle at var(--xs-mx, -999px) var(--xs-my, -999px),
      rgba(186, 230, 253, 0.15) 0%,
      rgba(148, 163, 184, 0.06) 48%,
      transparent 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
  }
  :is(.s44-ea-hud-card, .s45-acct-card, .xs-dash-strat-card, .xs-exec-bento-card, .xs-exec-card, .xs43-bento-card):hover::before,
  :is(.s44-ea-hud-card, .s45-acct-card, .xs-dash-strat-card, .xs-exec-bento-card, .xs-exec-card, .xs43-bento-card).is-light-hover::before {
    opacity: 1;
  }
}
