/* Stock by TG 7.26.4 — Reference-style UI system
 * Design baseline: uploaded reference template.
 * One scoped system for home, quote, charts, financials and advanced chart.
 */

:root{
  --tg-ink:#17191d;
  --tg-muted:#686d76;
  --tg-soft:#8a9098;
  --tg-border:#e5e2dc;
  --tg-line:#eeece8;
  --tg-surface:#fff;
  --tg-subtle:#f7f6f3;
  --tg-page:#fbfaf8;
  --tg-green:#137b50;
  --tg-red:#d53b40;
  --tg-blue:#155fc4;
  --tg-radius:6px;
  --tg-shadow:0 8px 24px rgba(23,25,29,.06);
  --tg-shell:1180px;
}

/* Reset + typography */
.st-tg,
.tg-market-home{
  box-sizing:border-box;
  width:100%;
  color:var(--tg-ink);
  font-family:Poppins,"Segoe UI",system-ui,-apple-system,sans-serif;
  font-size:14px;
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
.st-tg *,
.st-tg *::before,
.st-tg *::after,
.tg-market-home *,
.tg-market-home *::before,
.tg-market-home *::after{box-sizing:border-box}

.st-tg a,
.tg-market-home a{color:inherit;text-decoration:none}

.st-tg button,
.st-tg input,
.st-tg select,
.tg-market-home button,
.tg-market-home input,
.tg-market-home select{
  font:inherit;
  font-family:Poppins,"Segoe UI",system-ui,-apple-system,sans-serif;
}

.st-tg h1,.st-tg h2,.st-tg h3,.st-tg h4,
.tg-market-home h1,.tg-market-home h2,.tg-market-home h3,.tg-market-home h4{
  margin:0;
  color:var(--tg-ink);
  font-family:"Bricolage Grotesque",Poppins,"Segoe UI",sans-serif;
  letter-spacing:-.025em;
  line-height:1.12;
  font-synthesis:none;
}
.st-tg h1,.tg-market-home h1{font-size:26px;font-weight:700}
.st-tg h2,.tg-market-home h2{font-size:22px;font-weight:500}
.st-tg h3,.st-tg h4,.tg-market-home h3,.tg-market-home h4{font-size:18px;font-weight:600}
.st-tg p{margin:0 0 10px;line-height:1.65}
.st-tg-shell{width:min(var(--tg-shell),calc(100% - 40px));margin:0 auto}
.st-tg-up{color:var(--tg-green)!important}
.st-tg-down{color:var(--tg-red)!important}
.st-tg-flat,.st-tg-muted,.st-tg-when{color:var(--tg-muted)}
.st-tg-eyebrow,.st-tg-kicker{
  display:block;
  margin:0 0 6px;
  color:var(--tg-soft);
  font:600 10px/1.2 Poppins,sans-serif;
  letter-spacing:.1em;
  text-transform:uppercase;
}

/* Shared panels */
.st-tg-stock-section,
.st-tg-panel,
.st-tg-card,
.tg-board-card,
.tg-mini-card,
.tg-side-card,
.tg-mover-card{
  background:var(--tg-surface);
  border:1px solid var(--tg-border);
  border-radius:var(--tg-radius);
}
.st-tg-stock-section{padding:22px;margin-top:16px}
.st-tg-section-head,
.tg-section-title,
.tg-market-head,
.st-tg-market-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-bottom:16px;
}
.st-tg-section-head h2,.tg-section-title h2{font-size:20px}
.st-tg-section-head>.st-tg-muted,.tg-section-title>.st-tg-muted{font-size:11px}
.st-tg-empty,.tg-side-empty,.tg-loading{padding:18px;color:var(--tg-soft);font-size:12px}

/* Quote hero */
.st-tg-stock-hero{
  position:relative;
  z-index:1;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:32px;
  padding:34px 0 24px;
  background:var(--tg-surface);
  border-bottom:1px solid var(--tg-border);
}
.st-tg-asset-brand{display:flex;align-items:flex-end;gap:15px;min-width:0}
.st-tg-asset-brand h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-tg-stock-hero p{margin:7px 0 0;font-size:12px;color:var(--tg-muted)}
.tg-quote-symbol{font-weight:600;color:var(--tg-muted)}
.st-tg-price-block{flex:0 0 auto;text-align:right}
.st-tg-price{
  font:700 40px/1 "Bricolage Grotesque",Poppins,sans-serif;
  letter-spacing:-.045em;
  font-variant-numeric:tabular-nums;
}
.tg-quote-price-line{
  display:flex;
  align-items:baseline;
  justify-content:flex-end;
  gap:8px;
  margin-top:6px;
  font-size:14px;
  font-weight:600;
  font-variant-numeric:tabular-nums;
}
.st-tg-change{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}
.st-tg-stock-hero .st-tg-when{margin-top:5px;font-size:10px}

/* Market tape */
.st-tg-quote-tape,
.tg-top-ticker{
  position:relative;
  z-index:2;
  overflow:hidden;
  width:100%;
  background:var(--tg-ink);
  color:#fff;
  border:0;
}
.st-tg-quote-tape-track,
.tg-top-ticker-track{
  display:flex;
  width:max-content;
  min-width:100%;
}
.st-tg-quote-tape-track.is-animating,
.tg-top-ticker-track{
  animation:tg-marquee 55s linear infinite;
  will-change:transform;
}
.st-tg-quote-tape-item,
.tg-top-ticker-item{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:38px;
  padding:0 14px;
  border-right:1px solid rgba(255,255,255,.08);
  white-space:nowrap;
  font-size:11px;
}
.st-tg-quote-tape-item strong,.tg-top-ticker-item strong{font-weight:500}
.st-tg-quote-tape-item b,.tg-top-ticker-item b{font-weight:600}
.st-tg-quote-tape-item em,.tg-top-ticker-item em{font-style:normal}
.tg-top-ticker .st-tg-up{color:#4fbd90!important}
.tg-top-ticker .st-tg-down{color:#ff858b!important}
.tg-top-ticker .st-tg-flat{color:#d7d9dc!important}
@keyframes tg-marquee{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(-50%,0,0)}
}

/* Quote navigation */
.st-tg-stock-nav{
  display:flex;
  gap:24px;
  overflow-x:auto;
  border-bottom:1px solid var(--tg-border);
  scrollbar-width:none;
}
.st-tg-stock-nav::-webkit-scrollbar{display:none}
.st-tg-stock-nav a{
  position:relative;
  flex:0 0 auto;
  padding:13px 0 12px;
  color:var(--tg-muted);
  font-size:12px;
  white-space:nowrap;
}
.st-tg-stock-nav a.is-on{color:var(--tg-ink);font-weight:600}
.st-tg-stock-nav a.is-on::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:2px;
  background:var(--tg-green);
}

/* Quote layout */
.st-tg-quote-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:18px;
  align-items:start;
}
.st-tg-quote-main,.st-tg-quote-side-wrap{min-width:0}

/* Lookup */
.tg-lookup,.st-tg-lookup{position:relative;min-width:260px}
.tg-lookup input,.st-tg-lookup input{
  width:100%;
  height:42px;
  border:1px solid var(--tg-border);
  border-radius:6px;
  background:#fff;
  padding:0 13px 0 38px;
  color:var(--tg-ink);
  outline:0;
  font-size:13px;
}
.tg-lookup input:focus,.st-tg-lookup input:focus{
  border-color:#b8c1bd;
  box-shadow:0 0 0 3px rgba(19,123,80,.08);
}
.tg-lookup-icon{
  position:absolute;
  left:13px;
  top:50%;
  transform:translateY(-50%);
  color:var(--tg-soft);
  pointer-events:none;
}
.st-tg-lookup-results{
  position:absolute;
  z-index:50;
  top:calc(100% + 6px);
  left:0;
  right:0;
  background:#fff;
  border:1px solid var(--tg-border);
  border-radius:6px;
  box-shadow:var(--tg-shadow);
  overflow:hidden;
}

/* Chart */
.st-tg-chart-frame{
  padding:0!important;
  overflow:hidden;
  position:relative;
  contain:layout paint;
}
.tg-quote-chart-toolbar{
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:11px 14px;
  border-bottom:1px solid var(--tg-border);
  background:#fff;
}
.tg-quote-chart-toolbar strong{
  font:600 15px/1.2 "Bricolage Grotesque",Poppins,sans-serif;
}
.tg-quote-chart-actions{display:flex;gap:5px;align-items:center}
.tg-quote-chart-actions button,
.tg-quote-advanced{
  appearance:none;
  border:1px solid var(--tg-border);
  border-radius:5px;
  background:#fff;
  color:var(--tg-muted);
  padding:7px 10px;
  font:500 11px/1 Poppins,sans-serif;
  cursor:pointer;
}
.tg-quote-chart-actions button:hover,
.tg-quote-advanced:hover{
  color:var(--tg-ink);
  background:var(--tg-subtle);
}
.tg-quote-chart-actions button.is-on{background:var(--tg-ink);border-color:var(--tg-ink);color:#fff}
.st-tg-chart-rangebar,
.tg-quote-rangebar{
  display:flex;
  align-items:center;
  gap:2px;
  overflow-x:auto;
  padding:8px 12px;
  scrollbar-width:none;
}
.st-tg-chart-rangebar::-webkit-scrollbar,
.tg-quote-rangebar::-webkit-scrollbar{display:none}
.st-tg-chart-rangebar button,
.tg-quote-rangebar button{
  appearance:none;
  flex:0 0 auto;
  border:0;
  border-radius:5px;
  background:transparent;
  color:var(--tg-muted);
  padding:8px 11px;
  font:500 12px/1 Poppins,sans-serif;
  cursor:pointer;
}
.st-tg-chart-rangebar button:hover,
.tg-quote-rangebar button:hover{background:var(--tg-subtle);color:var(--tg-ink)}
.st-tg-chart-rangebar button.is-on,
.tg-quote-rangebar button.is-on{background:var(--tg-green);color:#fff;font-weight:600}
.st-tg-chart-stage{
  position:relative;
  height:500px;
  min-height:500px;
  overflow:hidden;
  contain:strict;
  isolation:isolate;
  background:#fff;
}
.st-tg-chart-stage>#st-tg-chart{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  overflow:hidden!important;
}
.st-tg-chart-stage canvas,
.st-tg-chart-stage svg{
  display:block;
  max-width:100%;
  max-height:100%;
}
.st-tg-chart-loading{
  position:absolute;
  inset:0;
  z-index:10;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.94);
  color:var(--tg-soft);
  font-size:12px;
}
.st-tg-chart-status{
  padding:8px 12px;
  border-top:1px solid var(--tg-line);
  color:var(--tg-muted);
  font-size:10px;
}
.st-tg-chart-readout{
  padding:8px 12px;
  border-top:1px solid var(--tg-line);
}
.st-tg-ohlc-legend{
  position:absolute;
  z-index:6;
  top:10px;
  left:10px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:13px;
  max-width:calc(100% - 20px);
  padding:7px 9px;
  border:1px solid var(--tg-border);
  border-radius:6px;
  background:rgba(255,255,255,.96);
  box-shadow:var(--tg-shadow);
  font-size:10px;
  pointer-events:none;
}
.st-tg-ohlc-legend b{font-weight:600}
.st-tg-chart-note{padding:8px 12px;color:var(--tg-muted);font-size:10px}

/* Statistics */
.st-tg-stock-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border-top:1px solid var(--tg-border);
  border-left:1px solid var(--tg-border);
}
.st-tg-stock-stats>div{
  min-height:70px;
  padding:12px 13px;
  border-right:1px solid var(--tg-border);
  border-bottom:1px solid var(--tg-border);
}
.st-tg-stock-stats span,
.st-tg-health-grid span,
.st-tg-company-grid span,
.st-tg-profile-grid span{
  display:block;
  color:var(--tg-muted);
  font-size:11px;
}
.st-tg-stock-stats strong,
.st-tg-health-grid strong,
.st-tg-company-grid strong,
.st-tg-profile-grid strong{
  display:block;
  margin-top:5px;
  color:var(--tg-ink);
  font-size:13px;
  font-weight:600;
  font-variant-numeric:tabular-nums;
}
.st-tg-performance-strip,
.st-tg-performance-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-top:12px;
  border-top:1px solid var(--tg-border);
  border-left:1px solid var(--tg-border);
}
.st-tg-performance-strip>div,
.st-tg-performance-grid>div{
  padding:10px 12px;
  border-right:1px solid var(--tg-border);
  border-bottom:1px solid var(--tg-border);
}
.st-tg-performance-strip span{display:block;color:var(--tg-muted);font-size:10px}
.st-tg-performance-strip strong{display:block;margin-top:4px;font-size:12px}

/* Financials */
.st-tg-financial-layout{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.st-tg-financial-layout>div{
  min-width:0;
  padding:16px;
  border:1px solid var(--tg-border);
  border-radius:var(--tg-radius);
  background:#fff;
}
.st-tg-financial-layout h3{font-size:16px;margin-bottom:11px}
.st-tg-health-score{
  display:flex;
  align-items:baseline;
  gap:5px;
  margin-bottom:12px;
}
.st-tg-health-score strong{
  font:700 28px/1 "Bricolage Grotesque",sans-serif;
}
.st-tg-health-score small{color:var(--tg-muted);font-size:10px}
.st-tg-health-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border-top:1px solid var(--tg-border);
  border-left:1px solid var(--tg-border);
}
.st-tg-health-grid>div{
  padding:10px;
  border-right:1px solid var(--tg-border);
  border-bottom:1px solid var(--tg-border);
}
.st-tg-mini-chart{
  position:relative!important;
  height:220px!important;
  min-height:220px!important;
  overflow:hidden!important;
  contain:strict!important;
  isolation:isolate!important;
  border:1px solid var(--tg-line);
  border-radius:5px;
  background:#fff;
}
.st-tg-mini-chart .st-tg-fin-canvas{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  overflow:hidden!important;
}
.st-tg-mini-chart svg{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
}
.st-tg-chart-labels{
  position:absolute;
  left:8px;
  right:8px;
  bottom:8px;
  display:flex;
  justify-content:space-between;
  gap:8px;
  overflow:hidden;
  color:var(--tg-soft);
  font-size:9px;
}
.st-tg-financial-period{
  display:block;
  margin-top:7px;
  color:var(--tg-muted);
  font-size:9px;
}
.st-tg-fin-point-label{font:600 10px/1.2 Poppins,sans-serif;color:var(--tg-green)}
.st-tg-fin-tooltip{
  position:absolute;
  z-index:8;
  pointer-events:none;
  padding:8px 10px;
  border:1px solid var(--tg-border);
  border-radius:6px;
  background:#fff;
  box-shadow:var(--tg-shadow);
  font-size:10px;
}
.st-tg-peer-chart{min-height:220px}
.st-tg-financial-source{
  margin-top:12px;
  color:var(--tg-muted);
  font-size:10px;
  line-height:1.6;
}
.st-tg-financial-source a{color:var(--tg-blue);font-weight:600}

/* Tables */
.st-tg-table-wrap,
.tg-stock-table-wrap,
.tg-ipo-table{
  width:100%;
  overflow:auto;
  border:1px solid var(--tg-border);
  border-radius:var(--tg-radius);
}
.st-tg-table,
.tg-stock-table,
.tg-ipo-table table{
  width:100%;
  min-width:760px;
  border-collapse:collapse;
}
.st-tg-table th,.st-tg-table td,
.tg-stock-table th,.tg-stock-table td,
.tg-ipo-table th,.tg-ipo-table td{
  padding:10px 12px;
  border-bottom:1px solid var(--tg-line);
  color:var(--tg-ink);
  font-size:12px;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.st-tg-table th,.tg-stock-table th,.tg-ipo-table th{
  background:var(--tg-subtle);
  color:var(--tg-muted);
  font-weight:600;
  text-align:left;
}
.st-tg-table tr:last-child td,
.tg-stock-table tr:last-child td,
.tg-ipo-table tr:last-child td{border-bottom:0}
.st-tg-table a,.tg-stock-table a{color:var(--tg-blue);font-weight:600}
.tg-stock-table th,.tg-stock-table td{text-align:right}
.tg-stock-table th:first-child,.tg-stock-table td:first-child,
.tg-stock-table th:nth-child(2),.tg-stock-table td:nth-child(2){text-align:left}


/* Quote sidebar */
.st-tg-quote-sidebar{
  display:grid;
  gap:14px;
  min-width:0;
  position:sticky;
  top:18px;
}
.st-tg-quote-side-card{
  min-width:0;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--tg-border);
  border-radius:var(--tg-radius);
}
.st-tg-quote-side-search{
  padding:12px;
}
.st-tg-quote-side-lookup{
  min-width:0;
  position:relative;
}
.st-tg-quote-side-lookup>span{
  position:absolute;
  left:12px;
  top:50%;
  z-index:1;
  transform:translateY(-50%);
  color:var(--tg-soft);
  font-size:17px;
  line-height:1;
  pointer-events:none;
}
.st-tg-quote-side-lookup input{
  height:42px;
  padding-left:34px;
  border:1px solid var(--tg-border);
  border-radius:6px;
  background:#fff;
  font-size:13px;
}
.st-tg-quote-side-head{
  padding:15px 14px;
  border-bottom:1px solid var(--tg-line);
}
.st-tg-quote-side-head h3{
  margin:0;
  font:600 16px/1.2 "Bricolage Grotesque",Poppins,sans-serif;
}
.st-tg-quote-side-list{
  min-height:44px;
}
.st-tg-quote-side-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 78px 58px;
  gap:8px;
  align-items:center;
  min-height:55px;
  padding:9px 14px;
  border-bottom:1px solid var(--tg-line);
}
.st-tg-quote-side-row:last-child{border-bottom:0}
.st-tg-quote-side-row>span{min-width:0}
.st-tg-quote-side-row strong{
  display:block;
  color:var(--tg-blue);
  font-size:12px;
  font-weight:600;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.st-tg-quote-side-row small{
  display:block;
  margin-top:2px;
  color:var(--tg-muted);
  font-size:10px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.st-tg-quote-side-row>b,
.st-tg-quote-side-row>em{
  text-align:right;
  font-size:11px;
  font-style:normal;
  font-variant-numeric:tabular-nums;
}
.st-tg-quote-side-row>b{font-weight:600}
.st-tg-quote-side-row>em{font-weight:600}
.st-tg-side-empty{
  padding:14px;
  color:var(--tg-soft);
  font-size:11px;
}
.st-tg-quote-side-search .st-tg-lookup-results{
  left:0;
  right:0;
}
.st-tg-stock-top-ticker{
  position:relative;
  z-index:20;
  width:100%;
  margin:0;
}
.st-tg-stock-top-ticker .st-tg-quote-tape{
  border-bottom:1px solid rgba(255,255,255,.08);
}

/* Home */
.tg-market-home{background:var(--tg-page)}
.tg-market-wrap{
  width:min(var(--tg-shell),calc(100% - 40px));
  margin:0 auto;
}
.tg-market-head{
  padding:28px 0 18px;
  border-bottom:1px solid var(--tg-border);
}
.tg-market-head h1{font-size:26px}
.tg-market-head-tools{display:flex;align-items:center;gap:10px}
.tg-home-nav{
  display:flex;
  gap:24px;
  overflow-x:auto;
  border-bottom:1px solid var(--tg-border);
  scrollbar-width:none;
}
.tg-home-nav::-webkit-scrollbar{display:none}
.tg-home-nav button{
  position:relative;
  flex:0 0 auto;
  appearance:none;
  border:0;
  background:transparent;
  padding:13px 0 12px;
  color:var(--tg-muted);
  font-size:12px;
  cursor:pointer;
}
.tg-home-nav button.is-on{color:var(--tg-ink);font-weight:600}
.tg-home-nav button.is-on::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-1px;
  height:2px;
  background:var(--tg-green);
}
.tg-home-section{margin-top:22px}
.tg-home-section--tight{margin-top:18px}
.tg-section-title{margin-bottom:12px}
.tg-section-title h2{font-size:20px}
.tg-market-status{color:var(--tg-muted);font-size:10px}
.tg-board-grid{display:grid;gap:14px}
.tg-board-grid--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.tg-board-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.tg-board-card{overflow:hidden}
.tg-board-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:14px;
  border-bottom:1px solid var(--tg-line);
}
.tg-board-head h3{font-size:16px}
.tg-board-list{display:block}
.tg-board-list>a,
.tg-home-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 86px 62px;
  gap:10px;
  align-items:center;
  min-height:46px;
  padding:10px 13px;
  border-bottom:1px solid var(--tg-line);
}
.tg-board-list>a:last-child,.tg-home-row:last-child{border-bottom:0}
.tg-home-symbol{color:var(--tg-blue);font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tg-home-price,.tg-home-change{
  text-align:right;
  font-size:12px;
  font-weight:600;
  font-variant-numeric:tabular-nums;
}
.tg-home-change{font-size:11px}
.tg-home-spark{height:26px}
.tg-board-subnote{
  padding:10px 14px;
  border-top:1px solid var(--tg-line);
  color:var(--tg-muted);
  font-size:10px;
}

/* Movers / mini cards */
.tg-mini-grid{display:grid;gap:14px}
.tg-mini-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.tg-mini-card{overflow:hidden}
.tg-mini-list{display:block}
.tg-mini-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 82px 64px;
  gap:8px;
  padding:10px 12px;
  border-bottom:1px solid var(--tg-line);
}
.tg-mini-row:last-child{border-bottom:0}
.tg-mover-card{overflow:hidden}
.tg-mover-head,.tg-side-card-head{
  padding:13px 14px;
  border-bottom:1px solid var(--tg-line);
}
.tg-mover-head h3,.tg-side-card-head h3{font-size:16px}
.tg-mover-list{padding:0}

/* Market sidebar */
.tg-market-sidebar{display:grid;gap:14px}
.tg-side-card{overflow:hidden}
.tg-side-card .tg-lookup{margin:12px}
.tg-recent-list{padding:0 12px}
.tg-recent-list>a{
  display:grid;
  grid-template-columns:minmax(0,1fr) 80px 55px;
  gap:8px;
  padding:11px 0;
  border-bottom:1px solid var(--tg-line);
}
.tg-recent-list>a:last-child{border-bottom:0}
.tg-recent-list strong{font-size:12px}
.tg-recent-list small{display:block;color:var(--tg-muted);font-size:10px}

/* Heatmap */
.tg-heat-country-nav{
  display:flex;
  gap:6px;
  overflow-x:auto;
  margin-bottom:10px;
  scrollbar-width:none;
}
.tg-heat-country-nav::-webkit-scrollbar{display:none}
.tg-heat-country-nav button{
  flex:0 0 auto;
  appearance:none;
  border:1px solid var(--tg-border);
  border-radius:5px;
  background:#fff;
  color:var(--tg-muted);
  padding:7px 10px;
  font-size:11px;
  cursor:pointer;
}
.tg-heat-country-nav button.is-on{
  border-color:var(--tg-ink);
  background:var(--tg-ink);
  color:#fff;
}
.tg-country-sector-map,.tg-stock-heatmap{min-height:220px}
.tg-heatmap-legend{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--tg-muted);
  font-size:10px;
}

/* Advanced chart */
.st-tg-advanced{
  position:fixed!important;
  inset:0!important;
  z-index:2147483000!important;
  display:none;
  align-items:stretch;
  justify-content:flex-end;
  background:rgba(15,17,20,.44);
  backdrop-filter:blur(3px);
}
.st-tg-advanced.is-open{display:flex!important}
.st-tg-advanced-panel{
  width:min(1160px,100%);
  height:100%;
  display:flex;
  flex-direction:column;
  background:#fff;
  box-shadow:-18px 0 50px rgba(0,0,0,.14);
}
.st-tg-advbar{
  min-height:68px;
  display:flex;
  align-items:center;
  gap:18px;
  padding:12px 18px;
  border-bottom:1px solid var(--tg-border);
}
.st-tg-adv-brand{display:flex;flex-direction:column;min-width:180px}
.st-tg-adv-kicker{
  color:var(--tg-soft);
  font:600 9px/1.2 Poppins,sans-serif;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.st-tg-adv-brand strong{font:700 18px/1.15 "Bricolage Grotesque",sans-serif}
.st-tg-adv-brand span{color:var(--tg-muted);font-size:10px}
.st-tg-adv-price{margin-left:auto;text-align:right}
.st-tg-adv-price b{font:700 20px/1 "Bricolage Grotesque",sans-serif}
.st-tg-adv-price span{display:block;margin-top:4px;font-size:11px}
.st-tg-adv-actions{display:flex;gap:6px}
.st-tg-adv-actions button,
.st-tg-adv-tools button,
.st-tg-adv-ranges button{
  appearance:none;
  border:1px solid var(--tg-border);
  border-radius:5px;
  background:#fff;
  color:var(--tg-muted);
  padding:7px 10px;
  font:500 11px/1 Poppins,sans-serif;
  cursor:pointer;
}
.st-tg-adv-actions button:hover,
.st-tg-adv-tools button:hover,
.st-tg-adv-ranges button:hover{
  background:var(--tg-subtle);
  color:var(--tg-ink);
}
.st-tg-adv-actions .is-close{font-size:18px;line-height:.8}
.st-tg-adv-toolbar{
  min-height:52px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:8px 14px;
  border-bottom:1px solid var(--tg-border);
}
.st-tg-adv-ranges,.st-tg-adv-tools{
  display:flex;
  align-items:center;
  gap:3px;
  overflow-x:auto;
  scrollbar-width:none;
}
.st-tg-adv-ranges::-webkit-scrollbar,.st-tg-adv-tools::-webkit-scrollbar{display:none}
.st-tg-adv-ranges button.is-on,.st-tg-adv-tools button.is-on{
  border-color:var(--tg-green);
  background:var(--tg-green);
  color:#fff;
}
.st-tg-adv-workspace{
  display:grid;
  grid-template-columns:minmax(0,1fr) 230px;
  flex:1;
  min-height:0;
}
.st-tg-adv-chart-slot{
  position:relative;
  min-width:0;
  min-height:0;
  overflow:hidden;
  contain:strict;
  isolation:isolate;
  background:#fff;
}
.st-tg-adv-chart-slot>#st-tg-chart{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
}
.st-tg-adv-inspector{
  min-width:0;
  overflow:auto;
  background:var(--tg-subtle);
  border-left:1px solid var(--tg-border);
}
.st-tg-adv-inspector-head{
  padding:14px;
  border-bottom:1px solid var(--tg-border);
}
.st-tg-adv-inspector-head h3{font-size:15px}
.st-tg-adv-inspector-head span{color:var(--tg-muted);font-size:10px}
.st-tg-adv-inspector>input{
  width:calc(100% - 24px);
  height:36px;
  margin:12px;
  border:1px solid var(--tg-border);
  border-radius:6px;
  background:#fff;
  padding:0 10px;
  outline:0;
  font-size:12px;
}
.st-tg-advanced-list{padding:0 12px 14px}
.st-tg-indicator-name{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:2px 0;
  padding:9px 10px;
  border:0;
  border-radius:5px;
  background:transparent;
  color:var(--tg-ink);
  font-size:11px;
  text-align:left;
  cursor:pointer;
}
.st-tg-indicator-name:hover{background:#eef1ef}
.st-tg-indicator-name.is-on{background:#e6f2ed;color:var(--tg-green);font-weight:600}
.st-tg-indicator-state{font-weight:700}
.st-tg-adv-ohlc{
  position:absolute;
  z-index:5;
  top:12px;
  left:12px;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  max-width:calc(100% - 24px);
  padding:8px 10px;
  border:1px solid var(--tg-border);
  border-radius:6px;
  background:rgba(255,255,255,.96);
  box-shadow:var(--tg-shadow);
  font-size:10px;
  pointer-events:none;
}
.st-tg-adv-foot{
  min-height:34px;
  display:flex;
  justify-content:space-between;
  padding:8px 14px;
  border-top:1px solid var(--tg-border);
  color:var(--tg-muted);
  font-size:9px;
}

/* Generic boards / rankings */
.st-tg-market-head{padding:26px 0 18px;border-bottom:1px solid var(--tg-border)}
.st-tg-market-head h1{font-size:26px}
.st-tg-tabs,.tg-stock-tabs{
  display:flex;
  gap:20px;
  overflow-x:auto;
  border-bottom:1px solid var(--tg-border);
  scrollbar-width:none;
}
.st-tg-tabs::-webkit-scrollbar,.tg-stock-tabs::-webkit-scrollbar{display:none}
.st-tg-tab{
  flex:0 0 auto;
  padding:11px 0;
  border:0;
  border-bottom:2px solid transparent;
  background:transparent;
  color:var(--tg-muted);
  font-size:12px;
  cursor:pointer;
}
.st-tg-tab.is-on{border-color:var(--tg-green);color:var(--tg-ink);font-weight:600}
.tg-stock-tabs button{
  flex:0 0 auto;
  appearance:none;
  border:0;
  border-bottom:2px solid transparent;
  background:transparent;
  padding:11px 0;
  color:var(--tg-muted);
  font-size:12px;
  cursor:pointer;
}
.tg-stock-tabs button.is-on{border-color:var(--tg-green);color:var(--tg-ink);font-weight:600}
.st-tg-stock-grid,.st-tg-instrument-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.st-tg-stock-card{padding:14px;border:1px solid var(--tg-border);border-radius:var(--tg-radius);background:#fff}
.st-tg-card-icon{
  width:34px;height:34px;
  display:grid;place-items:center;
  border:1px solid var(--tg-border);
  border-radius:6px;
}
.st-tg-disclaimer{margin:20px 0 0;color:var(--tg-soft);font-size:10px;line-height:1.6}

/* Mobile + tablet */
@media (max-width:980px){
  .st-tg-shell,.tg-market-wrap{width:min(var(--tg-shell),calc(100% - 28px))}
  .st-tg-quote-layout{grid-template-columns:1fr}
  .st-tg-quote-side-wrap,.tg-market-sidebar{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
  }
  .tg-board-grid--4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tg-board-grid--3,.tg-mini-grid--3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .st-tg-stock-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .st-tg-company-grid,.st-tg-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .st-tg-adv-workspace{grid-template-columns:minmax(0,1fr) 210px}
}
@media (max-width:980px){.st-tg-quote-sidebar{position:static}}
@media (max-width:720px){
  .st-tg-shell,.tg-market-wrap{width:calc(100% - 24px)}
  .st-tg-stock-hero{
    display:block;
    padding:24px 0 18px;
  }
  .st-tg-asset-brand{align-items:flex-start}
  .st-tg-asset-brand h1{white-space:normal}
  .st-tg-price-block{
    margin-top:18px;
    text-align:left;
  }
  .tg-quote-price-line{justify-content:flex-start}
  .st-tg-price{font-size:32px}
  .st-tg-stock-section{padding:16px;margin-top:12px}
  .st-tg-section-head,.tg-section-title,.tg-market-head,.st-tg-market-head{
    display:block;
  }
  .st-tg-section-head>.st-tg-muted,.tg-section-title>.st-tg-muted{
    display:block;
    margin-top:5px;
  }
  .st-tg-financial-layout,.st-tg-news-grid{grid-template-columns:1fr}
  .st-tg-health-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .st-tg-related-stocks{grid-template-columns:1fr}
  .st-tg-chart-stage{height:390px;min-height:390px}
  .tg-board-grid--4,.tg-board-grid--3,.tg-mini-grid--3{grid-template-columns:1fr}
  .tg-market-sidebar,.st-tg-quote-side-wrap{grid-template-columns:1fr}
  .tg-lookup,.st-tg-lookup{min-width:0;width:100%}
  .tg-market-head-tools{margin-top:12px}
  .st-tg-advanced-panel{width:100%}
  .st-tg-advbar{flex-wrap:wrap;gap:10px}
  .st-tg-adv-price{order:3;width:100%;margin:0;text-align:left}
  .st-tg-adv-actions{margin-left:auto}
  .st-tg-adv-toolbar{overflow-x:auto}
  .st-tg-adv-workspace{grid-template-columns:1fr}
  .st-tg-adv-inspector{display:none}
  .st-tg-adv-ohlc{left:8px;right:8px;top:8px}
  .tg-home-row{grid-template-columns:minmax(0,1fr) 72px 58px}
  .tg-home-nav{gap:18px}
  .st-tg-table th,.st-tg-table td{font-size:13px}
}
@media (max-width:480px){
  .st-tg-stock-stats{grid-template-columns:1fr}
  .st-tg-performance-strip,.st-tg-performance-grid{grid-template-columns:1fr}
  .st-tg-health-grid{grid-template-columns:1fr 1fr}
  .st-tg-price{font-size:30px}
  .tg-board-list>a,.tg-home-row{grid-template-columns:minmax(0,1fr) 76px 56px}
  .tg-home-price{font-size:11px}
  .tg-home-change{font-size:10px}
}
@media (prefers-reduced-motion:reduce){
  .st-tg-quote-tape-track.is-animating,
  .tg-top-ticker-track{animation:none!important}
}


.st-tg-chart-stage .st-tg-chart-empty{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:var(--tg-soft);
  font-size:12px;
  background:#fff;
}
.st-tg-chart-stage.is-refreshing .st-tg-chart-loading{
  display:grid;
}


/* Entity / index pages: same visual system as stock quote pages. */
.st-tg-entity-page{background:#fff}
.st-tg-entity-page>.st-tg-stock-top-ticker{width:100%;margin:0}
.st-tg-entity-hero{
  width:min(var(--tg-shell),calc(100% - 40px));
  margin:0 auto;
  min-height:128px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  padding:30px 0 20px;
  border-bottom:1px solid var(--tg-border);
}
.st-tg-entity-title{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.st-tg-entity-title h1{
  font:700 26px/1.1 "Bricolage Grotesque",Poppins,sans-serif;
  letter-spacing:-.035em;
}
.st-tg-entity-title p{
  margin:6px 0 0;
  color:var(--tg-muted);
  font-size:11px;
}
.st-tg-logo-wrap{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid var(--tg-border);
  border-radius:6px;
  background:#fff;
}
.st-tg-logo-wrap .st-tg-logo{width:28px;height:28px;object-fit:contain}
.st-tg-logo-fallback{display:none;font:600 10px/1 Poppins,sans-serif;color:var(--tg-muted)}
.st-tg-logo-wrap.is-fallback .st-tg-logo{display:none}
.st-tg-logo-wrap.is-fallback .st-tg-logo-fallback{display:block}
.st-tg-entity-price{
  flex:0 0 auto;
  display:grid;
  grid-template-columns:auto auto;
  align-items:baseline;
  column-gap:9px;
  text-align:right;
}
.st-tg-entity-price strong{
  grid-column:1;
  font:700 38px/1 "Bricolage Grotesque",Poppins,sans-serif;
  letter-spacing:-.045em;
  font-variant-numeric:tabular-nums;
}
.st-tg-entity-price span{
  grid-column:2;
  font-size:13px;
  font-weight:600;
  font-variant-numeric:tabular-nums;
}
.st-tg-entity-price small{
  grid-column:1 / -1;
  margin-top:5px;
  color:var(--tg-soft);
  font-size:9px;
}
.st-tg-entity-page .st-tg-quote-layout{
  width:min(var(--tg-shell),calc(100% - 40px));
  margin:0 auto;
  padding-top:18px;
}
.st-tg-entity-page .st-tg-quote-side-wrap{min-width:0}
.st-tg-entity-page .st-tg-panel{
  padding:20px;
  margin-top:14px;
  background:#fff;
  border:1px solid var(--tg-border);
  border-radius:6px;
}
.st-tg-entity-page .st-tg-chart-frame{
  padding:0!important;
  overflow:hidden;
}
.st-tg-entity-page .st-tg-section-head{
  margin-bottom:13px;
}
.st-tg-entity-page .st-tg-section-head h2{
  font-size:19px;
  font-weight:600;
}
.st-tg-entity-page .st-tg-stat-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border-top:1px solid var(--tg-border);
  border-left:1px solid var(--tg-border);
}
.st-tg-entity-page .st-tg-stat-grid>div{
  min-height:68px;
  padding:11px 12px;
  border-right:1px solid var(--tg-border);
  border-bottom:1px solid var(--tg-border);
}
.st-tg-entity-page .st-tg-stat-grid span{
  display:block;
  color:var(--tg-muted);
  font-size:10px;
}
.st-tg-entity-page .st-tg-stat-grid strong{
  display:block;
  margin-top:5px;
  font-size:13px;
  font-weight:600;
  font-variant-numeric:tabular-nums;
}
.st-tg-entity-page .st-tg-chart-toolbar{
  min-height:50px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  border-bottom:1px solid var(--tg-border);
  background:#fff;
}
.st-tg-entity-page .st-tg-chart-advanced-link{
  appearance:none;
  margin-right:12px;
  padding:7px 10px;
  border:1px solid var(--tg-border);
  border-radius:5px;
  background:#fff;
  color:var(--tg-muted);
  font:500 11px/1 Poppins,sans-serif;
}
.st-tg-entity-page .st-tg-entity-seo-intro{display:none}

@media (max-width:720px){
  .st-tg-entity-hero{
    width:calc(100% - 24px);
    min-height:0;
    display:block;
    padding:22px 0 17px;
  }
  .st-tg-entity-title h1{font-size:22px}
  .st-tg-entity-price{
    margin-top:16px;
    display:block;
    text-align:left;
  }
  .st-tg-entity-price strong{font-size:31px}
  .st-tg-entity-price span{margin-left:7px}
  .st-tg-entity-price small{display:block;margin-top:5px}
  .st-tg-entity-page .st-tg-quote-layout{
    width:calc(100% - 24px);
    padding-top:12px;
  }
  .st-tg-entity-page .st-tg-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:480px){
  .st-tg-entity-title{gap:10px}
  .st-tg-logo-wrap{width:32px;height:32px;flex-basis:32px}
  .st-tg-entity-title h1{font-size:20px}
  .st-tg-entity-page .st-tg-stat-grid{grid-template-columns:1fr 1fr}
}


/* =========================================================
   7.26.7 FINAL VISUAL CONTRACT
   Quote/entity pages use one centered, editorial financial layout.
   ========================================================= */
.st-tg.st-tg-stock,
.st-tg.st-tg-entity-page{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  background:#fff !important;
  color:#17191d !important;
  font-family:Poppins,"Segoe UI",Arial,sans-serif !important;
  font-size:14px !important;
  line-height:1.45 !important;
}
.st-tg.st-tg-stock *,
.st-tg.st-tg-entity-page *{
  box-sizing:border-box !important;
}
.st-tg.st-tg-stock h1,.st-tg.st-tg-stock h2,.st-tg.st-tg-stock h3,
.st-tg.st-tg-entity-page h1,.st-tg.st-tg-entity-page h2,.st-tg.st-tg-entity-page h3{
  font-family:Poppins,"Segoe UI",Arial,sans-serif !important;
  color:#17191d !important;
  letter-spacing:-.025em !important;
}
.st-tg.st-tg-stock .st-tg-shell,
.st-tg.st-tg-entity-page .st-tg-shell{
  width:min(1180px,calc(100% - 40px)) !important;
  max-width:1180px !important;
  margin:0 auto !important;
  padding:0 !important;
}

/* The tape is a top-of-content module, never part of the hero. */
.st-tg.st-tg-stock > .st-tg-stock-top-ticker,
.st-tg.st-tg-entity-page > .st-tg-stock-top-ticker{
  width:min(1180px,calc(100% - 40px)) !important;
  max-width:1180px !important;
  height:40px !important;
  margin:0 auto !important;
  padding:0 !important;
  overflow:hidden !important;
  background:#101419 !important;
  border-radius:4px !important;
}
.st-tg.st-tg-stock > .st-tg-stock-top-ticker .st-tg-quote-tape,
.st-tg.st-tg-entity-page > .st-tg-stock-top-ticker .st-tg-quote-tape{
  width:100% !important;
  height:40px !important;
  min-height:40px !important;
  border:0 !important;
  border-radius:4px !important;
}
.st-tg-quote-tape-track{
  min-height:40px !important;
  height:40px !important;
}
.st-tg-quote-tape-item{
  min-height:40px !important;
  height:40px !important;
  padding:0 13px !important;
  font-family:Poppins,"Segoe UI",Arial,sans-serif !important;
  font-size:11px !important;
}

/* Hero: restrained, not oversized. */
.st-tg-stock-hero,
.st-tg-entity-hero{
  min-height:0 !important;
  width:100% !important;
  margin:0 !important;
  padding:30px 0 22px !important;
  border-bottom:1px solid #e5e2dc !important;
  background:#fff !important;
}
.st-tg-stock-hero{
  display:flex !important;
  align-items:flex-end !important;
  justify-content:space-between !important;
  gap:30px !important;
}
.st-tg-stock-hero h1{
  font-size:27px !important;
  line-height:1.12 !important;
  font-weight:700 !important;
}
.st-tg-stock-hero p{
  font-size:11px !important;
  line-height:1.35 !important;
}
.st-tg-price{
  font-family:Poppins,"Segoe UI",Arial,sans-serif !important;
  font-size:38px !important;
  line-height:1 !important;
  font-weight:700 !important;
}
.st-tg-change{font-size:13px !important}
.st-tg-stock-hero .st-tg-when{font-size:9px !important}

/* Entity hero: remove the duplicate eyebrow so the asset name appears once. */
.st-tg-entity-hero .st-tg-eyebrow{
  display:none !important;
}
.st-tg-entity-hero{
  width:100% !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:space-between !important;
  gap:30px !important;
}
.st-tg-entity-title h1{
  font-family:Poppins,"Segoe UI",Arial,sans-serif !important;
  font-size:27px !important;
  line-height:1.12 !important;
  font-weight:700 !important;
}
.st-tg-entity-title p{font-size:11px !important}
.st-tg-entity-price strong{
  font-family:Poppins,"Segoe UI",Arial,sans-serif !important;
  font-size:38px !important;
  font-weight:700 !important;
}

/* Main grid. */
.st-tg-quote-layout{
  width:100% !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 290px !important;
  gap:18px !important;
  align-items:start !important;
  margin:0 !important;
  padding:18px 0 0 !important;
}
.st-tg-quote-main,.st-tg-quote-side-wrap{min-width:0 !important}
.st-tg-quote-sidebar{width:100% !important;position:sticky !important;top:16px !important}

/* Chart: clean platform-style surface. */
.st-tg-chart-frame{
  margin:0 !important;
  padding:0 !important;
  border:1px solid #e5e2dc !important;
  border-radius:6px !important;
  background:#fff !important;
  overflow:hidden !important;
}
.tg-quote-chart-toolbar,
.st-tg-chart-toolbar{
  min-height:48px !important;
  height:48px !important;
  padding:0 10px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  border-bottom:1px solid #e5e2dc !important;
  background:#fff !important;
}
.st-tg-chart-rangebar{
  display:flex !important;
  align-items:center !important;
  gap:2px !important;
  margin:0 !important;
}
.st-tg-chart-rangebar button{
  min-width:39px !important;
  height:32px !important;
  padding:0 9px !important;
  border:0 !important;
  border-radius:4px !important;
  background:transparent !important;
  color:#737982 !important;
  font:600 11px/32px Poppins,"Segoe UI",Arial,sans-serif !important;
}
.st-tg-chart-rangebar button.is-on{
  background:#137b50 !important;
  color:#fff !important;
}
.tg-quote-advanced,
.st-tg-chart-advanced-link{
  height:32px !important;
  padding:0 11px !important;
  border:1px solid #d9d6d0 !important;
  border-radius:4px !important;
  background:#fff !important;
  color:#34383d !important;
  font:600 11px/30px Poppins,"Segoe UI",Arial,sans-serif !important;
}
.st-tg-chart-stage{
  position:relative !important;
  width:100% !important;
  min-height:390px !important;
  height:390px !important;
  background:#fff !important;
}
#st-tg-chart{
  width:100% !important;
  height:100% !important;
  min-height:390px !important;
}
.st-tg-chart-loading{
  display:none !important;
}
.st-tg-chart-status{
  min-height:30px !important;
  padding:7px 12px !important;
  border-top:1px solid #eeece8 !important;
  color:#8a9098 !important;
  font-size:10px !important;
}

/* Sidebar: same density and hierarchy as the chart. */
.st-tg-quote-side-card{
  margin:0 0 12px !important;
  border:1px solid #e5e2dc !important;
  border-radius:6px !important;
  background:#fff !important;
  box-shadow:none !important;
}
.st-tg-quote-side-head{padding:13px 14px !important}
.st-tg-quote-side-head h3{
  font-size:15px !important;
  font-weight:600 !important;
}
.st-tg-quote-side-row{
  min-height:52px !important;
  padding:8px 12px !important;
  grid-template-columns:minmax(0,1fr) 68px 54px !important;
}
.st-tg-quote-side-row strong{font-size:11px !important}
.st-tg-quote-side-row small{font-size:9px !important}
.st-tg-quote-side-row>b,.st-tg-quote-side-row>em{font-size:10px !important}
.st-tg-quote-side-search{padding:10px !important}

/* Content cards. */
.st-tg-stock-section,
.st-tg-entity-page .st-tg-panel{
  margin-top:14px !important;
  padding:20px !important;
  border:1px solid #e5e2dc !important;
  border-radius:6px !important;
  background:#fff !important;
  box-shadow:none !important;
}
.st-tg-stock-section h2,
.st-tg-entity-page .st-tg-panel h2{
  font-size:19px !important;
  font-weight:600 !important;
}
.st-tg-section-head{margin-bottom:14px !important}

@media(max-width:980px){
  .st-tg-quote-layout{grid-template-columns:1fr !important}
  .st-tg-quote-sidebar{position:static !important}
  .st-tg-quote-side-wrap{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:12px !important}
  .st-tg-quote-side-card{margin:0 !important}
}
@media(max-width:720px){
  .st-tg.st-tg-stock .st-tg-shell,
  .st-tg.st-tg-entity-page .st-tg-shell,
  .st-tg.st-tg-stock > .st-tg-stock-top-ticker,
  .st-tg.st-tg-entity-page > .st-tg-stock-top-ticker{
    width:calc(100% - 24px) !important;
    max-width:none !important;
  }
  .st-tg-stock-hero,.st-tg-entity-hero{
    display:block !important;
    padding:22px 0 17px !important;
  }
  .st-tg-stock-hero h1,.st-tg-entity-title h1{font-size:22px !important}
  .st-tg-price-block,.st-tg-entity-price{
    margin-top:14px !important;
    text-align:left !important;
  }
  .st-tg-price,.st-tg-entity-price strong{font-size:31px !important}
  .st-tg-chart-stage,#st-tg-chart{height:320px !important;min-height:320px !important}
  .st-tg-quote-side-wrap{display:block !important}
  .st-tg-quote-side-card{margin-bottom:12px !important}
}


/* 7.27.0 semantic hierarchy */
.tg-section-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  margin:0 0 14px;
}
.tg-section-title h2{margin:0;font-size:28px;line-height:1.12;font-weight:700}
.st-tg-stock-section>.st-tg-section-head{
  min-height:0;
  margin-bottom:14px;
}
.st-tg-stock-section>.st-tg-section-head .st-tg-eyebrow{display:none}
.st-tg-entity-context{
  margin:0 0 6px;
  color:#737981;
  font-size:11px;
  line-height:1.3;
}
.st-tg-entity-hero .st-tg-eyebrow{display:none}

/* Sidebar content is deliberately two-line: ticker, then issuer. */
.st-tg-quote-side-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto auto !important;
  align-items:center !important;
  column-gap:12px !important;
  min-height:64px !important;
  padding:10px 14px !important;
}
.st-tg-quote-side-row > span{
  min-width:0 !important;
  display:grid !important;
  gap:2px !important;
}
.st-tg-quote-side-row > span strong{
  margin:0 !important;
  font-size:12px !important;
  line-height:1.15 !important;
  font-weight:700 !important;
  color:#17191d !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.st-tg-quote-side-row > span small{
  margin:0 !important;
  font-size:10px !important;
  line-height:1.2 !important;
  font-weight:400 !important;
  color:#747a82 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.st-tg-quote-side-row > b{
  white-space:nowrap !important;
  font-size:12px !important;
  font-weight:650 !important;
  font-variant-numeric:tabular-nums !important;
}
.st-tg-quote-side-row > em{
  min-width:58px !important;
  white-space:nowrap !important;
  text-align:right !important;
  font-size:11px !important;
  font-style:normal !important;
  font-weight:600 !important;
  font-variant-numeric:tabular-nums !important;
}
.st-tg-quote-side-head h3{margin:0;font-size:15px;line-height:1.2;font-weight:650}

/* No giant empty tape if the endpoint returns no indices. */
.st-tg-stock-top-ticker.is-empty{display:none}
@media(max-width:720px){
  .tg-section-title h2{font-size:23px}
  .st-tg-quote-side-row{
    grid-template-columns:minmax(0,1fr) auto !important;
  }
  .st-tg-quote-side-row > span{grid-row:1 / span 2}
  .st-tg-quote-side-row > em{grid-column:2;grid-row:2}
}

/* Final content hierarchy: typography follows semantic HTML, not hidden duplicate labels. */
.st-tg-section-head>div{min-width:0}
.st-tg-section-head h2{margin:0}
.st-tg-stock-section .st-tg-section-head .st-tg-muted{font-size:11px;line-height:1.3}
.st-tg-market-head h1{margin:0}
.st-tg-market-head>div>p:not(.st-tg-eyebrow){margin:7px 0 0;color:#737981;font-size:12px}
.st-tg-quote-side-row strong,
.st-tg-quote-side-row small{display:block!important}


/* ============================================================
   Stock by TG 7.27.1 — canonical visual layer
   One hierarchy. Compact financial UI. No duplicate labels.
   This layer is intentionally last so legacy/reference rules
   cannot re-expand the layout.
   ============================================================ */

/* Page rhythm */
.st-tg.st-tg-stock,
.st-tg.st-tg-entity-page,
.tg-market-home{
  color:var(--tg-ink);
  background:var(--tg-page);
}
.st-tg-shell,
.tg-market-wrap{
  width:min(1180px,calc(100% - 40px)) !important;
  margin-inline:auto !important;
}

/* Ticker: a utility strip, never a hero block. */
.st-tg-stock-top-ticker{
  width:min(1180px,calc(100% - 40px)) !important;
  margin:0 auto 12px !important;
}
.st-tg-stock-top-ticker .st-tg-quote-tape{
  width:100% !important;
  height:36px !important;
  min-height:36px !important;
  border:1px solid #dedbd5 !important;
  border-radius:7px !important;
  background:#17191d !important;
  overflow:hidden !important;
}
.st-tg-quote-tape-track{
  min-height:36px !important;
  height:36px !important;
}
.st-tg-quote-tape-item{
  height:36px !important;
  min-height:36px !important;
  padding:0 12px !important;
  font-size:10px !important;
}

/* Quote hero: restrained, aligned and spacious without being oversized. */
.st-tg-stock-hero,
.st-tg-entity-hero{
  display:flex !important;
  align-items:flex-end !important;
  justify-content:space-between !important;
  gap:32px !important;
  padding:26px 0 20px !important;
  margin:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.st-tg-stock-hero h1,
.st-tg-entity-title h1{
  font-size:27px !important;
  line-height:1.08 !important;
  font-weight:700 !important;
  letter-spacing:-.035em !important;
}
.st-tg-stock-hero p,
.st-tg-entity-title p{
  margin:7px 0 0 !important;
  font-size:11px !important;
  color:#777d85 !important;
}
.st-tg-price-block,
.st-tg-entity-price{
  flex:0 0 auto !important;
  text-align:right !important;
}
.st-tg-price{
  font-size:38px !important;
  line-height:1 !important;
  font-weight:700 !important;
  letter-spacing:-.04em !important;
}
.st-tg-change{
  font-size:14px !important;
  font-weight:600 !important;
  margin-left:7px !important;
}
.st-tg-when{
  margin-top:7px !important;
  font-size:10px !important;
  color:#8a9098 !important;
}

/* Main quote layout */
.st-tg-quote-layout{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 290px !important;
  gap:18px !important;
  padding:0 !important;
  margin:0 !important;
}
.st-tg-quote-main,.st-tg-quote-side-wrap{min-width:0 !important}
.st-tg-quote-sidebar{
  width:100% !important;
  position:sticky !important;
  top:14px !important;
}

/* Chart */
.st-tg-chart-frame{
  border:1px solid #e1ded8 !important;
  border-radius:8px !important;
  background:#fff !important;
  overflow:hidden !important;
  margin:0 !important;
  box-shadow:none !important;
}
.st-tg-chart-toolbar{
  height:48px !important;
  min-height:48px !important;
  padding:0 10px !important;
}
.st-tg-chart-rangebar button{
  height:30px !important;
  min-width:38px !important;
  padding:0 9px !important;
  border-radius:5px !important;
  font-size:10px !important;
}
.st-tg-chart-rangebar button.is-on{
  background:#137b50 !important;
  color:#fff !important;
}
.tg-quote-advanced,
.st-tg-chart-advanced-link{
  height:30px !important;
  padding:0 10px !important;
  border-radius:5px !important;
  font-size:10px !important;
}
.st-tg-chart-stage{
  height:400px !important;
  min-height:400px !important;
}
#st-tg-chart{
  height:100% !important;
  min-height:400px !important;
}

/* Sidebar: compact rows, clean separation, no merged ticker/company. */
.st-tg-quote-side-card{
  margin:0 0 12px !important;
  border:1px solid #e1ded8 !important;
  border-radius:8px !important;
  background:#fff !important;
  box-shadow:none !important;
}
.st-tg-quote-side-head{
  padding:12px 14px !important;
  border-bottom:1px solid #ece9e4 !important;
}
.st-tg-quote-side-head h3{
  margin:0 !important;
  font-family:"Bricolage Grotesque",Poppins,"Segoe UI",sans-serif !important;
  font-size:16px !important;
  line-height:1.15 !important;
  font-weight:600 !important;
  letter-spacing:-.02em !important;
}
.st-tg-quote-side-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto auto !important;
  min-height:58px !important;
  padding:8px 12px !important;
  gap:10px !important;
  align-items:center !important;
  border-bottom:1px dashed #dedfe1 !important;
}
.st-tg-quote-side-list .st-tg-quote-side-row:last-child{
  border-bottom:0 !important;
}
.st-tg-quote-side-row>span{
  display:flex !important;
  flex-direction:column !important;
  gap:2px !important;
  min-width:0 !important;
}
.st-tg-quote-side-row>span strong{
  font-size:12px !important;
  line-height:1.15 !important;
  font-weight:700 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.st-tg-quote-side-row>span small{
  font-size:9px !important;
  line-height:1.2 !important;
  color:#7b8188 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.st-tg-quote-side-row>b{
  font-size:11px !important;
  font-weight:650 !important;
  white-space:nowrap !important;
}
.st-tg-quote-side-row>em{
  min-width:56px !important;
  font-size:10px !important;
  font-style:normal !important;
  font-weight:600 !important;
  text-align:right !important;
  white-space:nowrap !important;
}

/* Section cards: low-noise, consistent rhythm. */
.st-tg-stock-section{
  margin:14px 0 0 !important;
  padding:20px !important;
  border:1px solid #e1ded8 !important;
  border-radius:8px !important;
  background:#fff !important;
  box-shadow:none !important;
}
.st-tg-section-head{
  display:flex !important;
  align-items:baseline !important;
  justify-content:space-between !important;
  gap:16px !important;
  margin:0 0 14px !important;
}
.st-tg-section-head h2{
  margin:0 !important;
  font-size:20px !important;
  line-height:1.15 !important;
  font-weight:600 !important;
  letter-spacing:-.025em !important;
}
.st-tg-section-head .st-tg-muted{
  font-size:10px !important;
}

/* Homepage section titles: one title, no eyebrow echo. */
.tg-section-title{
  display:flex !important;
  align-items:baseline !important;
  justify-content:space-between !important;
  gap:16px !important;
  margin:0 0 12px !important;
}
.tg-section-title h2{
  margin:0 !important;
  font-size:22px !important;
  line-height:1.15 !important;
  font-weight:600 !important;
}
.tg-section-title .st-tg-eyebrow{display:none !important}

/* Homepage cards */
.tg-board-card,.tg-mini-card,.tg-side-card,.tg-mover-card{
  border-radius:8px !important;
  box-shadow:none !important;
}
.tg-board-card h3,.tg-mover-head h3,.tg-side-card-head h3{
  font-size:15px !important;
  font-weight:600 !important;
}
.tg-home-row{
  min-height:44px !important;
}
.tg-home-symbol{
  font-size:11px !important;
}
.tg-home-price{
  font-size:11px !important;
  font-weight:600 !important;
}
.tg-home-change{
  font-size:10px !important;
}

/* No decorative symbols as headings/icons where text is enough. */
.tg-lookup-icon,
.st-tg-quote-side-lookup>span{
  font-size:0 !important;
}
.tg-lookup-icon::before,
.st-tg-quote-side-lookup>span::before{
  content:"Search" !important;
  font-size:10px !important;
  color:#858b92 !important;
}

/* Responsive */
@media(max-width:980px){
  .st-tg-quote-layout{grid-template-columns:1fr !important}
  .st-tg-quote-sidebar{position:static !important}
  .st-tg-quote-side-wrap{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:12px !important;
  }
}
@media(max-width:720px){
  .st-tg-shell,.tg-market-wrap,
  .st-tg-stock-top-ticker{
    width:calc(100% - 24px) !important;
  }
  .st-tg-stock-hero,.st-tg-entity-hero{
    display:block !important;
    padding:20px 0 16px !important;
  }
  .st-tg-stock-hero h1,.st-tg-entity-title h1{font-size:23px !important}
  .st-tg-price-block,.st-tg-entity-price{
    margin-top:13px !important;
    text-align:left !important;
  }
  .st-tg-price,.st-tg-entity-price strong{font-size:31px !important}
  .st-tg-chart-stage,#st-tg-chart{
    height:320px !important;
    min-height:320px !important;
  }
  .st-tg-quote-side-wrap{display:block !important}
  .tg-section-title h2{font-size:20px !important}
  .st-tg-quote-side-row{
    grid-template-columns:minmax(0,1fr) auto !important;
  }
  .st-tg-quote-side-row>span{grid-row:1 / span 2}
  .st-tg-quote-side-row>em{grid-column:2;grid-row:2}
}
