/* ──────────────────────────────────────────────────────────────────────────
   ZeroSpread — Watchlist Drawer V3 (TradingView Quality Pass)
   Presentation only. RTL-first. Hairline separators, terminal density.
   ────────────────────────────────────────────────────────────────────────── */

.zsWl {
  /* Dark — true black luxury */
  --zswl-bg: #000000;
  --zswl-surface: #050508;
  --zswl-elev: rgba(255, 255, 255, 0.018);
  --zswl-elev-strong: rgba(255, 255, 255, 0.032);
  --zswl-border: rgba(255, 255, 255, 0.042);
  --zswl-border-soft: rgba(255, 255, 255, 0.014);
  --zswl-divider: rgba(143, 155, 168, 0.12);
  --zswl-text: #f0f3f7;
  --zswl-text-2: #8f9ba8;
  --zswl-text-3: #5a6470;
  --zswl-green: #089981;
  --zswl-price-up: #089981;
  --zswl-price-down: #f23645;
  --zswl-price-flat: #8f9ba8;
  --zswl-amber: #d4a04a;
  --zswl-hover: rgba(255, 255, 255, 0.022);
  --zswl-selected: rgba(255, 255, 255, 0.03);
  --zswl-row-selected-ring: rgba(143, 155, 168, 0.14);
  --zswl-selected-hover: rgba(255, 255, 255, 0.038);
  --zswl-name-muted: #7d8794;
  --zswl-th-text: #9da8b5;
  --zswl-status-up: #089981;
  --zswl-status-down: #f23645;
  --zswl-status-flat: #8b95a7;
  --zswl-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", monospace;
  --zswl-icon-size: 24px;
  --zswl-icon-surface: rgba(255, 255, 255, 0.05);
  --zswl-section-rule: rgba(143, 155, 168, 0.072);
  --zswl-ui-icon-size: 22px;
  --zswl-header-h: 30px;
  --zswl-tools-pad-y: 3px;
  --zswl-tools-gap: 2px;
  --zswl-search-h: 22px;
  --zswl-smart-h: 26px;
  --zswl-smart-muted: #8f9ba8;
  --zswl-smart-active-bg: rgba(255, 255, 255, 0.06);
  --zswl-smart-active-border: rgba(143, 155, 168, 0.3);
  --zswl-tools-stack-h: calc(
    var(--zswl-tools-pad-y) * 2 + var(--zswl-search-h) + var(--zswl-tools-gap) + var(--zswl-smart-h)
  );
  --zswl-symbol-name-gap: 2px;
  --zswl-cluster-gap: 8px;
  --zswl-cluster-gap-min: 6px;
  --zswl-cluster-save: 11px;
  --zswl-badge-font-size: 7px;
  --zswl-index-badge-font-size: 8px;
  --zswl-index-badge-font-size-mid: 7px;
  --zswl-index-badge-font-size-long: 6px;
  --zswl-badge-radius: 4px;
  --zswl-col-icon: 24px;
  --zswl-col-sym: 56px;
  --zswl-col-price: 80px;
  --zswl-col-chg: 72px;
  --zswl-col-actions: 60px;
  --zswl-grid-cols: var(--zswl-col-icon) var(--zswl-col-sym) minmax(0, 1fr) var(--zswl-col-price) var(--zswl-col-chg) var(--zswl-col-actions);
  --zswl-grid-gap: 8px;
  --zswl-row-h: 34px;
  --zswl-grid-head-h: 22px;
  --zswl-grid-pad-x: 12px;
}

html.light .zsWl,
html[data-theme='light'] .zsWl {
  --zswl-bg: #fafbfc;
  --zswl-surface: #ffffff;
  --zswl-elev: rgba(19, 23, 34, 0.015);
  --zswl-elev-strong: rgba(19, 23, 34, 0.03);
  --zswl-border: rgba(224, 227, 235, 0.72);
  --zswl-border-soft: rgba(224, 227, 235, 0.33);
  --zswl-divider: rgba(120, 123, 134, 0.14);
  --zswl-text: #131722;
  --zswl-text-2: #787b86;
  --zswl-text-3: #b2b5be;
  --zswl-green: #089981;
  --zswl-price-up: #089981;
  --zswl-price-down: #f23645;
  --zswl-price-flat: #787b86;
  --zswl-hover: rgba(19, 23, 34, 0.022);
  --zswl-selected: rgba(19, 23, 34, 0.028);
  --zswl-row-selected-ring: rgba(120, 123, 134, 0.14);
  --zswl-selected-hover: rgba(19, 23, 34, 0.038);
  --zswl-selected-edge: transparent;
  --zswl-name-muted: #6b6e78;
  --zswl-th-text: #6e717c;
  --zswl-status-up: #089981;
  --zswl-status-down: #f23645;
  --zswl-status-flat: #8b95a7;
  --zswl-icon-surface: rgba(19, 23, 34, 0.04);
  --zswl-section-rule: rgba(120, 123, 134, 0.08);
  --zswl-smart-muted: #6b7280;
  --zswl-smart-active-bg: rgba(19, 23, 34, 0.05);
  --zswl-smart-active-border: rgba(19, 23, 34, 0.14);
}

/* ── Drawer shell ───────────────────────────────────────────────────────── */
.zsWl {
  position: fixed;
  top: var(--zs-header-height, 60px);
  right: var(--zs-right-sidebar-width, 48px);
  width: 460px;
  max-width: calc(100vw - var(--zs-right-sidebar-width, 48px));
  height: calc(100dvh - var(--zs-header-height, 60px));
  max-height: calc(100dvh - var(--zs-header-height, 60px));
  z-index: 39;
  display: flex;
  flex-direction: column;
  background: var(--zswl-bg);
  color: var(--zswl-text);
  border-inline-start: 1px solid var(--zswl-divider);
  box-shadow: -12px 0 40px -24px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  animation: zsWlIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

html.light .zsWl,
html[data-theme='light'] .zsWl {
  box-shadow: -8px 0 32px -20px rgba(19, 23, 34, 0.1);
}

@media (min-width: 1600px) {
  .zsWl { width: 480px; }
}
@media (max-width: 1023px) and (min-width: 768px) {
  .zsWl { width: 420px; }
}
@media (max-width: 767px) {
  .zsWl {
    right: 0;
    width: 100vw;
    max-width: 100vw;
    top: 0;
    height: 100dvh;
    max-height: 100dvh;
    border-inline-start: 0;
  }
}

@keyframes zsWlIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .zsWl { animation: none; }
}

.zsWl *,
.zsWl *::before,
.zsWl *::after { box-sizing: border-box; }

/* ── TradingView header replica ─────────────────────────────────────────── */
.zsWlHeaderTv {
  flex: 0 0 auto;
  padding: 0 12px;
  border-bottom: 0;
}

.zsWlHeaderTv .zsWlHeaderRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  height: var(--zswl-header-h);
  min-height: var(--zswl-header-h);
  max-height: var(--zswl-header-h);
}

.zsWlTvTitle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--zswl-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.zsWlTvTitle:hover { opacity: 0.82; }

.zsWlTvTitleChevron {
  width: 18px;
  height: 18px;
  color: var(--zswl-text);
  opacity: 0.9;
  flex: 0 0 auto;
  stroke-width: 2;
}

.zsWlTvActions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.zsWlTvIconBtn {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--zswl-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: opacity 0.1s ease;
}

.zsWlTvIconBtn:hover {
  opacity: 0.62;
  background: transparent;
}

.zsWlTvIconBtn[data-active='true'] {
  opacity: 1;
  color: var(--zswl-text);
  background: var(--zswl-icon-surface);
  border-radius: 4px;
}

.zsWl--analytics .zsWlTvIconBtn[data-active='true'] {
  color: #131722;
  background: #f4f6f8;
}

.zsWlTvIconBtn:focus-visible {
  outline: none;
  opacity: 0.8;
}

.zsWlTvIconBtn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.zsWl .zsWlAssetIconGlyph svg,
.zsWl .zsWlGroupChevron,
.zsWl .zsWlMiniBtn svg {
  stroke-width: 2;
}

/* ── Split ──────────────────────────────────────────────────────────────── */
.zsWlSplit {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-top: 0;
}

.zsWlTableWrap {
  flex: 7 1 0;
  min-height: 120px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 0;
}

/* ── Table tools — search + smart views (below header, above grid) ─────── */
.zsWlTableTools {
  display: flex;
  flex-direction: column;
  gap: var(--zswl-tools-gap);
  padding: var(--zswl-tools-pad-y) var(--zswl-grid-pad-x) 2px;
  border-bottom: 1px solid var(--zswl-border-soft);
  background: var(--zswl-bg);
  position: sticky;
  top: 0;
  z-index: 4;
}

.zsWlSearchInput {
  width: 100%;
  height: var(--zswl-search-h);
  margin: 0;
  padding: 0 8px;
  border: 1px solid var(--zswl-border-soft);
  border-radius: 3px;
  background: var(--zswl-surface);
  color: var(--zswl-text);
  font-size: 11.5px;
  font-weight: 450;
  line-height: 1;
  outline: none;
}

.zsWlSearchInput::placeholder {
  color: var(--zswl-text-3);
}

.zsWlSearchInput:focus {
  border-color: var(--zswl-divider);
}

.zsWlSmartViews {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-height: var(--zswl-smart-h);
}

.zsWlSmartViewBtn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  margin: 0;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--zswl-smart-muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 120ms ease,
    background-color 120ms ease,
    border-color 120ms ease;
}

.zsWlSmartViewBtn:hover {
  color: var(--zswl-text);
  background: var(--zswl-hover);
  border-color: var(--zswl-border-soft);
}

.zsWlSmartViewBtn[data-active='true'] {
  color: var(--zswl-text);
  background: var(--zswl-smart-active-bg);
  border-color: var(--zswl-smart-active-border);
  font-weight: 700;
}

.zsWlSmartViewBtn:focus-visible {
  outline: none;
  border-color: var(--zswl-divider);
}

.zsWlDetailsWrap {
  flex: 3 1 0;
  min-height: 84px;
  border-top: 1px solid var(--zswl-divider);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--zswl-surface);
}

html.light .zsWlDetailsWrap,
html[data-theme='light'] .zsWlDetailsWrap {
  background: var(--zswl-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

html.dark .zsWlDetailsWrap,
html[data-theme='dark'] .zsWlDetailsWrap {
  background: var(--zswl-surface);
}

.zsWlSplit[data-has-details='false'] .zsWlTableWrap { flex: 1 1 auto; }

/* ── Drawer list — compact density, light surface, single scroll ─────────── */
.watchlistDrawer.zsWl {
  --zswl-bg: #ffffff;
  --zswl-surface: #ffffff;
  --zswl-text: #111827;
  --zswl-text-2: #667085;
  --zswl-text-3: #98a2b3;
  --zswl-name-muted: #667085;
  --zswl-th-text: #475467;
  --zswl-border-soft: #edf0f3;
  --zswl-divider: #edf0f3;
  --zswl-hover: rgba(17, 24, 39, 0.03);
  --zswl-selected: rgba(17, 24, 39, 0.04);
  --zswl-row-selected-ring: #e5e7eb;
  --zswl-selected-hover: rgba(17, 24, 39, 0.06);
  --zswl-icon-surface: rgba(17, 24, 39, 0.04);
  --zswl-smart-muted: #667085;
  --zswl-search-h: 30px;
  --zswl-smart-h: 32px;
  --zswl-tools-pad-y: 3px;
  --zswl-tools-gap: 3px;
  --zswl-row-h: 32px;
  --zswl-grid-head-h: 30px;
  --zswl-grid-pad-x: 8px;
  --zswl-symbol-col: minmax(88px, 1fr);
  --zswl-price-col: minmax(82px, 0.9fr);
  --zswl-change-col: minmax(72px, 0.75fr);
  --zswl-change-pct-col: minmax(66px, 0.7fr);
  --zswl-drawer-grid-cols:
    var(--zswl-symbol-col)
    var(--zswl-price-col)
    var(--zswl-change-col)
    var(--zswl-change-pct-col);
  background: #ffffff;
  color: #111827;
  box-shadow: -8px 0 32px -20px rgba(19, 23, 34, 0.08);
  overflow: hidden;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', 'Cairo', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.watchlistDrawer .zsWlSmartViews {
  min-height: var(--zswl-smart-h);
  gap: 4px;
}

.watchlistDrawer .zsWlSmartViewBtn {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #667085;
  opacity: 1;
  border: none;
  border-radius: 0;
  background: transparent;
  outline: none;
  box-shadow: none;
}

.watchlistDrawer .zsWlSmartViewBtn:hover {
  color: #101828;
  background: rgba(17, 24, 39, 0.03);
  border: none;
  box-shadow: none;
}

.watchlistDrawer .zsWlSmartViewBtn[data-active='true'] {
  font-weight: 600;
  color: #101828;
  opacity: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid #101828;
  box-shadow: none;
}

.watchlistDrawer .zsWlSmartViewBtn:focus {
  outline: none;
}

.watchlistDrawer .zsWlSmartViewBtn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
  border: none;
  box-shadow: none;
}

.watchlistDrawer .zsWlSearchInput {
  height: var(--zswl-search-h);
  font-size: 12px;
  opacity: 1;
  font-family: inherit;
}

.watchlistDrawer .zsWlSplit {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.watchlistDrawer .zsWlTableTools {
  position: static;
  flex: 0 0 auto;
  z-index: auto;
  top: auto;
  background: #ffffff;
  border-bottom: 1px solid #edf0f3;
}

.watchlistDrawer .zsWlBody {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
}

.watchlistDrawer .zsWlListShell {
  flex: 1 1 0;
  min-height: 280px;
  max-height: 75%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.watchlistDrawer .zsWlTableWrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: none;
  overflow: hidden;
  padding-bottom: 0;
}

.watchlistDrawer .zsWlRowsArea {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: none;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.watchlistDrawer .zsWlGrid {
  width: 100%;
  max-width: none;
}

.watchlistDrawer .zsWlSplitHandle {
  flex: 0 0 8px;
  height: 8px;
  width: 100%;
  position: relative;
  cursor: row-resize;
  touch-action: none;
  background: #f9fafb;
  border-top: 1px solid #eaecf0;
  border-bottom: 1px solid #eaecf0;
  box-shadow: 0 -2px 8px -4px rgba(16, 24, 40, 0.08);
  z-index: 2;
}

.watchlistDrawer .zsWlSplitHandle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 2px;
  margin-left: -18px;
  margin-top: -1px;
  border-radius: 999px;
  background: #c7cdd6;
  transition: background-color 120ms ease;
}

.watchlistDrawer .zsWlSplitHandle:hover::after,
.watchlistDrawer.is-resizing .zsWlSplitHandle::after {
  background: #98a2b3;
}

.watchlistDrawer .zsWlDetailsShell {
  flex: 0 0 auto;
  min-height: 170px;
  max-height: 40%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
}

.watchlistDrawer .zsWlSelectedDetailsPanel {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border-top: 0;
  box-shadow: none;
  padding: 14px 18px 18px;
  direction: rtl;
  text-align: right;
  font-family: inherit;
}

.watchlistDrawer.is-resizing,
.watchlistDrawer.is-resizing * {
  user-select: none !important;
  cursor: row-resize !important;
}

.watchlistDrawer .zsWlGridHead {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  display: grid;
  direction: rtl;
  width: 100%;
  grid-template-columns: var(--zswl-drawer-grid-cols);
  align-items: center;
  height: var(--zswl-grid-head-h);
  min-height: var(--zswl-grid-head-h);
  padding: 0 var(--zswl-grid-pad-x);
  margin: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-sizing: border-box;
}

.watchlistDrawer .zsWlTh {
  display: flex;
  align-items: center;
  grid-column: auto;
  min-height: var(--zswl-grid-head-h);
  font-size: 12px;
  font-weight: 500;
  color: #667085;
  letter-spacing: 0;
  opacity: 1;
}

.watchlistDrawer .zsWlThSym {
  justify-content: flex-start;
  text-align: start;
}

.watchlistDrawer .zsWlThPrice,
.watchlistDrawer .zsWlThChgVal,
.watchlistDrawer .zsWlThChgPct {
  justify-content: center;
  text-align: center;
}

.watchlistDrawer .zsWlThChg {
  display: none;
}

.watchlistDrawer .zsWlAnalyticsTabs,
.watchlistDrawer .zsWlAnalyticsTab {
  display: none !important;
}

.watchlistDrawer .zsWlGroupHead {
  display: block;
  width: 100%;
}

.watchlistDrawer .watchlistGroupHeader {
  width: 100%;
  min-height: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 0 8px;
  box-sizing: border-box;
  background: #fafafa;
  border-top: 1px solid #edf0f3;
  border-bottom: 1px solid #edf0f3;
  font-weight: 500;
  font-size: 11px;
  color: #667085;
  opacity: 1;
  direction: rtl;
}

.watchlistDrawer .zsWlGroupCount {
  font-size: 11px;
  font-weight: 500;
  color: #667085;
  opacity: 1;
}

.watchlistDrawer .zsWlRow {
  display: grid;
  direction: rtl;
  width: 100%;
  grid-template-columns: var(--zswl-drawer-grid-cols);
  align-items: center;
  height: var(--zswl-row-h);
  min-height: var(--zswl-row-h);
  max-height: var(--zswl-row-h);
  padding: 0 var(--zswl-grid-pad-x);
  border: 0;
  border-bottom: 1px solid #edf0f3;
  background: #ffffff;
  box-sizing: border-box;
}

.watchlistDrawer .zsWlRow:hover {
  background: rgba(17, 24, 39, 0.02);
}

.watchlistDrawer .zsWlRow[data-selected='true'] {
  background: #ffffff;
  border: 0;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px #111827;
}

.watchlistDrawer .zsWlSymbolCell,
.watchlistDrawer .zsWlPriceCell,
.watchlistDrawer .zsWlChangeCell,
.watchlistDrawer .zsWlChangePctCell {
  grid-column: auto;
  min-width: 0;
  height: var(--zswl-row-h);
  max-height: var(--zswl-row-h);
  line-height: 1;
  align-self: center;
}

.watchlistDrawer .zsWlSymbolCell {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.watchlistDrawer .zsWlSymbolCell .zsWlRowIcon,
.watchlistDrawer .zsWlSymbolCell .zsWlAssetIcon {
  flex: 0 0 18px;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  border-radius: 4px;
}

.watchlistDrawer .zsWlSymbolCell .zsWlRowSym {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watchlistDrawer .zsWlPriceCell,
.watchlistDrawer .zsWlChangeCell,
.watchlistDrawer .zsWlChangePctCell {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.watchlistDrawer .zsWlPriceCell {
  color: #111827;
}

.watchlistDrawer .zsWlAssetCluster,
.watchlistDrawer .zsWlRowPrice,
.watchlistDrawer .zsWlRowChg,
.watchlistDrawer .zsWlRowChgVal,
.watchlistDrawer .zsWlRowChgPct,
.watchlistDrawer .zsWlRowName {
  display: none !important;
}

.watchlistDrawer .zsWlUp {
  color: #089981;
  font-weight: 500;
  opacity: 1;
}

.watchlistDrawer .zsWlDown {
  color: #f23645;
  font-weight: 500;
  opacity: 1;
}

.watchlistDrawer .zsWlFlat {
  color: #667085;
  font-weight: 500;
  opacity: 1;
}

.watchlistDrawer .zsWlRowActions {
  display: none !important;
}

.watchlistDrawer .zsWlRowSave {
  display: none !important;
  pointer-events: none;
}

.watchlistDrawer .zsWlSelHead {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 4px;
  direction: rtl;
}

.watchlistDrawer .zsWlSelHeadActions {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
}

.watchlistDrawer .zsWlSelHeadSymbol {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  flex: 0 1 auto;
}

.watchlistDrawer .zsWlSelIconBtn {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #101828;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  opacity: 0.75;
  transition: opacity 120ms ease;
}

.watchlistDrawer .zsWlSelIconBtn svg {
  width: 14px;
  height: 14px;
}

.watchlistDrawer .zsWlSelIconBtn:hover {
  opacity: 1;
}

.watchlistDrawer .zsWlSelHeadIcon {
  border-radius: 5px;
  flex: 0 0 22px;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
}

.watchlistDrawer .zsWlSelSym {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1;
}

.watchlistDrawer .zsWlSelBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.watchlistDrawer .zsWlSelIdentity {
  margin-bottom: 6px;
  text-align: right;
}

.watchlistDrawer .zsWlSelTitle {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
  text-align: right;
}

.watchlistDrawer .zsWlSelMeta {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #667085;
  line-height: 1.3;
  direction: rtl;
}

.watchlistDrawer .zsWlSelMetaLink {
  flex: 0 0 auto;
  color: #667085;
  width: 11px;
  height: 11px;
}

.watchlistDrawer .zsWlSelQuote {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
  direction: rtl;
}

.watchlistDrawer .zsWlSelQuoteMain {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
  flex: 0 1 auto;
}

.watchlistDrawer .zsWlSelPrice {
  font-size: 30px;
  font-weight: 800;
  color: #101828;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.watchlistDrawer .zsWlSelCurrency {
  font-size: 11px;
  font-weight: 600;
  color: #667085;
  line-height: 1;
  margin-inline-start: 4px;
}

.watchlistDrawer .zsWlSelQuoteChg {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  flex: 0 0 auto;
}

.watchlistDrawer .zsWlSelStatus {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 500;
  color: #667085;
  line-height: 1.3;
  text-align: right;
  direction: rtl;
}

.watchlistDrawer .zsWlSelStatus[data-market-open='true']::before {
  content: '';
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #089981;
}

.watchlistDrawer .zsWlSelInsight {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  min-height: 36px;
  height: 36px;
  margin-block: 0 0;
  margin-bottom: 24px;
  padding-inline: 12px;
  border-radius: 8px;
  border: none;
  background: #f1e9ff;
  color: #4b2aa8;
  direction: rtl;
  box-shadow: none;
}

.watchlistDrawer .zsWlSelInsightText {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watchlistDrawer .zsWlSelSection {
  margin-bottom: 24px;
}

.watchlistDrawer .zsWlSelectedDetailsPanel > .zsWlSelSection .zsWlSelSectionTitle {
  margin: 0 0 10px;
}

.watchlistDrawer .zsWlSelSectionTitle {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  text-align: right;
}

.watchlistDrawer .zsWlSelPerfGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.watchlistDrawer .zsWlSelPerfCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding: 4px 6px;
  border-radius: 8px;
  background: #f8fafc;
  border: none;
  box-shadow: none;
}

.watchlistDrawer .zsWlSelPerfValue {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #111827;
  line-height: 1;
}

.watchlistDrawer .zsWlSelPerfLabel {
  font-size: 11px;
  font-weight: 500;
  color: #111827;
  line-height: 1;
}

.watchlistDrawer .zsWlSelBelowFold {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  direction: rtl;
  text-align: right;
}

.watchlistDrawer .zsWlSelSeasonChart {
  margin-bottom: 8px;
  direction: rtl;
  text-align: right;
}

.watchlistDrawer .zsWlSelSeasonPlot {
  width: 100%;
  height: 155px;
  direction: ltr;
  padding-top: 6px;
  padding-bottom: 6px;
}

.watchlistDrawer .zsWlSelGhostBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 34px;
  min-height: 34px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #344054;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  box-shadow: none;
}

.watchlistDrawer .zsWlSelGauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: auto;
  max-height: 140px;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.watchlistDrawer .zsWlSelGaugeSvg {
  width: 100%;
  max-width: 160px;
  height: 80px;
}

.watchlistDrawer .zsWlSelPerfCard[data-tone='pos'] {
  background: rgba(8, 153, 129, 0.08);
  border: none;
  box-shadow: none;
}

.watchlistDrawer .zsWlSelPerfCard[data-tone='neg'] {
  background: rgba(15, 23, 42, 0.035);
  border: none;
  box-shadow: none;
}

.watchlistDrawer .zsWlSelPerfCard[data-tone='flat'] {
  background: #f8fafc;
  border: none;
  box-shadow: none;
}

.watchlistDrawer .zsWlSelPerfCard[data-tone='pos'] .zsWlSelPerfValue {
  color: #089981;
}

.watchlistDrawer .zsWlSelPerfCard[data-tone='neg'] .zsWlSelPerfValue {
  color: #f23645;
}

.watchlistDrawer .zsWlSelInsightIcon {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  color: #4b2aa8;
}

.watchlistDrawer .zsWlSelInsightChev {
  flex: 0 0 auto;
  color: #4b2aa8;
  width: 13px;
  height: 13px;
}

.watchlistDrawer .zsWlSelSection:last-child {
  margin-bottom: 0;
}

.watchlistDrawer .zsWlSelSeasonLegend {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 10px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #667085;
  direction: rtl;
}

.watchlistDrawer .zsWlSelBelowFold .zsWlSelSection + .zsWlSelSection {
  margin-top: 24px;
}

.watchlistDrawer .zsWlSelSeasonLegend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin-inline-end: 3px;
  vertical-align: middle;
}

.watchlistDrawer .zsWlSelSeasonLegend i[data-year='2024'] {
  background: #f97316;
}

.watchlistDrawer .zsWlSelSeasonLegend i[data-year='2025'] {
  background: #089981;
}

.watchlistDrawer .zsWlSelSeasonLegend i[data-year='2026'] {
  background: #2563eb;
}

.watchlistDrawer .zsWlSelGaugeLabels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 150px;
  gap: 1px;
}

.watchlistDrawer .zsWlSelGaugeLabel {
  font-size: 7px;
  font-weight: 600;
  color: #667085;
  line-height: 1.1;
  text-align: center;
  flex: 1 1 0;
}

.watchlistDrawer .zsWlSelGaugeLabel[data-active='true'] {
  color: #101828;
  font-weight: 800;
}

.watchlistDrawer .zsWlSelGaugeVerdict {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #101828;
  line-height: 1.1;
  text-align: center;
  width: 100%;
}

.watchlistDrawer .zsWlRowsArea::-webkit-scrollbar,
.watchlistDrawer .zsWlDetailsShell .zsWlSelectedDetailsPanel::-webkit-scrollbar {
  width: 4px;
}

.watchlistDrawer .zsWlRowsArea::-webkit-scrollbar-thumb,
.watchlistDrawer .zsWlDetailsShell .zsWlSelectedDetailsPanel::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 999px;
}

.zsWlTableWrap::-webkit-scrollbar,
.zsWlDetailsWrap::-webkit-scrollbar { width: 4px; }
.zsWlTableWrap::-webkit-scrollbar-thumb,
.zsWlDetailsWrap::-webkit-scrollbar-thumb {
  background: var(--zswl-border-soft);
  border-radius: 999px;
}

/* ── Group section headers ───────────────────────────────────────────────── */
.zsWlGroup {
  --zswl-section-text: #d0d5dc;
  margin-top: 10px;
  border-bottom: none;
}

html.light .zsWlGroup,
html[data-theme='light'] .zsWlGroup {
  --zswl-section-text: #1f2937;
}

.zsWlGroup:first-of-type {
  margin-top: 4px;
}

.zsWlGroupHead {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: inherit;
}

.zsWlGroupHeader {
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 0 12px;
  box-sizing: border-box;
  background: #f6f7f9;
  border-top: 1px solid #edf0f3;
  border-bottom: 1px solid #edf0f3;
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  direction: rtl;
  transition: background-color 0.12s ease;
}

html.dark .zsWl .zsWlGroupHeader,
html[data-theme='dark'] .zsWl .zsWlGroupHeader {
  background: rgba(255, 255, 255, 0.04);
  border-top-color: rgba(143, 155, 168, 0.1);
  border-bottom-color: rgba(143, 155, 168, 0.1);
  color: var(--zswl-section-text);
}

.zsWlGroupHead:hover .zsWlGroupHeader {
  background: #eef1f4;
}

html.dark .zsWl .zsWlGroupHead:hover .zsWlGroupHeader,
html[data-theme='dark'] .zsWl .zsWlGroupHead:hover .zsWlGroupHeader {
  background: rgba(255, 255, 255, 0.06);
}

.zsWlGroupLabel {
  flex: 0 0 auto;
  line-height: 1;
  white-space: nowrap;
  font-weight: 640;
}

.zsWlGroupCount {
  font-weight: 600;
  font-size: inherit;
  color: inherit;
  font-variant-numeric: tabular-nums;
  opacity: 0.72;
}

.zsWlGroupLine {
  display: none;
}

.zsWlGroupChevron {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  align-self: center;
  margin-top: 0;
  color: currentColor;
  opacity: 0.72;
  stroke-width: 2;
  transition: transform 0.15s ease, opacity 0.12s ease;
}

.zsWlGroupHead:hover .zsWlGroupChevron {
  opacity: 0.95;
}

.zsWlGroup[data-collapsed='true'] .zsWlGroupChevron {
  transform: rotate(-90deg);
}

/* ── Watchlist grid — shared column template (TV density) ───────────────── */
.zsWlGrid {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.zsWlGridHead {
  display: grid;
  grid-template-columns: var(--zswl-grid-cols);
  column-gap: var(--zswl-grid-gap);
  align-items: center;
  height: var(--zswl-grid-head-h);
  min-height: var(--zswl-grid-head-h);
  padding: 0 var(--zswl-grid-pad-x) 1px;
  margin: 0;
  border-bottom: 1px solid var(--zswl-border-soft);
  background: var(--zswl-bg);
  position: sticky;
  top: var(--zswl-tools-stack-h);
  z-index: 3;
}

.zsWlTh {
  display: flex;
  align-items: center;
  min-height: var(--zswl-grid-head-h);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--zswl-th-text);
  white-space: nowrap;
  line-height: 1;
}

.zsWlThSym {
  grid-column: 1 / 4;
  text-align: start;
  justify-content: flex-start;
}

.zsWlThPrice {
  grid-column: 4;
  text-align: center;
  justify-content: center;
  justify-self: stretch;
}

.zsWlThChg {
  grid-column: 5;
  text-align: end;
  justify-content: flex-end;
  justify-self: stretch;
  padding-inline-end: 0;
}

/* ── Asset row — fixed height, 5-column grid ─────────────────────────────── */
.zsWlRow {
  position: relative;
  display: grid;
  grid-template-columns: var(--zswl-grid-cols);
  column-gap: var(--zswl-grid-gap);
  align-items: center;
  width: 100%;
  height: var(--zswl-row-h);
  min-height: var(--zswl-row-h);
  max-height: var(--zswl-row-h);
  padding: 0 var(--zswl-grid-pad-x);
  border: 0;
  background: transparent;
  color: var(--zswl-text);
  cursor: pointer;
  text-align: start;
  box-sizing: border-box;
  outline: none;
  transition: background-color 140ms ease;
}

.zsWlRow:hover {
  background: var(--zswl-hover);
}

.zsWlRowSym,
.zsWlRowName,
.zsWlRowPrice,
.zsWlRowChg,
.zsWlRowActions {
  display: flex;
  align-items: center;
  align-self: center;
  min-width: 0;
  height: var(--zswl-row-h);
  max-height: var(--zswl-row-h);
  line-height: 1;
}

.zsWlGroup > .zsWlRow:first-of-type {
  margin-top: 1px;
}

.zsWlRow + .zsWlRow {
  margin-top: 0;
}

.zsWlRow[data-selected='true'] {
  background: var(--zswl-selected);
  box-shadow: inset 0 0 0 1px var(--zswl-row-selected-ring);
}

.zsWlRow[data-selected='true']:hover {
  background: var(--zswl-selected-hover);
}

.zsWlRow:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--zswl-row-selected-ring);
}

html.light .zsWlRow[data-selected='true'],
html[data-theme='light'] .zsWlRow[data-selected='true'] {
  background: var(--zswl-selected);
  box-shadow: inset 0 0 0 1px var(--zswl-row-selected-ring);
}

html.light .zsWlRow[data-selected='true']:hover,
html[data-theme='light'] .zsWlRow[data-selected='true']:hover {
  background: var(--zswl-selected-hover);
}

/* Asset icon — unified 24×24 container */
.zsWlAssetIcon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--zswl-icon-size);
  height: var(--zswl-icon-size);
  min-width: var(--zswl-icon-size);
  min-height: var(--zswl-icon-size);
  border-radius: 5px;
  overflow: hidden;
  background: var(--zswl-icon-surface);
  border: 0;
  box-sizing: border-box;
  padding: 0;
}

.zsWlAssetIconImg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 1px;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.zsWlAssetIcon[data-icon-tier='text-badge'] {
  background: transparent;
}

/* TradingView-style text badges — unified size/radius across all tones */
.zsWlAssetBadge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: var(--zswl-badge-radius);
  font-size: var(--zswl-badge-font-size);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: center;
  box-sizing: border-box;
  padding: 1px 2px;
  overflow: hidden;
  user-select: none;
}

/* Premium text badges — index + commodity share the same visual system */
.zsWlAssetBadge[data-badge-family='index'],
.zsWlAssetBadge[data-badge-family='commodity'] {
  font-family: var(--zswl-mono);
  font-weight: 800;
  font-size: var(--zswl-index-badge-font-size);
  letter-spacing: -0.02em;
  line-height: 1;
  padding: 0 1px;
  border: 1px solid rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

.zsWlAssetBadge[data-badge-family='index'][data-label-len='mid'],
.zsWlAssetBadge[data-badge-family='commodity'][data-label-len='mid'] {
  font-size: var(--zswl-index-badge-font-size-mid);
  letter-spacing: -0.03em;
}

.zsWlAssetBadge[data-badge-family='index'][data-label-len='long'],
.zsWlAssetBadge[data-badge-family='commodity'][data-label-len='long'] {
  font-size: var(--zswl-index-badge-font-size-long);
  letter-spacing: -0.04em;
}

html.light .zsWlAssetBadge[data-badge-family='index'],
html[data-theme='light'] .zsWlAssetBadge[data-badge-family='index'],
html.light .zsWlAssetBadge[data-badge-family='commodity'],
html[data-theme='light'] .zsWlAssetBadge[data-badge-family='commodity'] {
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.zsWlAssetBadgeLine {
  display: block;
  font-size: inherit;
  line-height: 1.05;
}

.zsWlAssetBadge[data-tone='spx'] {
  background: #c62828;
  color: #ffffff;
}

.zsWlAssetBadge[data-tone='ndq'] {
  background: #1565c0;
  color: #ffffff;
}

.zsWlAssetBadge[data-tone='dji'] {
  background: #0d47a1;
  color: #ffffff;
}

.zsWlAssetBadge[data-tone='vix'] {
  background: #e65100;
  color: #ffffff;
}

.zsWlAssetBadge[data-tone='dxy'] {
  background: #2e7d32;
  color: #ffffff;
}

.zsWlAssetBadge[data-tone='rut'] {
  background: #6a1b9a;
  color: #ffffff;
}

.zsWlAssetBadge[data-tone='ftse'] {
  background: #00695c;
  color: #ffffff;
}

.zsWlAssetBadge[data-tone='dax'] {
  background: #1a1a1a;
  color: #ffca28;
  border-color: rgba(255, 202, 40, 0.35);
}

.zsWlAssetBadge[data-tone='nikkei'] {
  background: #c62828;
  color: #ffffff;
}

.zsWlAssetBadge[data-tone='gold'] {
  background: #f9a825;
  color: #1a1200;
  border-color: rgba(255, 213, 79, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.zsWlAssetBadge[data-tone='silver'] {
  background: #546e7a;
  color: #eceff1;
  border-color: rgba(176, 190, 197, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.zsWlAssetBadge[data-tone='oil'] {
  background: #121212;
  color: #ff9100;
  border-color: rgba(255, 145, 0, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 183, 77, 0.2);
}

.zsWlAssetBadge[data-tone='natgas'] {
  background: #006064;
  color: #e0f7fa;
  border-color: rgba(0, 188, 212, 0.45);
  box-shadow: inset 0 1px 0 rgba(128, 222, 234, 0.28);
}

.zsWlAssetBadge[data-tone='forex'] {
  background: #1e293b;
  color: #e2e8f0;
}

.zsWlAssetBadge[data-tone='neutral'] {
  background: #2a2e39;
  color: #d1d4dc;
}

html.light .zsWlAssetBadge[data-tone='neutral'],
html[data-theme='light'] .zsWlAssetBadge[data-tone='neutral'] {
  background: #e0e3eb;
  color: #131722;
}

.zsWlAssetIconGlyph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--zswl-text);
  opacity: 1;
  line-height: 0;
  background: var(--zswl-icon-fallback-bg, transparent);
}

.zsWlAssetIcon[data-icon-tier='category-fallback'] {
  --zswl-icon-fallback-bg: rgba(56, 189, 248, 0.14);
}

html.light .zsWlAssetIcon[data-icon-tier='category-fallback'],
html[data-theme='light'] .zsWlAssetIcon[data-icon-tier='category-fallback'] {
  --zswl-icon-fallback-bg: rgba(14, 116, 144, 0.1);
}

.zsWlAssetIcon[data-fallback-kind='volatility'] {
  --zswl-icon-fallback-bg: rgba(249, 115, 22, 0.16);
  color: #fb923c;
}

.zsWlAssetIcon[data-fallback-kind='dollar'] {
  --zswl-icon-fallback-bg: rgba(34, 197, 94, 0.14);
  color: #4ade80;
}

.zsWlAssetIcon[data-fallback-kind='oil'] {
  --zswl-icon-fallback-bg: rgba(234, 179, 8, 0.14);
  color: #facc15;
}

.zsWlAssetIcon[data-fallback-kind='gold'] {
  --zswl-icon-fallback-bg: rgba(234, 179, 8, 0.14);
  color: #fbbf24;
}

.zsWlAssetIcon[data-fallback-kind='forex'] {
  --zswl-icon-fallback-bg: rgba(59, 130, 246, 0.14);
  color: #60a5fa;
}

.zsWlAssetIcon[data-fallback-kind='index'] {
  --zswl-icon-fallback-bg: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
}

.zsWlAssetIcon[data-fallback-kind='stock'] {
  --zswl-icon-fallback-bg: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

.zsWlAssetIcon[data-fallback-kind='crypto'] {
  --zswl-icon-fallback-bg: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
}

.zsWlAssetIconGlyph svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.25;
  flex-shrink: 0;
}

.zsWlAssetIconForex {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.zsWlAssetIconFlag {
  position: absolute;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--zswl-divider);
  background: var(--zswl-bg);
}

.zsWlAssetIconFlag--base { left: 0; bottom: 0; z-index: 2; }
.zsWlAssetIconFlag--quote { right: 0; top: 0; z-index: 1; }

.zsWlAssetCluster {
  grid-column: 1 / 3;
  display: flex;
  flex-direction: row;
  direction: ltr;
  align-items: center;
  justify-content: flex-end;
  gap: max(var(--zswl-cluster-gap-min), var(--zswl-cluster-gap));
  min-width: 0;
  width: 100%;
  height: var(--zswl-row-h);
  max-height: var(--zswl-row-h);
  overflow: hidden;
}

.zsWlAssetCluster .zsWlRowSym {
  flex: 0 1 auto;
  min-width: 0;
  max-width: var(--zswl-col-sym);
  margin-inline-end: 4px;
  padding: 0;
}

.zsWlAssetCluster .zsWlRowIcon {
  flex: 0 0 var(--zswl-icon-size);
  width: var(--zswl-icon-size) !important;
  height: var(--zswl-icon-size) !important;
  min-width: var(--zswl-icon-size);
  min-height: var(--zswl-icon-size);
}

.zsWlAssetCluster .zsWlAssetIcon {
  width: var(--zswl-icon-size) !important;
  height: var(--zswl-icon-size) !important;
  min-width: var(--zswl-icon-size) !important;
  min-height: var(--zswl-icon-size) !important;
}

.zsWlRowSave {
  display: none;
  flex: 0 0 var(--zswl-cluster-save);
  place-items: center;
  width: var(--zswl-cluster-save);
  min-width: var(--zswl-cluster-save);
  height: var(--zswl-cluster-save);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--zswl-text-3);
  opacity: 0.38;
  cursor: pointer;
  line-height: 0;
  pointer-events: none;
  transition: opacity 160ms ease, color 160ms ease;
}

.zsWlRowSave[data-saved='true'],
.zsWlRow:hover .zsWlRowSave {
  display: grid;
  opacity: 0.42;
  pointer-events: auto;
}

.zsWlRowSave[data-saved='true'] {
  color: #f23645;
  opacity: 0.72;
}

.zsWlRowSave:hover {
  opacity: 1;
}

html.light .zsWlRowSave,
html[data-theme='light'] .zsWlRowSave {
  color: #b2b5be;
}

html.light .zsWlRowSave[data-saved='true'],
html[data-theme='light'] .zsWlRowSave[data-saved='true'] {
  color: #f23645;
  opacity: 0.78;
}

.zsWlRowIcon {
  flex-shrink: 0;
}

.zsWlDetIcon {
  flex: 0 0 auto;
  width: var(--zswl-icon-size) !important;
  height: var(--zswl-icon-size) !important;
  min-width: var(--zswl-icon-size);
  min-height: var(--zswl-icon-size);
  border-radius: 5px;
}

.zsWlRowSym {
  margin-inline-end: var(--zswl-symbol-name-gap);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--zswl-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-content: flex-start;
  justify-self: stretch;
}

.zsWlRowName {
  grid-column: 3;
  font-size: 11px;
  font-weight: 500;
  color: var(--zswl-name-muted);
  opacity: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-content: flex-start;
  justify-self: stretch;
}

.zsWlRowPrice {
  grid-column: 4;
  font-family: var(--zswl-mono);
  font-size: 13.5px;
  font-weight: 750;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
  color: var(--zswl-text);
  letter-spacing: -0.02em;
  justify-content: center;
  justify-self: stretch;
  width: 100%;
}

.zsWlRowChg {
  grid-column: 5;
  font-family: var(--zswl-mono);
  font-size: 11px;
  font-weight: 650;
  text-align: end;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
  opacity: 1;
  justify-content: flex-end;
  justify-self: stretch;
  width: 100%;
  padding-inline-end: 0;
  letter-spacing: 0;
}

.zsWlUp { color: var(--zswl-price-up); font-weight: 650; opacity: 1; }
.zsWlDown { color: var(--zswl-price-down); font-weight: 650; opacity: 1; }
.zsWlFlat { color: var(--zswl-price-flat); font-weight: 650; opacity: 1; }

/* Hover quick-actions — dedicated left column (RTL), never over data cells */
.zsWlRowActions {
  grid-column: 6;
  display: flex;
  gap: 0;
  justify-content: flex-end;
  align-self: center;
  width: 100%;
  min-width: 0;
  padding: 1px;
  border-radius: 4px;
  background: var(--zswl-bg);
  border: 1px solid transparent;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.zsWlRow:hover .zsWlRowActions,
.zsWlRow[data-selected='true']:hover .zsWlRowActions {
  border-color: var(--zswl-divider);
  box-shadow: 0 1px 4px -2px rgba(0, 0, 0, 0.14);
}

html.light .zsWlRow:hover .zsWlRowActions,
html.light .zsWlRow[data-selected='true']:hover .zsWlRowActions,
html[data-theme='light'] .zsWlRow:hover .zsWlRowActions,
html[data-theme='light'] .zsWlRow[data-selected='true']:hover .zsWlRowActions {
  box-shadow: 0 1px 4px -2px rgba(19, 23, 34, 0.08);
}

.zsWlRow:hover .zsWlRowActions {
  opacity: 1;
  pointer-events: auto;
}

.zsWlRow[data-selected='true'] .zsWlRowActions {
  opacity: 0;
  pointer-events: none;
}

.zsWlRow[data-selected='true']:hover .zsWlRowActions {
  opacity: 1;
  pointer-events: auto;
}

.zsWlMiniBtn {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--zswl-text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.zsWlMiniBtn:hover { background: var(--zswl-hover); color: var(--zswl-text); }
.zsWlMiniBtn svg { width: 14px; height: 14px; }
.zsWlMiniBtn[data-on='true'] { color: var(--zswl-amber); }

@keyframes zsWlFlashUp {
  0% { background: rgba(8, 153, 129, 0.1); }
  100% { background: transparent; }
}
@keyframes zsWlFlashDown {
  0% { background: rgba(242, 54, 69, 0.1); }
  100% { background: transparent; }
}
.zsWlRow[data-flash='up'] { animation: zsWlFlashUp 0.6s ease; }
.zsWlRow[data-flash='down'] { animation: zsWlFlashDown 0.6s ease; }

/* Empty / loading */
.zsWlEmpty {
  padding: 28px 16px;
  text-align: center;
  color: var(--zswl-text-2);
  font-size: 12px;
  line-height: 1.5;
}
.zsWlSkeleton { padding: 5px 10px; }
.zsWlSkRow {
  height: var(--zswl-row-h);
  border-radius: 4px;
  margin-bottom: 3px;
  background: linear-gradient(90deg, var(--zswl-elev) 25%, var(--zswl-elev-strong) 37%, var(--zswl-elev) 63%);
  background-size: 400% 100%;
  animation: zsWlShimmer 1.2s ease-in-out infinite;
}
@keyframes zsWlShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* ── Details — slim TV strip (supporting panel only) ───────────────────── */
.zsWlDetails {
  padding: 6px var(--zswl-grid-pad-x) 7px;
}

.zsWlDetHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--zswl-divider);
}

.zsWlDetTitle {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.zsWlDetSym {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--zswl-text);
  line-height: 1.1;
}

.zsWlDetName {
  font-size: 10px;
  font-weight: 500;
  color: var(--zswl-name-muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.zsWlDetQuote {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 6px;
  flex: 0 0 auto;
}

.zsWlDetPrice {
  font-family: var(--zswl-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--zswl-text);
}

.zsWlDetChg,
.zsWlDetPct {
  font-family: var(--zswl-mono);
  font-size: 10px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  opacity: 1;
}

.zsWlNewsLine {
  margin: 5px 0 0;
  padding: 0;
  font-size: 9.5px;
  line-height: 1.35;
  color: var(--zswl-text-2);
  font-weight: 500;
  border: 0;
  background: transparent;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zsWlDetStats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 600;
  color: var(--zswl-text-2);
  line-height: 1.2;
}

.zsWlDetStat {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.zsWlDetStatSep {
  opacity: 0.45;
  user-select: none;
}

/* Details empty */
.zsWlDetEmpty {
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  color: var(--zswl-text-2);
  font-size: 11px;
  line-height: 1.5;
}

/* Backdrop (mobile) */
.zsWlBackdrop { display: none; }
@media (max-width: 767px) {
  .zsWlBackdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 38;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
  }
}

/* ── Add Symbol Modal (TradingView-style) ───────────────────────────────── */
.zsWlAddOverlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 20px 16px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.zsWlAddDialog {
  width: min(780px, 100%);
  height: clamp(560px, 78dvh, min(720px, calc(100dvh - 80px)));
  max-height: min(720px, calc(100dvh - 80px));
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: #131722;
  border-radius: 8px;
  border: 1px solid rgba(19, 23, 34, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

html:not(.light):not([data-theme='light']) .zsWlAddDialog {
  background: #1e222d;
  color: #d1d4dc;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.zsWlAddHeader {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
}

.zsWlAddTitle {
  margin: 0;
  flex: 0 0 auto;
  min-width: max-content;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #2962ff;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

html:not(.light):not([data-theme='light']) .zsWlAddTitle {
  color: #5b9cff;
}

.zsWlAddClose {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.72;
}

.zsWlAddClose:hover {
  opacity: 1;
  background: rgba(127, 127, 127, 0.12);
}

.zsWlAddSearchWrap {
  position: relative;
  padding: 0 16px;
}

.zsWlAddFilters {
  flex: 0 0 auto;
}

.zsWlAddTabsWrap {
  position: relative;
  padding: 0 16px;
}

.zsWlAddTabsWrap::before,
.zsWlAddTabsWrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 12px;
  width: 18px;
  pointer-events: none;
  z-index: 0;
}

.zsWlAddTabsWrap::before {
  inset-inline-start: 16px;
  background: linear-gradient(to left, transparent, #ffffff 85%);
}

.zsWlAddTabsWrap::after {
  inset-inline-end: 16px;
  background: linear-gradient(to right, transparent, #ffffff 85%);
}

html:not(.light):not([data-theme='light']) .zsWlAddTabsWrap::before {
  background: linear-gradient(to left, transparent, #1e222d 85%);
}

html:not(.light):not([data-theme='light']) .zsWlAddTabsWrap::after {
  background: linear-gradient(to right, transparent, #1e222d 85%);
}

.zsWlAddTabs {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.zsWlAddTabs::-webkit-scrollbar { display: none; }

.zsWlAddSearchIcon {
  position: absolute;
  top: 50%;
  inset-inline-end: 28px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #787b86;
  pointer-events: none;
}

.zsWlAddSearch {
  width: 100%;
  height: 40px;
  border: 1px solid #d1d4dc;
  border-radius: 8px;
  background: #ffffff;
  color: #131722;
  font-size: 14px;
  padding: 0 40px 0 12px;
  outline: none;
}

html:not(.light):not([data-theme='light']) .zsWlAddSearch {
  background: #131722;
  border-color: #363a45;
  color: #d1d4dc;
}

.zsWlAddSearch:focus {
  border-color: #2962ff;
  box-shadow: 0 0 0 1px rgba(41, 98, 255, 0.35);
}

.zsWlAddTab {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 16px;
  background: #f0f3fa;
  color: #131722;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  scroll-snap-align: start;
  pointer-events: auto;
  touch-action: manipulation;
}

html:not(.light):not([data-theme='light']) .zsWlAddTab {
  background: #2a2e39;
  color: #d1d4dc;
}

.zsWlAddTab[data-active='true'] {
  background: #131722;
  color: #ffffff;
}

html:not(.light):not([data-theme='light']) .zsWlAddTab[data-active='true'] {
  background: #f0f3fa;
  color: #131722;
}

.zsWlAddResults {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  border-top: 1px solid rgba(127, 127, 127, 0.18);
}

.zsWlAddResultBar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
  padding: 6px 16px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #787b86;
  border-bottom: 1px solid rgba(127, 127, 127, 0.1);
}

.zsWlAddResultBar[data-empty='true'] {
  visibility: hidden;
}

.zsWlAddResultHint {
  font-weight: 500;
  font-size: 10px;
  opacity: 0.85;
}

.zsWlAddEmptyState {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 240px;
  padding: 36px 24px 28px;
  color: #787b86;
}

.zsWlAddEmptyIcon {
  width: 28px;
  height: 28px;
  opacity: 0.45;
}

.zsWlAddEmptyTitle {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #131722;
}

html:not(.light):not([data-theme='light']) .zsWlAddEmptyTitle {
  color: #d1d4dc;
}

.zsWlAddEmptySub {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  max-width: 320px;
}

.zsWlAddEmptySub strong {
  color: #2962ff;
  font-weight: 700;
}

/* Compact empty — empty category tabs only */
.zsWlAddEmptyCompact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 240px;
  padding: 14px 16px;
  color: #787b86;
}

.zsWlAddEmptyCompactMsg {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #787b86;
}

.zsWlAddEmptyCompactBtn {
  flex: 0 0 auto;
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(127, 127, 127, 0.22);
  border-radius: 4px;
  background: transparent;
  color: #2962ff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.zsWlAddEmptyCompactBtn:hover {
  background: rgba(41, 98, 255, 0.06);
  border-color: rgba(41, 98, 255, 0.28);
}

html:not(.light):not([data-theme='light']) .zsWlAddEmptyCompactBtn {
  color: #5b9cff;
  border-color: rgba(255, 255, 255, 0.12);
}

.zsWlAddRecent {
  border-bottom: 1px solid rgba(127, 127, 127, 0.14);
}

.zsWlAddRecentTitle {
  padding: 8px 16px 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #787b86;
}

.zsWlAddEmpty {
  padding: 28px 16px;
  text-align: center;
  color: #787b86;
  font-size: 13px;
}

.zsWlAddRow {
  display: grid;
  direction: ltr;
  /* LTR: Action | Source | Name | Symbol */
  grid-template-columns: 40px 140px minmax(220px, 1fr) 150px;
  align-items: center;
  column-gap: 12px;
  min-height: 50px;
  height: 50px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(127, 127, 127, 0.085);
  transition: background 0.12s ease;
  cursor: default;
}

.zsWlAddRow:hover {
  background: rgba(41, 98, 255, 0.05);
}

.zsWlAddRow[data-active='true'] {
  background: rgba(41, 98, 255, 0.07);
}

html:not(.light):not([data-theme='light']) .zsWlAddRow:hover {
  background: rgba(91, 156, 255, 0.06);
}

html:not(.light):not([data-theme='light']) .zsWlAddRow[data-active='true'] {
  background: rgba(91, 156, 255, 0.09);
}

/* LTR column 4 — symbol text + icon (TradingView right edge) */
.zsWlAddRowSymbolCol {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  height: 24px;
  direction: ltr;
  unicode-bidi: isolate;
  justify-self: end;
  overflow: hidden;
}

.zsWlAddRowSymbolCol .zsWlAddRowIcon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zsWlAddRowAction {
  width: 40px;
  height: 40px;
  min-width: 40px;
  max-width: 40px;
  flex: 0 0 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0;
  justify-self: start;
  flex-shrink: 0;
}

.zsWlAddRowAction[data-in-list='false'] {
  color: #787b86;
}

.zsWlAddRow:hover .zsWlAddRowAction[data-in-list='false'],
.zsWlAddRow[data-active='true'] .zsWlAddRowAction[data-in-list='false'] {
  color: #2962ff;
}

.zsWlAddRowAction[data-in-list='false']:hover {
  background: transparent;
}

.zsWlAddRowAction[data-in-list='true'] {
  color: #089981;
  cursor: pointer;
}

.zsWlAddRowRemove {
  display: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  flex-shrink: 0;
}

.zsWlAddRow:hover .zsWlAddRowAction[data-in-list='true'],
.zsWlAddRow[data-active='true'] .zsWlAddRowAction[data-in-list='true'] {
  color: #f23645;
}

.zsWlAddRow:hover .zsWlAddRowAction[data-in-list='true'] .zsWlAddRowCheck,
.zsWlAddRow[data-active='true'] .zsWlAddRowAction[data-in-list='true'] .zsWlAddRowCheck {
  display: none;
}

.zsWlAddRow:hover .zsWlAddRowAction[data-in-list='true'] .zsWlAddRowRemove,
.zsWlAddRow[data-active='true'] .zsWlAddRowAction[data-in-list='true'] .zsWlAddRowRemove {
  display: block;
}

.zsWlAddRowPlus,
.zsWlAddRowCheck {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  flex-shrink: 0;
}

/* Modal — stock/crypto logos */
.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='stock'] .zsWlAssetIcon,
.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='crypto'] .zsWlAssetIcon {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  flex: 0 0 24px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: none;
  background: transparent;
}

.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='stock'] .zsWlAssetIconImg,
.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='crypto'] .zsWlAssetIconImg {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px;
  max-height: 22px;
  object-fit: contain;
  padding: 0;
  margin: auto;
  display: block;
  box-shadow: none;
}

/* Modal — forex badges: horizontal pair label (Add Symbol only) */
.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='forex'] .zsWlAddRowIcon,
.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='forex'] .zsWlAssetIcon {
  width: 48px !important;
  height: 22px !important;
  min-width: 48px !important;
  min-height: 22px !important;
  max-width: 48px;
  max-height: 22px;
  flex: 0 0 48px;
}

.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='forex'] .zsWlAssetBadge[data-tone='forex'] {
  width: 48px;
  height: 22px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 6px;
  font-family: var(--zswl-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  padding: 0 3px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='forex'] .zsWlAssetBadgeLine {
  display: inline;
  font-size: inherit;
  line-height: 1;
}

/* Modal — commodity badges: 24×24 */
.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='commodity'] .zsWlAssetIcon {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  flex: 0 0 24px;
}

/* Modal — index badges (Add Symbol only) */
.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='index'] .zsWlAssetIcon {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  flex: 0 0 24px;
}

.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='index'] .zsWlAssetBadge[data-badge-family='index'] {
  width: 24px;
  height: 24px;
  font-size: 8.5px;
  font-weight: 800;
  line-height: 1;
  border-radius: 5px;
  padding: 0 1px;
  letter-spacing: -0.03em;
}

.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='index'] .zsWlAssetBadge[data-tone='dji'],
.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='index'] .zsWlAssetBadge[data-tone='nikkei'] {
  font-size: 10px;
  letter-spacing: -0.02em;
}

.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='index'] .zsWlAssetBadge[data-tone='spx'],
.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='index'] .zsWlAssetBadge[data-tone='ndq'],
.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='index'] .zsWlAssetBadge[data-tone='vix'],
.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='index'] .zsWlAssetBadge[data-tone='dxy'],
.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='index'] .zsWlAssetBadge[data-tone='dax'],
.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='index'] .zsWlAssetBadge[data-tone='rut'] {
  font-size: 8.5px;
}

/* UK100 — slightly wider badge, same row height */
.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='index'] .zsWlAssetIcon:has(.zsWlAssetBadge[data-tone='ftse']) {
  width: 24px !important;
  min-width: 24px !important;
  flex: 0 0 24px;
}

.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='index'] .zsWlAssetBadge[data-tone='ftse'] {
  width: 24px;
  height: 24px;
  font-size: 7px;
  letter-spacing: -0.05em;
}

.zsWlAddDialog .zsWlAddRowSymbolCol .zsWlAssetBadge {
  width: 24px;
  height: 24px;
}

/* Modal — premium commodity badges */
.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='commodity'] .zsWlAssetBadge[data-badge-family='commodity'] {
  width: 24px;
  height: 24px;
  font-size: 7px;
  font-weight: 800;
  border-radius: 5px;
  border-width: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='commodity'] .zsWlAssetBadge[data-tone='gold'] {
  background: linear-gradient(145deg, #ffe082 0%, #ffb300 48%, #f9a825 100%);
  color: #1a1200;
  border-color: rgba(255, 213, 79, 0.65);
}

.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='commodity'] .zsWlAssetBadge[data-tone='silver'] {
  background: linear-gradient(145deg, #b0bec5 0%, #78909c 52%, #546e7a 100%);
  color: #ffffff;
  border-color: rgba(207, 216, 220, 0.55);
}

.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='commodity'] .zsWlAssetBadge[data-tone='oil'] {
  background: linear-gradient(145deg, #424242 0%, #1a1a1a 55%, #0a0a0a 100%);
  color: #ffb74d;
  border-color: rgba(255, 152, 0, 0.45);
}

.zsWlAddDialog .zsWlAddRowSymbolCol[data-kind='commodity'] .zsWlAssetBadge[data-tone='natgas'] {
  background: linear-gradient(145deg, #26c6da 0%, #00838f 55%, #006064 100%);
  color: #e0f7fa;
  border-color: rgba(128, 222, 234, 0.45);
}

/* LTR column 2 — source badge + type (secondary) */
.zsWlAddRowSource {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  max-width: 140px;
  overflow: hidden;
  text-align: left;
}

.zsWlAddSourceBadge {
  display: block;
  max-width: 100%;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  color: #787b86;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html:not(.light):not([data-theme='light']) .zsWlAddSourceBadge {
  color: #8b909a;
}

.zsWlAddSourceType {
  font-size: 10px;
  font-weight: 450;
  line-height: 1.15;
  color: #787b86;
  opacity: 0.65;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zsWlAddRowName {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.zsWlAddRowNamePrimary {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
  color: #0a0e17;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  direction: auto;
  unicode-bidi: plaintext;
  max-width: 100%;
  width: 100%;
}

.zsWlAddRowNameSecondary {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.1;
  color: #787b86;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  direction: ltr;
  max-width: 100%;
  width: 100%;
}

html:not(.light):not([data-theme='light']) .zsWlAddRowNamePrimary {
  color: #ffffff;
}

html:not(.light):not([data-theme='light']) .zsWlAddRowNameSecondary {
  color: #787b86;
}

/* Arabic asset names — institutional weight (Add Symbol Modal, presentation only) */
.zsWlAddRowName[data-locale='ar'] .zsWlAddRowNamePrimary {
  font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.2;
  font-feature-settings: 'liga' 1, 'calt' 1, 'kern' 1;
  font-variant-ligatures: common-ligatures contextual;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


.zsWlAddRowSymbol {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: #131722;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
  flex: 0 1 auto;
  min-width: 0;
  text-align: right;
}

html:not(.light):not([data-theme='light']) .zsWlAddRowSymbol {
  color: #d1d4dc;
}

.zsWlAddFooter {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 16px 8px;
  border-top: 1px solid rgba(127, 127, 127, 0.08);
  color: #787b86;
  font-size: 9px;
  line-height: 1.25;
  opacity: 0.45;
}

@media (max-height: 680px) {
  .zsWlAddFooter {
    display: none;
  }
}

.zsWlAddToast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  padding: 10px 16px;
  border-radius: 8px;
  background: #131722;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

html.light .zsWlAddToast,
html[data-theme='light'] .zsWlAddToast {
  background: #131722;
  color: #ffffff;
}

@media (max-width: 767px) {
  .zsWlAddDialog {
    width: 100%;
    height: min(88dvh, 680px);
    max-height: min(88dvh, 680px);
    border-radius: 10px 10px 0 0;
    align-self: end;
  }

  .zsWlAddOverlay {
    place-items: end center;
    padding: 0 8px;
  }

  .zsWlAddTabsWrap {
    padding: 0 12px;
  }

  .zsWlAddTabsWrap::before {
    inset-inline-start: 12px;
    width: 14px;
  }

  .zsWlAddTabsWrap::after {
    inset-inline-end: 12px;
    width: 14px;
  }

  .zsWlAddTab {
    height: 30px;
    padding: 0 14px;
    font-size: 11px;
  }

  .zsWlAddResultBar {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .zsWlAddRow {
    grid-template-columns: 40px 112px minmax(140px, 1fr) 128px;
    column-gap: 10px;
    min-height: 48px;
    height: 48px;
    padding-inline: 12px;
  }

  .zsWlAddRowSymbolCol {
    width: 128px;
    min-width: 128px;
    max-width: 128px;
  }

  .zsWlAddRowSource {
    max-width: 112px;
  }
}

