/* /opt/05ScanTickers/public/assets/tradescanner.css */
/*
 * STRUCTURE
 * 01 Tokens/reset
 * 02 Desktop layout and chart grid
 * 03 Sidebar, controls, pager, search
 * 04 Watchlist rows and grouping
 * 05 Recents, inspect, overlays
 * 06 Mobile layout and bottom sheet
 * 07 Compact chart modes
 * 08 Brand blocks
 */


/* =========================
   TOKENS + RESET
   ========================= */
   
   :root{
  --sideW:340px;

  --tileAR:780 / 445;
  --wrapAR:1560 / 890;

  --gap:6px;
  --pad:6px;

  --bg:#f3f4f6;
  --panel:#ffffff;
  --panel2:#f8fafc;

  --ink:#0f172a;
  --muted:rgba(15,23,42,.65);
  --line:rgba(15,23,42,.10);
  --line2:rgba(15,23,42,.14);

  --font:"Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-0:10.5px;
  --fs-1:12px;
  --fs-2:11.5px;
  --fs-3:12px;

--brand-accent:#ff1e00;
--brand-accent-hover:#e11d00;
--brand-accent-soft:rgba(255,30,0,.07);
--brand-accent-soft-2:rgba(255,30,0,.12);
--brand-accent-border:rgba(255,30,0,.22);
--brand-accent-border-strong:rgba(255,30,0,.45);
--brand-accent-shadow:rgba(255,30,0,.18);

  --accent:var(--brand-accent);

  --market-green:#0a7a2f;
  --market-red:#b42318;

  --ctaDark:#475569;
  --ctaDarkBorder:rgba(2,6,23,.22);
}



*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: "Nunito Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}



html, body{
  font-family: var(--font);
  font-size: var(--fs-2);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

button, input, select, textarea{
  font-family: var(--font) !important;
  font-size: inherit;
}

/* mounted template fills viewport */
#appShell{ min-height:100%; }

/* =========================
   LAYOUT (DESKTOP >=1000px)
   - charts left: fluid
   - sidebar right: fixed 340px
   ========================= */
   
   
/* If desktop viewport is narrow, force 1 column for tiles */
@media (min-width: 1000px) and (max-width: 1250px){
  .grid{ grid-template-columns: 1fr !important; }
}


@media (min-width: 1000px){
  body{ overflow:hidden; }

  .layout.layout--desk{
    position: fixed;
    inset: 0;
    display: flex;
    overflow: hidden;
    background: var(--bg);
  }

  .wrap{
    flex: 1 1 auto;
    height: 100%;
    overflow: auto;
    padding: var(--pad);
    scrollbar-gutter: stable both-edges;
    overscroll-behavior: contain;
  }

  .side{
    width: var(--sideW);
    flex: 0 0 var(--sideW);
    height: 100%;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--line);
    background: var(--panel2);
    overflow: hidden;
  }
.side{
  font-size: var(--fs-1);
  line-height: 1.2;
}




  .watchBody{
    flex: 1 1 auto;
    overflow: auto;
    padding-right: 6px;
    scrollbar-gutter: stable both-edges;
    overscroll-behavior: contain;
  }




/* =========================
   CHART GRID
   - scales to available width
   - stable height via aspect-ratio (no ugly whitespace jumps)
   ========================= */
.grid{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  align-content: start;
}

/* WRAP views: 1 column, wrap aspect ratio */
body[data-view^="wrap"] .grid{
  grid-template-columns: 1fr;
}

.card{
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;

  /* perf: skip offscreen paint */
  content-visibility: auto;
  contain-intrinsic-size: 445px 780px;

  /* default tile ratio */
  aspect-ratio: var(--tileAR);
}
body[data-view^="wrap"] .card{
  aspect-ratio: var(--wrapAR);
  contain-intrinsic-size: 890px 1560px;
}

.card img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
}

/* safety: if JS ever injects a bottom pager host, kill it */
#tsBottomPager{ display:none !important; }

/* =========================
   SIDEBAR HEADER (desktop)
   ========================= */
.sideBrand{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.tsbrand{
  display:flex;
  align-items:center;
  gap: 8px;
  min-width: 0;
}
.tsbrand-logo{
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--brand-accent);
  color: #fff;
  display:grid;
  place-items:center;
  font-weight: 900;
  font-size: 16px;
  flex: 0 0 auto;
}

.brandText{
  display:flex;
  flex-direction:column;
  gap: 6px;
  min-width: 0;
}
.brandRow1{
  display:flex;
  align-items:baseline;
  gap: 6px;
  min-width: 0;
}
.tsbrand-home{
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .2px;
  white-space: nowrap;
}
.tsbrand-presented-inline{
  color: var(--muted);
  text-decoration: none;
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
}
.tsbrand-tagline{
  color: rgba(15,23,42,.55);
  font-weight: 900;
  font-size: 12px;
  white-space: normal;
  overflow: hidden;
  text-overflow: unset;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.2;
  max-height: 2.4em;
}

.tsbrand-home{ font-size: 14px; }
.tsbrand-presented-inline{ font-size: var(--fs-0); }
.tsbrand-tagline{ font-size: var(--fs-0); }




.sideAuth{
  display:flex;
  align-items:center;
  gap: 6px;
  flex: 0 0 auto;
}

/* selects in sidebar */
.deskControls{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 6px 0 8px;
  align-items: center;
}

.mCtl--desk{
  width: 100%;
}
.mSel{
  width: 100%;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--line2);
  background: #fff;
  padding: 0 9px;
  font-weight: 900;
  font-size: 12px;
  color: var(--ink);
}


/* search */
.topSearch{
  display:flex;
  align-items:center;
  gap: 6px;
  width: 100%;
  margin-top: 6px;
}
.topSearchInput{
  flex: 1 1 auto;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--line2);
  padding: 0 9px;
  font-weight: 900;
  font-size: 12px;
  outline: none;
}


.topSearchBtn{
  height: 30px;
  border-radius: 6px;
border: 1px solid var(--brand-accent-border-strong);
  background: var(--brand-accent);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  padding: 0 10px;
  cursor: pointer;
}

.topSearchBtn:active{ transform: translateY(1px); }

/* suggestions */
.suggestBox{
  position: absolute;
  width: calc(100% - 20px);
  max-width: 320px;
  margin-top: 6px;
  background: #fff;
  border: 1px solid var(--line2);
  border-radius: 6px;
  padding: 6px;
  box-shadow: 0 12px 40px rgba(2,6,23,.14);
  z-index: 9999;
}

/* header pager (this is the ONLY pager you want visible) */
.pagerHdr{
  display:flex;
  align-items:center;
  gap: 6px;
  width: 100%;
  margin-top: 6px;
  padding-top: 0;
  border-top: 0;
}


.pgBtn{
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
}

.pgBtn:disabled{
  opacity: .45;
  cursor: not-allowed;
}

.pageNums{
  flex: 1 1 auto;
  display:flex;
  gap: 6px;
  align-items:center;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.pageNums::-webkit-scrollbar{ display:none; }

.pageNums button,
.pageNums a{
  height: 30px;
  min-width: 30px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--line2);
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}
.pageNums [aria-current="page"],
.pageNums .active,
.pageNums .isActive{
  color: var(--brand-accent);
border-color: var(--brand-accent-border-strong);
box-shadow: inset 0 -2px 0 var(--brand-accent);
}

/* IMPORTANT: tradescanner.js injects a pager host into #tsCounts (tsSidePager).
   Hide it so you don't get duplicates. */
#tsSidePager{ display:none !important; }
/* JS likely renders Prev/Next inside #pageNums already */

/* icons row */
.sideLinks{
  display:flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* icon buttons */
.iconBtnDark{
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--line2);
  background: #fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: var(--ink);
  text-decoration:none;
  cursor:pointer;
}


/* =========================
   WATCHLIST (desktop + mobile)
   ========================= */
.watchHead{
  display:grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.watchCount{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  border-radius: 6px;
  font-weight: 900;
  font-size: 12px;
  color: rgba(15,23,42,.75);
}

.watchToolsBar{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.toolSel{ font-size: var(--fs-1); height: 28px; border-radius: 6px; }


.toolSel{
  width: 100%;
  height: 30px;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid var(--line2);
  background: #fff;
  padding: 0 10px;
  font-weight: 900;
  color: var(--ink);
}

.watchResetLink{
  width: 100%;
  height: 30px;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.85);
  color: rgba(15,23,42,.78);
  font-weight: 900;
  cursor: pointer;
}

/* =========================
   WATCHLIST ROWS (matches tradescanner.js DOM)
   ========================= */

#wachlist, #watchlist { /* safety if typo ever happens */
  width: 100%;
}

/* group header */
.wgrp{
  font-weight: 900;
  letter-spacing: .25px;
  font-size: 12px;
  color: rgba(15,23,42,.55);
  padding: 10px 8px 6px;
  border-top: 1px solid rgba(15,23,42,.10);
}

/* row = 3 columns: ticker | price | chg% */
.wrow{
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;

  padding: 5px 8px; /* ~45% tighter */
  border-top: 1px solid rgba(15,23,42,.07);
  cursor: pointer;
  user-select: none;
}
.wgrp{ padding: 8px 8px 4px; }

.wrow:hover{ background: rgba(15,23,42,.04); }

.wrow.active{
  background: var(--brand-accent-soft);
  outline: 1px solid var(--brand-accent-border);
  outline-offset: -1px;
}

/* ticker cell */
.wtk{
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 70px;

}

.wtkMain{
  font-weight: 900;
  font-size: 12px;
  color: rgba(15,23,42,.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* price cell */
.wpx{
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;

  font-weight: 900;
  font-size: 12px;
  color: rgba(15,23,42,.70);
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 50px;
}

/* delayed dot */
.wdelayDot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(15,23,42,.22);
  display: inline-block;
}

/* change cell */
.wchg{
  font-weight: 900;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 50px;
}

.wpos{ color:var(--market-green); }
.wneg{ color:var(--market-red); }
.wflat{ color: rgba(15,23,42,.55); }

/* Optional: WL context bar created by JS */
.wlContextBar{
  display:flex;
  justify-content:space-between;
  gap: 8px;

  padding: 8px 10px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.85);
  border-radius: 6px;

  font-weight: 900;
  font-size: 12px;
  color: rgba(15,23,42,.70);
}

.wlContextSeg{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wlContextTick{
  font-weight: 900;
  color: rgba(15,23,42,.92);
  white-space: nowrap;
}


/* counts + pager on one row */
.watchCount{ padding: 6px 8px; }  /* tighter */

.pagerHdr{
  margin-top: 0;            /* prevent extra vertical space */
}

/* place counts + pager together */
.watchHead .watchCount{
  grid-row: 3;
}

.watchHead .pagerHdr{
  grid-row: 3;
}

/* actual two-column row: counts left, pager right */
.watchHead{
  grid-template-columns: 1fr;
}

.watchHead{
  grid-auto-flow: row;
}

/* create the combined row layout */
.watchHead .watchCount,
.watchHead .pagerHdr{
  display:flex;
  align-items:center;
}



/* =========================
   SEARCH PANEL (modal)
   ========================= */
.searchPanel{
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  flex-direction: column;
  background: rgba(2,6,23,.88);
  padding: 14px;
}
.searchPanel[hidden]{ display:none; }

.searchPanelHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px;
}
.searchPanelTitle{
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.searchPanelHint{
  font-size: 12px;
  font-weight: 900;
  color: rgba(15,23,42,.60);
}
.searchCloseBtn{
  height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--line2);
  background:#fff;
  font-weight: 900;
  cursor:pointer;
}

.searchGrid{
  margin-top: 12px;
  flex: 1 1 auto;
  border-radius: 6px;
  overflow: hidden;
}



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

.wlTopRow .watchCount{
  flex: 0 0 auto;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 6px;
}

.wlTopRow .pagerHdr{
  flex: 1 1 auto;
  justify-content: flex-end;
}
.watchToolsBar{ gap: 6px; }
.toolSel{ height: 28px; padding: 0 8px; font-size: 12px; border-radius: 6px; }
.watchResetLink{ height: 28px; font-size: 12px; border-radius: 6px; }

/* --- Compact filter area --- */
.watchTools{
  padding: 0;
  margin: 0;
}

.watchToolsBar{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;              /* tighter */
  margin: 0;
}

.toolSel{
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

/* default/reset button: make it look like a small pill row, not a huge banner */
.watchResetLink{
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wlTopRow{
  display:flex;
  align-items:center;
  gap: 6px;
  margin-top: 6px;
}

.wlTopRow .watchCount{
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.wlTopRow .pagerHdr{
  flex: 1 1 auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

/* keep P1/3 compact */
.pgBtn{
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.pageNums{
  display:flex;
  align-items:center;
  gap: 6px;
  overflow: hidden;        /* prevents growing */
  padding: 2px;
}

.pageNums button,
.pageNums a{
  height: 26px;
  min-width: 26px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}
.watchHead{
  display:flex;
  flex-direction:column;
  gap: 6px;
  margin-bottom: 8px;
}
.toolSel{
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
/* --- Sidebar: 5 sections --- */
.side{
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

/* consistent section styling */
.sideSec{
  padding: 16px;
  border-bottom: 0px solid rgba(15,23,42,.08);
  background: var(--panel2);
}

/* section 1: brand + icons */
.sideSec--brand{ padding-bottom: 6px; }
.sideLinks--oneRow{
  display:flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding-top: 6px;
  scrollbar-width: none;
}
.sideLinks--oneRow::-webkit-scrollbar{ display:none; }

/* section 2: selectors + search */
.sideSec--controls{ padding-top: 6px; }

/* keep selectors in one row */
.deskControls{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 6px;
}

/* search tight */
.topSearch{ margin-top: 0; }

/* section 3: filters */
.sideSec--filters{ padding-top: 6px; padding-bottom: 6px; }
.watchToolsBar{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.toolSel{ height: 26px; border-radius: 6px; padding: 0 8px; font-size: 12px; font-weight: 900; }
.watchResetLink{
  margin-top: 6px;
  height: 26px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* section 4: counts + pager */
.sideSec--status{ padding-top: 6px; padding-bottom: 6px; }
.wlTopRow{
  display:flex;
  align-items:center;
  gap: 6px;
}
.watchCount{
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}
.pagerHdr{
  flex: 1 1 auto;
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 6px;
  margin: 6px;
  padding: 6px;
  border: 1px;
}
.pgBtn{ height: 26px; padding: 0 9px; font-size: 12px; font-weight: 900; }
.pageNums button, .pageNums a{ height: 26px; min-width: 26px; padding: 0 8px; font-size: 12px; font-weight: 900; border-radius: 6px; }

/* section 5: watchlist scroll fills remaining height */
.sideSec--watchlist{
  flex: 1 1 auto;
  padding: 2px;                 /* let watchBody manage padding */
  border-bottom: 0;
  background: #fff;
  overflow: hidden;
}
.sideSec--watchlist .watchBody{
  height: 100%;
  overflow: auto;
  padding: 8px;
  scrollbar-gutter: stable both-edges;
}




  /* 1) Equidistant 5 sidebar sections */
  .side{
    gap: 4px !important;          /* equidistant spacing */
    padding: 8px !important;      /* outer breathing room */
    background: var(--panel2) !important;
  }

  .sideSec{
    margin: 0 !important;         /* kill any old margin-bottom rules */
    padding: 12px !important;     /* consistent inner spacing */
    background: #fff !important;  /* consistent card look */
    border: 1px solid rgba(15,23,42,.08) !important;
    border-radius: 8px !important;
  }

  /* Watchlist section should fill remaining height */
  .sideSec--watchlist{
    flex: 1 1 auto !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  .sideSec--watchlist .watchBody{
    height: 100% !important;
    padding: 10px !important;
    overflow: auto !important;
  }

  /* 2) Remove borders below symbols (rows + group headers) */
  .wrow,
  .wgrp{
    border-top: 0 !important;
  }

  /* 3) Separator between AUTH icons and OTHER icons */
  .sideAuth{
    padding-right: 10px !important;
    margin-right: 10px !important;
    border-right: 1px solid rgba(15,23,42,.14) !important;
  }

  /* Make brand row align nicer (logo + text + auth) */
  .sideBrand{
    align-items: center !important;
    margin-bottom: 10px !important;
  }

  /* 4) Gray background for search + dropdowns */
  .mSel,
  .toolSel,
  .topSearchInput{
    background: #eef2f7 !important;
    border-color: rgba(15,23,42,.14) !important;
  }

  /* Keep Search button red (don’t gray it out) */
  .topSearchBtn{
  background: var(--brand-accent);
border-color: var(--brand-accent-border-strong);

    color: #fff !important;
  }

  /* Optional: gray background for search container */
  .topSearch{
    padding: 6px !important;
    border-radius: 10px !important;
    background: #f3f4f6 !important;
    border: 1px solid rgba(15,23,42,.08) !important;
  }

  /* Pager row: keep clean + centered label */
  .sideSec--status .pagerHdr{
    width: 100% !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  .sideSec--status #pageNums{
    justify-self: center !important;
    text-align: center !important;
    white-space: nowrap !important;
  }



/* Search lives in the brand/nav section now */
.sideSec--brand .topSearch{
  margin-top: 8px;
  padding: 8px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* Make input/select-like background (subtle grey) */
.sideSec--brand .topSearchInput,
.sideSec--brand .mSel,
.sideSec--brand .toolSel{
  background: var(--panel2);
}

/* Keep the suggestion box anchored properly */
.sideSec--brand{ position: relative; }
.sideSec--brand .suggestBox{
  left: 8px;
  right: 8px;
  width: auto;
  max-width: none;
}



  /* consistent outer rhythm */
  .side{
    padding: 8px !important;
    gap: 8px !important;              /* uniform spacing between the 3 sections */
    background: var(--panel2) !important;
  }

  .sideSec{
    padding: 10px !important;         /* consistent internal padding */
    border: 1px solid rgba(15,23,42,.08) !important;
    border-radius: 10px !important;
    background: #fff !important;
  }

  /* remove any “extra wrapper/panel” feel around search */
  .sideSec--brand .topSearch{
    margin-top: 8px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .sideSec--brand .topSearchInput{
    background: var(--panel2) !important;          /* light grey input */
    border-color: rgba(15,23,42,.12) !important;
  }

  /* give dropdowns the same light grey feel */
  .mSel,
  .toolSel{
    background: var(--panel2) !important;
    border-color: rgba(15,23,42,.12) !important;
  }

  /* make spacing between controls uniform */
  .sideSec--controls{
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;             /* consistent spacing between blocks */
  }
  .deskControls{ margin: 0 !important; }
  .watchTools{ margin: 0 !important; }

  .watchToolsBar{
    gap: 8px !important;
  }

  /* Reset button: style like Search (red CTA) */
  .watchResetLink{
    height: 30px !important;
    border-radius: 10px !important;
border: 1px solid var(--brand-accent-border-strong);
  background: var(--brand-accent) !important;
  color: #fff !important;
    font-weight: 900 !important;
    cursor: pointer !important;
  }
  .watchResetLink:active{ transform: translateY(1px); }

  /* WATCHLIST: kill separators/borders under symbols */
  .wrow{ border-top: 0 !important; }
  .wgrp{ border-top: 0 !important; }

  /* ===== Status row: Showing (left) + Pager (right) ===== */
  .wlStatusBar{
    display:flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-top: 2px !important;
  }

  /* Showing: plain text, no pill */
  #tsCounts.watchCount{
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    white-space: nowrap !important;
  }

  /* Pager aligned right, compact */
  .pagerHdr{
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  /* ensure external Prev/Next are visible (and clickable) */
  #prevB, #nextB{
    display:inline-flex !important;
  }

  /* page label "Page x of y" should NOT behave like a scrolling row of buttons */
  #pageNums.pageNums{
    flex: 0 0 auto !important;
    overflow: visible !important;
    padding: 0 !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  /* if JS injects page-number buttons, keep them from looking huge */
  #pageNums button, #pageNums a{
    height: 24px !important;
    min-width: 24px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    background: #fff !important;
  }


  /* --- 1) Buttons: Search + Reset dark grey --- */


  .topSearchBtn{
  background: var(--brand-accent);
    border-color: var(--ctaDarkBorder) !important;
    color: #fff !important;
  }

.watchResetLink{
  background: var(--brand-accent) !important;
  border-color: var(--brand-accent-border-strong) !important;
  color: #fff !important;
}

  /* optional: subtle hover */
  .topSearchBtn:hover,
  .watchResetLink:hover{
    filter: brightness(.96);
  }

  /* --- 2) Watchlist: reduce left padding/indent --- */
  .sideSec--watchlist .watchBody{
    padding: 4px 6px 6px 4px !important;  /* tighter on the left */
  }

  .wgrp{
    padding-left: 4px !important;
    padding-right: 6px !important;
  }

  .wrow{
    padding-left: 4px !important;
    padding-right: 6px !important;
  }

  /* also reduce the "ticker cell" internal gap */
  .wtk{ gap: 4px !important; }

  /* --- 3) Pager: align Prev / label / Next vertically --- */
  .pagerHdr{
    align-items: center !important;
    gap: 8px !important;
    min-height: 28px !important;
  }

  .pgBtn{
    height: 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 10px !important;
    line-height: 1 !important;
  }

  /* if page label is a pill/div/text, center it vertically too */
  #pageNums{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 26px !important;
    line-height: 1 !important;
  }


  /* --- HEADER: make icon row + divider + search spacing consistent --- */

  /* treat the nav/icon strip as a single tight row */
  .sideLinks.sideLinks--oneRow{
    display:flex !important;
    align-items:center !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    padding: 6px 0 0 !important;
    margin: 0 !important;
  }

  /* auth group shouldn't create weird extra whitespace */
  .sideLinks .sideAuth{
    display:flex !important;
    align-items:center !important;
    gap: 6px !important;
    margin: 0 6px 0 0 !important;   /* small breathing room before other icons */
    padding: 0 !important;
  }

  /* consistent divider under icon row (this fixes the “gap difference”) */
  .sideSec--brand .sideLinks--oneRow{
    padding-bottom: 8px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid rgba(15,23,42,.12) !important;
  }

  /* search sits right after nav with same rhythm */
  .sideSec--brand .topSearch{
    margin-top: 0 !important;
  }

  /* --- PAGER: make Page X of Y look like a clean pill and align with buttons --- */

  .pagerHdr{
    display:flex !important;
    align-items:center !important;
    gap: 8px !important;
  }

  .pagerHdr .pgBtn{
    height: 26px !important;
    padding: 0 4px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    line-height: 1 !important;
  }

  /* The "Page 1 of 5" label is inside #pageNums now (as text). Style it as a pill. */
  #pageNums{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    height: 26px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(15,23,42,.14) !important;
    background: #fff !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    color: rgba(15,23,42,.78) !important;
    white-space: nowrap !important;
  }

  /* If JS also injects buttons into #pageNums, keep them compact and aligned */
  #pageNums button,
  #pageNums a{
    height: 24px !important;
    min-width: 24px !important;
    padding: 0 8px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    line-height: 1 !important;
  }

  #pageNums{
    min-width: 80px !important;   /* try 120–150 */
    padding: 0 6px !important;    /* more breathing room */
  }

  /* If you want it even longer and perfectly consistent across pages */
  /* #pageNums{ min-width: 140px !important; } */


/* ===== Recent tickers row: never overflow sidebar ===== */
.recentBar{
  margin-top: 8px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;            /* hard stop */
  box-sizing: border-box;
}

.recentRow{
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;            /* hard stop */
  flex-wrap: nowrap;           /* single line */
  box-sizing: border-box;
}

.recentLbl{
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 12px;
  opacity: .75;
}

.recentSlots{
  flex: 1 1 auto;
  min-width: 0;                /* KEY for flex shrink */
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;           /* keep chips on one line */
  overflow: hidden;            /* clip chips instead of pushing sidebar */
  box-sizing: border-box;
}

.recentChip{
  flex: 0 0 auto;
  border: 1px solid rgba(148,163,184,.35);
  background: rgba(15,23,42,.04);
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  max-width: 76px;             /* keep them compact */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recentMore{
  flex: 0 0 auto;
  margin-left: 0;              /* do NOT push row */
  border: 1px solid rgba(148,163,184,.35);
  background: rgba(15,23,42,.04);
  border-radius: 10px;
  padding: 4px 8px;
  font-weight: 900;
  cursor: pointer;
}

.recentPopClose{
  border: 0;
  background: transparent;     /* ✅ no pill bg */
  padding: 0;                  /* ✅ no extra size */
  cursor: pointer;
  font-weight: 900;
  font-size: 12px;             /* ✅ smaller */
  line-height: 1;
  opacity: .65;
}

.recentPopClose:hover{
  opacity: .95;
}
.recentPop{
  position: fixed;
  z-index: 2600;

  width: 360px;               /* ✅ consistent panel width */
  max-width: calc(100vw - 24px);
  max-height: 70vh;
  overflow: auto;

  background: #ffffff;        /* ✅ solid panel */
  border: 1px solid rgba(15,23,42,.14);
  box-shadow: 0 10px 28px rgba(2,6,23,.18);
  border-radius: 14px;

  padding: 12px;
}

.recentPopHead{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(15,23,42,.08); /* ✅ panel feel */
}

.recentPopTitle{
  font-weight: 900;
  font-size: 12px;
  opacity: .8;
}

.recentPopList{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#recentPop .recentChip{
  background: rgba(15,23,42,.04);
  border-color: rgba(148,163,184,.45);
  padding: 6px 10px;
  max-width: none;            /* let popup chips show full ticker */
}

/* ===== Recent row (no overflow) ===== */
.recentBar{
  margin-top: 8px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.recentRow{
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  flex-wrap: nowrap;
  box-sizing: border-box;
}

.recentOpen{
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  padding: 0;
  font-weight: 900;
  font-size: 12px;
  opacity: .75;
  cursor: pointer;
}

.recentOpen:hover{ opacity: .95; }

.recentSlots{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 6px;
  overflow: hidden;
  flex-wrap: nowrap;
}

.recentChip{
  flex: 0 0 auto;
  border: 1px solid rgba(148,163,184,.35);
  background: rgba(15,23,42,.04);
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  user-select: none;

  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Popup: vertical, clamped ===== */
.recentPop{
  position: fixed;
  z-index: 2600;

  width: 280px;                 /* fits sidebar */
  max-width: calc(100vw - 16px);
  max-height: 70vh;
  overflow: auto;

  background: #fff;
  border: 1px solid rgba(15,23,42,.14);
  box-shadow: 0 10px 28px rgba(2,6,23,.18);
  border-radius: 14px;
  padding: 10px;
}

.recentPopHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-bottom:8px;
  margin-bottom:8px;
  border-bottom:1px solid rgba(15,23,42,.08);
}

.recentPopTitle{ font-weight: 900; font-size: 12px; opacity: .8; }

.recentPopClose{
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
  opacity: .65;
}
.recentPopClose:hover{ opacity: .95; }

/* one ticker per line */
.recentPopList{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recentPopItem{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  border: 1px solid rgba(148,163,184,.35);
  background: rgba(15,23,42,.03);
  border-radius: 10px;
  padding: 8px 10px;

  cursor: pointer;
  user-select: none;
  font-weight: 900;
  font-size: 12px;
}

.recentPopItem:hover{
  background: rgba(15,23,42,.06);
}
/* Recent row */
.recentRow{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  max-width:100%;
  overflow:hidden;
}

/* Clickable "Recent" */
.recentOpen{
  flex:0 0 auto;
  border:0;
  background:transparent;
  padding:0;
  font-weight:900;
  font-size:12px;
  opacity:.75;
  cursor:pointer;
}
.recentOpen:hover{ opacity:.95; }

/* Slots: show 3 chips only (no wrap) */
.recentSlots{
  flex: 1 1 auto;
  min-width: 0;
  display:flex;
  gap:6px;
  flex-wrap: nowrap;
  overflow: hidden;
}

/* Chip compact so 3 fit */
.recentChip{
  flex: 0 0 auto;
  max-width: 64px;          /* tighter so 3 always fit */
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:normal;

  border:1px solid rgba(148,163,184,.35);
  background:rgba(15,23,42,.04);
  padding:4px 8px;
  border-radius:999px;
  font-weight:700;
  font-size:12px;
  cursor:pointer;
}




/* =========================
   INSPECT / HOVER OVERLAY
   ========================= */
.tsCard{ position: relative; }

.tsInspectLayer{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:25;
}

.tsInspectV{
  position:absolute;
  top:0;
  bottom:0;
  width:1px;
  background: rgba(15,23,42,.10); /* lighter crosshair */
}

.tsInspectH{
  position:absolute;
  left:0;
  right:0;
  height:1px;
  background: rgba(15,23,42,.10); /* lighter crosshair */
}

/* pinned top-center tooltip */
/* Inspect tooltip — lighter, premium */
.tsInspectTip{
  position:absolute;
  left:50%;
  top:10px;
  transform:translateX(-50%);

  padding: 6px 10px;
  border-radius: 10px;

  /* lighten the card itself */
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(15,23,42,.06);

  /* softer shadow = less “dark blob” */
  box-shadow: 0 6px 14px rgba(2,6,23,.08);

  /* lighter text */
  color: rgba(15,23,42,0.90);

  font: 800 12px/1.15 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  white-space: normal;
  pointer-events:none;

  backdrop-filter: blur(6px);
}

.tsInspectTip .m{ opacity:.80; font-weight:800; }
.tsInspectTip .pos,
.tsInspectTip .neg{ color: rgba(15,23,42,.90); }

.tsInspectV,
.tsInspectH{
  background: rgba(15,23,42,.06);
}
.row .v { 
  /* whatever your normal value styling should be */
  color: inherit;
  font-weight: 600; /* example */
}

.up { color: var(--market-green); font-weight: inherit; }
.dn { color: var(--market-red);   font-weight: inherit; }

/* =========================
   SEARCH / POPUP BACKDROP
   ========================= */
#tsPopupBg{
  position:fixed;
  inset:0;
  z-index:2147483645; /* behind searchPanel */
  background-image:
    linear-gradient(rgba(2,6,23,.72), rgba(2,6,23,.72)),
    var(--tsPopupBgUrl, none);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  filter: saturate(1.05);
  opacity: 1;
  pointer-events:none;
}


	
#btnInspect.tsOn{ outline:2px solid var(--brand-accent-border); }

/* =========================
   MOBILE WATCHLIST BACKDROP
   ========================= */
#tsMobWlBackdrop{
  position:fixed;
  left:0;
  right:0;
  top:var(--topbarPx, 0px);
  bottom:0;
  background: rgba(2,6,23,.38);
  z-index:2147483000;
  display:none;
}

/* allow 4 dropdowns in the sidebar tools bar */
.watchToolsBar{
  flex-wrap: wrap;
}

.watchToolsBar .toolSel{
  flex: 1 1 calc(50% - 6px);
  min-width: 0;
}

/* Desktop: force Group + Sort + Filter + Country on ONE row (4 columns) */
.layout--desk #watchTools .watchToolsBar{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
  align-items: center;
}

/* make each select fill its grid cell + allow text to truncate */
.layout--desk #watchTools .watchToolsBar .toolSel{
  width: 100% !important;
  min-width: 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layout--desk #watchTools .watchToolsBar .toolSel{
  font-size: 12px !important;
  padding-left: 10px !important;
  padding-right: 22px !important; /* room for dropdown arrow */
}

/* Ensure hidden really means hidden */
[hidden] { display: none !important; }

/* Anchor suggestions to the search box */
.topSearch{
  position: relative !important;
}

/* Suggestions must FLOAT, not consume layout space */
.topSearch .suggestBox{
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  right: 0 !important;

  z-index: 2147483647 !important;
  background: #fff !important;
  border: 1px solid rgba(15,23,42,.12) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.12) !important;

  padding: 8px !important;
  max-height: 260px !important;
  overflow: auto !important;
}

/* Make rows not look like a compressed CSV */
.topSearch .suggestBox .sugRow{
  padding: 10px 12px !important;
  border-radius: 10px !important;
  line-height: 1.25 !important;
}

.topSearch .suggestBox .sugRow + .sugRow{
  margin-top: 6px !important;
}

.topSearch .suggestBox .sugRow:hover,
.topSearch .suggestBox .sugRow.isActive{
  background: rgba(15,23,42,.05) !important;
}


/* =========================
   Brand Header Refresh
   ========================= */

.sideBrand--v2 {
  margin-bottom: 14px;
}

.brandLockup {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  padding: 4px 0 2px;
}

.brandMark {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brandMarkSvg {
  width: 52px;
  height: 52px;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.18));
}

.brandTextWrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brandEyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}

.brandTitleRow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.brandTitle {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.brandPresented {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}

.brandPresented strong {
  color: #1e293b;
  font-weight: 800;
}

.brandTagline {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 3px;
}

.brandSubline {
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
}


  /* 5 dropdowns in one row */
  .layout--desk #watchTools .watchToolsBar{
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 4px !important;
    align-items: center !important;
  }

  /* compact selects */
  .layout--desk #watchTools .watchToolsBar .toolSel{
    width: 100% !important;
    min-width: 0 !important;
    height: 26px !important;
    padding: 0 12px 0 6px !important; /* room for native arrow */
    font-size: 12px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* make the first (icon) option look intentional */
  .layout--desk #watchTools .watchToolsBar .toolSel option:first-child{
    font-weight: 900;
  }


/* Desktop actions row: Reset / Refresh / Toggle use one identical layout */
.layout--desk #watchTools .watchToolsActions{
  display:grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 8px !important;
  align-items: stretch !important;
}

.layout--desk #watchTools .watchToolsActions > #btnDefaultView,
.layout--desk #watchTools .watchToolsActions > #btnRefresh,
.layout--desk #watchTools .watchToolsActions > #btnSegToggleAll{
  width: 100% ;
  min-width: 0 ;
  height: 26px ;
  border-radius: 999px ;
  display: inline-flex ;
  align-items: center ;
  justify-content: center ;
  padding: 0 10px ;
  box-sizing: border-box ;
  white-space: nowrap ;
}

/* Prevent old icon-only styling from distorting one subset */
.layout--desk #watchTools .watchResetIcon{
  flex: initial !important;
  height: auto !important;
  padding: 0 !important;
}

.layout--desk #watchTools .watchResetIcon i{
  font-size: inherit !important;
  line-height: inherit !important;
  display: inline !important;
  align-items: initial !important;
  gap: 0 !important;
}



  /* Pager aligned right, compact */
  .pagerHdr{
    justify-content: flex-start !important;
  }
  
  /* =========================================================
   SINGLE-SCROLLER UX
   Hide CHART scrollbar everywhere (watchlist is the only visible scroller)
   ========================================================= */
.wrap{
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE/Edge legacy */
}
.wrap::-webkit-scrollbar{
  width: 0;
  height: 0;
}




/* Compact standalone chart views:
   10y_s / 2y_s / intra30m_s
   Target: 2 columns x 3 rows = 6 charts filling desktop viewport.
*/
.layout--desk .grid.grid--compact3 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 2px !important;
  align-content: stretch !important;
}
.layout--desk .grid.grid--compact3 .card {
  height: calc((100dvh - (var(--pad, 6px) * 2) - 16px) / 3) !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 2px !important;
  aspect-ratio: auto !important;
}
.layout--desk .grid.grid--compact3 .card img,
.layout--desk .grid.grid--compact3 .card .wrapImg {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block;
}
.grid.grid--compact3 .card img,
.grid.grid--compact3 .card .wrapImg {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block;
}


/* =========================
   Compact cohesive brand block
   ========================= */

.sideBrand--compact {
  margin-bottom: 14px;
}

.brandUnit {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 2px 0;
}

.brandLogo {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brandLogoSvg {
  width: 50px;
  height: 50px;
  display: block;
  border-radius: 14px;
  box-shadow: 0 8px 18px var(--brand-accent-shadow);
}

.brandCopy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.08;
}

.brandKicker {
  display: block;
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.brandNameRow {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.brandName {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
}

.brandBy {
  font-size: 11.5px;
  font-weight: 700;
  color: #6b7280;
  white-space: nowrap;
}

.brandBy strong {
  color: #374151;
  font-weight: 800;
}

.brandTagline {
  display: block;
  max-width: 220px;
  margin-bottom: 4px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  color: #334155;
}

.brandMeta {
  display: block;
  max-width: 240px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  color: #94a3b8;
}

/* optional: tighten even more inside sidebar */
.sideSec--brand .brandUnit {
  align-items: center;
}

/* hover is subtle, not loud */
.brandUnit:hover .brandName {
  color: #0f172a;
}

.brandUnit:hover .brandLogoSvg {
  transform: translateY(-1px);
  transition: transform 0.16s ease;
}

/* =========================
   ScanTickers compact brand
   ========================= */

.clBrand {
  display: block;
  width: 100%;
  margin: 0 0 12px;
}

.clBrandTop {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.clLogo {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #fff;
  text-decoration: none;
  background: var(--brand-accent);
  box-shadow: 0 6px 14px var(--brand-accent-shadow);
  }

.clLogo span {
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
}

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

.clKicker {
  margin: 0 0 2px;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.clNameRow {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  white-space: nowrap;
}

.clName {
  font-size: 21px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: #111827;
  text-decoration: none;
}

.clBy {
  font-size: 11.5px;
  line-height: 1;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
}

.clBy strong {
  font-weight: 900;
  color: #334155;
}

.clTagline {
  margin: 3px 0 0;
  padding-left: 0;
  max-width: 285px;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 750;
  color: #334155;
}

.clTagline span {
  display: block;
  margin-top: 1px;
  margin-bottom: 3px;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
  color: #94a3b8;
}

.clBrand a:hover {
  text-decoration: none;
}

.clBrand a:focus-visible {
  outline: 2px solid var(--brand-accent-border-strong);
  outline-offset: 3px;
}



}


@media (max-width: 999px) {
  .brandTitle {
    font-size: 22px;
  }

  .brandTagline {
    font-size: 12.5px;
  }

  .brandSubline {
    font-size: 11px;
  }

  .grid.grid--compact3 {
    grid-template-columns: 1fr !important;
  }

  .grid.grid--compact3 .card {
    height: auto !important;
    min-height: 0;
    max-height: none;
  }

  body{ overflow:auto; }

  .layout.layout--mob{
    display:block;
    padding: 10px 10px 18px;
  }

  .wrap{
    overflow: visible;
    padding: 0;
  }

  .topbar--m{
    background: var(--panel2);
    border-bottom: 1px solid var(--line);
    padding: 10px;
    border-radius: 0;
  }

  .mRow{ display:flex; gap: 8px; align-items:center; margin-bottom: 8px; }
  .mRow--brand{ justify-content: space-between; }
  .mRow--controls{ flex-wrap: wrap; }
  .mRow--pager{ margin-top: -4px; }

  .mIco{
    width: 34px;
    height: 34px;
    border-radius: 999px;
  }
  


  /* ===== Watchlist as a REAL bottom sheet (full width) ===== */
  .layout.layout--mob > .watch{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;

    width: 100vw;
    max-height: 82vh;
    z-index: 9010;

    background: #f6f7fb;
    border-top: 1px solid rgba(15,23,42,.10);
    border-left: 0;
    border-right: 0;

    border-radius: 18px 18px 0 0;
    box-shadow: 0 -18px 50px rgba(2,6,23,.25);

    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .18s ease, opacity .18s ease;

    overflow: hidden;
    display:flex;
    flex-direction:column;
    padding: 0; /* IMPORTANT: no outer padding — we pad inner sections */
  }

  body.wlOpen .layout.layout--mob > .watch{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Overlay (keep, but remove blur for perf + crispness) */
  .wlOverlay{
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.40);
    backdrop-filter: none;
    z-index: 9000;
    display:none;
  }
  body.wlOpen #wlOverlay{ display:block; }

  /* Sheet head spacing */
  .layout.layout--mob > .watch .mSheetHead{
    padding: 10px 14px 6px;
    background: #f6f7fb;
  }

  /* Search row */
  .layout.layout--mob > .watch .mSheetTop{
    padding: 8px 14px 6px;
    background: #f6f7fb;
  }

  .layout.layout--mob > .watch .mSheetTop .topSearch{
    background:#fff;
    border:1px solid rgba(15,23,42,.12);
    border-radius:14px;
    padding:8px;
    display:flex;
    gap:10px;
    align-items:center;
    box-shadow: 0 1px 0 rgba(2,6,23,.04);
  }

  .layout.layout--mob > .watch .mSheetTop .topSearchInput{
    flex:1 1 auto;
    height:42px;
    border-radius:12px;
    padding:0 12px;
    border:1px solid rgba(15,23,42,.10);
    background:#fff;
    font-weight:800;
  }

  .layout.layout--mob > .watch .mSheetTop .topSearchBtn{
    height:42px;
    border-radius:12px;
    padding:0 16px;
    font-weight:900;
  }

  /* Tools area */
  .layout.layout--mob > .watch #watchTools.watchTools{
    padding: 8px 14px 10px;
    background:#f6f7fb;
  }

  /* Pretty grid: Group full width; then pairs */
  .layout.layout--mob > .watch .watchToolsBar{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:10px;
    margin: 0;
    padding: 6px 0 6px;
  }

  .layout.layout--mob > .watch .watchToolsBar #groupSel{ grid-column: 1 / -1; }

  .layout.layout--mob > .watch .watchToolsBar .toolSel{
    width:100%;
    height:44px;
    border-radius:14px;
    padding:0 12px;
    border:1px solid rgba(15,23,42,.12);
    background:#fff;
    font-size:13px;
    font-weight:900;
    box-shadow: 0 1px 0 rgba(2,6,23,.04);
  }
/* Mobile actions row: Reset / Refresh / Toggle-all */
.layout.layout--mob > .watch .watchToolsActions{
  display:grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap:10px !important;
  padding:8px 0 6px !important;
  margin:0 !important;
}

.layout.layout--mob > .watch .watchToolsActions > #btnDefaultView,
.layout.layout--mob > .watch .watchToolsActions > #btnRefresh,
.layout.layout--mob > .watch .watchToolsActions > #btnWlToggleAll,
.layout.layout--mob > .watch .watchToolsActions > #btnSegToggleAll{
  width:100% ;
  min-width:0 ;
  height:44px ;
  border-radius:14px ;
  border:1px solid rgba(15,23,42,.12) ;
  background:#fff ;
  display:flex ;
  align-items:center ;
  justify-content:center ;
  box-shadow:0 1px 0 rgba(2,6,23,.04) ;
  box-sizing:border-box ;
}

.layout.layout--mob > .watch .watchToolsActions > #btnWlToggleAll:not(:last-child),
.layout.layout--mob > .watch .watchToolsActions > #btnSegToggleAll:not(:last-child){
  display:none !important;
}

  /* Counts */
  .layout.layout--mob > .watch #tsCounts.watchCount{
    padding: 2px 0 10px;
    font-weight:900;
    font-size:12px;
    opacity:.75;
  }

  /* List area */
  .layout.layout--mob > .watch .watchBody{
    background:#fff;
    border-top: 1px solid rgba(15,23,42,.10);
    flex: 1;
    min-height: 0;
    overflow:auto;
  }
 


  .wlOverlay{
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.35);
    backdrop-filter: blur(2px);
    z-index: 9000;
    display:none;
  }
  body.wlOpen #wlOverlay{ display:block; }


  /* mobile grid = 1 column */
  .grid{ grid-template-columns: 1fr; }
  
    .topbar--m[data-collapsed="1"] .mBrandRow,
  .topbar--m[data-collapsed="1"] .mobRail{
    display:none !important;
  }

  .topbar--m[data-collapsed="1"] .mCtlRow{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    padding:6px 10px !important;
    min-height:46px !important;
  }

  .topbar--m[data-collapsed="1"] #btnWlToggle,
  .topbar--m[data-collapsed="1"] #btnSearchOpen,
  .topbar--m[data-collapsed="1"] .mSel{
    display:none !important;
  }

  .topbar--m[data-collapsed="1"] #btnHdrToggle{
    display:inline-flex !important;
    order:2 !important;
    margin-left:auto !important;
  }

  .topbar--m[data-collapsed="1"] .mTitle{
    display:block !important;
    order:1 !important;
    flex:1 1 auto !important;
    min-width:0 !important;
    text-align:left !important;
    font-size:12px !important;
    opacity:.9 !important;
  }


  .brandLogo,
  .brandLogoSvg {
    width: 46px;
    height: 46px;
  }

  .brandName {
    font-size: 18px;
  }

  .brandTagline {
    font-size: 12px;
    max-width: 210px;
  }

  .brandMeta {
    font-size: 10.5px;
  }
  
}


 
/* ===== Premium header icon buttons ===== */
.iconBtnDark {
    position: relative;
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: inline-grid;
    place-items: center;

    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);

    color: rgba(255, 255, 255, 0.88);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.18), transparent 34%),
        rgba(15, 23, 42, 0.72);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -1px 0 rgba(0, 0, 0, 0.18),
        0 8px 18px rgba(0, 0, 0, 0.28);

    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease,
        color 0.16s ease;
}

.iconBtnDark i {
    position: relative;
    z-index: 1;
    font-size: 14px;
    line-height: 1;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.iconBtnDark::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%);
    opacity: 0.65;
    pointer-events: none;
}

.iconBtnDark::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 30, 0, 0.7), rgba(255, 255, 255, 0.14), transparent 65%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
}

.iconBtnDark:hover {
    transform: translateY(-1px);
    color: #ffffff;
    border-color: rgba(255, 30, 0, 0.42);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045)),
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.24), transparent 34%),
        rgba(15, 23, 42, 0.86);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 3px rgba(255, 30, 0, 0.1),
        0 12px 26px rgba(0, 0, 0, 0.36),
        0 8px 22px rgba(255, 30, 0, 0.16);

    text-decoration: none;
}

.iconBtnDark:hover::after {
    opacity: 1;
}

.iconBtnDark:active {
    transform: translateY(0);
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.28),
        0 5px 14px rgba(0, 0, 0, 0.28);
}

.iconBtnDark:focus-visible {
    outline: none;
    border-color: rgba(255, 30, 0, 0.65);
    box-shadow:
        0 0 0 3px rgba(255, 30, 0, 0.18),
        0 12px 26px rgba(0, 0, 0, 0.32);
}

/* ===== Premium ScanTickers ST logo ===== */
.stLogo {
    position: relative;
    display: flex;
    width: 64px;
    height: 64px;
    min-width: 64px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    border-radius: 16px;
    color: #ffffff;
    text-decoration: none;

    background:
        radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.28), transparent 34%),
        linear-gradient(135deg, #ea580c 0%, #dc2626 48%, #0f172a 100%);

    border: 1px solid rgba(254, 215, 170, 0.32);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        inset 0 -1px 0 rgba(15, 23, 42, 0.34),
        0 10px 24px rgba(15, 23, 42, 0.26),
        0 8px 20px rgba(255, 30, 0, 0.16);

    outline: none;

    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease,
        filter 0.16s ease;
}

.stLogo:hover {
    transform: translateY(-1px);
    border-color: rgba(254, 215, 170, 0.58);
    text-decoration: none;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        inset 0 -1px 0 rgba(15, 23, 42, 0.38),
        0 0 0 3px rgba(255, 30, 0, 0.12),
        0 14px 30px rgba(15, 23, 42, 0.34),
        0 10px 26px rgba(255, 30, 0, 0.2);
}

.stLogo:active {
    transform: translateY(0);
}

.stLogo:focus-visible {
    box-shadow:
        0 0 0 3px rgba(254, 215, 170, 0.42),
        0 14px 30px rgba(15, 23, 42, 0.34);
}

.stLogoSigma {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -49%);
    pointer-events: none;
    user-select: none;

    font-family: Arial Black, Arial, sans-serif;
    font-size: 68px;
    font-weight: 1000;
    line-height: 1;
    color: rgba(255, 255, 255, 0.15);
}

.stLogoText {
    position: relative;
    z-index: 1;

    font-size: 24px;
    font-weight: 1000;
    line-height: 1;
    letter-spacing: -0.06em;
    color: #ffffff;

    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.38);
}

.stLogoBeta {
    position: relative;
    z-index: 1;

    margin-top: 4px;
    padding: 2px 6px;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.16);

    color: rgba(255, 255, 255, 0.94);
    font-size: 8px;
    font-weight: 1000;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Mobile logo sizing */
.stLogo--mobile {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 13px;
}

.stLogo--mobile .stLogoSigma {
    font-size: 50px;
}

.stLogo--mobile .stLogoText {
    font-size: 18px;
}

.stLogo--mobile .stLogoBeta {
    margin-top: 2px;
    padding: 1px 4px;
    font-size: 6px;
    letter-spacing: 0.1em;
}

/* Remove old CL/mLogo visual conflicts if old classes remain elsewhere */
.clLogo,
.mLogo {
    display: none;
}

/* Brand text stacked: name first, presenter below */
.clBrandNameBlock {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.clNameRow {
    display: contents; /* harmless fallback if old markup remains */
}

.clName {
    display: block;
    margin-top: 2px;
    line-height: 1.05;
}

.clBy {
    display: inline-block;
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.2;
    color: #64748b;
    font-weight: 700;
    white-space: normal;
}

.clBy strong {
    color: #475569;
    font-weight: 900;
}

.clBy--below {
    margin-left: 0;
}


            /* ===== Symbol logo version ===== */
            .stLogo {
                position: relative;
                display: flex;
                width: 64px;
                height: 64px;
                min-width: 64px;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                overflow: hidden;
                border-radius: 16px;
                color: #ffffff;
                text-decoration: none;
                background: radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.28), transparent 34%),
                    linear-gradient(135deg, #ea580c 0%, #dc2626 48%, #0f172a 100%);
                border: 1px solid rgba(254, 215, 170, 0.32);
                box-shadow:
                    inset 0 1px 0 rgba(255, 255, 255, 0.26),
                    inset 0 -1px 0 rgba(15, 23, 42, 0.34),
                    0 10px 24px rgba(15, 23, 42, 0.26),
                    0 8px 20px rgba(255, 30, 0, 0.16);
                outline: none;
                transition:
                    transform 0.16s ease,
                    box-shadow 0.16s ease,
                    border-color 0.16s ease;
            }

            .stLogo:hover {
                transform: translateY(-1px);
                border-color: rgba(254, 215, 170, 0.58);
                box-shadow:
                    inset 0 1px 0 rgba(255, 255, 255, 0.32),
                    inset 0 -1px 0 rgba(15, 23, 42, 0.38),
                    0 0 0 3px rgba(255, 30, 0, 0.12),
                    0 14px 30px rgba(15, 23, 42, 0.34),
                    0 10px 26px rgba(255, 30, 0, 0.2);
            }

            .stLogoSigma {
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -49%);
                pointer-events: none;
                user-select: none;
                font-family:
                    Arial Black,
                    Arial,
                    sans-serif;
                font-size: 68px;
                font-weight: 1000;
                line-height: 1;
                color: rgba(255, 255, 255, 0.13);
            }

            .stLogoMark {
                position: relative;
                z-index: 1;
                width: 38px;
                height: 38px;
            }

            .stLogoMark rect {
                fill: rgba(255, 255, 255, 0.95);
            }

            .stLogoMark path {
                fill: none;
                stroke: #ffffff;
                stroke-width: 4.2;
                stroke-linecap: round;
                stroke-linejoin: round;
                filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.35));
            }

            .stLogoBeta {
                position: relative;
                z-index: 1;
                margin-top: 3px;
                padding: 2px 6px;
                border-radius: 999px;
                background: rgba(255, 255, 255, 0.13);
                border: 1px solid rgba(255, 255, 255, 0.16);
                color: rgba(255, 255, 255, 0.94);
                font-size: 8px;
                font-weight: 1000;
                line-height: 1.1;
                text-transform: uppercase;
                letter-spacing: 0.12em;
            }

            /* mobile */
            .stLogo--mobile {
                width: 46px;
                height: 46px;
                min-width: 46px;
                border-radius: 13px;
            }

            .stLogo--mobile .stLogoSigma {
                font-size: 50px;
            }

            .stLogo--mobile .stLogoMark {
                width: 28px;
                height: 28px;
            }

            .stLogo--mobile .stLogoMark path {
                stroke-width: 4;
            }

            .stLogo--mobile .stLogoBeta {
                margin-top: 2px;
                padding: 1px 4px;
                font-size: 6px;
                letter-spacing: 0.1em;
            }
			
			

/* ===== Premium header icon buttons ===== */
.watchResetIcon {

    border-radius: 13px!important;
    border: 1px solid rgba(255, 255, 255, 0.12)!important;

    color: rgba(255, 255, 255, 0.88)!important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.18), transparent 34%),
        rgba(15, 23, 42, 0.72)!important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -1px 0 rgba(0, 0, 0, 0.18),
        0 8px 18px rgba(0, 0, 0, 0.28)!important;

    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease,
        color 0.16s ease;
}

.watchResetIcon i {
    position: relative;
    z-index: 1;
    font-size: 14px;
    line-height: 1;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.watchResetIcon::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%)!important;
    opacity: 0.65;
    pointer-events: none;
}

.watchResetIcon::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 30, 0, 0.7), rgba(255, 255, 255, 0.14), transparent 65%)!important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
}

.watchResetIcon:hover {
    transform: translateY(-1px);
    color: #ffffff;
    border-color: rgba(255, 30, 0, 0.42)!important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045)),
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.24), transparent 34%),
        rgba(15, 23, 42, 0.86)!important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 3px rgba(255, 30, 0, 0.1),
        0 12px 26px rgba(0, 0, 0, 0.36),
        0 8px 22px rgba(255, 30, 0, 0.16)!important;

    text-decoration: none;
}

.watchResetIcon:hover::after {
    opacity: 1;
}

.watchResetIcon:active {
    transform: translateY(0);
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.28),
        0 5px 14px rgba(0, 0, 0, 0.28)!important;
}

.watchResetIcon:focus-visible {
    outline: none;
    border-color: rgba(255, 30, 0, 0.65) !important;
    box-shadow:
        0 0 0 3px rgba(255, 30, 0, 0.18),
        0 12px 26px rgba(0, 0, 0, 0.32)!important;
}			




/* ===== Premium header icon buttons ===== */
.topSearchBtn {

    border-radius: 13px!important;
    border: 1px solid rgba(255, 255, 255, 0.12)!important;

    color: rgba(255, 255, 255, 0.88)!important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.18), transparent 34%),
        rgba(15, 23, 42, 0.72)!important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -1px 0 rgba(0, 0, 0, 0.18),
        0 8px 18px rgba(0, 0, 0, 0.28)!important;

    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease,
        color 0.16s ease;
}

.topSearchBtn i {
    position: relative;
    z-index: 1;
    font-size: 14px;
    line-height: 1;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.topSearchBtn::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%)!important;
    opacity: 0.65;
    pointer-events: none;
}

.topSearchBtn::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 30, 0, 0.7), rgba(255, 255, 255, 0.14), transparent 65%)!important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
}

.topSearchBtn:hover {
    transform: translateY(-1px);
    color: #ffffff;
    border-color: rgba(255, 30, 0, 0.42)!important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045)),
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.24), transparent 34%),
        rgba(15, 23, 42, 0.86)!important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 3px rgba(255, 30, 0, 0.1),
        0 12px 26px rgba(0, 0, 0, 0.36),
        0 8px 22px rgba(255, 30, 0, 0.16)!important;

    text-decoration: none;
}

.topSearchBtn:hover::after {
    opacity: 1;
}

.topSearchBtn:active {
    transform: translateY(0);
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.28),
        0 5px 14px rgba(0, 0, 0, 0.28)!important;
}

.topSearchBtn:focus-visible {
    outline: none;
    border-color: rgba(255, 30, 0, 0.65) !important;
    box-shadow:
        0 0 0 3px rgba(255, 30, 0, 0.18),
        0 12px 26px rgba(0, 0, 0, 0.32)!important;
}			


/* Actions row: Reset / Refresh / Expand-collapse */
.watchToolsActions{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
  align-items:stretch;
  width:100%;
  margin-top:8px;
}

.watchToolsActions > #btnDefaultView,
.watchToolsActions > #btnRefresh,
.watchToolsActions > #btnSegToggleAll{
  width:100%;
  min-width:0;
  max-width:none;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  box-sizing:border-box;
}

/* Active/pressed state */
#btnSegToggleAll.tsOn{
  outline:2px solid var(--brand-accent-border);
}

/* Desktop actions row: Reset / Refresh / Expand-collapse */
.layout--desk #watchTools .watchToolsActions{
  display:grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap:8px !important;
  margin-top:8px !important;
  align-items:stretch !important;
}

.layout--desk #watchTools .watchToolsActions > #btnDefaultView,
.layout--desk #watchTools .watchToolsActions > #btnRefresh,
.layout--desk #watchTools .watchToolsActions > #btnSegToggleAll{
  width:100% !important;
  min-width:0 !important;
  height:26px !important;
  border-radius:999px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 10px !important;
  box-sizing:border-box !important;
  white-space:nowrap !important;
}

/* Do not let icon-only button rules distort action buttons */
.layout--desk #watchTools .watchResetIcon{
  flex:initial !important;
}

.layout--desk #watchTools .watchResetIcon i{
  font-size:inherit !important;
  line-height:inherit !important;
}

/* Mobile actions row: Reset / Refresh / Expand-collapse / Close */
.layout.layout--mob > .watch .wlRow--actions{
  display:grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap:8px !important;
  align-items:stretch !important;
}

.layout.layout--mob > .watch .wlRow--actions > #btnDefaultView,
.layout.layout--mob > .watch .wlRow--actions > #btnRefresh,
.layout.layout--mob > .watch .wlRow--actions > #btnSegToggleAll,
.layout.layout--mob > .watch .wlRow--actions > #btnWlClose{
  width:100% !important;
  min-width:0 !important;
  height:44px !important;
  border-radius:14px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-sizing:border-box !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

.layout.layout--mob > .watch .wlRow--actions > #btnSegToggleAll{
  font-size:15px !important;
  font-weight:900 !important;
}

/* =========================
   MOBILE APP V3 — EXTRACTED FROM JS
   ========================= */
/* ---- header ---- */
.topbar--m.mAppBar{
  position:sticky;top:0;z-index:1800;
  background:rgba(255,255,255,.98);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid rgba(15,23,42,.12)
}
.mBrandRow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px 6px}
.mBrand{display:flex;align-items:center;gap:10px;min-width:0}
.mLogo{
  width:34px;height:34px;border-radius:12px;
  background:#ff1e00;color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-weight:900;letter-spacing:-.3px
}
.mBrandTxt{min-width:0}
.mBrandName{font-weight:900;font-size:14px;line-height:1}
.mBrandSub{font-size:12px;opacity:.75;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:70vw}
.mBrandLink,.mBrandLink2{color:inherit;text-decoration:none}
.mIcoBtn{
  width:34px;height:34px;border-radius:999px;
  border:1px solid rgba(15,23,42,.16);
  background:#fff;display:inline-flex;align-items:center;justify-content:center
}
.mIcoBtn i{font-size:14px}

.mCtlRow{display:flex;align-items:center;gap:8px;padding:6px 12px 10px}
.mSel{
  height:34px;border:1px solid rgba(15,23,42,.16);
  background:#fff;font-weight:900;font-size:12px;padding:0 8px
}
.mSel--wl{max-width:44vw}
.mSel--view{max-width:34vw}
.mTitle{
  flex:1;min-width:0;
  font-weight:900;font-size:12px;opacity:.75;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  text-align:right
}

/* ---- symbol rail ---- */
.mobRail{
  display:flex;gap:6px;align-items:center;
  overflow:auto;-webkit-overflow-scrolling:touch;
  padding:0 12px 10px
}
.mobRail::-webkit-scrollbar{display:none}
.mobChip{
  flex:0 0 auto;
  border:1px solid rgba(15,23,42,.14);
  background:#fff;
  border-radius:999px;
  padding:6px 10px;
  font-weight:900;font-size:12px;
  opacity:.85
}
.mobChip.isActive{
  border-color:rgba(255,30,0,.55);
  box-shadow:0 0 0 2px rgba(255,30,0,.12) inset;
  opacity:1
}

.layout--mob .wrap{
  height:calc(100dvh - var(--topbarPx, 110px));
  overflow:auto;
  -webkit-overflow-scrolling:touch
}

body.hdrCollapsed .layout--mob .wrap{
  height:calc(100dvh - var(--topbarPx, 46px));
}

/* Collapsed mobile header: keep only a slim restore bar */
.topbar--m[data-collapsed="1"] .mBrandRow,
.topbar--m[data-collapsed="1"] .mobRail{
  display:none;
}

.topbar--m[data-collapsed="1"] .mCtlRow{
  padding:6px 10px;
  min-height:46px;
  gap:8px;
  align-items:center;
}

.topbar--m[data-collapsed="1"] #btnWlToggle,
.topbar--m[data-collapsed="1"] #btnSearchOpen,
.topbar--m[data-collapsed="1"] .mSel{
  display:none;
}

.topbar--m[data-collapsed="1"] #btnHdrToggle{
  order:2;
  margin-left:auto;
}

.topbar--m[data-collapsed="1"] .mTitle{
  order:1;
  flex:1 1 auto;
  min-width:0;
  text-align:left;
  font-size:12px;
  opacity:.9;
}

.layout--mob .grid{ padding:10px; }
.layout--mob .card{
  /*scroll-snap-align:start;*/
  /*scroll-snap-stop:always;*/
}

/* PORTRAIT: maximize chart width edge-to-edge without distorting aspect ratio */
body:not(.isLandscape) .layout--mob .grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  padding:0;
}
body:not(.isLandscape) .layout--mob .card{
  border:0;
  border-radius:0;
  background:transparent;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
body:not(.isLandscape) .layout--mob .card img,
body:not(.isLandscape) .layout--mob .wrapImg{
  display:block;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  max-height:100% !important;
  object-fit:contain;
}

/* LANDSCAPE: keep header visible and maximize chart height */
/* body.isLandscape .layout--mob .wrap{scroll-snap-type:y mandatory} */
body.isLandscape .layout--mob .grid{padding:0}
body.isLandscape .layout--mob .card{
  min-height:calc(100dvh - var(--topbarPx, 110px));
  scroll-snap-align:start;
  scroll-snap-stop:always;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:0;
  background:transparent;
  padding:0;
  overflow:hidden;
}
body.isLandscape .layout--mob .card img,
body.isLandscape .layout--mob .wrapImg{
  display:block;
  height:100% !important;
  max-height:100% !important;
  width:auto !important;
  max-width:100% !important;
  object-fit:contain
}

/* LANDSCAPE: keep header visible and maximize chart height */
/* body.isLandscape .layout--mob .wrap{scroll-snap-type:y mandatory} */
body.isLandscape .layout--mob .grid{
  padding:0;
}
body.isLandscape .layout--mob .card{
  min-height:calc(100dvh - var(--topbarPx, 110px));
  scroll-snap-align:start;
  scroll-snap-stop:always;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:0;
  background:transparent;
  padding:0;
  overflow:hidden;
}

body.isLandscape .layout--mob .card .wrapFrame,
body.isLandscape .layout--mob .card .wrapBox{
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

body.isLandscape .layout--mob .card img,
body.isLandscape .layout--mob .wrapImg{
  display:block;
  height:100% !important;
  max-height:100% !important;
  width:auto !important;
  max-width:100% !important;
  object-fit:contain;
}

/* ---- bottom sheets ---- */
.layout--mob aside.watch{
  position:fixed;left:0;right:0;bottom:0;
  height:74dvh;max-height:74dvh;
  background:#fff;
  transform:translateY(110%);
  transition:transform 220ms ease;
  z-index:1700;
  border-top-left-radius:16px;border-top-right-radius:16px;
  box-shadow:0 -24px 60px rgba(2,6,23,.28);
  display:flex;flex-direction:column
}
html.wlOpen .layout--mob aside.watch{transform:translateY(0)}
.layout--mob aside.watch .watchBody{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch}
.layout--mob .mSheetHead{padding:8px 10px;border-bottom:1px solid rgba(15,23,42,.10)}
.layout--mob .mSheetHandle{width:46px;height:4px;border-radius:999px;background:rgba(15,23,42,.18);margin:2px auto 8px}
.layout--mob .mSheetTop{display:flex;gap:8px;align-items:center}
.layout--mob .mSheetTop .topSearch{flex:1}
.layout--mob .mSheetTop .topSearchInput{height:34px}
.layout--mob .mSheetTop .topSearchBtn{height:34px}

.layout--mob #mobMoreSheet{
  position:fixed;left:0;right:0;bottom:0;
  height:62dvh;max-height:62dvh;
  background:#fff;
  transform:translateY(110%);
  transition:transform 220ms ease;
  z-index:1750;
  border-top-left-radius:16px;border-top-right-radius:16px;
  box-shadow:0 -24px 60px rgba(2,6,23,.28);
  display:flex;flex-direction:column
}
html.moreOpen .layout--mob #mobMoreSheet{transform:translateY(0)}
.layout--mob #mobMoreSheet .mMoreBody{flex:1;min-height:0;overflow:auto;padding:10px}
.layout--mob #mobMoreSheet a{display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;font-weight:900;color:inherit;text-decoration:none}
.layout--mob #mobMoreSheet a:active{background:rgba(15,23,42,.06)}

/* overlay */
#wlOverlay{position:fixed;inset:0;background:rgba(2,6,23,.42);z-index:1600}

/* ✅ prevent double scrollbars: when a sheet is open, freeze chart scroller */
html.wlOpen .layout--mob .wrap,
html.moreOpen .layout--mob .wrap{
  overflow:hidden !important;
  touch-action:none;
}


/* ===== Current symbol meta below Recent Symbols ===== */
.currentSymbolMeta{
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  padding: 6px 8px;

  display: flex;
  align-items: center;
  gap: 6px;

  overflow: hidden;
  box-sizing: border-box;

  border: 1px solid rgba(15,23,42,.08);
  border-radius: 10px;
  background: rgba(15,23,42,.025);

  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.15;
  color: rgba(15,23,42,.68);
}

.currentSymbolMetaPos,
.currentSymbolMetaSymbol,
.currentSymbolMetaIndustry{
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.currentSymbolMetaPos{
  flex: 0 0 auto;
  color: rgba(15,23,42,.58);
}

.currentSymbolMetaSymbol{
  flex: 1 1 auto;
  color: rgba(15,23,42,.90);
}

.currentSymbolMetaIndustry{
  flex: 1 1 auto;
  color: rgba(15,23,42,.64);
}

.currentSymbolMetaSep{
  flex: 0 0 auto;
  color: rgba(15,23,42,.32);
}

/* On very narrow/mobile surfaces, stack cleanly instead of squeezing text to death. */
@media (max-width: 999px){
  .currentSymbolMeta{
    flex-wrap: wrap;
    gap: 4px 6px;
  }

  .currentSymbolMetaSymbol,
  .currentSymbolMetaIndustry{
    flex-basis: 100%;
  }

  .currentSymbolMetaSep{
    display: none;
  }
}

/* =========================================================
   FINAL SIDEBAR CONTROLS SYSTEM
   One authoritative ruleset for the middle controls section.
   Do not add older sidebar/recent overrides below this block.
   ========================================================= */

@media (min-width: 1000px){

  /* ---------- Controls card rhythm ---------- */

  .layout--desk .sideSec--controls{
    --ctl-gap: 7px;
    --pill-h: 30px;
    --ico-h: 26px;
    --mini-h: 22px;
    --txt-h: 13px;
    --btn-bg: #5b6472;
    --btn-ink: #ffffff;
    --muted-ink: rgba(15,23,42,.62);

    display: flex !important;
    flex-direction: column !important;
    gap: var(--ctl-gap) !important;

    padding: 10px !important;
    background: #fff !important;
    border: 1px solid rgba(15,23,42,.08) !important;
    border-radius: 10px !important;
  }

  .layout--desk .sideSec--controls *,
  .layout--desk .sideSec--controls *::before,
  .layout--desk .sideSec--controls *::after{
    box-sizing: border-box !important;
  }

  .layout--desk .sideSec--controls > *,
  .layout--desk .sideSec--controls .deskControls,
  .layout--desk .sideSec--controls #watchTools,
  .layout--desk .sideSec--controls .watchToolsBar,
  .layout--desk .sideSec--controls .watchToolsActions,
  .layout--desk .sideSec--controls .wlStatusBar,
  .layout--desk .sideSec--controls .recentBar,
  .layout--desk .sideSec--controls .recentRow,
  .layout--desk .sideSec--controls .currentSymbolMeta{
    margin: 0 !important;
  }

  /* ---------- Common dark-grey button/select surface ---------- */

  .layout--desk .sideSec--controls .mSel,
  .layout--desk .sideSec--controls .toolIcoBtn,
  .layout--desk .sideSec--controls .watchResetLink{
    background:
      linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.04)),
      var(--btn-bg) !important;
    border: 1px solid rgba(15,23,42,.14) !important;
    color: var(--btn-ink) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.18),
      0 6px 14px rgba(2,6,23,.16) !important;
    filter: none !important;
  }

  /* ---------- Row 1: market + chart type ---------- */

  .layout--desk .sideSec--controls .deskControls{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: var(--ctl-gap) !important;
    align-items: center !important;
    height: var(--pill-h) !important;
    min-height: var(--pill-h) !important;
  }

  .layout--desk .sideSec--controls .deskControls .mSel{
    width: 100% !important;
    min-width: 0 !important;
    height: var(--pill-h) !important;
    min-height: var(--pill-h) !important;

    border-radius: 6px !important;
    padding: 0 28px 0 10px !important;

    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;

    color-scheme: dark;
    cursor: pointer !important;
  }

  /* ---------- Rows 2/3/4: filter icons, dropdowns, actions ---------- */

  .layout--desk .sideSec--controls #watchTools{
    display: flex !important;
    flex-direction: column !important;
    gap: var(--ctl-gap) !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .layout--desk .sideSec--controls #watchTools .watchToolsBar{
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-template-rows: var(--ico-h) var(--mini-h) !important;
    column-gap: 6px !important;
    row-gap: 5px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .layout--desk .sideSec--controls #watchTools .toolIcoBtn{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-width: 0 !important;
    height: var(--ico-h) !important;
    min-height: var(--ico-h) !important;

    border-radius: 6px !important;
    padding: 0 !important;
    cursor: pointer !important;
  }

  .layout--desk .sideSec--controls #watchTools .toolIcoBtn i{
    font-size: 12px !important;
    line-height: 1 !important;
  }

  .layout--desk .sideSec--controls #watchTools .toolSel{
    display: block !important;

    width: 100% !important;
    min-width: 0 !important;
    height: var(--mini-h) !important;
    min-height: var(--mini-h) !important;

    grid-column: auto !important;
    grid-row: auto !important;

    border-radius: 6px !important;
    border: 1px solid rgba(15,23,42,.14) !important;
    background: #f8fafc !important;
    color: var(--muted-ink) !important;

    padding: 0 16px 0 6px !important;

    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* kill old 3+2 span rules */
  .layout--desk .sideSec--controls #groupSel,
  .layout--desk .sideSec--controls #filterSel,
  .layout--desk .sideSec--controls #patternSel,
  .layout--desk .sideSec--controls #countrySel,
  .layout--desk .sideSec--controls #sortSel{
    grid-column: auto !important;
  }

  /* explicit order: icons first, selects second */
  .layout--desk .sideSec--controls .toolIcoBtn[data-sel="groupSel"]{ order: 1 !important; }
  .layout--desk .sideSec--controls .toolIcoBtn[data-sel="filterSel"]{ order: 2 !important; }
  .layout--desk .sideSec--controls .toolIcoBtn[data-sel="patternSel"]{ order: 3 !important; }
  .layout--desk .sideSec--controls .toolIcoBtn[data-sel="countrySel"]{ order: 4 !important; }
  .layout--desk .sideSec--controls .toolIcoBtn[data-sel="sortSel"]{ order: 5 !important; }

  .layout--desk .sideSec--controls #groupSel{ order: 6 !important; }
  .layout--desk .sideSec--controls #filterSel{ order: 7 !important; }
  .layout--desk .sideSec--controls #patternSel{ order: 8 !important; }
  .layout--desk .sideSec--controls #countrySel{ order: 9 !important; }
  .layout--desk .sideSec--controls #sortSel{ order: 10 !important; }

  .layout--desk .sideSec--controls .watchToolsActions{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: var(--ctl-gap) !important;
    align-items: center !important;
    width: 100% !important;
    height: var(--pill-h) !important;
    min-height: var(--pill-h) !important;
  }

  .layout--desk .sideSec--controls .watchToolsActions > #btnDefaultView,
  .layout--desk .sideSec--controls .watchToolsActions > #btnRefresh,
  .layout--desk .sideSec--controls .watchToolsActions > #btnSegToggleAll{
    width: 100% !important;
    min-width: 0 !important;
    height: var(--pill-h) !important;
    min-height: var(--pill-h) !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 10px !important;
    border-radius: 999px !important;

    font-size: 11.5px !important;
    font-weight: 900 !important;
    line-height: 1 !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;

    cursor: pointer !important;
  }

  .layout--desk .sideSec--controls .watchResetIcon{
    flex: initial !important;
  }

  .layout--desk .sideSec--controls .watchResetIcon i{
    font-size: inherit !important;
    line-height: inherit !important;
  }

  /* ---------- Row 5: filtered count + pager ---------- */

  .layout--desk .sideSec--controls .wlStatusBar{
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: var(--ctl-gap) !important;
    align-items: center !important;

    width: 100% !important;
    min-width: 0 !important;
    height: 26px !important;
    min-height: 26px !important;
  }

  .layout--desk .sideSec--controls #tsCounts.watchCount{
    width: auto !important;
    min-width: 0 !important;
    height: 26px !important;
    min-height: 26px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;

    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    color: rgba(15,23,42,.70) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .layout--desk .sideSec--controls .pagerHdr{
    width: 100% !important;
    min-width: 0 !important;
    height: 26px !important;
    min-height: 26px !important;

    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    gap: 6px !important;
    align-items: center !important;

    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .layout--desk .sideSec--controls .pgBtn{
    height: 26px !important;
    min-height: 26px !important;
    min-width: 42px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 8px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(15,23,42,.14) !important;
    background: #fff !important;
    color: rgba(15,23,42,.78) !important;

    font-size: 11.5px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    box-shadow: 0 4px 10px rgba(15,23,42,.05) !important;
  }

  .layout--desk .sideSec--controls .pgBtn:disabled{
    opacity: .42 !important;
    cursor: not-allowed !important;
  }

  .layout--desk .sideSec--controls #pageNums{
    justify-self: center !important;

    height: 26px !important;
    min-height: 26px !important;
    min-width: 86px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 10px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(15,23,42,.12) !important;
    background: #fff !important;
    color: rgba(15,23,42,.70) !important;

    font-size: 11.5px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;

    box-shadow: 0 4px 10px rgba(15,23,42,.05) !important;
    overflow: hidden !important;
  }

  /* ---------- Row 6/7: recent + current symbol meta ---------- */

  .layout--desk .sideSec--controls .recentBar{
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;

    width: 100% !important;
    min-width: 0 !important;

    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
  }

  .layout--desk .sideSec--controls .recentRow{
    display: flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;

    width: 100% !important;
    max-width: 100% !important;
    min-height: var(--txt-h) !important;

    gap: 5px !important;
    line-height: 1 !important;
    overflow: hidden !important;
  }

  .layout--desk .sideSec--controls #recentOpen{
    flex: 0 0 auto !important;

    display: inline !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: var(--muted-ink) !important;
    vertical-align: baseline !important;

    cursor: default !important;
    pointer-events: none !important;
  }

  .layout--desk .sideSec--controls #recentSlots,
  .layout--desk .sideSec--controls .recentSlots{
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;

    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;

    gap: 9px !important;
    line-height: 1 !important;
    overflow: hidden !important;
  }

  .layout--desk .sideSec--controls .recentChip,
  .layout--desk .sideSec--controls .recentChip--plain{
    flex: 0 0 auto !important;

    display: inline !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: var(--muted-ink) !important;
    vertical-align: baseline !important;

    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;

    cursor: default !important;
    pointer-events: none !important;
  }

  .layout--desk .sideSec--controls .recentChip[hidden],
  .layout--desk .sideSec--controls .recentChip--plain[hidden]{
    display: none !important;
  }

  .layout--desk .sideSec--controls #recentMore,
  .layout--desk .sideSec--controls .recentMoreLink{
    flex: 0 0 auto !important;

    display: inline !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: var(--muted-ink) !important;
    vertical-align: baseline !important;
    text-decoration: none !important;

    cursor: pointer !important;
    pointer-events: auto !important;
  }

  .layout--desk .sideSec--controls #recentMore:hover,
  .layout--desk .sideSec--controls .recentMoreLink:hover{
    color: rgba(15,23,42,.78) !important;
    text-decoration: none !important;
  }

  .layout--desk .sideSec--controls #currentSymbolMeta,
  .layout--desk .sideSec--controls .currentSymbolMeta{
    width: 100% !important;
    max-width: 100% !important;
    min-height: var(--txt-h) !important;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: baseline !important;
    gap: 6px !important;

    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: var(--muted-ink) !important;

    overflow: hidden !important;
  }

  .layout--desk .sideSec--controls .currentSymbolMetaSep{
    display: none !important;
  }

  .layout--desk .sideSec--controls .currentSymbolMetaPos,
  .layout--desk .sideSec--controls .currentSymbolMetaSymbol,
  .layout--desk .sideSec--controls .currentSymbolMetaIndustry{
    min-width: 0 !important;

    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: var(--muted-ink) !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .layout--desk .sideSec--controls .currentSymbolMetaPos{
    flex: 0 0 auto !important;
  }

  .layout--desk .sideSec--controls .currentSymbolMetaSymbol{
    flex: 0 0 auto !important;
    max-width: 112px !important;
  }

  .layout--desk .sideSec--controls .currentSymbolMetaIndustry{
    flex: 1 1 auto !important;
  }

  /* ---------- Search box, if present in this section ---------- */

  .layout--desk .sideSec--controls .topSearch{
    display: flex !important;
    align-items: center !important;
    gap: var(--ctl-gap) !important;
    width: 100% !important;

    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .layout--desk .sideSec--controls .topSearchInput{
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: var(--pill-h) !important;

    border-radius: 6px !important;
    border: 1px solid rgba(15,23,42,.14) !important;
    background: #f8fafc !important;

    padding: 0 9px !important;

    font-size: 12px !important;
    font-weight: 900 !important;
    color: rgba(15,23,42,.82) !important;
  }

  .layout--desk .sideSec--controls .topSearchBtn{
    flex: 0 0 auto !important;
    height: var(--pill-h) !important;

    border-radius: 999px !important;
    padding: 0 12px !important;

    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }
}

/* =========================================================
   FINAL middle-section spacing hygiene
   Equal visual spacing + muted current-symbol line
   ========================================================= */

@media (min-width: 1000px){

  .layout--desk .sideSec--controls{
    --mid-gap: 8px;
    --text-gap: 5px;
    --pill-h: 30px;
    --icon-h: 26px;
    --select-h: 22px;
    --text-h: 13px;
    --muted-text: rgba(15,23,42,.58);

    display: flex !important;
    flex-direction: column !important;
    gap: var(--mid-gap) !important;
  }

  /* Remove accidental row spacing */
  .layout--desk .sideSec--controls .deskControls,
  .layout--desk .sideSec--controls #watchTools,
  .layout--desk .sideSec--controls .watchToolsBar,
  .layout--desk .sideSec--controls .watchToolsActions,
  .layout--desk .sideSec--controls .wlStatusBar,
  .layout--desk .sideSec--controls .recentBar,
  .layout--desk .sideSec--controls .recentRow,
  .layout--desk .sideSec--controls .currentSymbolMeta{
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* So shadows don't visually eat the next row gap */
  .layout--desk .sideSec--controls .mSel,
  .layout--desk .sideSec--controls .toolIcoBtn,
  .layout--desk .sideSec--controls .watchResetLink{
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.16),
      0 3px 8px rgba(2,6,23,.13) !important;
  }

  /* Row 1 */
  .layout--desk .sideSec--controls .deskControls{
    height: var(--pill-h) !important;
    min-height: var(--pill-h) !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .layout--desk .sideSec--controls .deskControls .mSel{
    height: var(--pill-h) !important;
    min-height: var(--pill-h) !important;
  }

  /* Rows 2 + 3 + 4 grouped cleanly */
  .layout--desk .sideSec--controls #watchTools{
    display: flex !important;
    flex-direction: column !important;
    gap: var(--mid-gap) !important;
  }

  .layout--desk .sideSec--controls #watchTools .watchToolsBar{
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0,1fr)) !important;
    grid-template-rows: var(--icon-h) var(--select-h) !important;
    column-gap: 6px !important;
    row-gap: 5px !important;
    align-items: center !important;
  }

  .layout--desk .sideSec--controls #watchTools .toolIcoBtn{
    height: var(--icon-h) !important;
    min-height: var(--icon-h) !important;
  }

  .layout--desk .sideSec--controls #watchTools .toolSel{
    height: var(--select-h) !important;
    min-height: var(--select-h) !important;
  }

  .layout--desk .sideSec--controls .watchToolsActions{
    height: var(--pill-h) !important;
    min-height: var(--pill-h) !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .layout--desk .sideSec--controls .watchToolsActions .watchResetLink{
    height: var(--pill-h) !important;
    min-height: var(--pill-h) !important;
  }

  /* Row 5 */
  .layout--desk .sideSec--controls .wlStatusBar{
    height: 26px !important;
    min-height: 26px !important;
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .layout--desk .sideSec--controls #tsCounts.watchCount,
  .layout--desk .sideSec--controls .pagerHdr,
  .layout--desk .sideSec--controls .pgBtn,
  .layout--desk .sideSec--controls #pageNums{
    height: 26px !important;
    min-height: 26px !important;
    line-height: 1 !important;
  }

  /* Recent + current meta: treat as two text rows with their own smaller internal gap */
  .layout--desk .sideSec--controls .recentBar{
    display: flex !important;
    flex-direction: column !important;
    gap: var(--text-gap) !important;
    border: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
  }

  .layout--desk .sideSec--controls .recentRow,
  .layout--desk .sideSec--controls .currentSymbolMeta{
    min-height: var(--text-h) !important;
    height: var(--text-h) !important;
    line-height: 1 !important;
    align-items: baseline !important;
  }

  /* Recent row text */
  .layout--desk .sideSec--controls #recentOpen,
  .layout--desk .sideSec--controls .recentChip,
  .layout--desk .sideSec--controls .recentChip--plain,
  .layout--desk .sideSec--controls #recentMore,
  .layout--desk .sideSec--controls .recentMoreLink{
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: var(--muted-text) !important;
    text-decoration: none !important;
  }

  /* Current symbol row: mute #1 / ticker / segment same as Recents */
  .layout--desk .sideSec--controls #currentSymbolMeta,
  .layout--desk .sideSec--controls .currentSymbolMeta,
  .layout--desk .sideSec--controls .currentSymbolMetaPos,
  .layout--desk .sideSec--controls .currentSymbolMetaSymbol,
  .layout--desk .sideSec--controls .currentSymbolMetaIndustry{
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: var(--muted-text) !important;
  }

  .layout--desk .sideSec--controls .currentSymbolMeta{
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .layout--desk .sideSec--controls .currentSymbolMetaSep{
    display: none !important;
  }
}

/* =========================================================
   HARD RHYTHM: middle controls section
   Every visible row = 25px
   Every row gap = 5px
   ========================================================= */

@media (min-width: 1000px){

  .layout--desk .sideSec--controls{
    --mid-row-h: 25px;
    --mid-gap: 5px;
    --mid-muted: rgba(15,23,42,.58);

    display: flex !important;
    flex-direction: column !important;
    gap: var(--mid-gap) !important;
  }

  /* Remove all stray vertical spacing */
  .layout--desk .sideSec--controls > *,
  .layout--desk .sideSec--controls .deskControls,
  .layout--desk .sideSec--controls #watchTools,
  .layout--desk .sideSec--controls .watchToolsBar,
  .layout--desk .sideSec--controls .watchToolsActions,
  .layout--desk .sideSec--controls .wlStatusBar,
  .layout--desk .sideSec--controls .recentBar,
  .layout--desk .sideSec--controls .recentRow,
  .layout--desk .sideSec--controls .currentSymbolMeta{
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Row 1: market + chart type = 25px */
  .layout--desk .sideSec--controls .deskControls{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    height: var(--mid-row-h) !important;
    min-height: var(--mid-row-h) !important;
    align-items: center !important;
  }

  .layout--desk .sideSec--controls .deskControls .mSel{
    height: var(--mid-row-h) !important;
    min-height: var(--mid-row-h) !important;
    border-radius: 6px !important;
    font-size: 11.5px !important;
    line-height: 1 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* watchTools contains:
     row 2 = icons, row 3 = dropdowns, row 4 = reset/actions
     All rows 25px, all gaps 5px.
  */
  .layout--desk .sideSec--controls #watchTools{
    display: flex !important;
    flex-direction: column !important;
    gap: var(--mid-gap) !important;
  }

  /* Row 2 + Row 3: icons and filter dropdowns */
  .layout--desk .sideSec--controls #watchTools .watchToolsBar{
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-template-rows: var(--mid-row-h) var(--mid-row-h) !important;
    column-gap: 6px !important;
    row-gap: var(--mid-gap) !important;
    align-items: center !important;

    height: calc((var(--mid-row-h) * 2) + var(--mid-gap)) !important;
    min-height: calc((var(--mid-row-h) * 2) + var(--mid-gap)) !important;
  }

  .layout--desk .sideSec--controls #watchTools .toolIcoBtn,
  .layout--desk .sideSec--controls #watchTools .toolSel{
    height: var(--mid-row-h) !important;
    min-height: var(--mid-row-h) !important;
    max-height: var(--mid-row-h) !important;

    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;

    border-radius: 6px !important;
    line-height: 1 !important;
  }

  .layout--desk .sideSec--controls #watchTools .toolSel{
    font-size: 11px !important;
    padding-left: 6px !important;
    padding-right: 16px !important;
  }

  .layout--desk .sideSec--controls #watchTools .toolIcoBtn i{
    font-size: 12px !important;
    line-height: 1 !important;
  }

  /* Kill old 3+2 filter spans */
  .layout--desk .sideSec--controls #groupSel,
  .layout--desk .sideSec--controls #filterSel,
  .layout--desk .sideSec--controls #patternSel,
  .layout--desk .sideSec--controls #countrySel,
  .layout--desk .sideSec--controls #sortSel{
    grid-column: auto !important;
  }

  /* Explicit order */
  .layout--desk .sideSec--controls .toolIcoBtn[data-sel="groupSel"]{ order: 1 !important; }
  .layout--desk .sideSec--controls .toolIcoBtn[data-sel="filterSel"]{ order: 2 !important; }
  .layout--desk .sideSec--controls .toolIcoBtn[data-sel="patternSel"]{ order: 3 !important; }
  .layout--desk .sideSec--controls .toolIcoBtn[data-sel="countrySel"]{ order: 4 !important; }
  .layout--desk .sideSec--controls .toolIcoBtn[data-sel="sortSel"]{ order: 5 !important; }

  .layout--desk .sideSec--controls #groupSel{ order: 6 !important; }
  .layout--desk .sideSec--controls #filterSel{ order: 7 !important; }
  .layout--desk .sideSec--controls #patternSel{ order: 8 !important; }
  .layout--desk .sideSec--controls #countrySel{ order: 9 !important; }
  .layout--desk .sideSec--controls #sortSel{ order: 10 !important; }

  /* Row 4: Reset / Refresh / toggle = 25px */
  .layout--desk .sideSec--controls .watchToolsActions{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;

    height: var(--mid-row-h) !important;
    min-height: var(--mid-row-h) !important;
    align-items: center !important;
  }

  .layout--desk .sideSec--controls .watchToolsActions .watchResetLink,
  .layout--desk .sideSec--controls .watchToolsActions > #btnDefaultView,
  .layout--desk .sideSec--controls .watchToolsActions > #btnRefresh,
  .layout--desk .sideSec--controls .watchToolsActions > #btnSegToggleAll{
    height: var(--mid-row-h) !important;
    min-height: var(--mid-row-h) !important;
    max-height: var(--mid-row-h) !important;

    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;

    border-radius: 999px !important;
    font-size: 11.5px !important;
    line-height: 1 !important;
  }

  /* Row 5: Filtered + pager = 25px */
  .layout--desk .sideSec--controls .wlStatusBar{
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: 8px !important;
    align-items: center !important;

    height: var(--mid-row-h) !important;
    min-height: var(--mid-row-h) !important;
  }

  .layout--desk .sideSec--controls #tsCounts.watchCount,
  .layout--desk .sideSec--controls .pagerHdr,
  .layout--desk .sideSec--controls .pgBtn,
  .layout--desk .sideSec--controls #pageNums{
    height: var(--mid-row-h) !important;
    min-height: var(--mid-row-h) !important;
    max-height: var(--mid-row-h) !important;

    line-height: 1 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    align-items: center !important;
  }

  .layout--desk .sideSec--controls #tsCounts.watchCount{
    display: inline-flex !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: rgba(15,23,42,.70) !important;
  }

  .layout--desk .sideSec--controls .pagerHdr{
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    gap: 6px !important;
  }

  .layout--desk .sideSec--controls .pgBtn{
    min-width: 42px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .layout--desk .sideSec--controls #pageNums{
    min-width: 86px !important;
    display: inline-flex !important;
    justify-content: center !important;
  }

  /* Row 6 and Row 7:
     Recent line and current symbol line are each 25px,
     with 5px gap between them via .recentBar.
  */
  .layout--desk .sideSec--controls .recentBar{
    display: flex !important;
    flex-direction: column !important;
    gap: var(--mid-gap) !important;

    height: calc((var(--mid-row-h) * 2) + var(--mid-gap)) !important;
    min-height: calc((var(--mid-row-h) * 2) + var(--mid-gap)) !important;

    border: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
  }

  .layout--desk .sideSec--controls .recentRow,
  .layout--desk .sideSec--controls .currentSymbolMeta{
    height: var(--mid-row-h) !important;
    min-height: var(--mid-row-h) !important;
    max-height: var(--mid-row-h) !important;

    display: flex !important;
    align-items: center !important;

    line-height: 1 !important;
    overflow: hidden !important;
  }

  .layout--desk .sideSec--controls .recentRow{
    gap: 5px !important;
    flex-wrap: nowrap !important;
  }

  .layout--desk .sideSec--controls #recentSlots,
  .layout--desk .sideSec--controls .recentSlots{
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  /* Recent + current meta text all same muted style */
  .layout--desk .sideSec--controls #recentOpen,
  .layout--desk .sideSec--controls .recentChip,
  .layout--desk .sideSec--controls .recentChip--plain,
  .layout--desk .sideSec--controls #recentMore,
  .layout--desk .sideSec--controls .recentMoreLink,
  .layout--desk .sideSec--controls .currentSymbolMeta,
  .layout--desk .sideSec--controls .currentSymbolMetaPos,
  .layout--desk .sideSec--controls .currentSymbolMetaSymbol,
  .layout--desk .sideSec--controls .currentSymbolMetaIndustry{
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: var(--mid-muted) !important;
    text-decoration: none !important;
  }

  .layout--desk .sideSec--controls .recentChip,
  .layout--desk .sideSec--controls .recentChip--plain{
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;

    pointer-events: none !important;
    cursor: default !important;
  }

  .layout--desk .sideSec--controls #recentMore,
  .layout--desk .sideSec--controls .recentMoreLink{
    pointer-events: auto !important;
    cursor: pointer !important;
  }

  .layout--desk .sideSec--controls .currentSymbolMeta{
    gap: 6px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .layout--desk .sideSec--controls .currentSymbolMetaSep{
    display: none !important;
  }

  .layout--desk .sideSec--controls .currentSymbolMetaPos{
    flex: 0 0 auto !important;
  }

  .layout--desk .sideSec--controls .currentSymbolMetaSymbol{
    flex: 0 0 auto !important;
    max-width: 112px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .layout--desk .sideSec--controls .currentSymbolMetaIndustry{
    flex: 1 1 auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

.currentSymbolMeta {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.currentSymbolMetaLabel {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  color: rgba(100, 116, 139, 0.95);
}

.currentSymbolMetaPos,
.currentSymbolMetaSymbol,
.currentSymbolMetaIndustry {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.currentSymbolMetaPos {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.72);
}

.currentSymbolMetaSymbol {
  flex: 0 1 auto;
  font-size: 11px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.72);
}

.currentSymbolMetaIndustry {
  flex: 1 1 auto;
  font-size: 11px;
  font-weight: 700;
  color: rgba(100, 116, 139, 0.95);
}

.currentSymbolMetaSep {
  flex: 0 0 auto;
  color: rgba(148, 163, 184, 0.95);
}
/* =========================================================
   FINAL pager sizing override
   Keep Filtered count + compact pager on one line.
   Must stay at absolute end of CSS.
   ========================================================= */

@media (min-width: 1000px){

  .layout--desk .sideSec--controls .wlStatusBar{
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 6px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 25px !important;
    min-height: 25px !important;
    overflow: hidden !important;
  }

  .layout--desk .sideSec--controls #tsCounts.watchCount{
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .layout--desk .sideSec--controls .pagerHdr{
    justify-self: end !important;
    width: auto !important;
    min-width: 0 !important;
    height: 25px !important;
    min-height: 25px !important;

    display: grid !important;
    grid-template-columns: 24px 58px 24px !important;
    gap: 5px !important;
    align-items: center !important;

    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: visible !important;
  }

  .layout--desk .sideSec--controls #prevB,
  .layout--desk .sideSec--controls #nextB{
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 25px !important;
    min-height: 25px !important;
    max-height: 25px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 999px !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  .layout--desk .sideSec--controls #pageNums{
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    height: 25px !important;
    min-height: 25px !important;
    max-height: 25px !important;

    padding: 0 4px !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 999px !important;
    font-size: 11.5px !important;
    font-weight: 900 !important;
    line-height: 1 !important;

    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
}