  
  /*──────────────── FONTS ────────────────*/
  @font-face {
	font-family: "TR IBM Plex Sans";
	font-style: normal;
	font-weight: 100 700;
	font-stretch: 100%;
	font-display: optional;
	src: url("/mobile_pass/fonts/ibm-plex-sans-latin-var.woff2?v=1") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

  .futura-heavy {
	font-family: futura-pt, sans-serif;
	font-weight: 700;
	font-style: normal;
  }
  

	/* Reset */
	* { margin:0; padding:0; box-sizing:border-box; }
	:root{
	  --tr-menu-font: "IBM Plex Sans", sans-serif;
	  --tr-menu-font-weight: 700;
	  --tr-menu-letter-spacing: 0;
	  --tr-header-icon-stroke: 1.65;
	  --tr-header-badge-stroke: 1.9;
	  --tr-header-plus-stroke: 2.05;
	  --tr-category-icon-stroke: 1.85;
	  --tr-nav-accent: #70e8df;
	  --tr-nav-accent-rgb: 112, 232, 223;
	}
	html, body { height:100%;   font-family: "IBM Plex Sans", sans-serif;
 background:#000; overflow:hidden; overscroll-behavior:none; scrollbar-width:none; }
	html::-webkit-scrollbar,
	body::-webkit-scrollbar { width:0; height:0; display:none; }
	/* The iframe owns page scrolling; the shell must never become a second
       vertical scroll surface during iPad rubber-band or viewport resizing. */
	body { position:fixed; inset:0; width:100%; display:flex; flex-direction:column; }

	/* Keep the current page readable during navigation. Only ready content fades. */
	.content { position:relative; flex:1; min-height:0; min-width:0; overflow:hidden; background:#050f16; }
	iframe#contentFrame {
	  position:absolute; inset:0; width:100%; height:100%; border:none; display:block;
	  opacity:1; filter:none;
	}
	/* Match the first loading surface without recoloring settled iframe pages. */
	html.tr-frame-booting .content:has(> iframe#contentFrame[data-initial-load]) { background:#20262c; }
	html[data-reading-theme="light"].tr-frame-booting .content:has(> iframe#contentFrame[data-initial-load]) { background:#eef0f1; }
	/* The early nonce bootstrap enables this gate only when JavaScript runs.
       Keep layout/loading active, and leave later navigations readable. */
	html.tr-frame-booting iframe#contentFrame[data-initial-load] {
	  opacity:0 !important; pointer-events:none; background:#20262c; color-scheme:dark;
	}
	html[data-reading-theme="light"].tr-frame-booting iframe#contentFrame[data-initial-load] { background:#eef0f1; color-scheme:light; }
    /* The first Rankings frame uses the same texture/origin as later covers. */
    html.tr-frame-booting .content:has(> iframe#contentFrame[data-initial-load][data-rankings-boot]) {
      background-color:var(--tr-rankings-canvas-base);
      background-image:var(--tr-rankings-canvas-image);
      background-size:5px 5px;
    }
    html.tr-frame-booting .content:has(> iframe#contentFrame[data-initial-load][data-rankings-boot])::before {
      content:""; position:absolute; inset:0 0 auto; height:225px;
      background:var(--tr-rankings-canvas-glow); pointer-events:none;
    }
	iframe#contentFrame.visible { animation:trFrameReveal 140ms ease-out; }
    /* Rankings animates its own headings/cards after the loading handoff.
       Fading the entire iframe also dims and restarts the background glow. */
    iframe#contentFrame.visible[data-rankings-surface] { animation:none; }
	@keyframes trFrameReveal { from { opacity:.88; } to { opacity:1; } }

	#navigationLoadStatus {
	  position:fixed; top:calc(var(--navigation-feedback-top, 0px) + 12px); left:12px; right:12px; z-index:20;
	  display:flex; align-items:center; justify-content:space-between; gap:12px;
	  padding:8px 12px; background:#07191e; color:#d7eeee; border:1px solid #376268;
	  border-radius:4px; font:400 14px/1.4 "IBM Plex Sans",sans-serif;
	  box-shadow:0 3px 12px #0006;
	}
	#navigationLoadStatus button {
	  flex:none; min-height:44px; padding:6px 12px; border:1px solid #70e8df;
	  border-radius:3px; background:transparent; color:#70e8df; font:500 14px/1.4 "IBM Plex Sans",sans-serif;
	  cursor:pointer;
	}
	#navigationLoadStatus button:focus-visible { outline:2px solid #70e8df; outline-offset:3px; }
	#navigationLoadStatus[hidden] { display:none; }
    /* A slow Rankings request keeps its tint and exposes Retry above it. */
    .tr-rankings-busy #navigationLoadStatus {
      position:static; width:auto; max-width:min(480px,100%); margin:0;
      pointer-events:auto; flex-wrap:wrap; justify-content:center; text-align:center;
    }
    /* Loading covers content, while the taller footer wedge and menu stay above it.
       Standalone Rankings retains its own loading layer. */
    html[data-reading-surface="shell"] body .tr-rankings-busy { z-index:1000; }
    /* Retain the Rankings canvas while its replacement iframe is parsing. */
    html body .tr-rankings-busy.tr-rankings-busy--canvas { animation:none; }
    .tr-rankings-busy__canvas { position:absolute; z-index:-1; pointer-events:none; }
    .tr-rankings-busy__glow { position:absolute; inset:0 0 auto; pointer-events:none; }
    .tr-rankings-busy__canvas[hidden] { display:none; }

    /* The same status component covers the three server-rendered list pages.
       Their native canvas is available before the iframe response arrives. */
    html .content:has(> #contentFrame[data-loading-page="watchlists"]),
    html body .tr-rankings-busy[data-loading-page="watchlists"] {
      --tr-page-canvas-base:#101719; --tr-page-canvas-image:none;
      --tr-page-canvas-glow:none; --tr-page-canvas-glow-height:0px;
    }
    html[data-reading-theme="light"] .content:has(> #contentFrame[data-loading-page="watchlists"]),
    html[data-reading-theme="light"] body .tr-rankings-busy[data-loading-page="watchlists"] {
      --tr-page-canvas-base:#e5e9e9;
      --tr-loading-tone:#51616d; --tr-loading-hint:#516c77;
      --tr-loading-track:rgba(81,97,109,.16);
    }
    html .content:has(> #contentFrame:is([data-loading-page="platinum-search"],[data-loading-page="my-reports"])),
    html body .tr-rankings-busy:is([data-loading-page="platinum-search"],[data-loading-page="my-reports"]) {
      --tr-page-canvas-image:linear-gradient(-45deg,rgba(0,0,0,.75) 25%,transparent 25%,transparent 50%,rgba(0,0,17,.75) 50%,rgba(0,0,0,.75) 75%,transparent 75%);
    }
    html .content:has(> #contentFrame[data-loading-page="platinum-search"]),
    html body .tr-rankings-busy[data-loading-page="platinum-search"] {
      --tr-page-canvas-base:#00181c; --tr-page-canvas-glow-height:180px;
      --tr-page-canvas-glow:linear-gradient(180deg,rgba(120,120,140,.65) 0%,rgba(64,92,160,.50) 25%,rgba(40,60,120,.28) 55%,rgba(11,15,28,0) 100%);
    }
    html .content:has(> #contentFrame[data-loading-page="my-reports"]),
    html body .tr-rankings-busy[data-loading-page="my-reports"] {
      --tr-page-canvas-base:#16232d; --tr-page-canvas-glow-height:150px;
      --tr-page-canvas-glow:linear-gradient(180deg,rgba(103,143,164,.65) 0%,rgba(71,112,138,.5) 20%,rgba(47,83,108,.36) 40%,rgba(34,61,80,.22) 65%,rgba(26,43,58,.12) 85%,rgba(22,35,45,0) 100%);
    }
    html.tr-frame-booting .content:has(> iframe#contentFrame[data-initial-load][data-loading-page]) {
      background-color:var(--tr-page-canvas-base);
      background-image:var(--tr-page-canvas-image); background-size:5px 5px;
    }
    html.tr-frame-booting .content:has(> iframe#contentFrame[data-initial-load][data-loading-page])::before {
      content:""; position:absolute; inset:0 0 auto;
      height:var(--tr-page-canvas-glow-height); background:var(--tr-page-canvas-glow); pointer-events:none;
    }

	@media (prefers-reduced-motion:reduce) {
	  iframe#contentFrame.visible { animation:none; }
	}


	/* Overlay behind nav */
	.overlay { display:none; position:fixed; top:0; left:0;
			   width:100%; height:100%; background:rgba(0,0,0,0.5);
			   z-index:900; }
	.overlay.active { display:block; }

	/* Bottom nav panel */
	nav {
	  --gradient-bg: linear-gradient(-100deg,#779999 0%,#b0d0d3 100%);
	  position:fixed; bottom:-600px; left:0; right:0;
	  height:600px; background:var(--gradient-bg);
	  padding:20px; z-index:1001; overflow-y:auto;
	  transition:bottom .3s ease;
	  	  
		clip-path: polygon(
				20px 0,      /* start 20px right of top-left */
				100% 0,      /* top-right */
				100% 100%,   /* bottom-right */
				0 100%,      /* bottom-left */
				0 20px       /* up to 20px down the left edge */
			  );
	}
	nav.open { bottom:-100px;  }
	body[data-guest="1"] nav.open { bottom: -210px; }

	nav ul { list-style:none;  }
	nav ul li {
	  padding:15px; border-bottom:1px solid #444;
	  cursor:pointer; font-size:1.1rem; color:#000; font-weight: bold;
	}
	nav ul li:hover { background:#444; color:#fff; }

	#sideNav{
	  left: 0;
	  right: 0;
	  bottom: 0;
	  height: auto;
	  max-height: min(68vh, 520px);
	  padding: 10px 22px 44px;
	  overflow-y: auto;
	  background: linear-gradient(150deg, #b4d6d7 0%, #8eb9bb 62%, #07191b 100%);
	  box-shadow: 0 -18px 48px rgba(0,0,0,.42);
	  transform: translateY(calc(100% + 8px));
	  transition: transform .28s cubic-bezier(.22,.61,.36,1);
	  clip-path: polygon(
		18px 0,
		100% 0,
		100% calc(100% - 20px),
		calc(100% - 20px) 100%,
		0 100%,
		0 18px
	  );
	}

	#sideNav.open{
	  bottom: 0;
	  transform: translateY(0);
	}

	body[data-guest="1"] #sideNav.open{
	  bottom: 0;
	}

	#sideNav ul{
	  display: grid;
	  gap: 4px;
	  list-style: none;
	}

	#sideNav ul li{
	  min-height: 46px;
	  padding: 0 8px;
	  border-bottom: 1px solid rgba(0,0,0,.28);
	  display: flex;
	  align-items: center;
	  gap: 12px;
	  color: #021012;
	  font-size: .86rem;
	  font-weight: 800;
	  letter-spacing: 0;
	  line-height: 1.1;
	  text-transform: uppercase;
	  background: transparent;
	  transition: color .15s ease, background .15s ease;
	}

	#sideNav ul li:hover,
	#sideNav ul li:focus-visible{
	  background: rgba(0,0,0,.08);
	  color: #000;
	}

	#sideNav ul li.active{
	  color: #006f94;
	}

	#sideNav .side-nav-icon{
	  width: 28px;
	  height: 28px;
	  flex: 0 0 28px;
	  display: inline-grid;
	  place-items: center;
	  color: #06181b;
	  background: rgba(0,0,0,.08);
	  clip-path: polygon(
		5px 0,
		calc(100% - 5px) 0,
		100% 5px,
		100% calc(100% - 5px),
		calc(100% - 5px) 100%,
		5px 100%,
		0 calc(100% - 5px),
		0 5px
	  );
	}

	#sideNav .side-nav-icon svg{
	  width: 18px;
	  height: 18px;
	  fill: none;
	  stroke: currentColor;
	  stroke-width: 2;
	  stroke-linecap: round;
	  stroke-linejoin: round;
	}

	/* Triangle toggle button */
	.triangle-wedge {
	  position:fixed; bottom:60px; right:0;
	  width:78px; height:78px;
	  background: linear-gradient(
		  -75deg,
		  rgba(22, 49, 56, 1),
		  rgba(0, 0, 0, 1)
		);
	  clip-path:polygon(100% 0,0 100%,100% 100%);
	  cursor:pointer; z-index:1100;
		z-index: 2001;   /* one tick above the disclaimer */
	  transition:
		width .28s cubic-bezier(.22,.61,.36,1),
		height .28s cubic-bezier(.22,.61,.36,1),
		background .28s ease;
	  
	}
	.triangle-wedge .gear-icon {
	  position:absolute; top:70%; left:70%;
	  width:26px; transform:translate(-50%,-50%);
	  transition: width .28s cubic-bezier(.22,.61,.36,1);
	}
	.triangle-wedge .gear-icon svg line {
	  stroke:#fff !important;
	}

	/*──────────────── GRADIENT PROGRESS BAR ────────────────*/
	#grad-header {
	  position: fixed;
	  top: 0; left: 0;
	  width: 100%; height: 1.7px;
	  background: linear-gradient(
		to right,
		#b7ff00, #00ffe2, #ff005e, #ccff00
	  );
	  background-size: 200% 100%;
	  animation: gradientAnimation 15s linear infinite;
	  z-index: 999999999;
	}
	#grad-header[data-navigation-loading],
	#grad-header[data-ranking-filter-loading] { animation-duration:2.5s; }
	@media (prefers-reduced-motion:reduce) {
	  #grad-header { animation:none; }
	}
	@keyframes gradientAnimation {
	  0%   { background-position:   0% 50%; }
	  100% { background-position: 200% 50%; }
	}
	
#link-header {
	  position: fixed;
	  top: 60px; left: 0;
	  width: 100%;
	  height: 30px;
	  z-index: 999999999;
	  background: linear-gradient(180deg, rgba(4, 13, 17, .97) 0%, rgba(0, 3, 5, .985) 100%);
	  border-bottom: 0;
	  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--tr-shell-nav-notch, 20px)), calc(100% - var(--tr-shell-nav-notch, 20px)) 100%, 0 100%);
	  display: flex;
	  justify-content: center;
	  align-items: center;
	  gap: .7rem; /* Space between links: adjust as needed */
	  padding: 2px 5px 2px 5px;
	  font-family: var(--tr-menu-font);
	  font-size: 0.78rem;
	  font-weight: var(--tr-menu-font-weight);
	  letter-spacing: var(--tr-menu-letter-spacing);
	  box-shadow: 0 5px 14px rgba(0,0,0,.14);
	  -webkit-backdrop-filter: blur(16px) saturate(115%);
	  backdrop-filter: blur(16px) saturate(115%);
	  transition:
		top .32s cubic-bezier(.22,.61,.36,1),
		height .32s cubic-bezier(.22,.61,.36,1),
		padding .32s cubic-bezier(.22,.61,.36,1),
		background .32s ease,
		box-shadow .32s ease;
	/*  
clip-path: polygon(
		0% 0%, 100% 0%, 100% calc(100% - var(--tr-shell-nav-notch, 20px)),
		calc(100% - var(--tr-shell-nav-notch, 20px)) 100%, 20px 100%, 0% calc(100% - var(--tr-shell-nav-notch, 20px))
	  );
*/
	}
	
	/* Optional: Style links */
	#link-header a {
	  position: relative;
	  isolation: isolate;
	  color: rgba(246, 249, 251, .9);
	  text-decoration: none;
	  font-weight: var(--tr-menu-font-weight);
	  letter-spacing: var(--tr-menu-letter-spacing);
	  line-height: 1;
	  transition: color 0.18s;
	  padding: 3px 10px;
	  border-radius: 4px;
	  transition:
		color .18s ease,
		padding .32s cubic-bezier(.22,.61,.36,1),
		font-size .32s cubic-bezier(.22,.61,.36,1);
	}
	#link-header a::before {
	  content: "";
	  position: absolute;
	  z-index: -1;
	  inset: -5px -13px;
	  border-radius: 50%;
	  pointer-events: none;
	  opacity: 0;
	  background: radial-gradient(ellipse at 50% 50%, rgba(var(--tr-nav-accent-rgb), .16) 0%, rgba(var(--tr-nav-accent-rgb), .06) 48%, rgba(var(--tr-nav-accent-rgb), 0) 76%);
	  transition: opacity .2s ease;
	}
	#link-header a:hover,
	#link-header a:focus {
	  color: rgba(246, 249, 251, .9);
	}
	
	
	/* ────────────────────────────────────────────────
	   append these rules to your existing CSS
	   ──────────────────────────────────────────────── */
	#link-header a.active {
	  color: var(--tr-nav-accent);
	  text-shadow: 0 0 12px rgba(var(--tr-nav-accent-rgb), .18);
	}
	#link-header a.active::before {
	  opacity: 1;
	}
	#link-header a.active svg {
	  filter: drop-shadow(0 0 5px rgba(var(--tr-nav-accent-rgb), .2));
	}
	
	#link-header a.active:hover {
	  color: var(--tr-nav-accent);
	}

	#link-header a:active,
	#link-header a:active svg {
	  transform: none !important;
	  scale: none !important;
	}


/* add this under your existing #link-header a {} rules */
/* make all icons follow the link’s text color */
#link-header a svg {
  width:       19px;
  height:      19px;
  margin-right:5px;
  vertical-align: middle;
  flex-shrink: 0;
  position: relative; top:-1px;

  /* <– new: */
  fill:   currentColor;
  stroke: currentColor;
  transition:
	width .32s cubic-bezier(.22,.61,.36,1),
	height .32s cubic-bezier(.22,.61,.36,1),
	margin-right .32s cubic-bezier(.22,.61,.36,1);
}

#link-header a svg *,
#link-header a svg [stroke-width]{
  vector-effect: non-scaling-stroke;
  stroke-width: var(--tr-category-icon-stroke);
}

#link-header a svg [fill="currentColor"]{
  stroke: none;
}

/* Quieter rankings grouping controls; the primary navigation owns emphasis. */
html[data-reading-surface="shell"] #link-header a[data-url^="podcast.php"] {
  --tr-category-icon-stroke:1.5;
  /* Keep the browser tap overlay from flashing a rectangular link box. */
  border-radius:999px;
  -webkit-tap-highlight-color:transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:25px;
  white-space:nowrap;
}
html[data-reading-surface="shell"] #link-header a[data-url^="podcast.php"] svg {
  width:16px;
  height:16px;
  margin-right:0;
  top:0;
}
html[data-reading-surface="shell"] #link-header a[data-url^="podcast.php"].active {
  text-shadow:none;
}
html[data-reading-surface="shell"] #link-header a[data-url^="podcast.php"].active::before {
  opacity:.35;
}
html[data-reading-surface="shell"] #link-header a[data-url^="podcast.php"].active svg {
  filter:none;
}
@media(max-width:360px) {
  html[data-reading-surface="shell"] #link-header:has(>a[data-url^="podcast.php"]) {
    gap:4px;
    padding-inline:6px 16px;
  }
  html[data-reading-surface="shell"] #link-header a[data-url^="podcast.php"] {
    padding-inline:6px;
  }
}



	@keyframes gradientAnimation {
	  0%   { background-position:   0% 50%; }
	  100% { background-position: 200% 50%; }
	}

	/*──────────────── APP HEADER ────────────────*/
	#app-header {
	  position: fixed;
	  top: 0px; left: 0;
	  width: 100%;
	  height: 90px;
	  padding: 20px 0 0 35px;
	  background: linear-gradient(
		175deg,
		rgba(17, 38, 43, 1),
		rgba(0, 0, 0, 1)
	  );
/*	  background: linear-gradient(
		  175deg,
		  rgba(22, 49, 56, 1),
		  rgba(0, 0, 0, 0.88)
		);
*/
	  text-align: center;
	  z-index: 999999;
	  clip-path: polygon(
		0% 0%, 100% 0%, 100% calc(100% - var(--tr-shell-nav-notch, 20px)),
		calc(100% - var(--tr-shell-nav-notch, 20px)) 100%, 20px 100%, 0 100%
	  );
	  transition:
		height .32s cubic-bezier(.22,.61,.36,1),
		padding .32s cubic-bezier(.22,.61,.36,1),
		clip-path .32s cubic-bezier(.22,.61,.36,1),
		background .32s ease;
	}
	#app-header img {
	  max-height: 60px;
	  position: absolute;
	  left: 0px;
	  top: 17px;
	}

	/*──────────────── MOBILE ADJUSTMENTS ────────────────*/
	@media (max-width: 768px) {
	  .container { flex-direction: column; height: auto; }
	  #playlist { width: 100%; border-right: none; }
	  #player-header {
		position: fixed;
		top: 0; left: 0; right: 0;
		background: #fff;
	  }
	  #player {
		padding-top: calc(24px /* header pt */ + 1px /* border */ + 24px /* pb */);
	  }
	}

	/*──────────────── DISCLAIMER ────────────────*/
	.disclaimer {
	  position: fixed;
	  bottom: 0;
	  left: 0;
	  right: 0;
	  padding: 9px 10px 9px 20px;
	  background: #111;
	  color: #bbb;
	  font-size: 0.68rem;
	  z-index: 1002;
	  line-height: 1.2;

	  display: flex;
	  align-items: center;
	  gap: 12px;
	  box-sizing: border-box;
	  transition:
		min-height .28s cubic-bezier(.22,.61,.36,1),
		padding .28s cubic-bezier(.22,.61,.36,1),
		background .28s ease;
	}

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

	.disclaimer.is-expanded .disclaimer-link{
	  display: inline !important;
	  visibility: visible !important;
	  opacity: 1 !important;
	}

	.disclaimer-toggle{
	  border: 0;
	  background: transparent;
	  color: rgba(255,255,255,.58);
	  display: none;
	  align-items: center;
	  justify-content: center;
	  gap: 8px;
	  padding: 0;
	  cursor: pointer;
	  -webkit-tap-highlight-color: transparent;
	  touch-action: manipulation;
	  transition:
		height .28s cubic-bezier(.22,.61,.36,1),
		font-size .28s cubic-bezier(.22,.61,.36,1),
		gap .28s cubic-bezier(.22,.61,.36,1);
	}

	.disclaimer-toggle:focus-visible{
	  outline: 1px solid rgba(255,255,255,.65);
	  outline-offset: 2px;
	  border-radius: 6px;
	}

	.disclaimer-toggle-label{
	  display: none;
	}

	.disclaimer-toggle-icon{
	  display: none;
	}

.disclaimer-intraday{
		color: rgba(173, 173, 173, 1);
		
	}
	
	a {
		color: rgba(221, 221, 221, 1);
	}
/*	
	#installBtn {
		background: linear-gradient(
			to right,
			#b7ff00, #00ffe2, #ff005e, #ccff00
		  );
		  background-size: 200% 100%;
		  animation: gradientAnimation 35s linear infinite;
		  z-index: 999999999;
		}
	
	*/
	
	
		@keyframes gradientAnimation {
		  0%   { background-position:   0% 50%; }
		  100% { background-position: 200% 50%; }
	}
	#installBtn{
		background: cadetblue; 
		border: 3px solid black;
	}



/*──────────────── BOTTOM HIGHLIGHT (delayed fade-in) ────────────────*/
	@media (prefers-reduced-motion: no-preference) {
	  .bottom-gradient {
		  opacity: 0;

		position: fixed;
		bottom: 0;
		left: 0;
	
		width: 100%;
		height: 230px; /* ← tweak this */
	
		pointer-events: none;
		z-index: 1000;
	
		background: radial-gradient(
		  circle 200px at 100% 100%,
		  rgba(0, 60, 255, 0.7) 0%,
		  rgba(0, 60, 255, 0)   100%
		);
	
		/* Fade-in */
		animation: bottomGradientIn 300ms ease-out 2s forwards;
		will-change: opacity;
	  }
	
	  @keyframes bottomGradientIn {
		to { opacity: .35; }
	  }
	}



#installBtn{
	display:none;
	  position:fixed;
	  bottom:7em;
	  left:1em;
	  padding:0.6em 1em;
	  font-size:1rem;
	  color:#181e32;
	  border:none;
	  border-radius:4px;
	  z-index:1000;
}


.in-app-toast {
  position:     fixed;
  bottom:       1rem;
  left:         50%;
  transform:    translateX(-50%);
  background:   rgba(0, 0, 0, 0.8);
  color:        #fff;
  padding:      0.75rem 1rem;
  border-radius: 4px;
  z-index:       9999;
  max-width:     90%;
  font-size:     0.9rem;
  text-align:    center;
  cursor:        default;
  transition:    opacity 0.3s ease;
  opacity:       1;
}

.in-app-toast.clickable {
  cursor: pointer;
}



.autocomplete-list {
  position: absolute;
  z-index: 1000;
  background: white;
  border: 1px solid #ccc;
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
}
.autocomplete-list li {
  padding: 0.5em;
  cursor: pointer;
}
.autocomplete-list li.highlight {
  background: #0074D9;
  color: white;
}


/*──────────────── AI-REPORT MODAL ────────────────────────*/
.modal {
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100vw;
  max-width: none;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: rgba(1, 10, 14, .78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility 0s linear .28s;
  z-index: 10000;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.modal-content {
	position: relative;
  --tr-modal-font: "TR IBM Plex Sans", Arial, sans-serif;
  width: min(100vw, 720px);
  max-width: 100%;
  max-height: calc(100vh - 90px);
  max-height: calc(100dvh - 90px);
  padding: 18px 24px calc(22px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  color: #0a252a;
  font-family: var(--tr-modal-font);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background:
	radial-gradient(circle at 100% 0, rgba(71, 190, 207, .22), transparent 38%),
	linear-gradient(145deg, #f4fbfb 0%, #e3f5f3 100%);
  border: 1px solid rgba(137, 190, 194, .72);
  border-bottom: 0;
  border-radius: 0;
  box-shadow: 0 -18px 58px rgba(0, 0, 0, .48), 0 1px 0 rgba(255, 255, 255, .72) inset;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.2, .78, .25, 1);
}

.modal-content::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.modal-content:focus {
  outline: none;
}

.modal-premium-sash {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: -51px;
  left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 20px;
  color: rgba(0, 0, 0, .86);
  background: linear-gradient(90deg, rgba(98, 216, 226, .98) 0%, rgba(255, 239, 170, .96) 100%);
  border: 1px solid rgba(0, 0, 0, .48);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .42), inset 0 0 0 1px rgba(255, 255, 255, .22);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  font-family: roboto-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .5px;
  line-height: normal;
  text-transform: uppercase;
  transform: rotate(45deg);
  transform-origin: 50% 50%;
  pointer-events: none;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-content::before {
  content: none;
}

.modal-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  color: #087684;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .065em;
  line-height: 1.2;
  text-wrap: wrap;
  text-transform: uppercase;
}

.modal-kicker-copy {
  display: block;
  min-width: 0;
  white-space: nowrap;
}

.modal-kicker-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.modal-content h2 {
  max-width: 340px;
  margin: 0 0 10px;
  color: #061f24;
  font: 700 clamp(1.6rem, 6vw, 1.9rem)/1.08 var(--tr-modal-font);
  letter-spacing: -.035em;
  text-align: left;
  text-wrap: wrap;
}

.modal-content h2.modal-headline-stacked {
  font-size: clamp(1.35rem, 6.4vw, 1.9rem);
}

.modal-headline-line {
  display: block;
  white-space: nowrap;
}

.modal-description {
  max-width: 360px;
  margin: 0 0 22px;
  color: #3d5d62;
  font-size: .96rem;
  line-height: 1.48;
  text-align: left;
  text-wrap: wrap;
}

.modal-input-label {
  display: block;
  margin: 0 0 7px;
  color: #183c42;
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.modal-content input {
  display: block;
  width: 100%;
  height: 54px;
  margin: 0 0 14px;
  padding: 0 15px;
  color: #071e23;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #98bfc1;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(8, 52, 58, .06) inset;
  font: 650 1.03rem/1 var(--tr-modal-font);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.modal-content input::placeholder {
  color: #81979a;
  font-weight: 450;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
}

.modal-content input:focus {
  border-color: #078da0;
  box-shadow: 0 0 0 3px rgba(7, 141, 160, .16);
  outline: none;
}

.modal-credits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 16px;
  padding: 12px 0;
  background: rgba(10, 94, 102, .065);
  border: 1px solid rgba(34, 115, 122, .13);
  border-radius: 10px;
}

.modal-credit-item {
  display: grid;
  gap: 3px;
  padding: 0 14px;
}

.modal-credit-item + .modal-credit-item {
  border-left: 1px solid rgba(34, 115, 122, .18);
}

.modal-credit-label {
  color: #5d777b;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .045em;
  line-height: 1.2;
  text-transform: uppercase;
}

.modal-credit-item strong {
  color: #153c42;
  font-size: .93rem;
  line-height: 1.25;
}

.modal-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.modal-actions button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  cursor: pointer;
  font: 700 .92rem/1 var(--tr-modal-font);
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.modal-actions .modal-submit {
  color: #f7ffff;
  background: linear-gradient(135deg, #075f63, #087f85);
  border: 1px solid #07575b;
  box-shadow: 0 7px 16px rgba(4, 80, 85, .19);
}

.modal-actions .modal-submit:hover:not(:disabled),
.modal-actions .modal-submit:focus-visible:not(:disabled) {
  background: linear-gradient(135deg, #064f53, #067078);
  box-shadow: 0 8px 20px rgba(4, 80, 85, .27);
}

.modal-actions .modal-secondary {
  color: #31545a;
  background: transparent;
  border: 1px solid #aac6c8;
}

.modal-actions .modal-secondary:hover,
.modal-actions .modal-secondary:focus-visible {
  color: #0a2b30;
  background: rgba(255, 255, 255, .72);
  border-color: #86adb0;
}

.modal-actions button:active:not(:disabled) {
  transform: translateY(1px);
}

.modal-actions .modal-submit:disabled {
  color: #6b7e80;
  background: #d1dddd;
  border-color: #c2d0d1;
  box-shadow: none;
}

.modal-purchase-copy {
  margin: 15px 0 0;
  color: #607a7e;
  font-size: .79rem;
  line-height: 1.4;
  text-align: center;
}

.modal-purchase-copy .credit-buy-btn {
  color: #086f7c;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(8, 111, 124, .35);
  text-underline-offset: 3px;
}

.modal-purchase-copy .credit-buy-btn:hover,
.modal-purchase-copy .credit-buy-btn:focus-visible {
  color: #034d58;
  text-decoration-color: currentColor;
}

.modal.is-out-of-credits .modal-purchase-copy {
  padding: 11px 12px;
  color: #395b60;
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(34, 115, 122, .14);
  border-radius: 10px;
}

.modal.is-out-of-credits .credit-buy-btn {
  display: inline-block;
  margin-left: 4px;
  padding: 5px 8px;
  color: #fff;
  background: #087781;
  border-radius: 7px;
  text-decoration: none;
}

.modal.is-out-of-credits .credit-buy-btn:hover,
.modal.is-out-of-credits .credit-buy-btn:focus-visible {
  color: #fff;
  background: #055d65;
}

body.tr-modal-open {
  overflow: hidden;
}

/* A watchlist sheet lives inside the content iframe. Suppress the parent
   footer chrome while it is open so the sheet can own the full lower edge. */
body.tr-watchlist-modal-open #bottomNav,
body.tr-watchlist-modal-open .disclaimer,
body.tr-watchlist-modal-open #menuToggle,
body.tr-watchlist-modal-open .bottom-gradient {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 390px) {
  .modal {
	padding: 0;
  }

  .modal-content {
	padding: 18px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .modal-actions {
	grid-template-columns: 1fr;
  }

  .modal-actions .modal-secondary {
	min-height: 42px;
  }
}

@media (max-height: 620px) {
  .modal {
	padding-top: 0;
  }

  .modal-content {
	padding-top: 18px;
  }

  .modal-description {
	margin-bottom: 14px;
  }

  .modal-content input {
	height: 48px;
  }

  .modal-credits {
	padding: 9px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal,
  .modal-content {
	transition: none;
  }
}

/* END HEADER  CUSTOM REPORT ICON */


.header-plus{
  position: absolute;
  right: 45px;
  top: 30px;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s ease, box-shadow .12s ease;
  z-index: 1500;
  padding: 2px 2px;
  align-items: center;
	font-size: .7rem;
	font-weight: bold;
	text-transform: uppercase;
	color: #000;
	background:transparent;
	clip-path: polygon(
	  5px 0,
	  calc(100% - 5px) 0,
	  100% 5px,
	  100% calc(100% - 5px),
	  calc(100% - 5px) 100%,
	  5px 100%,
	  0 calc(100% - 5px),
	  0 5px
	);
	cursor: pointer;
	transition: transform 1.3s ease-in-out;
	font-family: "IBM Plex Sans", sans-serif;

}

.header-plus svg{
  width: 30px;
  height: 30px;
  fill: none;
  margin-right: 3px;
 /* flex-shrink: 0;    if in flex container */
	min-width:30px;  /* extra safeguard */

}

.header-plus:active{
  transform: translateY(-50%);
  box-shadow: none;
}

/* align plus-button and credit count vertically */
.header-plus-container {
  display: flex;
  flex-direction: column;
  align-items: end;
  margin-left: 1rem;  /* adjust spacing from logo if needed */
  margin-top:10px; margin-right: 10px;
}

/* END HEADER  CUSTOM REPORT ICON */





  .tr-alerts { position: relative; z-index: 11119999999;}
  .tr-bell {
	position: absolute; width: 27px; height: 27px; display:inline-flex;
	align-items:center; justify-content:center; cursor:pointer; color:#e7eefc;
	background: transparent; border: 0; padding: 0; top:15px; right:12px;
  }
  .tr-bell svg {
	width: 25px;
	height: 25px;
	stroke-width: var(--tr-header-icon-stroke);
  }
  .tr-bell svg * { vector-effect: non-scaling-stroke; }
  .tr-badge {
	position: absolute; top:-4px; right:-4px; min-width:16px; height:16px;
	border-radius:999px; padding:0 4px; font-size:11px; line-height:16px;
	background:#e11d48; color:#fff; display:none;
  }
  .tr-badge.active { display: inline-block; }

  .tr-panel {
	position: absolute; left: 0px; top: 90px; width: 100%; max-height: 60vh;
	overflow: auto; background:#0b0e13; color:#e7eefc;
	border:1px solid rgba(255,255,255,.08); padding:10px;
	box-shadow: 0 10px 30px rgba(0,0,0,.35); display:none; z-index: 9999;
  }
  .tr-item { padding: 10px; border-radius:8px; }
  .tr-item + .tr-item { border-top: 1px solid rgba(255,255,255,.06); }
  .tr-time { opacity:.7; font-size:12px; }
  .tr-row { display:flex; justify-content:space-between; gap:8px; align-items:center; }
  .tr-row a { color:#3ec9ff; text-decoration:none; }
  .tr-row a:hover { text-decoration:underline; }
  
  .tr-close {
	position: absolute;
	top: 6px;
	right: 10px;
	background: transparent;
	border: none;
	color: #e7eefc;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	opacity: .8;
  }
  .tr-close:hover {
	opacity: 1;
  }
/* visibility control */
  .tr-panel { display:none; }
  .tr-panel.is-open { display:block; }
  
  /* small utilities to replace inline styles */
  .muted { opacity:.7; }
  .mt-6 { margin-top:6px; }
  
  /* close button stays */
  .tr-close{
	position:absolute; top:8px; right:10px;
	background:transparent; border:0; color:#e7eefc;
	font-size:22px; line-height:1; cursor:pointer; opacity:.85;
  }
  .tr-close:hover{ opacity:1; }

  .tr-close-wedge {
	position:absolute;
	top:0; right:0;
	width:52px; height:52px;
	padding:0; border:0;
	background:#ff3b3b;
	cursor:pointer;
	z-index:10000;
	clip-path:polygon(100% 0, 0 0, 100% 100%);
	line-height:0;
	opacity:.6;
	transition: background .2s, opacity .2s;
  }
  .tr-close-wedge:hover {
	background:#e12c2c;
	opacity:1;
  }
  .tr-close-wedge span {
	position:absolute;
	top:5px; right:9px;
	font-size:22px;
	font-weight:800;
	line-height:1;
	color:#111;
	pointer-events:none;
	user-select:none;
  }

/* tune these for your asset */
  :root{
	--logo-height: 50px;       /* existing */
	--icon-width: 62px;        /* existing */
	--wipe-delay: 4s;          /* when the crop starts */
	--wipe-dur: 450ms;         /* crop speed */
  
	/* post-wipe dim */
	--postfade-dur: 1300ms;
	--postfade-delay: calc(var(--wipe-delay) + var(--wipe-dur) + 50ms);
  
	/* links fade */
	--links-fade-dur: 0.75s;
	--links-fade-delay: .2s; /* change if you want it later */
  }
  
  /* logo: visible immediately, wipe at 4s, then dim to 0.7 */
  #app-header .logo{
	top: 6.5px;
	height: var(--logo-height) !important;
	width: auto;
	display: block;
  
	opacity: 1;                     /* visible from the start */
	clip-path: inset(0 0 0 0);
	will-change: opacity, clip-path;
	transition:
	  height .32s cubic-bezier(.22,.61,.36,1),
	  top .32s cubic-bezier(.22,.61,.36,1),
	  opacity .24s ease,
	  clip-path .32s cubic-bezier(.22,.61,.36,1);
  
	animation:
	  tr-logo-to-icon var(--wipe-dur) ease var(--wipe-delay) forwards,
	  tr-logo-postfade var(--postfade-dur) ease var(--postfade-delay) forwards;
  }
  
  /* crop from the RIGHT so only the left icon remains */
  @keyframes tr-logo-to-icon{
	to{
	  /* top | right | bottom | left */
	  clip-path: inset(0 calc(100% - var(--icon-width)) 0 0);
	}
  }
  
  /* after wipe: dim remaining icon to 0.7 */
  @keyframes tr-logo-postfade{
	to { opacity: 1; }
  }
  
/* container stays put; children swipe in */
  #link-header{ will-change: contents; } /* optional hint */
  
  /* every direct child slides in */
  #link-header > *{
	opacity: 0;
	transform: translateX(-20px);
	animation: tr-links-swipe .45s cubic-bezier(.22,.61,.36,1) forwards;
  }
  
  /* stagger via nth-child (adjust 60ms to taste) */
  #link-header > *:nth-child(1){ animation-delay: calc(var(--links-fade-delay, .05s) + 0ms); }
  #link-header > *:nth-child(2){ animation-delay: calc(var(--links-fade-delay, .05s) + 60ms); }
  #link-header > *:nth-child(3){ animation-delay: calc(var(--links-fade-delay, .05s) + 120ms); }
  #link-header > *:nth-child(4){ animation-delay: calc(var(--links-fade-delay, .05s) + 180ms); }
  /* add more as needed */
  
  @keyframes tr-links-swipe{
	to { opacity: 1; transform: translateX(0); }
  }
  
  @media (prefers-reduced-motion: reduce){
	#link-header > *{ opacity:1; transform:none; animation:none; }
  }

  /* accessibility: respect reduced motion */
  @media (prefers-reduced-motion: reduce){
	#app-header .logo{
	  animation: none;
	  clip-path: inset(0 calc(100% - var(--icon-width)) 0 0);
	  opacity: 0.7; /* final state without anim */
	}
	#link-header{
	  animation: none;
	  opacity: 1;
	}
  }

  /* optional: reveal full wordmark on hover/focus 
  #app-header .logo:where(:hover, :focus){
	animation: none;
	clip-path: inset(0 0 0 0);
  }
  
  */

/* === Header link text reveal (no space before reveal) — FIXED === */
  .headerlinktext{
	pointer-events: none;              /* label never blocks clicks */
	display: inline-block;
	white-space: nowrap;
	overflow: hidden;
  
	/* start with no horizontal footprint */
	max-width: 0;
  
	color: rgba(255,255,255,1);
	font-family: var(--tr-menu-font);
	font-size: .68rem;
	font-weight: var(--tr-menu-font-weight);
	line-height: 1.1;
	letter-spacing: var(--tr-menu-letter-spacing);
	text-align: left;
  
	/* gradient text
	background: linear-gradient(
	  160deg,
	  rgba(37,172,255,1) 0%,
	  rgba(0,247,255,1) 45%,
	  rgba(37,172,255,1) 100%
	);
	*/
	background: linear-gradient(
	  160deg,
	  rgba(212,212,212,1) 0%,
	  rgba(255,255,255,1) 45%,
	  rgba(168,168,168,1) 100%
	);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	opacity: 1;
	transform: translateX(0);
	transition:
	  max-width .34s cubic-bezier(.22,.61,.36,1),
	  clip-path .34s cubic-bezier(.22,.61,.36,1),
	  opacity .24s ease,
	  transform .34s cubic-bezier(.22,.61,.36,1);
  
	/* wipe timing matches your logo vars */
	animation: tr-text-reveal var(--wipe-dur) ease var(--wipe-delay) forwards;
  }
  
  /* animate with max-width so siblings/icons don't get squeezed */
  @keyframes tr-text-reveal{
	from{ max-width: 0;      clip-path: inset(0 100% 0 0); }
	to  { max-width: var(--tr-header-label-width, 1000px); clip-path: inset(0 0 0 0); }
  }
  
  @media (prefers-reduced-motion: reduce){
	.headerlinktext{
	  animation: none;
	  max-width: none;
	  clip-path: inset(0 0 0 0);
	}
  }
  
  /* START HEADER PLATINUM ARCHIVE CUSTOM REPORT ICON — FIXED */
  
  .header-actions{
	position:absolute;
	right:58px;
	top:30px;
	transform: translateY(-50%);
	display:flex;
	align-items:center;
	gap:18px;
	transition:
	  top .32s cubic-bezier(.22,.61,.36,1),
	  right .32s cubic-bezier(.22,.61,.36,1),
	  gap .32s cubic-bezier(.22,.61,.36,1);

  }
  
  .header-plus,
  .header-platinum-archive,
  .header-news-analysis{
	position: relative;       /* no absolute overlap */
	right:auto; top:auto;
	transform:none;
	border: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2px 2px;
	font-size: .7rem;
	font-weight: var(--tr-menu-font-weight);
	font-family: var(--tr-menu-font);
	letter-spacing: var(--tr-menu-letter-spacing);
	line-height: 1.1;
	text-transform: uppercase;
	color: #000;
	background: transparent;
	cursor: pointer;
	transition:
	  transform .12s ease,
	  box-shadow .12s ease,
	  padding .32s cubic-bezier(.22,.61,.36,1);
	clip-path: polygon(
	  5px 0,
	  calc(100% - 5px) 0,
	  100% 5px,
	  100% calc(100% - 5px),
	  calc(100% - 5px) 100%,
	  5px 100%,
	  0 calc(100% - 5px),
	  0 5px
	);
  }

  .header-news-analysis{
	width:28px;
	height:28px;
	flex:0 0 28px;
	margin-left:4px;
	padding:0;
	clip-path:none;
  }
  
  .header-plus:active,
  .header-platinum-archive:active,
  .header-news-analysis:active{
	transform: none;
	box-shadow: none;
  }
  
  /* icons: never shrink */
  .header-plus svg,
  .header-platinum-archive svg,
  .header-news-analysis svg{
	width:30px; height:30px;
	flex: none;
	min-width:30px;
	margin-right:3px;
	fill: none;
	transition:
	  width .32s cubic-bezier(.22,.61,.36,1),
	  height .32s cubic-bezier(.22,.61,.36,1),
	  min-width .32s cubic-bezier(.22,.61,.36,1),
	  margin-right .32s cubic-bezier(.22,.61,.36,1);
  }

  .header-news-analysis svg{
	width:28px;
	height:28px;
	min-width:28px;
	margin-right:0;
	transform:translateY(-1px);
	filter:none;
  }

  .header-plus svg,
  .header-platinum-archive svg{
	overflow: visible;
  }

  .header-plus,
  .header-platinum-archive{
	clip-path: none;
	overflow: visible;
  }

  .news-badge{
	position:absolute;
	top:-2px;
	right:-3px;
	min-width:15px;
	height:15px;
	border-radius:999px;
	padding:0 4px;
	background:#e11d48;
	color:#fff;
	display:none;
	font-size:10px;
	font-weight:700;
	line-height:15px;
	text-align:center;
	box-shadow:0 0 0 1px rgba(0,0,0,.55);
  }

  .news-badge.active{
	display:inline-block;
  }

  .header-actions svg *,
  .header-actions svg [stroke-width]{
	vector-effect: non-scaling-stroke;
	stroke-width: var(--tr-header-icon-stroke);
  }

  .header-actions .header-icon-badge-stroke{
	stroke-width: var(--tr-header-badge-stroke);
  }

  .header-plus .header-icon-badge-stroke{
	stroke-width: var(--tr-header-plus-stroke);
  }

  .header-news-analysis svg *,
  .header-news-analysis svg [stroke-width]{
	stroke-width: .45;
  }

  /* Platinum label styling + reveal */
  .headerlinktextplatinum{
	pointer-events: none;      /* keep clicks on the button, not the text */
	display:inline-block;
	white-space:nowrap;
	overflow:hidden;
	max-width:0;
  
	font-family: var(--tr-menu-font);
	font-size:.68rem;
	font-weight: var(--tr-menu-font-weight);
	line-height: 1.1;
	letter-spacing: var(--tr-menu-letter-spacing);
	text-align:left;
  
	background: linear-gradient(
	  160deg,
	  rgba(212,212,212,1) 0%,
	  rgba(255,255,255,1) 45%,
	  rgba(168,168,168,1) 100%
	);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	opacity: 1;
	transform: translateX(0);
	transition:
	  max-width .34s cubic-bezier(.22,.61,.36,1),
	  clip-path .34s cubic-bezier(.22,.61,.36,1),
	  opacity .24s ease,
	  transform .34s cubic-bezier(.22,.61,.36,1);
  
	animation: tr-text-reveal-plat var(--wipe-dur) ease var(--wipe-delay) forwards;
	
  }
  
  @keyframes tr-text-reveal-plat{
	from{ max-width: 0;      clip-path: inset(0 100% 0 0); }
	to  { max-width: var(--tr-header-label-width, 1000px); clip-path: inset(0 0 0 0); }
  }

  @media (max-width: 520px){
	.header-actions{
	  right:53px;
	  gap:12px;
	}

	.header-plus,
	.header-platinum-archive,
	.header-news-analysis{
	  padding:1px;
	}

	.header-news-analysis{
	  width:26px;
	  height:26px;
	  flex-basis:26px;
	  margin-left:3px;
	  padding:0;
	}

	.header-plus svg,
	.header-platinum-archive svg,
	.header-news-analysis svg{
	  width:27px;
	  height:27px;
	  min-width:27px;
	  margin-right:3px;
	}

	.header-news-analysis svg{
	  width:26px;
	  height:26px;
	  min-width:26px;
	  margin-right:0;
	}

	.headerlinktext,
	.headerlinktextplatinum{
	  font-size:.64rem;
	  line-height:1.08;
	}

	.tr-bell{
	  width:25px;
	  height:25px;
	  top:16px;
	  right:13px;
	}

	.tr-bell svg{
	  width:23px;
	  height:23px;
	}
  }

  @media (max-width: 410px){
	.header-actions{
	  right:48px;
	  gap:8px;
	}

	.header-news-analysis{
	  width:24px;
	  height:24px;
	  flex-basis:24px;
	  margin-left:2px;
	}

	.header-plus svg,
	.header-platinum-archive svg,
	.header-news-analysis svg{
	  width:24px;
	  height:24px;
	  min-width:24px;
	  margin-right:2px;
	}

	.header-news-analysis svg{
	  width:24px;
	  height:24px;
	  min-width:24px;
	  margin-right:0;
	}

	.headerlinktext,
	.headerlinktextplatinum{
	  font-size:.58rem;
	}

	.tr-bell{
	  width:23px;
	  height:23px;
	  top:17px;
	  right:13px;
	}

	.tr-bell svg{
	  width:21px;
	  height:21px;
	}
  }

  body.tr-nav-ready #app-header .logo{
	animation: none;
	clip-path: inset(0 calc(100% - var(--icon-width)) 0 0);
	opacity: 1;
  }

  body.tr-nav-ready .headerlinktext,
  body.tr-nav-ready .headerlinktextplatinum{
	animation: none;
	max-width: 1000px;
	clip-path: inset(0 0 0 0);
	opacity: 1;
	transform: translateX(0);
  }

  body.tr-nav-ready #link-header > *{
	animation: none;
	opacity: 1;
	transform: none;
  }

  body.tr-nav-compact #app-header{
	height: 70px;
	padding-top: 8px;
	clip-path: polygon(
	  0% 0%, 100% 0%, 100% calc(100% - var(--tr-shell-nav-notch, 14px)),
	  calc(100% - var(--tr-shell-nav-notch, 14px)) 100%, 14px 100%, 0 100%
	);
  }

  body.tr-nav-compact #app-header .logo{
	animation: none !important;
	/* Keep the brand icon visible when the action row compacts. */
	clip-path: inset(0 calc(100% - var(--icon-width)) 0 0) !important;
	opacity: 1;
  }

  body.tr-nav-compact .header-actions{
	top: 21px;
	right: 55px;
	gap: 18px;
  }

  body.tr-nav-compact .header-plus,
  body.tr-nav-compact .header-platinum-archive,
  body.tr-nav-compact .header-news-analysis{
	padding: 0;
  }

  body.tr-nav-compact .header-plus,
  body.tr-nav-compact .header-platinum-archive{
	clip-path: none;
	overflow: visible;
  }

  body.tr-nav-compact .header-plus svg,
  body.tr-nav-compact .header-platinum-archive svg,
  body.tr-nav-compact .header-news-analysis svg{
	width: 26px;
	height: 26px;
	min-width: 26px;
	margin-right: 0;
  }

  body.tr-nav-compact .header-news-analysis{
	width: 26px;
	height: 26px;
	flex-basis: 26px;
	margin-left: 0;
  }

  body.tr-nav-compact .headerlinktext,
  body.tr-nav-compact .headerlinktextplatinum{
	animation: none !important;
	max-width: 0 !important;
	clip-path: inset(0 100% 0 0) !important;
	opacity: 0;
	transform: translateX(-8px);
  }

  body.tr-nav-compact #link-header{
	top: 43px;
	height: 27px;
	gap: .45rem;
	padding-top: 1px;
	padding-bottom: 1px;
	background: linear-gradient(180deg, rgba(4, 13, 17, .98) 0%, rgba(0, 3, 5, .99) 100%);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--tr-shell-nav-notch, 14px)), calc(100% - var(--tr-shell-nav-notch, 14px)) 100%, 0 100%);
	box-shadow: 0 4px 12px rgba(0,0,0,.13);
  }

  body.tr-nav-compact #link-header a{
	padding: 2px 8px;
	font-size: .72rem;
  }

  body.tr-nav-compact #link-header a svg{
	width: 17px;
	height: 17px;
	margin-right: 4px;
  }

  body.tr-nav-compact .tr-bell{
	top: 8px;
	right: 13px;
	width: 24px;
	height: 24px;
  }

  body.tr-nav-compact .tr-bell svg{
	width: 22px;
	height: 22px;
  }

  @media (max-width: 520px){
	body.tr-nav-compact #app-header{
	  height: 68px;
	}


	body.tr-nav-compact #link-header{
	  top: 41px;
	}

	body.tr-nav-compact .header-actions{
	  right: 50px;
	  gap: 15px;
	}

	body.tr-nav-compact .header-plus svg,
	body.tr-nav-compact .header-platinum-archive svg,
	body.tr-nav-compact .header-news-analysis svg{
	  width: 24px;
	  height: 24px;
	  min-width: 24px;
	}

	body.tr-nav-compact .header-news-analysis{
	  width: 24px;
	  height: 24px;
	  flex-basis: 24px;
	}
  }

  @media (prefers-reduced-motion: reduce){
	#app-header,
	#link-header,
	#link-header a,
	#link-header a svg,
	#app-header .logo,
	.header-actions,
	.header-plus,
	.header-platinum-archive,
	.header-news-analysis,
	.header-plus svg,
	.header-platinum-archive svg,
	.header-news-analysis svg,
	.headerlinktext,
	.headerlinktextplatinum,
	.tr-bell,
	.tr-bell svg{
	  transition: none !important;
	}
  }
  
  



/* The gradient bar sits on a massive z-index; don't let it eat clicks */
  #grad-header { pointer-events: none; }
  
  /* Backdrop that appears ONLY while alerts are open */
  #trAlertsBackdrop{
	position: fixed;
	inset: 0;
	z-index: 9998;           /* below the panel (9999), above content/iframe */
	background: transparent; /* no dimming; just to catch clicks */
	display: none;
	pointer-events: auto;
  }
  
  /* Panel visibility */
  .tr-panel { display: none; z-index: 9999; }
  .tr-panel.is-open { display: block; }

  
/*  .headerlinktextplatinum{ animation-delay: calc(var(--wipe-delay) + 180ms); } */

/* --- Bottom sheet stacking & outside-click behavior --- */
#overlay { z-index: 1490 !important; }   /* catches outside clicks */
#sideNav { z-index: 1500 !important; }   /* sits above overlay */

/* Wedge + disclaimer remain visible (and clickable) above the sheet */
.triangle-wedge { z-index: 2001 !important; pointer-events: auto; }
.disclaimer     { z-index: 2002 !important; }

/* While the sheet is open, keep header interactive.
   Only the gradient bar should ignore clicks. */
.sheet-open #grad-header { pointer-events: none; }

/* Overlay must actually capture clicks when shown */
.overlay.active { display: block; pointer-events: auto; }

/* Optional handle (hidden unless you add it in HTML) */
.sheet-handle{
  width: 48px; height: 5px; border-radius: 999px;
  background: rgba(0,0,0,.45); margin: 2px auto 10px;
  pointer-events: auto; touch-action: none; display: block;
}

body.tr-nav-compact #sideNav{
  padding-bottom: 34px;
}

@media (max-width: 390px){
  #sideNav{
	padding-left: 18px;
	padding-right: 18px;
  }

  body.tr-nav-compact #sideNav{
	padding-bottom: 32px;
  }

  #sideNav ul li{
	font-size: .8rem;
	gap: 10px;
  }
}

/* Gradient progress bar should never eat clicks */
#grad-header { pointer-events: none; }


.modal-nudges { margin-top: 8px; }
.modal-nudges .nudge {
  display:flex; flex-wrap:wrap; align-items:center; gap:8px;
  font-size:.95rem; color:#324766;
}
.modal-nudges  { opacity:.9; color: rgb(168, 132, 10);}
.hint { opacity:.9; color: rgb(168, 132, 10); }
.modal-nudges .tiny-note { font-size:.7rem; color:#8a8a8a; }
.link-btn {
  display:inline-block; padding:6px 10px; border-radius:6px; text-decoration:none;
  background:#00427e; color:#fff; font-weight:500; text-transform: uppercase;
  font-size: 14px;
}
button[disabled] { opacity:.55; cursor:not-allowed; }

.install-icon{
	margin-bottom: -6px;
	margin-right:5px;
}


/* Toasts (CSP-safe) */
#trToastWrap{
  position: fixed;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%);
  z-index: 9999;
  display: grid;
  gap: 10px;
  width: min(520px, calc(100vw - 24px));
  pointer-events: none;
}

.tr-toast{
  pointer-events: auto;
  background: rgba(17, 23, 42, .92);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 44px rgba(0,0,0,.55);
  border-radius: 14px;
  padding: 12px 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: start;

  opacity: 0;
  transform: translateY(12px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;

  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: rgba(234,240,255,.96);
}

.tr-toast.show{
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tr-toast .ico{
  width: 24px; height: 24px;
  display: grid; place-items: center;
  opacity: .95;
  margin-top: 1px;
}

.tr-toast .txt strong{
  display: block;
  font-weight: 650;
  letter-spacing: .2px;
  margin-bottom: 2px;
}

.tr-toast .txt div{
  opacity: .85;
  line-height: 1.35;
  font-size: 13.5px;
}

.tr-toast .x{
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.72);
  font-size: 20px;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
}

.tr-toast.clickable{ cursor: pointer; }
.tr-toast.clickable:hover{ border-color: rgba(255,255,255,.18); }



@media (max-width: 420px){
  #trToastWrap{ bottom: 74px; }
  .tr-toast{ padding: 11px 12px; }
}

/* Alerts panel polish (dark, crisp, mobile-friendly) */
#trPanel{
  position:absolute; /* or fixed depending on your header layout */
  top: calc(100% + 100px);
  right: 0;
  width: min(420px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - 120px));
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(13, 18, 34, .96);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  transform: translateY(-6px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
  z-index: 9999;
  width: 100% !important;
}

#trPanel.is-open{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#trPanel .tr-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 12px 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

#trPanel .tr-title{
  display:flex;
  align-items:baseline;
  gap:10px;
  font-weight: 650;
  letter-spacing: .2px;
}

#trPanel .tr-title .mini{
  font-size: 12px;
  color: rgba(255,255,255,.62);
  font-weight: 500;
}

#trPanel .tr-actions{
  display:flex;
  gap:8px;
  align-items:center;
}

#trPanel .tr-iconbtn{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.90);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}
#trPanel .tr-iconbtn:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
  transform: translateY(-1px);
}
#trPanel .tr-iconbtn:active{ transform: translateY(0); }

#trPanel .tr-body{
  overflow:auto;
  max-height: inherit;
}

#trPanel .tr-empty{
  padding: 16px 14px;
  color: rgba(255,255,255,.70);
  font-size: 13px;
}

#trPanel .tr-list{
  display:flex;
  flex-direction:column;
  padding: 8px;
  gap: 8px;
}

#trPanel .tr-card{
  display:flex;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  cursor:pointer;
  user-select:none;
  transition: background .12s ease, border-color .12s ease, transform .08s ease;
}
#trPanel .tr-card:hover{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.14);
  transform: translateY(-1px);
}
#trPanel .tr-card:active{ transform: translateY(0); }

#trPanel .tr-dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  background: rgba(124,107,250,.95); /* your --cta vibe */
  box-shadow: 0 0 0 3px rgba(124,107,250,.18);
  flex: 0 0 auto;
}

#trPanel .tr-main{
  flex:1;
  min-width:0;
}

#trPanel .tr-toprow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

#trPanel .tr-kicker{
  font-size: 12px;
  color: rgba(255,255,255,.60);
}

#trPanel .tr-symbol{
  font-size: 14px;
  font-weight: 700;
  letter-spacing:.3px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

#trPanel .tr-time{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.62);
}

#trPanel .tr-chevron{
  color: rgba(255,255,255,.45);
  font-size: 18px;
  line-height: 1;
  margin-left: 4px;
  flex: 0 0 auto;
}

#trPanel .tr-foot{
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.55);
  font-size: 12px;
}

/* Badge polish (optional) */
#trBadge{
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  transform: scale(.92);
  transform-origin: center;
}
#trBadge.active{
  transform: scale(1);
}

.install-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(180deg, rgba(124,107,250,.95), rgba(98,86,230,.95));
  color:#fff;
  font:600 14px/1.1 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  letter-spacing:.2px;
  box-shadow:0 14px 30px rgba(0,0,0,.35);
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
clip-path: polygon(
	10px 0,                 /* top edge, after top-left cut */
	calc(100% - 10px) 0,    /* top edge, before top-right cut */
	100% 10px,              /* right edge, after top-right cut */
	100% calc(100% - 10px), /* right edge, before bottom-right cut */
	calc(100% - 10px) 100%, /* bottom edge, after bottom-right cut */
	10px 100%,              /* bottom edge, before bottom-left cut */
	0 calc(100% - 10px),    /* left edge, after bottom-left cut */
	0 10px                  /* left edge, before top-left cut */
  );

  
}
.install-btn:hover{ filter:brightness(1.05); }
.install-btn:active{ transform:translateY(1px); filter:brightness(.98); }
.install-btn:focus-visible{
  outline:0;
  box-shadow:0 0 0 4px rgba(163,203,255,.35), 0 14px 30px rgba(0,0,0,.35);
}
.install-appicon{
  width:40px;
  height:40px;
  border-radius:7px;
  margin-right: 5px;
  box-shadow:0 0 0 1px rgba(255,255,255,.22);
  
  
}
.install-appicon{ vertical-align:middle; }

#trRefreshBtn{
	display: none !important;
}

/* ================================
   FIX: disclaimer should fill width on desktop
   ================================ */
.disclaimer{
  left: 0;
  right: 0;              /* makes it stretch */
  width: auto;           /* allow stretch */
  max-width: none;       /* stop shrink behavior */
  box-sizing: border-box;
}

/* leave room for the wedge on the right */
@media (min-width: 769px){
  .disclaimer{
	min-height: 55px;
  }
  
  .disclaimer-text{
	  padding: 5px;
	  font-size:.7rem;
	  
	  
	  
  }
}

  .disclaimer-text{
	  margin-right:0px;
	  padding: 4px;
	  
	  font-size: .6rem;
	  }

/* Compact legal footer */
.disclaimer.is-compact{
  min-height: 32px;
  padding: 0 10px;
  gap: 0;
  align-items: center;
  justify-content: center;
}

.disclaimer.is-compact .disclaimer-text{
  display: none;
}

.disclaimer.is-compact .disclaimer-toggle{
  display: inline-flex;
  flex: 1 1 auto;
  height: 30px;
  min-width: 0;
  color: rgba(221,221,221,1);
  font-size: .6rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.disclaimer.is-compact .disclaimer-toggle-icon{
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.1);
}

.disclaimer.is-compact .disclaimer-toggle-icon svg{
  width: 12px;
  height: 12px;
  fill: none;
  stroke: rgba(238,238,238,1);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-.5px);
}

.disclaimer.is-compact .disclaimer-toggle::before,
.disclaimer.is-compact .disclaimer-toggle::after{
  content: "";
  display: block;
  width: min(26vw, 150px);
  height: 1px;
  background: rgba(255,255,255,.26);
}

.disclaimer.is-compact .disclaimer-toggle-label{
  display: inline-block;
  white-space: nowrap;
}

body.tr-nav-compact .triangle-wedge{
  width: 78px;
  height: 78px;
}

body.tr-nav-compact .triangle-wedge .gear-icon{
  width: 26px;
}

/* The legal bar keeps one size while the top header compacts. */
@media (min-width: 769px){
  .disclaimer.is-compact{
	min-height: 32px;
  }
}

@media (max-width: 390px){
  .disclaimer.is-compact .disclaimer-toggle::before,
  .disclaimer.is-compact .disclaimer-toggle::after{
	width: min(18vw, 64px);
  }
}

body[data-guest="1"] #logoutBtn,
body[data-guest="1"] #enablePushBtn,
body[data-guest="1"] #myAccountBtn,
body[data-guest="1"] #myAIReportArchive

 {
  display: none !important;
}


/* Hide "Login" when user is NOT a guest (i.e., logged in) */
body:not([data-guest="1"]) #loginBtnLink,
body:not([data-guest="1"]) #createAccountBtn{
  display:none !important;
}

/* The news reader gets its own controls; the existing anchors remain available
   for the ranking and report pages that configure them. */
body.tr-news-page iframe#contentFrame,
body.tr-watchlists-page iframe#contentFrame,
body.tr-chart-page iframe#contentFrame{
  position: fixed;
  top: var(--context-shell-top, 100px);
  bottom: var(--context-shell-bottom, 100px);
  height: calc(100% - var(--context-shell-top, 100px) - var(--context-shell-bottom, 100px));
}

body.tr-news-page .bottom-gradient,
body.tr-watchlists-page .bottom-gradient,
body.tr-chart-page .bottom-gradient{ display: none; }

/* News begins below the header; extend its canvas behind the shared notch.
   A Light preference uses Dim shell chrome but a Light News canvas. */
html[data-reading-surface="shell"] body.tr-news-page,
html[data-reading-surface="shell"] body.tr-news-page .content { background:#0b1116; }
html[data-reading-surface="shell"][data-reading-theme="light"] body.tr-news-page,
html[data-reading-surface="shell"][data-reading-theme="light"] body.tr-news-page .content { background:#d1d7d6; }

/* Match the workspace behind the main header's lower-right notch. */
html[data-reading-surface="shell"] body.tr-leaders-page{ background: #0b1419; }
html[data-reading-surface="shell"][data-reading-theme="light"] body.tr-leaders-page{ background: #edf2f3; }
html[data-reading-surface="shell"] body.tr-chart-page{ background: #0b1116; }
html[data-reading-surface="shell"][data-reading-theme="light"] body.tr-chart-page{ background: #d1d7d6; }

/* These workspaces own their controls; keep only the main app navigation. */
body:is(.tr-chart-page, .tr-leaders-page, .tr-watchlists-page, .tr-platinum-page, .tr-reports-page) #link-header{ display: none !important; }
body:is(.tr-chart-page, .tr-leaders-page, .tr-watchlists-page, .tr-platinum-page, .tr-reports-page) #app-header{ height: 60px; }
body:is(.tr-chart-page, .tr-leaders-page, .tr-watchlists-page, .tr-platinum-page, .tr-reports-page).tr-nav-compact #app-header{ height: 43px; }
@media (max-width: 520px){
  body:is(.tr-chart-page, .tr-leaders-page, .tr-watchlists-page, .tr-platinum-page, .tr-reports-page).tr-nav-compact #app-header{ height: 41px; }
}

#link-header .news-filter-control{
  display: none;
}

/* News uses the shared secondary-navigation pill geometry and emphasis. */
html[data-reading-surface="shell"] body #link-header[data-context="news"] {
  display:flex; justify-content:flex-start; align-items:center;
  gap:6px; height:40px; box-sizing:border-box;
  padding:4px calc(var(--tr-app-content-inset,0px) + 18px) 4px calc(var(--tr-app-content-inset,0px) + 6px);
  border-bottom:0;
}
html[data-reading-surface="shell"] body #link-header[data-context="news"] > a { display:none !important; }
html[data-reading-surface="shell"] body #link-header[data-context="news"] .news-filter-control[data-news-sentiment] {
  appearance:none; display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center;
  gap:6px; box-sizing:border-box; height:32px; min-height:32px; min-width:0;
  margin:0; padding:0 12px; border:0; border-radius:999px;
  background:transparent; color:var(--tr-body,rgba(246,249,251,.9));
  font:500 12px/16px var(--tr-menu-font); letter-spacing:normal;
  cursor:pointer; white-space:nowrap; opacity:1; transform:none; animation:none;
  transition:color .18s ease, background-color .2s ease;
  -webkit-tap-highlight-color:transparent;
}
html[data-reading-surface="shell"] body #link-header[data-context="news"] .news-filter-control[data-news-sentiment]:hover { background:rgba(112,232,223,.077); }
html[data-reading-surface="shell"] body #link-header[data-context="news"] .news-filter-control[data-news-sentiment][aria-pressed="true"],
html[data-reading-surface="shell"] body #link-header[data-context="news"] .news-filter-control[data-news-sentiment][aria-pressed="true"]:hover,
html[data-reading-surface="shell"] body #link-header[data-context="news"] .news-filter-control[data-news-sentiment]:active { background:rgba(112,232,223,.14); color:var(--tr-nav-accent); }
html[data-reading-surface="shell"] body #link-header[data-context="news"] .news-filter-control[data-news-sentiment]:focus-visible { outline:2px solid var(--tr-nav-accent); outline-offset:-2px; }
.news-filter-dot {
  flex:0 0 5px; width:5px; height:5px; border-radius:50%; background:#d5b77b;
}
[data-news-sentiment="positive"] .news-filter-dot { background:#83b68d; }
[data-news-sentiment="negative"] .news-filter-dot { background:#cf8c84; }
#newsHeaderBtn.is-active svg { filter:drop-shadow(0 0 5px rgba(112,232,223,.5)); }
@media(max-width:767px) {
  html[data-reading-surface="shell"] body #link-header[data-context="news"] { gap:4px; }
  html[data-reading-surface="shell"] body #link-header[data-context="news"] .news-filter-control[data-news-sentiment] { gap:5px; padding-inline:8px; font-size:11px; line-height:14px; }
}
@media(max-width:380px) {
  html[data-reading-surface="shell"] body #link-header[data-context="news"] { gap:2px; }
  html[data-reading-surface="shell"] body #link-header[data-context="news"] .news-filter-control[data-news-sentiment] { gap:3px; padding-inline:clamp(2px, calc(10vw - 30px), 8px); }
}

/* Watchlist actions use the same submenu silhouette as rankings. The canvas
   behind both clipped headers must match the inset watchlist content. */
html[data-reading-surface="shell"] body.tr-watchlists-page{background:#101719}
html[data-reading-surface="shell"][data-reading-theme="light"] body.tr-watchlists-page{background:#e5e9e9}
#link-header .watchlist-context-action{display:none}
#link-header[data-context="watchlists"] > a{display:none!important}
#link-header[data-context="watchlists"]{
  padding-right:25px;
}
#link-header[data-context="watchlists"] .watchlist-context-action{
  appearance:none;position:relative;display:inline-flex;align-items:center;justify-content:center;
  gap:8px;min-width:44px;height:100%;min-height:0;margin:0;padding:2px 12px;
  border:0;border-radius:0;background:transparent;color:#dce2e5;
  font:var(--tr-menu-font-weight) .78rem/1.1 var(--tr-menu-font);
  letter-spacing:var(--tr-menu-letter-spacing);text-transform:uppercase;
  text-decoration:none;white-space:nowrap;cursor:pointer;box-shadow:none;
  opacity:1;transform:none;animation:none;-webkit-tap-highlight-color:transparent;
}
#link-header[data-context="watchlists"] .watchlist-context-action svg{
  width:19px;height:19px;flex:none;stroke-width:var(--tr-category-icon-stroke);filter:none;
}
#link-header[data-context="watchlists"] .watchlist-context-action:hover:not(:disabled),
#link-header[data-context="watchlists"] .watchlist-context-action:focus-visible{color:var(--tr-nav-accent)}
#link-header[data-context="watchlists"] .watchlist-context-action:focus-visible{outline:2px solid var(--tr-nav-accent);outline-offset:-2px}
#link-header[data-context="watchlists"] .watchlist-context-action:disabled{opacity:.45;cursor:default}
#watchlistRefresh.is-loading svg{animation:watchlist-shell-spin 1s linear infinite}
@keyframes watchlist-shell-spin{to{transform:rotate(360deg)}}
body.tr-nav-compact #link-header[data-context="watchlists"]{padding-right:19px}
body.tr-nav-compact #link-header[data-context="watchlists"] .watchlist-context-action{font-size:.72rem;padding:2px 8px}
body.tr-nav-compact #link-header[data-context="watchlists"] .watchlist-context-action svg{width:17px;height:17px}
@media(prefers-reduced-motion:reduce){#watchlistRefresh.is-loading svg{animation:none}}


/* Keep desktop app controls aligned with the centered 1680px rankings frame.
   Backgrounds and the scrolling viewport continue to span the window. */
@media (min-width: 1680px) {
  body { --tr-app-content-inset: max(0px, calc((100% - 1680px) / 2)); }
  #app-header .logo { left: var(--tr-app-content-inset); }
  body .header-actions { right: calc(var(--tr-app-content-inset) + 58px); }
  body.tr-nav-compact .header-actions { right: calc(var(--tr-app-content-inset) + 55px); }
  body #trBell { right: calc(var(--tr-app-content-inset) + 12px); }
  body.tr-nav-compact #trBell { right: calc(var(--tr-app-content-inset) + 13px); }
  body #menuToggle { right: var(--tr-app-content-inset); }
  body #bottomNav.bottom-nav {
    padding-left: calc(var(--tr-app-content-inset) + 6px);
    padding-right: calc(var(--tr-app-content-inset) + 68px);
  }
  html body.tr-nav-compact #bottomNav.bottom-nav {
    padding-left: calc(var(--tr-app-content-inset) + 6px);
    padding-right: calc(var(--tr-app-content-inset) + 68px);
  }
}

/* Leaders shares the shell's measured content viewport and real footer. */
body.tr-leaders-page iframe#contentFrame{position:fixed;top:var(--context-shell-top,100px);bottom:var(--context-shell-bottom,100px);height:calc(100% - var(--context-shell-top,100px) - var(--context-shell-bottom,100px));margin:0}
body.tr-leaders-page .bottom-gradient{display:none}
/* Preserve four roomy destinations on smaller screens. Reports remains in the
   main menu; guests keep Login here and Create Account in that same menu. */
@media (max-width: 600px) {
  body:not([data-guest="1"]) #bottomNav #bottomSecondaryBtn,
  body[data-guest="1"] #bottomNav #bottomPrimaryBtn { display: none; }
}

/* Stock tabs provide legal access after their content, not over the viewport. */
body.tr-stock-reader-open .disclaimer {
  display: none !important;
}


@media (prefers-reduced-motion: reduce) {
  #menuToggle, #menuToggle .gear-icon { transition: none; }
}

/* News has no Recent rail. Watchlists open Recently Viewed from their options
   menu; the collapsed rail does not consume a row of content space. */
body.tr-news-page #trRecentStocks,
body.tr-watchlists-page:not(.tr-watchlist-recent-open) #trRecentStocks {
  display: none !important;
}

/* Keep the registered mark with the symbol after the wordmark wipes away. */
#app-header .tr-logo-registered {
  position: absolute;
  left: calc(var(--tr-app-content-inset, 0px) + 59.5px);
  top: 8px;
  width: 5.5px;
  height: 5.5px;
  color: #d5dce1;
  opacity: 0;
  pointer-events: none;
  animation: tr-logo-registered-reveal 150ms ease calc(var(--wipe-delay) + var(--wipe-dur)) forwards;
}
@keyframes tr-logo-registered-reveal { to { opacity: .65; } }
body.tr-nav-ready #app-header .tr-logo-registered {
  animation: none;
  opacity: .65;
}
@media (prefers-reduced-motion: reduce) {
  #app-header .tr-logo-registered { animation: none; opacity: .65; }
}
/* The settled brand icon keeps its expanded geometry when compacting. */
body.tr-nav-compact #app-header .tr-logo-registered {
  display: block;
  animation: none;
  opacity: .65;
}
body.tr-nav-compact:not(.sheet-open):not(.tr-child-modal-open) #link-header { pointer-events: none; }
body.tr-nav-compact:not(.sheet-open):not(.tr-child-modal-open) #link-header > * { pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  body.tr-nav-compact #app-header .logo { transition: none; }
}

/* Rankings filters share the subnav's quiet icon-and-label treatment. */
html[data-reading-surface="shell"] body #link-header > .tr-rank-filter-nav-control,
html[data-reading-surface="shell"] body #link-header > .tr-rank-filter-nav-control:is(.is-active, .has-error) {
  height: 25px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #a5b8bb;
  font: var(--tr-type-label-weight,500) var(--tr-type-dense-size,11px)/var(--tr-type-dense-line,14px) var(--tr-type-family,"IBM Plex Sans",Plex,system-ui,sans-serif);
}
html[data-reading-surface="shell"] body #link-header > .tr-rank-filter-nav-control.is-active {
  color: #9bcdc5;
}
html[data-reading-surface="shell"] body #link-header > .tr-rank-filter-nav-control.has-error {
  color: #d0ba8e;
}
html[data-reading-surface="shell"] body #link-header > .tr-rank-filter-nav-control::before { display: none; }
html[data-reading-surface="shell"] body #link-header .tr-rank-filter-nav-control > button {
  height: 25px;
  min-height: 25px;
  max-height: 25px;
  padding-block: 0;
  border-radius: 4px;
  box-shadow: none;
}
html[data-reading-surface="shell"] body #link-header .tr-rank-filter-nav-control > .tr-rank-filter-nav-trigger {
  padding-inline: 6px;
  gap: 4px;
}
html[data-reading-surface="shell"] body #link-header .tr-rank-filter-nav-control .tr-rank-filter-nav-trigger svg {
  width: 14px;
  height: 14px;
  color: inherit;
}
html[data-reading-surface="shell"] body #link-header .tr-rank-filter-nav-control > .tr-rank-filter-nav-clear {
  border-left: 0;
  color: #9bafb2;
  font-size: 16px;
  font-weight: 400;
}
html[data-reading-surface="shell"] body #link-header .tr-rank-filter-nav-control > button:hover {
  color: #d9eeeb;
  background: rgba(112,232,223,.07);
}
html[data-reading-surface="shell"] body #link-header .tr-rank-filter-nav-control > button:focus-visible {
  outline: 1px solid var(--tr-nav-accent,#70e8df);
  outline-offset: -3px;
}
html[data-reading-surface="shell"] body #link-header > .tr-rank-filter-nav-control[aria-busy="true"]::after {
  bottom: 1px;
  height: 1px;
}

/* Collapse the real label width in step with the logo and action icons. */
body.tr-nav-ready .headerlinktext,
body.tr-nav-ready .headerlinktextplatinum {
  max-width: var(--tr-header-label-width, none);
  transition: max-width .32s cubic-bezier(.22,.61,.36,1), clip-path .32s cubic-bezier(.22,.61,.36,1), opacity .24s ease, transform .32s cubic-bezier(.22,.61,.36,1);
}
@media (prefers-reduced-motion: reduce) {
  body.tr-nav-ready .headerlinktext,
  body.tr-nav-ready .headerlinktextplatinum { transition: none !important; }
}

/* A single action row keeps research and personal controls on one rhythm.
   Icon-only controls occupy the same 44px slot through every shell mode. */
body .header-actions,
body.tr-nav-compact .header-actions {
  --tr-action-icon-size: 30px;
  right: calc(var(--tr-app-content-inset, 0px) + 4px);
  gap: 6px;
  height: 44px;
  transition: top .32s cubic-bezier(.22,.61,.36,1);
}
body .header-actions { top: 30px; }
body.tr-nav-compact .header-actions { --tr-action-icon-size: 26px; top: 22px; }
/* Keep the action targets above, rather than overlapping, the grouping row. */
body.tr-nav-compact #app-header { height: 71px; }
body.tr-nav-compact #link-header { top: 44px; }
html body:is(.tr-chart-page, .tr-leaders-page, .tr-watchlists-page, .tr-support-page, .tr-platinum-page, .tr-reports-page).tr-nav-compact #app-header { height: 44px; }

.header-actions #aiHeaderBtn,
.header-actions #aiHeaderBtnPlat,
.header-actions #headerWatchlistBtn,
html body .header-actions #trBell {
  position: relative; top: auto; right: auto;
  display: inline-flex; flex: 0 0 auto; min-width: 44px; height: 44px;
  align-items: center; justify-content: center; margin: 0;
  padding: 0 calc((44px - var(--tr-action-icon-size)) / 2);
  box-sizing: border-box;
  background: transparent; border: 0; text-decoration: none;
  clip-path: none; transform: none; touch-action: manipulation;
  transition: padding .32s cubic-bezier(.22,.61,.36,1);
}
.header-actions #headerWatchlistBtn,
html body .header-actions #trBell { width: 44px; padding: 0; }
#headerWatchlistBtn[hidden] { display: none !important; }
.header-actions #aiHeaderBtn svg,
.header-actions #aiHeaderBtnPlat svg,
.header-actions #headerWatchlistBtn svg {
  width: var(--tr-action-icon-size); height: var(--tr-action-icon-size);
  min-width: 0; margin: 0; flex: none; overflow: visible;
  transition: width .32s cubic-bezier(.22,.61,.36,1), height .32s cubic-bezier(.22,.61,.36,1);
}
.header-actions #headerWatchlistBtn .header-watchlist-cutout { stroke-width: 3.8; }
.header-actions #headerWatchlistBtn .header-icon-badge-stroke { stroke-width: 1.6; }
#trBell svg { transition: width .32s cubic-bezier(.22,.61,.36,1), height .32s cubic-bezier(.22,.61,.36,1); }
#trBell #trBadge { top: 1px; right: 1px; }
#headerWatchlistBtn.active { color: #70e8df; }
.header-actions > :focus-visible {
  outline: 2px solid #70e8df; outline-offset: -3px; border-radius: 6px;
}
@media (max-width: 520px) {
  body .header-actions { --tr-action-icon-size: 27px; gap: 4px; }
  body.tr-nav-compact .header-actions { --tr-action-icon-size: 24px; gap: 4px; }
}
@media (max-width: 410px) {
  body .header-actions { --tr-action-icon-size: 24px; }
}
/* Leave room for the complete intro wordmark before the labels reveal. */
@media (max-width: 440px) {
  #app-header { --tr-mobile-logo-height: clamp(34px, calc((100vw - 208px) / 4.411765), 40px); }
  body #app-header .logo {
    --icon-width: calc(var(--tr-mobile-logo-height) * 1.25);
    height: var(--tr-mobile-logo-height) !important; top: calc((60px - var(--tr-mobile-logo-height)) / 2);
  }
  body #app-header .tr-logo-registered {
    left: calc(var(--tr-mobile-logo-height) * 1.2); top: calc((60px - var(--tr-mobile-logo-height)) / 2 + 1px);
  }
}
@media (max-width: 360px) {
  body #app-header .logo { --icon-width: 42px; height: 34px !important; top: 13px; }
  body #app-header .tr-logo-registered { left: 40px; top: 14px; }
  .headerlinktext,
  .headerlinktextplatinum { display: none; }
  body:not([data-guest="1"]):not(.tr-nav-ready):not(.tr-nav-compact) #app-header .logo {
    animation: none; clip-path: inset(0 calc(100% - var(--icon-width)) 0 0);
  }
  body:not([data-guest="1"]).tr-nav-compact #app-header .logo {
    clip-path: inset(0 calc(100% - var(--icon-width)) 0 0) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .header-actions, .header-actions > *, .header-actions svg { transition: none !important; }
}

/* Animate Watchlists' real label width in the same layout as the other actions.
   Keeping its button intrinsic avoids a one-frame tray jump on either reversal. */
.header-actions #headerWatchlistBtn {
  width: auto;
  gap: 0;
  padding-inline: calc((44px - var(--tr-action-icon-size)) / 2);
}
.header-actions #headerWatchlistBtn .header-watchlist-label {
  display: inline-block;
  animation: none;
  text-transform: none;
  max-width: 0 !important;
  clip-path: inset(0 100% 0 0) !important;
  opacity: 0;
  transform: translateX(-8px);
  margin-left: 0;
  transition: max-width .32s cubic-bezier(.22,.61,.36,1),
    clip-path .32s cubic-bezier(.22,.61,.36,1),
    margin-left .32s cubic-bezier(.22,.61,.36,1), opacity .24s ease,
    transform .32s cubic-bezier(.22,.61,.36,1);
}
body.tr-nav-compact .header-actions #headerWatchlistBtn .header-watchlist-label {
  max-width: var(--tr-header-label-width, 7em) !important;
  margin-left: 4px;
  clip-path: inset(0 0 0 0) !important;
  opacity: 1;
  transform: none;
}
/* The extra guest shortcut must also clear the opening wordmark. */
@media (max-width: 360px) {
  body[data-guest="1"]:not(.tr-nav-ready):not(.tr-nav-compact) #app-header .logo {
    --icon-width: calc(((100vw - 208px) / 4.411765) * 1.25);
    height: calc((100vw - 208px) / 4.411765) !important;
    top: calc((60px - (100vw - 208px) / 4.411765) / 2);
  }
  body[data-guest="1"]:not(.tr-nav-ready):not(.tr-nav-compact) #app-header .tr-logo-registered {
    left: calc(((100vw - 208px) / 4.411765) * 1.2);
    top: calc((60px - (100vw - 208px) / 4.411765) / 2 + 1px);
  }
}

/* Keep shell geometry fixed while the existing compact state animates labels
   and icons. The 54px action row preserves the settled brand artwork and targets. */
body {
  --tr-shell-action-row-height: 54px;
  --tr-shell-group-row-height: 27px;
  --tr-shell-header-height: calc(var(--tr-shell-action-row-height) + var(--tr-shell-group-row-height));
}
body:not(.tr-chart-page,.tr-leaders-page,.tr-watchlists-page,.tr-support-page,.tr-platinum-page,.tr-reports-page,.tr-stock-reader-open):has(> #link-header:where(:not([data-context]:not([data-context=""])))),
body.tr-news-page {
  --tr-shell-group-row-height: 40px;
  --tr-shell-nav-notch: 20px;
}
body:is(.tr-chart-page,.tr-leaders-page,.tr-watchlists-page,.tr-support-page,.tr-platinum-page,.tr-reports-page,.tr-stock-reader-open) {
  --tr-shell-group-row-height: 0px;
}
body:is(.tr-platinum-page,.tr-reports-page) { --tr-shell-action-row-height:62px; --tr-shell-nav-notch:20px; }
html body #app-header,
html body.tr-nav-compact #app-header { height: var(--tr-shell-header-height) !important; }
html body #link-header,
html body.tr-nav-compact #link-header {
  top: var(--tr-shell-action-row-height);
  height: var(--tr-shell-group-row-height);
}
html body .header-actions,
html body.tr-nav-compact .header-actions { top: calc(var(--tr-shell-action-row-height) / 2); }

/* Report scrollports reserve the same action-row height in either label state. */
html[data-reading-surface="shell"] body:is(.tr-platinum-page,.tr-reports-page) #app-header { height:var(--tr-shell-action-row-height,54px) !important; }

/* Quiet browsing canvases, including the loading handoff. The footer glow is
   purely decorative; removing it leaves the navigation and status UI intact. */
@media screen {
  html[data-reading-surface="shell"] .bottom-gradient { display:none !important; }
  html[data-reading-surface="shell"] {
    --tr-rankings-canvas-base:#040b1b !important;
    --tr-rankings-canvas-image:none !important;
    --tr-rankings-canvas-glow:none !important;
  }
  html .content:has(> #contentFrame:is([data-loading-page="platinum-search"],[data-loading-page="my-reports"])),
  html body .tr-rankings-busy:is([data-loading-page="platinum-search"],[data-loading-page="my-reports"]) {
    --tr-page-canvas-base:#040b1b !important;
    --tr-page-canvas-image:none !important;
    --tr-page-canvas-glow:none !important;
    --tr-page-canvas-glow-height:0px !important;
  }
}

/* Use the existing teal navigation selection on the Platinum destination.
   The same artwork stays selected with or without its responsive label. */
html[data-reading-surface="shell"] #aiHeaderBtnPlat.active {
  color:#70e8df;
  text-shadow:none;
}
html[data-reading-surface="shell"] #aiHeaderBtnPlat.active .headerlinktextplatinum {
  color:inherit;
  background:none;
  -webkit-text-fill-color:currentColor;
  text-shadow:none;
}
html[data-reading-surface="shell"] #aiHeaderBtnPlat.active :is(#headerGradientPlat,#headerPlatinumPlayGradient) stop {
  stop-color:currentColor;
}
html[data-reading-surface="shell"] #aiHeaderBtnPlat.active .header-icon-badge-stroke {
  stroke:currentColor;
}
html[data-reading-surface="shell"] #aiHeaderBtnPlat.active svg { filter:none; }
/* Menu retains its established selected color, including the report glyph. */
#sideNav #myAIReportArchive.active .side-nav-icon { color:inherit; }

/* The main header already paints the full News action + filter rows. Let that
   single gradient continue behind the filters instead of restarting at 54px. */
html[data-reading-surface="shell"] body.tr-news-page #link-header[data-context="news"] {
  background:transparent !important;
}

/* Desktop Leaders gives the existing 50px logo balanced vertical clearance. */
@media (min-width:768px) {
  body.tr-leaders-page:not(.tr-stock-reader-open) { --tr-shell-action-row-height:62px; }
}
