/* =========================================================================================
   VECTIVATE — STOCK INFORMATION (CLEANED)
   -----------------------------------------------------------------------------------------
   TABLE OF CONTENTS
   0)  Inheritance & Notes
   1)  Stock Header (name, price, logo)
   2)  Price Chart + Range Buttons
   3)  Company Description
   4)  Two-Up Boxes (Financial Overview + Analyst Grades)
   5)  Generic Data Boxes (company-info, financial-data, ratios, wacc, ratings, peers)
   6)  Monte Carlo / Simulator Inputs
   7)  Financial Statement Tables
   8)  WACC Borders
   9)  Executive Compensation
   10) Downloads + Buttons
   11) DCF Valuation
   12) Analyst Ratings Table + Peers
   13) Money Movement Chart
   14) Scrollbars (table containers)
   15) Mobile Queries
   ========================================================================================= */


/* =========================================================================================
   VECTIVATE — STOCK INFORMATION (CLEANED + THEME-SAFE)
   -----------------------------------------------------------------------------------------
   Uses tokens from Main.css :root and :root[data-theme="light"]
   Keep class names/IDs to avoid breaking HTML/JS.
   ========================================================================================= */


/* ===================================== 0) NOTES ===================================== */
/* This file assumes Main.css defines tokens like:
   --page-bg, --page-fg, --muted-fg,
   --ui-bg, --ui-fg, --ui-border,
   --panel-1/2/3, --glass-1/2/3, --glass-border-1/2/3,
   --input-bg, --input-bg-strong, --accent
*/


/* ===================================== 1) STOCK HEADER ===================================== */
.stock-header{display:flex;flex-direction:column;align-items:stretch;gap:18px}
.stock-hero-card{
  margin-bottom:22px;
  padding:22px;
  border:1px solid var(--ui-border);
  border-radius:16px;
  background:linear-gradient(135deg, rgba(72,135,104,.14), rgba(19,28,44,.36) 48%, rgba(255,255,255,.03));
  box-shadow:0 18px 40px rgba(0,0,0,.18);
}
.stock-hero-main{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;flex-wrap:wrap}
.stock-hero-identity{min-width:260px;flex:1 1 460px}
.stock-header-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.stock-header-line{font-size:2.05rem;font-weight:850;letter-spacing:.02em;line-height:1.1}
.stock-header-content{display:flex;justify-content:space-between;align-items:center;padding-right:1rem}
.stock-name-group{display:flex;flex-direction:column;gap:.25rem}
.stock-logo{width:52px;height:52px;display:flex;align-items:center;justify-content:center;background:transparent;border:0;box-shadow:none;overflow:visible}
.stock-logo img{max-width:52px;max-height:52px;width:auto;height:auto;object-fit:contain;border-radius:0;background:transparent}
.stock-meta-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.stock-meta-chip{
  display:inline-flex;align-items:center;gap:6px;
  padding:7px 10px;border-radius:999px;
  border:1px solid rgba(126,225,182,.28);
  background:rgba(72,135,104,.12);
  color:var(--ui-fg);
  font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;
}
.stock-meta-chip.muted{border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:var(--muted-fg)}
.stock-quote-panel{
  min-width:260px;
  padding:16px 18px;
  border-radius:16px;
  border:1px solid rgba(126,225,182,.24);
  background:rgba(9,18,31,.55);
  display:grid;
  grid-template-columns:auto auto;
  column-gap:14px;row-gap:6px;
  align-items:end;
}
.stock-quote-panel .quote-label{grid-column:1/-1;color:var(--muted-fg);font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
#stock-price,.stock-price-big{font-size:2.25rem;font-weight:900;line-height:1;margin-top:0;color:var(--page-fg)}
.stock-change-pill{
  align-self:center;
  padding:7px 10px;
  border-radius:999px;
  font-size:.9rem;
  font-weight:900;
  background:rgba(255,255,255,.07);
  color:var(--muted-fg);
  white-space:nowrap;
}
.stock-change-pill.positive{color:#7fe1b6;background:rgba(65,170,121,.14)}
.stock-change-pill.negative{color:#ff9b9b;background:rgba(190,70,70,.14)}
.stock-change-pill.is-empty{display:none}
.after-hours-label{grid-column:1/-1;font-weight:700;color:var(--muted-fg);font-size:.82rem}
.stock-header-stats{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:10px}
.header-stat-card{
  padding:13px 14px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:rgba(255,255,255,.045);
  min-width:0;
}
.header-stat-card span{display:block;margin-bottom:6px;color:var(--muted-fg);font-size:.74rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.header-stat-card strong{display:block;color:var(--page-fg);font-size:1rem;font-weight:900;white-space:normal;overflow-wrap:anywhere;line-height:1.15}
.header-stat-card.accent{background:rgba(72,135,104,.13);border-color:rgba(126,225,182,.26)}
.stock-overview{display:block;margin-top:2rem}
@media (max-width: 1180px){.stock-header-stats{grid-template-columns:repeat(3,minmax(120px,1fr))}}
@media (max-width: 720px){.stock-header-stats{grid-template-columns:1fr 1fr}.stock-quote-panel{width:100%;grid-template-columns:1fr}.stock-header-line{font-size:1.65rem}}


/* ===================================== 2) PRICE CHART + RANGE BUTTONS ===================================== */
.stock-chart{
  width:100%;
  height:400px;
  background:var(--ui-bg);
  padding:20px;
  border-radius:10px;
  box-sizing:border-box;
  overflow:hidden;
}
#priceChart{width:100%!important;height:100%!important;display:block}


.chart-toolbar{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
}
.chart-toolbar label{
  color:var(--muted-fg);
  font-size:.9rem;
  font-weight:600;
}
.chart-toolbar select{
  background:var(--panel-2);
  color:var(--ui-fg);
  border:1px solid var(--ui-border);
  border-radius:12px;
  padding:10px 14px;
  font-size:.95rem;
  font-weight:600;
  outline:none;
  cursor:pointer;
}
.chart-toolbar select:focus{border-color:var(--ui-fg)}

.chart-controls{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:1rem}
.chart-controls button{
  background:var(--panel-2);
  color:var(--ui-fg);
  border:1px solid var(--ui-border);
  padding:12px 16px;
  border-radius:12px;
  cursor:pointer;
  font-size:.95rem;
  font-weight:500;
  transition:background .2s,color .2s,border-color .2s;
}
.chart-controls button:hover{background:var(--panel-1);color:var(--page-fg)}
.chart-controls button.active{background:var(--panel-1);color:var(--ui-fg);border-color:var(--ui-fg)}


/* ===================================== 3) COMPANY DESCRIPTION ===================================== */
.company-description{margin:40px 0 35px}
/* Your HTML uses id="company-description-text" */
#company-description-text{font-size:1rem;line-height:1.6;color:var(--muted-fg)}


/* ===================================== 4) FINANCIAL OVERVIEW GRID (TOP SECTION) ===================================== */
.finacial-box-details{
  display:flex;
  flex-direction:row;
  justify-content:center;
  gap:15px;
  margin-top:40px;
  flex-wrap:wrap;
}

/* these are used as cards; HTML uses .four-tile + .company-info/.financial-data/... */
.company-info,.financial-data,.financial-ratios,.wacc-breakdown,.ratings,.peers{
  width:100%;
  padding:16px;
  background:var(--ui-bg);
  border-radius:10px;
  box-sizing:border-box;
  word-break:break-word;
  overflow-wrap:break-word;
}

.company-info ul,.financial-data ul,.financial-ratios ul,.wacc-breakdown ul,.ratings ul,.peers ul{
  list-style:none;
  padding:0;
  margin:0;
}

.company-info li,.financial-data li,.financial-ratios li,.wacc-breakdown li,.ratings li,.peers li{
  display:flex;
  justify-content:space-between;
  padding:6px 0;
  font-size:.95rem;
}

.company-info h3,.financial-data h3,.financial-ratios h3,.wacc-breakdown h3,.ratings h3,.peers h3{
  margin:15px 0 0;
  font-weight:600;
  color:var(--page-fg);
}

.company-info li span,.financial-data li span,.financial-ratios li span,.wacc-breakdown li span,.ratings li span,.peers li span{
  text-align:right;
  word-break:break-word;
}

/* WACC right-side value trimming */
.wacc-breakdown li span{
  display:inline-block;
  text-align:right;
  max-width:140px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}


/* ===================================== 5) STATEMENT BUTTON ACTIVE STATE ===================================== */
.statement-buttons .button.active{
  background:var(--panel-2);
  color:var(--ui-fg);
  border-color:var(--ui-fg);
}


/* ===================================== 6) MONTE CARLO / SIMULATOR INPUTS ===================================== */
.sim-button-wrapper{grid-column:1/-1;display:flex;justify-content:center}

.stock-simulator{
  margin:40px 0 10px;
  padding:1.25rem 2rem 2rem;
  background:var(--ui-bg);
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,.2);
}

.input-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:1.5rem;
  margin-top:1.5rem;
}
.input-grid label{
  display:flex;
  flex-direction:column;
  font-weight:500;
  font-size:.95rem;
  color:var(--page-fg);
}
.input-grid input[type="number"]{
  margin-top:.5rem;
  padding:.6rem 1rem;
  border-radius:8px;
  border:1px solid var(--glass-border-2);
  background:var(--input-bg);
  color:var(--page-fg);
  font-size:.95rem;
  transition:border-color .2s;
}
.input-grid input[type="number"]:focus{border-color:var(--accent);outline:none}

.chart-container{position:relative;width:100%;height:500px}
.sim-chart{width:100%!important;height:100%!important}

/* sim summary box is rendered into #simSummary */
.sim-summary{
  background:var(--glass-1);
  padding:1.25rem 2rem 2rem;
  border-radius:12px;
  box-shadow:0 0 10px rgba(0,0,0,.25);
  max-width:800px;
  margin:0 auto;
  color:var(--page-fg);
}

/* if you ever render internal headings/rows */
.sim-summary h3{text-align:center;margin:0 0 1.5rem;font-size:1.25rem;font-weight:600;color:var(--page-fg)}
.summary-grid{display:grid;grid-template-columns:1fr 1fr;row-gap:1rem;column-gap:2rem;font-size:1rem}
.summary-grid .label{color:var(--muted-fg);font-weight:500}
.summary-grid .value{color:var(--page-fg);font-weight:600}


/* ===================================== 7) FINANCIAL STATEMENT TABLES ===================================== */
.downloads,.financial-statements{margin:40px 0 35px}
.financial-statements h2{margin-bottom:8px}

.statement-table-container{
  position:relative;
  overflow-x:auto;
  overflow-y:visible;
  -webkit-overflow-scrolling:touch;
  border-radius:8px;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.22) transparent;
}
.statement-table{border-collapse:collapse;min-width:700px;width:max-content}
.statement-table td,.statement-table th{padding:10px 14px}
.statement-table th:not(:first-child),.statement-table td:not(:first-child){padding:0 25px;text-align:right}

/* subtotal / grand total rows (table) */
tr.subtotal td{
  border-top:1px solid var(--page-fg);
  border-bottom:1px solid var(--page-fg);
  font-weight:600;
}
tr.grand-total td{
  border-top:1px solid var(--page-fg);
  border-bottom:3px double var(--page-fg);
  font-weight:700;
}


/* ===================================== 8) WACC BORDERS (LIST) ===================================== */
.wacc-breakdown li.subtotal{
  border-top:1px solid var(--page-fg);
  border-bottom:1px solid var(--page-fg);
  font-weight:600;
}
.wacc-breakdown li.grand-total{
  border-top:1px solid var(--page-fg);
  border-bottom:3px double var(--page-fg);
  font-weight:700;
}


/* ===================================== 9) EXECUTIVE COMPENSATION ===================================== */
.executive-comp-table{
  min-width:1120px;
}
.executive-comp-table th,
.executive-comp-table td{
  white-space:nowrap;
}
.executive-comp-table th:first-child,
.executive-comp-table td:first-child{
  text-align:left;
}
.executive-comp-table td:not(:first-child),
.executive-comp-table th:not(:first-child){
  text-align:right;
}
.executive-comp-table .exec-title{
  min-width:220px;
  max-width:320px;
  white-space:normal;
  text-align:left;
}
.executive-comp-table .exec-name{
  font-weight:600;
}
.executive-comp-table .exec-total-pay{
  font-weight:700;
  border-left:1px solid var(--glass-border-2);
}


/* ===================================== 10) DOWNLOADS + BUTTONS ===================================== */
.download-buttons{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
  padding:0 1rem;
}
.download-buttons .button{
  display:block;
  text-align:center;
  white-space:normal;
  word-break:break-word;
  line-height:1.4;
  padding:12px 16px;
}
.downloads h2{margin-bottom:24px}


/* ===================================== 11) ANALYST RATINGS TABLE + PEERS ===================================== */
.grades-table{width:100%;border-collapse:collapse;table-layout:fixed}
.grades-table th,.grades-table td{
  padding:.5rem;
  border-bottom:1px solid var(--glass-border-2);
  font-size:.95rem;
  white-space:normal;
  text-align:center;
}
.grades-table th{text-align:center;font-weight:600}

.comparable-table{text-align:center;line-height:2}


/* ===================================== 12) MONEY MOVEMENT CHART ===================================== */
.money-flow-card{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 18% 26%, rgba(67,208,153,.075), transparent 34%),
    radial-gradient(circle at 76% 16%, rgba(105,156,255,.055), transparent 32%),
    linear-gradient(135deg, rgba(18,44,42,.72), rgba(13,20,36,.78));
  border:1px solid rgba(136,255,202,.18);
  border-radius:18px;
  padding:20px clamp(14px,2vw,28px) 16px;
  box-shadow:0 18px 55px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.06);
}
.money-flow-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:72px 72px;
  mask-image:linear-gradient(to bottom, rgba(0,0,0,.80), transparent 92%);
}
.money-flow-subtitle{
  position:relative;
  color:var(--muted-fg);
  margin:4px auto 14px;
  max-width:980px;
  text-align:center;
  font-size:.98rem;
  line-height:1.45;
}
.money-flow-wrap{
  position:relative;
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  border-radius:16px;
  display:flex;
  justify-content:center;
}
.money-flow-footnote{
  position:relative;
  margin:12px auto 0;
  max-width:980px;
  text-align:center;
  color:var(--muted-fg);
  font-size:.86rem;
}
.money-flow-label{font-family:Poppins,sans-serif;font-size:13px;font-weight:800;fill:var(--page-fg);letter-spacing:-.01em}
.money-flow-small{font-size:11.5px;font-weight:650;fill:var(--muted-fg)}
.money-flow-caption{font-family:Poppins,sans-serif;font-size:11px;font-weight:800;letter-spacing:.105em;text-transform:uppercase;fill:rgba(181,194,207,.86)}
.money-flow-ribbon{filter:drop-shadow(0 9px 22px rgba(0,0,0,.24))}

#moneyFlowSVG{
  display:block;
  width:100%;
  height:440px;
  max-width:1450px;
  margin:0 auto;
}


/* ===================================== 13) SCROLLBARS (TABLE CONTAINERS) ===================================== */
.statement-table-container::-webkit-scrollbar{height:6px}
.statement-table-container::-webkit-scrollbar-track{background:transparent}
.statement-table-container::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.22);border-radius:999px}


/* ===================================== 14) MOBILE QUERIES ===================================== */
@media (max-width:768px){
  .stock-details{flex-direction:column;align-items:center}

  .download-buttons{flex-direction:column;align-items:center;gap:12px;padding:0 1rem}
  .statement-buttons{display:flex;flex-direction:column;align-items:center;gap:12px}

  .statement-buttons .button{
    width:100%;
    max-width:300px;
    text-align:center;
    white-space:normal;
    word-break:break-word;
    padding:12px 16px;
    box-sizing:border-box;
  }

  .sidebar-nav{display:none!important}
}

/* ===================================== 7B) STANDARDIZED STATEMENT TABLE REFRESH ===================================== */
.statement-table th:first-child,
.statement-table td:first-child{
  position:sticky;
  left:0;
  z-index:2;
  background:var(--ui-bg);
  text-align:left;
  min-width:220px;
}
.statement-table th:first-child{z-index:3}
.statement-table th{
  font-weight:700;
  white-space:nowrap;
}
.statement-table td{
  white-space:nowrap;
  border-bottom:1px solid rgba(255,255,255,.08);
}
tr.statement-section td{
  position:static!important;
  background:rgba(255,255,255,.08)!important;
  color:var(--muted-fg);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:12px 14px 8px!important;
  border-top:1px solid rgba(255,255,255,.18);
  border-bottom:1px solid rgba(255,255,255,.12);
  text-align:left!important;
}
.statement-table tr.subtotal td:first-child,
.statement-table tr.grand-total td:first-child{
  background:var(--ui-bg);
}

/* API statement table headers */
#statement-header th .statement-period {
  display: block;
  font-weight: 800;
  white-space: nowrap;
}

#statement-header th .statement-date {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.72;
  white-space: nowrap;
}

/* ===== Metrics dashboard redesign ===== */
.metrics-dashboard .metrics-tile{
  overflow: hidden;
  min-height: 0;
}
.metrics-dashboard .tile-header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.metrics-dashboard .tile-header-row h3{
  margin:0;
}
.metrics-dashboard .tile-eyebrow{
  color:rgba(255,255,255,.72);
  border:1px solid rgba(111,202,164,.22);
  background:rgba(111,202,164,.08);
  border-radius:999px;
  padding:4px 9px;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  white-space:nowrap;
}
.metrics-dashboard .tile-hero{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
  border-radius:14px;
  padding:12px 14px;
  margin-bottom:12px;
}
.metrics-dashboard .tile-hero-label,
.metrics-dashboard .metric-strip span{
  display:block;
  color:rgba(255,255,255,.62);
  font-size:.76rem;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.metrics-dashboard .tile-hero-value{
  margin-top:4px;
  color:#f3f7f8;
  font-size:1.2rem;
  line-height:1.18;
  font-weight:800;
}
.metrics-dashboard .tile-hero-sub{
  margin-top:4px;
  color:rgba(255,255,255,.72);
  font-size:.88rem;
}
.metrics-dashboard .metric-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}
.metrics-dashboard .metric-strip > div{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
  border-radius:14px;
  padding:10px 11px;
  min-width:0;
}
.metrics-dashboard .metric-strip strong{
  display:block;
  margin-top:4px;
  color:#f3f7f8;
  font-size:1rem;
  line-height:1.15;
  white-space:nowrap;
}
.metrics-dashboard .primary-strip > div:first-child{
  background:rgba(111,202,164,.11);
  border-color:rgba(111,202,164,.28);
}
.metrics-dashboard .metrics-list.compact-list{
  display:block;
  margin:0 0 12px 0;
  padding:0;
}
.metrics-dashboard .metrics-list.compact-list li{
  min-height:25px;
  padding:3px 0;
  border-bottom:1px solid rgba(255,255,255,.045);
  gap:10px;
}
.metrics-dashboard .metrics-list.compact-list li:last-child{
  border-bottom:0;
}
.metrics-dashboard .metrics-list.compact-list li span{
  max-width:52%;
  overflow:hidden;
  text-overflow:ellipsis;
}
.metrics-dashboard .fundamentals-scorecard h4,
.metrics-dashboard .wacc-valuation-tile h4,
.metrics-dashboard .what-changed-block h4{
  margin:13px 0 6px;
  color:#f3f7f8;
  font-size:.92rem;
  font-weight:800;
  letter-spacing:.01em;
}
.metrics-dashboard .what-changed-block{
  border-top:1px solid rgba(255,255,255,.08);
  margin-top:12px;
  padding-top:4px;
}
.metrics-dashboard .change-list{
  display:grid;
  gap:7px;
}
.metrics-dashboard .change-row{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:8px;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.03);
  border-radius:12px;
  padding:8px 9px;
  color:rgba(255,255,255,.82);
  font-size:.82rem;
}
.metrics-dashboard .change-row.muted{
  display:block;
  color:rgba(255,255,255,.58);
}
.metrics-dashboard .change-icon{
  width:22px;
  height:22px;
  border-radius:50%;
  display:inline-grid;
  place-items:center;
  font-size:.72rem;
  font-weight:900;
}
.metrics-dashboard .change-row.positive .change-icon{
  background:rgba(111,202,164,.18);
  color:#7fe1b6;
}
.metrics-dashboard .change-row.negative .change-icon{
  background:rgba(255,108,108,.15);
  color:#ff9b9b;
}
.metrics-dashboard .change-row.neutral .change-icon{
  background:rgba(255,255,255,.10);
  color:rgba(255,255,255,.76);
}
.metrics-dashboard .change-main{
  min-width:0;
}
.metrics-dashboard .change-title{
  display:block;
  color:#f3f7f8;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.metrics-dashboard .change-sub{
  display:block;
  color:rgba(255,255,255,.62);
  font-size:.74rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.metrics-dashboard .change-value{
  font-weight:900;
  white-space:nowrap;
}
.metrics-dashboard .change-row.positive .change-value{ color:#7fe1b6; }
.metrics-dashboard .change-row.negative .change-value{ color:#ff9b9b; }
.metrics-dashboard .tile-note{
  margin-top:10px;
  color:rgba(255,255,255,.55);
  font-size:.78rem;
  line-height:1.35;
}
@media (max-width: 980px){
  .metrics-dashboard .metric-strip{ grid-template-columns:1fr; }
}

.metrics-dashboard .market-snapshot-tile .metric-strip strong{
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  font-size:.94rem;
}
.metrics-dashboard .wacc-breakdown li.grand-total span{
  font-weight:900;
}
.metrics-dashboard .wacc-valuation-tile li.grand-total{
  border-top:1px solid var(--page-fg);
  border-bottom:3px double var(--page-fg);
  font-weight:900;
}

/* L3 cleanup: logo is no longer presented as a tile, and removed summary strips keep cards calmer. */
.stock-logo:empty{display:none}
.metrics-dashboard .metric-strip[hidden]{display:none}

/* ===================================== VALUATION WORKBENCH ===================================== */
.valuation-workbench{
  --vw-accent: #7fe1b6;
  --vw-accent-strong: #caff3d;
  --vw-warning: #ffb35c;
  --vw-danger: #ff7272;
  --vw-surface: rgba(8,16,29,.66);
  --vw-surface-soft: rgba(255,255,255,.045);
  --vw-border: rgba(255,255,255,.10);
  --vw-border-accent: rgba(126,225,182,.20);
  margin:2rem 0 2.5rem;
  padding:24px;
  border:1px solid var(--vw-border-accent);
  border-radius:18px;
  background:
    radial-gradient(circle at 46% 35%, rgba(126,225,182,.13), transparent 32%),
    radial-gradient(circle at 82% 10%, rgba(87,132,255,.10), transparent 30%),
    linear-gradient(135deg, rgba(72,135,104,.11), rgba(12,20,34,.78) 50%, rgba(255,255,255,.025));
  box-shadow:0 22px 55px rgba(0,0,0,.20);
}
.valuation-workbench__header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:18px;
  flex-wrap:wrap;
}
.valuation-workbench__kicker{
  display:block;
  margin-bottom:6px;
  color:var(--vw-accent);
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.valuation-workbench__header h2{
  margin:0;
  color:var(--page-fg);
  font-size:1.6rem;
  line-height:1.15;
}
.valuation-workbench__header p{
  margin:7px 0 0;
  color:var(--muted-fg);
  font-size:.94rem;
}
.valuation-workbench__period{
  padding:9px 12px;
  border:1px solid rgba(126,225,182,.25);
  border-radius:999px;
  background:rgba(126,225,182,.08);
  color:var(--ui-fg);
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.valuation-workbench__content{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:18px;
  align-items:stretch;
}
.valuation-workbench__visual,
.valuation-workbench__insights{
  border:1px solid var(--vw-border);
  border-radius:16px;
  background:var(--vw-surface);
}
.valuation-workbench__visual{
  position:relative;
  min-height:430px;
  overflow:hidden;
  background:linear-gradient(135deg, rgba(7,15,27,.64), rgba(13,23,40,.78));
}
.valuation-workbench__visual::before{
  content:"";
  position:absolute;
  inset:-30%;
  background:
    radial-gradient(circle at 45% 45%, rgba(126,225,182,.13), transparent 34%),
    radial-gradient(circle at 70% 20%, rgba(104,165,255,.10), transparent 30%);
  pointer-events:none;
}
.valuation-workbench__svg{
  position:relative;
  display:block;
  width:100%;
  height:100%;
  min-height:430px;
}
.valuation-workbench__insights{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:16px;
}
.valuation-workbench__score-card{
  padding:15px;
  border:1px solid rgba(126,225,182,.24);
  border-radius:15px;
  background:linear-gradient(135deg, rgba(126,225,182,.13), rgba(126,225,182,.045));
  box-shadow:inset 0 0 34px rgba(126,225,182,.06);
}
.valuation-workbench__score-card strong{
  display:block;
  margin:7px 0 3px;
  color:var(--page-fg);
  font-size:2.15rem;
  font-weight:950;
  line-height:1;
}
.valuation-workbench__label,
.valuation-workbench__metric-grid span{
  display:block;
  color:var(--muted-fg);
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.valuation-workbench__label{font-size:.76rem}
.valuation-workbench__score-card small{
  color:var(--muted-fg);
  font-size:.78rem;
}
.valuation-workbench__metric-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.valuation-workbench__metric-grid div{
  min-height:72px;
  padding:12px;
  border:1px solid var(--vw-border);
  border-radius:13px;
  background:var(--vw-surface-soft);
}
.valuation-workbench__metric-grid span{
  margin-bottom:7px;
  font-size:.72rem;
  line-height:1.2;
}
.valuation-workbench__metric-grid strong{
  color:var(--page-fg);
  font-size:1.05rem;
  font-weight:950;
  overflow-wrap:anywhere;
}
.valuation-workbench__note{
  margin:0;
  padding-top:12px;
  max-height:none;
  overflow:visible;
  border-top:1px solid rgba(255,255,255,.08);
  color:var(--muted-fg);
  font-size:.86rem;
  line-height:1.45;
}
.ve-caption,
.ve-card-label,
.ve-center-label,
.ve-heat-label,
.ve-empty-copy{
  font-family:Poppins,sans-serif;
}
.ve-caption{
  fill:rgba(255,255,255,.55);
  font-size:11px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.ve-empty-title{fill:#f4f8fb;font-size:13px;font-weight:900}
.ve-empty-copy{fill:rgba(255,255,255,.72);font-size:12px;font-weight:700;letter-spacing:.02em}
.ve-card-bg{fill:rgba(255,255,255,.045);stroke:rgba(255,255,255,.11);stroke-width:1.1;filter:drop-shadow(0 16px 24px rgba(0,0,0,.22))}
.ve-card-label{fill:rgba(210,222,232,.70);font-size:11px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.ve-card-value{font-size:23px;font-weight:950;fill:#f7fbff;letter-spacing:-.02em}
.ve-card-value.green,.ve-center-score.green{fill:#9cff78}
.ve-card-value.yellow,.ve-center-score.yellow{fill:#f4e95f}
.ve-card-value.orange,.ve-center-score.orange{fill:var(--vw-warning)}
.ve-card-value.red,.ve-center-score.red{fill:var(--vw-danger)}
.ve-card-compare{fill:rgba(230,238,244,.78);font-size:11.2px;font-weight:850}
.ve-card-status{fill:rgba(183,197,208,.72);font-size:10.2px;font-weight:760}
.ve-link{fill:none;stroke:rgba(255,255,255,.22);stroke-width:1.2;stroke-dasharray:4 5}
.ve-ring-shadow{fill:rgba(126,225,182,.045);stroke:rgba(126,225,182,.15);stroke-width:1;filter:drop-shadow(0 0 32px rgba(126,225,182,.24))}
.ve-ring-track{fill:none;stroke:rgba(255,255,255,.10);stroke-width:16}
.ve-ring-progress{fill:none;stroke:url(#veRing);stroke-width:16;stroke-linecap:round;filter:drop-shadow(0 0 14px rgba(126,225,182,.42))}
.ve-center-label{fill:rgba(210,222,232,.70);font-size:12px;font-weight:900;letter-spacing:.11em;text-transform:uppercase}
.ve-center-score{font-size:72px;font-weight:950;letter-spacing:-.045em;filter:drop-shadow(0 0 16px rgba(126,225,182,.28))}
.ve-center-pill{fill:rgba(126,225,182,.10);stroke:rgba(126,225,182,.28);stroke-width:1.1}
.ve-center-pill.green{fill:rgba(126,225,182,.15);stroke:rgba(126,225,182,.42)}
.ve-center-pill.yellow{fill:rgba(244,233,95,.14);stroke:rgba(244,233,95,.38)}
.ve-center-pill.orange{fill:rgba(255,179,92,.14);stroke:rgba(255,179,92,.38)}
.ve-center-pill.red{fill:rgba(255,114,114,.13);stroke:rgba(255,114,114,.36)}
.ve-center-pill-text{fill:#f6fbff;font-size:13px;font-weight:950;letter-spacing:.01em}
.ve-score-marker{stroke:#fff;stroke-width:2;filter:drop-shadow(0 0 10px rgba(255,255,255,.42))}
.ve-heat-label{fill:rgba(205,218,229,.68);font-size:11px;font-weight:850;letter-spacing:.06em;text-transform:uppercase}
@media (max-width:1120px){
  .valuation-workbench__content{grid-template-columns:1fr}
  .valuation-workbench__insights{display:grid;grid-template-columns:1fr}
  .valuation-workbench__metric-grid{grid-template-columns:repeat(4,minmax(120px,1fr))}
}
@media (max-width:760px){
  .valuation-workbench{padding:16px}
  .valuation-workbench__header h2{font-size:1.28rem}
  .valuation-workbench__visual,
  .valuation-workbench__svg{min-height:390px}
  .valuation-workbench__metric-grid{grid-template-columns:1fr 1fr}
}


/* Valuation workbench tooltips reuse the global .tooltip hook, but tune the card popovers for this dense hero tile. */
.valuation-workbench .tooltip{cursor:help}
.valuation-workbench .tooltip:hover::after{
  top:calc(100% + 8px);
  left:auto;
  right:0;
  width:260px;
  max-width:min(260px,70vw);
  padding:10px 12px;
  border-color:rgba(126,225,182,.24);
  border-radius:10px;
  background:rgba(8,18,28,.98);
  color:var(--page-fg);
  box-shadow:0 14px 32px rgba(0,0,0,.35);
  font-size:.78rem;
  line-height:1.38;
  letter-spacing:0;
  text-transform:none;
}
.valuation-workbench__score-card.tooltip:hover::after{
  left:0;
  right:auto;
}
.valuation-workbench__note{
  color:rgba(220,231,238,.78);
}
.ve-card-status{font-size:10.6px;}
.ve-card-compare{font-size:11px;}

.header-stat-card.tooltip{position:relative;cursor:help}
.header-stat-card.tooltip:hover::after{
  content:attr(data-tip);
  position:absolute;
  left:14px;
  bottom:calc(100% + 10px);
  z-index:30;
  width:min(280px,70vw);
  padding:10px 12px;
  border-radius:12px;
  background:rgba(9,16,27,.96);
  color:var(--page-fg);
  border:1px solid rgba(136,255,202,.20);
  box-shadow:0 14px 34px rgba(0,0,0,.35);
  font-size:.78rem;
  line-height:1.35;
  text-transform:none;
  letter-spacing:0;
}

/* ============================================================================
   Company Intelligence Terminal rebuild
   ============================================================================ */
.company-intelligence-terminal-page {
  max-width: 1480px;
}

.company-intelligence-terminal {
  display: flex;
  flex-direction: column;
  gap: 28px;
  color: var(--text-color, #f5f7fb);
}

.cit-loading {
  min-height: 360px;
  display: grid;
  place-content: center;
  gap: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(0, 205, 255, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(2, 6, 23, 0.92));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}
.cit-loading strong { font-size: clamp(1.25rem, 3vw, 2rem); }
.cit-loading span { color: rgba(255, 255, 255, 0.72); }
.cit-loading.is-error { border-color: rgba(255, 90, 90, 0.45); }

.cit-hero,
.cit-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(16, 24, 39, 0.94), rgba(3, 7, 18, 0.92));
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.cit-hero {
  padding: clamp(22px, 3.5vw, 42px);
  display: grid;
  grid-template-columns: 1.45fr minmax(220px, 0.42fr);
  gap: 22px;
  position: relative;
}
.cit-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 12%, rgba(13, 202, 240, 0.18), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(120, 99, 255, 0.18), transparent 32%);
}
.cit-hero > * { position: relative; z-index: 1; }

.cit-hero__identity {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cit-logo-wrap {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  flex: 0 0 auto;
}
.cit-logo-wrap img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}
.cit-logo-wrap span {
  font-weight: 800;
  font-size: 2rem;
  opacity: .8;
}
.cit-logo-wrap.is-empty { background: rgba(255,255,255,.05); }
.cit-kicker,
.cit-section-head span {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  color: rgba(125, 225, 255, 0.86);
  font-weight: 700;
}
.cit-hero h1 {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1;
}
.cit-hero h1 span {
  color: rgba(255, 255, 255, 0.46);
  font-weight: 600;
}
.cit-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cit-meta-row span,
.cit-chip {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: .83rem;
}
.cit-quote-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.075);
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.cit-quote-card span,
.cit-mini-metric span,
.cit-insight span,
.cit-signal-card span,
.cit-cap-card span {
  color: rgba(255, 255, 255, 0.58);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}
.cit-quote-card strong {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  margin: 6px 0;
}
.cit-quote-card small,
.cit-mini-metric small,
.cit-card-top small {
  color: rgba(255, 255, 255, 0.55);
}
.cit-read-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(230px, .32fr) 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(125, 225, 255, 0.18);
  border-radius: 24px;
  background: rgba(0, 205, 255, 0.06);
}
.cit-read-panel strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  margin-top: 4px;
}
.cit-read-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
}
.cit-hero-metrics,
.cit-freshness-grid,
.cit-mini-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.cit-mini-metric {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.10);
  min-width: 0;
}
.cit-mini-metric strong {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  margin: 5px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cit-mini-metric small {
  display: block;
  line-height: 1.35;
}

.cit-panel {
  padding: clamp(22px, 3vw, 34px);
}
.cit-section-head {
  max-width: 930px;
  margin-bottom: 22px;
}
.cit-section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  margin: 5px 0 8px;
}
.cit-section-head p,
.cit-description {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.72;
  margin: 0;
}
.cit-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .42fr);
  gap: 18px;
  align-items: stretch;
}
.cit-two-col--wide-left { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); }
.cit-visual-card,
.cit-wacc-box,
.cit-valuation-meter {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 24px;
  padding: 20px;
}
.cit-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.cit-card-top strong { font-size: 1.05rem; }
.cit-money-svg {
  width: 100%;
  min-height: 320px;
  display: block;
}
.cit-flow-node rect {
  fill: rgba(255, 255, 255, 0.12);
  stroke: rgba(255, 255, 255, 0.16);
}
.cit-flow-node.pos rect { fill: rgba(13, 202, 240, 0.18); }
.cit-flow-node.neg rect { fill: rgba(255, 110, 110, 0.16); }
.cit-flow-node text {
  fill: rgba(255, 255, 255, 0.84);
  text-anchor: middle;
  font-family: Poppins, Arial, sans-serif;
}
.cit-flow-node .label { font-size: 16px; }
.cit-flow-node .value { font-size: 18px; font-weight: 800; }
.cit-svg-baseline,
.cit-svg-connector {
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 2;
  stroke-dasharray: 4 8;
}
.cit-toggle-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
button.cit-chip {
  color: inherit;
  cursor: pointer;
  font-family: inherit;
}
.cit-chip.is-active {
  background: rgba(13, 202, 240, 0.18);
  border-color: rgba(13, 202, 240, 0.34);
}
.cit-insight-stack {
  display: grid;
  gap: 12px;
}
.cit-insight,
.cit-signal-card,
.cit-cap-card {
  padding: 17px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.cit-insight strong {
  display: block;
  font-size: 1.4rem;
  margin: 4px 0;
}
.cit-insight p,
.cit-signal-card p,
.cit-cap-card p,
.cit-meter p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}
.cit-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.cit-signal-card > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.cit-signal-card strong {
  font-size: 1.15rem;
  text-align: right;
}
.cit-signal-card small {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.72);
}
.cit-metric-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.cit-metric-group {
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.cit-metric-group h3 {
  margin: 0 0 12px;
}
.cit-metric-group > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.cit-bars {
  display: grid;
  gap: 14px;
}
.cit-bar-row > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 7px;
}
.cit-bar-row span {
  color: rgba(255, 255, 255, 0.62);
  font-size: .9rem;
}
.cit-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.cit-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(13, 202, 240, .88), rgba(120, 99, 255, .88));
}
.cit-capital-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.cit-cap-card strong {
  display: block;
  font-size: 1.55rem;
  margin-top: 6px;
}
.cit-meter {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}
.cit-meter-ring {
  --score: 50;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(rgba(13, 202, 240, .95) calc(var(--score) * 1%), rgba(255,255,255,.08) 0);
  position: relative;
}
.cit-meter-ring::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: rgba(3, 7, 18, .92);
}
.cit-meter-ring strong,
.cit-meter-ring span {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cit-meter-ring strong {
  font-size: 2.6rem;
  line-height: 1;
}
.cit-meter-ring span {
  font-size: .75rem;
  color: rgba(255,255,255,.65);
  margin-top: 48px;
  position: absolute;
}
.cit-wacc-box h3 { margin: 0 0 12px; }
.cit-wacc-lines {
  display: grid;
  gap: 8px;
}
.cit-wacc-lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cit-wacc-lines .is-total {
  margin-top: 6px;
  padding: 13px;
  border: 1px solid rgba(13, 202, 240, .24);
  border-radius: 14px;
  background: rgba(13, 202, 240, .08);
}
.cit-table-wrap {
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}
.cit-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}
.cit-table th,
.cit-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: right;
  white-space: nowrap;
}
.cit-table th:first-child,
.cit-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: rgba(8, 13, 24, 0.96);
  z-index: 1;
}
.cit-table th {
  color: rgba(255, 255, 255, 0.72);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cit-table th small {
  display: block;
  color: rgba(255,255,255,.42);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 3px;
}
.cit-statement-buttons {
  margin-bottom: 14px;
}
.cit-empty {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255,255,255,.7);
}

@media (max-width: 1120px) {
  .cit-hero,
  .cit-read-panel,
  .cit-two-col,
  .cit-two-col--wide-left,
  .cit-meter {
    grid-template-columns: 1fr;
  }
  .cit-hero-metrics,
  .cit-freshness-grid,
  .cit-mini-grid,
  .cit-signal-grid,
  .cit-capital-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .company-intelligence-terminal-page { padding-left: 16px; padding-right: 16px; }
  .cit-hero__identity { align-items: flex-start; }
  .cit-logo-wrap { width: 64px; height: 64px; border-radius: 18px; }
  .cit-hero-metrics,
  .cit-freshness-grid,
  .cit-mini-grid,
  .cit-signal-grid,
  .cit-metric-groups,
  .cit-metric-group > div,
  .cit-capital-map {
    grid-template-columns: 1fr;
  }
  .cit-card-top,
  .cit-bar-row > div:first-child { align-items: flex-start; flex-direction: column; }
  .cit-money-svg { min-height: 260px; }
}

/* ==========================================================================
   Company Intelligence Terminal correction pass
   ========================================================================== */
.company-intelligence-terminal-page {
  max-width: none !important;
  width: auto !important;
  box-sizing: border-box;
  padding-right: clamp(16px, 2vw, 28px);
}

main.SidebarStylePage.company-intelligence-terminal-page {
  margin-right: 0;
}

.company-intelligence-terminal {
  width: 100%;
}

.cit-hero,
.cit-panel {
  width: 100%;
  box-sizing: border-box;
}

.cit-visual-card:has(#moneyFlowSVG) {
  min-height: 520px;
}

.cit-money-svg {
  min-height: 430px;
  overflow: visible;
}

.cit-segment-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 18px;
}

.cit-segment-box {
  min-width: 0;
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.cit-geo-map {
  display: grid;
  gap: 14px;
}

.cit-world-grid {
  position: relative;
  min-height: 270px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 25% 48%, rgba(13,202,240,.18) 0 12%, transparent 13%),
    radial-gradient(ellipse at 52% 44%, rgba(13,202,240,.15) 0 10%, transparent 11%),
    radial-gradient(ellipse at 73% 52%, rgba(13,202,240,.17) 0 16%, transparent 17%),
    radial-gradient(ellipse at 55% 68%, rgba(13,202,240,.10) 0 12%, transparent 13%),
    linear-gradient(180deg, rgba(7, 13, 25, .92), rgba(3, 7, 18, .96));
  border: 1px solid rgba(255,255,255,.09);
}

.cit-world-grid > i {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .45;
}

.cit-map-bubble {
  --size: 22px;
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: var(--size);
  height: var(--size);
  border-radius: 999px;
  border: 1px solid rgba(125,225,255,.52);
  background: rgba(13, 202, 240, .20);
  color: var(--page-fg);
  box-shadow: 0 0 0 7px rgba(13, 202, 240, .075), 0 18px 34px rgba(0,0,0,.35);
  cursor: help;
  font-family: Poppins, Arial, sans-serif;
  padding: 0 10px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.cit-map-bubble span {
  font-size: .72rem;
  font-weight: 700;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cit-map-bubble strong {
  font-size: .72rem;
  color: rgba(255,255,255,.78);
}

.cit-map-legend {
  display: grid;
  gap: 8px;
}

.cit-map-legend-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  color: rgba(255,255,255,.78);
  font-size: .86rem;
}

.cit-map-legend-row strong {
  color: var(--page-fg);
}

.cit-mini-metric.tooltip::after {
  max-width: 340px;
  width: max-content;
}

.cit-mini-metric small {
  min-height: 2.7em;
}

@media (min-width: 1600px) {
  .cit-hero-metrics,
  .cit-freshness-grid,
  .cit-mini-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .cit-signal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .cit-segment-split {
    grid-template-columns: 1fr;
  }
}

/* Company Intelligence Terminal v3 refinements */
.cit-mini-metric {
  position: relative;
}
.cit-mini-metric em {
  display: inline-block;
  margin-top: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(125, 225, 255, 0.08);
  color: rgba(180, 235, 255, 0.86);
  font-size: .72rem;
  font-style: normal;
  line-height: 1.25;
}
.cit-mini-metric.tooltip { cursor: help; }
.cit-mini-metric.tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: 14px;
  bottom: calc(100% + 10px);
  z-index: 80;
  width: min(380px, 76vw);
  max-width: 380px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(5, 11, 22, .98);
  color: var(--page-fg);
  border: 1px solid rgba(125, 225, 255, .26);
  box-shadow: 0 18px 40px rgba(0,0,0,.48);
  font-size: .78rem;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
}
.cit-mini-metric.tooltip:hover::before {
  content: "";
  position: absolute;
  left: 28px;
  bottom: calc(100% + 4px);
  z-index: 81;
  border: 6px solid transparent;
  border-top-color: rgba(5, 11, 22, .98);
}

.cit-geo-exposure {
  display: grid;
  gap: 14px;
}
.cit-geo-map-card {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  padding: 14px;
  background:
    radial-gradient(circle at 16% 30%, rgba(13,202,240,.14), transparent 26%),
    radial-gradient(circle at 72% 38%, rgba(120,99,255,.12), transparent 28%),
    linear-gradient(180deg, rgba(7,13,25,.92), rgba(3,7,18,.96));
}
.cit-geo-map-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.cit-geo-map-title small {
  color: rgba(255,255,255,.58);
}
.cit-geo-zone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.cit-geo-zone {
  min-height: 104px;
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(125,225,255,.14);
}
.cit-geo-zone.is-muted {
  opacity: .48;
}
.cit-geo-zone span {
  display: block;
  color: rgba(255,255,255,.58);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .68rem;
  font-weight: 800;
}
.cit-geo-zone strong {
  display: block;
  font-size: 1.25rem;
  margin: 6px 0 2px;
}
.cit-geo-zone small {
  color: rgba(255,255,255,.62);
}
.cit-zone-bar {
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.cit-zone-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(13,202,240,.88), rgba(120,99,255,.88));
}
.cit-geo-details {
  display: grid;
  gap: 8px;
}
.cit-geo-detail {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}
.cit-geo-detail div:first-child {
  min-width: 0;
}
.cit-geo-detail strong,
.cit-geo-detail b {
  color: var(--page-fg);
}
.cit-geo-detail span,
.cit-geo-detail em {
  display: block;
  color: rgba(255,255,255,.58);
  font-size: .78rem;
  font-style: normal;
}
.cit-geo-detail div:last-child {
  text-align: right;
  white-space: nowrap;
}

.cit-valuation-workbench {
  display: grid;
  gap: 18px;
}
.cit-valuation-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cit-survival-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.cit-survival-card {
  padding: 15px;
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.09);
}
.cit-survival-card span {
  color: rgba(255,255,255,.58);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}
.cit-survival-card strong {
  display: block;
  font-size: 1.25rem;
  margin: 6px 0;
}
.cit-survival-card p,
.cit-survival-note {
  color: rgba(255,255,255,.72);
  line-height: 1.48;
}
.cit-survival-card p {
  margin: 0;
  font-size: .88rem;
}
.cit-survival-note {
  border-radius: 18px;
  padding: 15px 17px;
  background: rgba(13,202,240,.07);
  border: 1px solid rgba(125,225,255,.15);
}
.cit-survival-note strong {
  color: var(--page-fg);
}

@media (max-width: 1320px) {
  .cit-survival-grid,
  .cit-valuation-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .cit-geo-zone-grid,
  .cit-survival-grid,
  .cit-valuation-metrics {
    grid-template-columns: 1fr;
  }
}


/* Company Intelligence Terminal v4 refinements */
.cit-price-change {
  margin: 2px 0 8px;
  font-weight: 900;
  letter-spacing: .01em;
}
.cit-price-change.is-up { color: #7dff9a; }
.cit-price-change.is-down { color: #ff8b7b; }
.cit-read-panel--intel {
  grid-template-columns: minmax(270px, .35fr) 1fr;
  background: linear-gradient(135deg, rgba(13,202,240,.055), rgba(120,99,255,.045));
}
.cit-sec-button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-top: 8px;
  width: fit-content;
  min-width: 190px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(125,225,255,.28);
  background: rgba(125,225,255,.09);
  color: var(--page-fg);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.cit-sec-button span {
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--page-fg);
}
.cit-sec-button small {
  font-size: .74rem;
  color: rgba(255,255,255,.58);
}
.cit-sec-button:hover {
  border-color: rgba(125,225,255,.55);
  background: rgba(125,225,255,.14);
  transform: translateY(-1px);
}
.cit-sec-button.is-disabled,
button.cit-sec-button.is-disabled {
  opacity: .54;
  cursor: not-allowed;
}
.cit-mini-metric em {
  display: none !important;
}
.cit-mini-metric.tooltip:hover::after {
  width: min(340px, 76vw);
  max-width: 340px;
  border-color: rgba(255,255,255,.20);
  background: rgba(6, 12, 24, .985);
  color: rgba(255,255,255,.91);
  font-size: .80rem;
  line-height: 1.42;
}
.cit-world-map-card {
  padding: 14px;
}
.cit-world-heatmap {
  width: 100%;
  min-height: 260px;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 45% 55%, rgba(13,202,240,.08), transparent 34%), rgba(2,7,18,.95);
}
.cit-map-ocean {
  fill: rgba(2, 7, 18, .96);
  stroke: rgba(255,255,255,.08);
  stroke-width: 1.2;
}
.cit-map-grid {
  fill: none;
  stroke: rgba(255,255,255,.045);
  stroke-width: 1;
}
.cit-map-region path {
  fill: rgba(13, 202, 240, calc(.16 + var(--heat) * .62));
  stroke: rgba(195, 244, 255, calc(.18 + var(--heat) * .42));
  stroke-width: 2;
  filter: drop-shadow(0 0 calc(3px + var(--heat) * 12px) rgba(13,202,240,.26));
}
.cit-map-region.is-muted path {
  fill: rgba(255,255,255,.06);
  stroke: rgba(255,255,255,.09);
  filter: none;
}
.cit-map-region text {
  fill: rgba(255,255,255,.84);
  font-size: 20px;
  font-weight: 900;
  paint-order: stroke;
  stroke: rgba(2,7,18,.74);
  stroke-width: 5px;
  stroke-linejoin: round;
}
.cit-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.cit-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.72);
  font-size: .75rem;
  font-weight: 800;
}
.cit-map-legend i {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: rgba(13, 202, 240, calc(.22 + var(--heat) * .68));
  box-shadow: 0 0 calc(4px + var(--heat) * 10px) rgba(13,202,240,.34);
}
@media (max-width: 900px) {
  .cit-read-panel--intel { grid-template-columns: 1fr; }
  .cit-world-heatmap { min-height: 210px; }
  .cit-map-region text { font-size: 16px; }
}

/* Company Intelligence Terminal v5 refinements */
.cit-read-panel--intel {
  grid-template-columns: minmax(240px, max-content) minmax(0, 1fr) !important;
  align-items: stretch;
  gap: 16px !important;
}
.cit-read-panel--intel > div:first-child {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 10px;
  min-width: 250px;
}
.cit-read-panel--intel > div:first-child > span {
  color: rgba(255,255,255,.86);
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.cit-read-panel--intel p {
  align-self: center;
  max-width: none;
  font-size: clamp(.98rem, 1.05vw, 1.08rem);
  line-height: 1.62;
}
.cit-mini-metric {
  overflow: visible;
}
.cit-mini-metric strong {
  display: inline-block;
  vertical-align: baseline;
  margin-right: 8px;
}
.cit-metric-change {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 0 7px 0 !important;
  padding: 3px 7px !important;
  border-radius: 999px;
  background: rgba(255,255,255,.055) !important;
  font-size: .72rem !important;
  font-weight: 900;
  font-style: normal;
  line-height: 1.1;
  letter-spacing: .01em;
}
.cit-metric-change.is-good {
  color: #88ffab !important;
  border: 1px solid rgba(136,255,171,.22);
}
.cit-metric-change.is-bad {
  color: #ff9b8e !important;
  border: 1px solid rgba(255,155,142,.22);
}
.cit-mini-metric small {
  clear: both;
}
.cit-mini-metric.tooltip:hover::after {
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 12px);
  width: min(360px, 72vw) !important;
  max-width: 360px !important;
  padding: 13px 15px !important;
  border-radius: 14px;
  background: rgba(4, 10, 20, .99) !important;
  border: 1px solid rgba(125,225,255,.30) !important;
  color: rgba(255,255,255,.94) !important;
  box-shadow: 0 20px 44px rgba(0,0,0,.58), inset 0 0 0 1px rgba(255,255,255,.035);
  font-size: .81rem !important;
  line-height: 1.45 !important;
  font-weight: 600;
  text-align: left;
  white-space: normal;
  pointer-events: none;
}
.cit-mini-metric.tooltip:hover::before {
  left: 50% !important;
  transform: translateX(-50%);
  bottom: calc(100% + 5px) !important;
  border-top-color: rgba(4,10,20,.99) !important;
}
.cit-world-choropleth {
  min-height: 300px;
}
.cit-world-choropleth .cit-map-outline {
  fill: rgba(255,255,255,.025);
  stroke: rgba(255,255,255,.11);
  stroke-width: 1.1;
}
.cit-world-choropleth .cit-map-region path {
  fill: rgba(28, 191, 247, calc(.12 + var(--heat) * .62));
  stroke: rgba(181, 240, 255, calc(.22 + var(--heat) * .50));
  stroke-width: 1.7;
  filter: drop-shadow(0 0 calc(2px + var(--heat) * 10px) rgba(28,191,247,.24));
}
.cit-world-choropleth .cit-map-region.is-muted path {
  fill: rgba(255,255,255,.045);
  stroke: rgba(255,255,255,.10);
  filter: none;
}
.cit-world-choropleth .cit-map-region text {
  font-size: 17px;
  letter-spacing: .01em;
}
.cit-map-legend span {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
}
.cit-map-legend i {
  background: rgba(28,191,247, calc(.18 + var(--heat) * .62));
  box-shadow: 0 0 12px rgba(28,191,247, calc(.08 + var(--heat) * .20));
}
@media (max-width: 900px) {
  .cit-read-panel--intel { grid-template-columns: 1fr !important; }
  .cit-read-panel--intel > div:first-child { min-width: 0; }
  .cit-world-choropleth { min-height: 230px; }
}

/* Company Intelligence Terminal v6 correction pass */
.cit-mini-metric {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: flex-start;
  gap: 7px;
  overflow: visible;
  min-height: 118px;
}
.cit-mini-metric > span {
  display: block !important;
  order: 1;
  width: 100%;
}
.cit-metric-value-row {
  order: 2;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.cit-mini-metric .cit-metric-value-row strong,
.cit-mini-metric strong {
  display: block !important;
  margin: 0 !important;
  text-align: left !important;
  font-size: clamp(1.25rem, 1.65vw, 1.65rem);
  line-height: 1.06;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.cit-metric-change {
  flex: 0 0 auto;
  margin: 0 !important;
  transform: translateY(-1px);
  font-size: .73rem !important;
  letter-spacing: .01em;
}
.cit-mini-metric > small {
  order: 3;
  display: block !important;
  min-height: 0 !important;
  line-height: 1.35;
  text-align: left !important;
  width: 100%;
}
.cit-mini-metric.tooltip:hover::after,
.cit-mini-metric.tooltip:hover::before,
.cit-mini-metric.tooltip::after,
.cit-mini-metric.tooltip::before {
  content: none !important;
  display: none !important;
}
.cit-tooltip-float {
  position: fixed;
  z-index: 99999;
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(4, 10, 20, .985);
  border: 1px solid rgba(125, 225, 255, .32);
  color: rgba(255, 255, 255, .94);
  box-shadow: 0 20px 44px rgba(0,0,0,.58), inset 0 0 0 1px rgba(255,255,255,.04);
  font-size: .82rem;
  line-height: 1.42;
  font-weight: 650;
  pointer-events: none;
  white-space: normal;
}
.cit-tooltip-float.is-visible { display: block; }

.cit-segment-box--map { overflow: hidden; }
.cit-d3-world-map {
  width: 100%;
  min-height: 315px;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, rgba(18, 106, 152, .16), transparent 55%), rgba(2, 7, 17, .92);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 35px rgba(0,0,0,.32);
}
.cit-d3-world-map svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 315px;
}
.cit-map-loading,
.cit-map-fallback {
  min-height: 315px;
  display: grid;
  place-items: center;
  padding: 20px;
  color: rgba(255,255,255,.64);
  text-align: center;
  font-weight: 700;
}
.cit-map-labels text {
  fill: rgba(255,255,255,.92);
  paint-order: stroke;
  stroke: rgba(0,0,0,.75);
  stroke-width: 3px;
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
}
.cit-geo-map-title {
  align-items: start;
}
.cit-geo-map-title small {
  text-align: right;
  line-height: 1.35;
}
.cit-map-legend {
  margin-top: 12px;
}
@media (max-width: 760px) {
  .cit-metric-value-row { flex-wrap: wrap; }
  .cit-d3-world-map, .cit-d3-world-map svg, .cit-map-loading, .cit-map-fallback { min-height: 245px; }
}


/* v6 clean-start correction: metric movement badges + stable card layout */
.cit-mini-metric {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  overflow: visible !important;
  min-height: 108px;
}
.cit-mini-metric > span {
  order: 1 !important;
  text-align: left !important;
  width: 100% !important;
}
.cit-metric-value-row {
  order: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  width: 100% !important;
  min-width: 0 !important;
}
.cit-mini-metric .cit-metric-value-row strong {
  display: block !important;
  margin: 0 !important;
  text-align: left !important;
  font-size: clamp(1.35rem, 1.75vw, 1.85rem) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 72% !important;
}
.cit-metric-change {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  font-size: .70rem !important;
  font-weight: 900 !important;
  font-style: normal !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  background: rgba(255,255,255,.055) !important;
  transform: none !important;
}
.cit-metric-change b {
  font-size: .68rem;
  line-height: 1;
}
.cit-metric-change span {
  opacity: .72;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cit-metric-change.is-good {
  color: #91ffb0 !important;
  border: 1px solid rgba(145,255,176,.28) !important;
  background: rgba(32, 186, 90, .11) !important;
}
.cit-metric-change.is-bad {
  color: #ff9c8f !important;
  border: 1px solid rgba(255,156,143,.30) !important;
  background: rgba(225, 76, 76, .12) !important;
}
.cit-mini-metric > small {
  order: 3 !important;
  clear: none !important;
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  line-height: 1.35 !important;
}
.cit-mini-metric.tooltip::before,
.cit-mini-metric.tooltip::after,
.cit-mini-metric.tooltip:hover::before,
.cit-mini-metric.tooltip:hover::after {
  content: none !important;
  display: none !important;
}
.cit-tooltip-float {
  max-width: min(390px, calc(100vw - 28px));
  z-index: 2147483647 !important;
}

/* Vectivate red/green command-center + sector benchmark badges */
.cit-sector-benchmark {
  order: 3;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
  font-style: normal;
  line-height: 1;
  white-space: nowrap;
  background: rgba(255,255,255,.050);
  border: 1px solid rgba(255,255,255,.11);
  color: rgba(255,255,255,.80);
}
.cit-sector-benchmark b {
  font-size: .60rem;
  text-transform: uppercase;
  letter-spacing: .055em;
  opacity: .74;
}
.cit-sector-benchmark span {
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .045em;
  opacity: .68;
}
.cit-sector-benchmark.is-good {
  color: #91ffb0;
  border-color: rgba(145,255,176,.28);
  background: rgba(32, 186, 90, .105);
}
.cit-sector-benchmark.is-bad {
  color: #ff9c8f;
  border-color: rgba(255,156,143,.30);
  background: rgba(225, 76, 76, .12);
}
.cit-sector-benchmark.is-neutral {
  color: #9ddcff;
  border-color: rgba(99, 205, 255, .25);
  background: rgba(38, 156, 255, .10);
}
.cit-mini-metric:has(.cit-metric-change.is-good),
.cit-mini-metric:has(.cit-sector-benchmark.is-good) {
  box-shadow: inset 0 0 0 1px rgba(92, 255, 154, .035), 0 12px 30px rgba(0,0,0,.12);
}
.cit-mini-metric:has(.cit-metric-change.is-bad),
.cit-mini-metric:has(.cit-sector-benchmark.is-bad) {
  box-shadow: inset 0 0 0 1px rgba(255, 110, 100, .035), 0 12px 30px rgba(0,0,0,.12);
}
.cit-metric-value-row .cit-metric-change {
  align-self: center;
}
.cit-hero-metrics .cit-metric-change {
  font-size: .74rem !important;
  padding: 5px 9px !important;
}
@media (max-width: 680px) {
  .cit-sector-benchmark { max-width: 100%; white-space: normal; line-height: 1.15; }
}


/* Vectivate visible delta/benchmark chips - hard cascade fix */
.cit-mini-metric .cit-metric-badge-row {
  order: 3 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  width: 100% !important;
  margin: -1px 0 1px 0 !important;
  min-height: 24px !important;
}
.cit-mini-metric .cit-metric-change,
.cit-mini-metric .cit-sector-benchmark {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 5px 8px !important;
  border-radius: 999px !important;
  font-size: .69rem !important;
  font-weight: 900 !important;
  font-style: normal !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-transform: none !important;
  background: rgba(255,255,255,.060) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  transform: none !important;
  position: static !important;
}
.cit-mini-metric .cit-metric-change b,
.cit-mini-metric .cit-sector-benchmark b {
  display: inline !important;
  margin: 0 !important;
  font-size: .66rem !important;
  line-height: 1 !important;
}
.cit-mini-metric .cit-metric-change em,
.cit-mini-metric .cit-sector-benchmark em {
  display: inline !important;
  margin: 0 !important;
  font-size: .56rem !important;
  font-style: normal !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  letter-spacing: .045em !important;
  opacity: .72 !important;
}
.cit-mini-metric .cit-metric-change.is-good,
.cit-mini-metric .cit-sector-benchmark.is-good {
  color: #8effae !important;
  border-color: rgba(142,255,174,.36) !important;
  background: rgba(32, 186, 90, .14) !important;
  box-shadow: 0 0 14px rgba(32, 186, 90, .09) !important;
}
.cit-mini-metric .cit-metric-change.is-bad,
.cit-mini-metric .cit-sector-benchmark.is-bad {
  color: #ff9c8f !important;
  border-color: rgba(255,156,143,.38) !important;
  background: rgba(225, 76, 76, .15) !important;
  box-shadow: 0 0 14px rgba(225, 76, 76, .09) !important;
}
.cit-mini-metric .cit-sector-benchmark.is-neutral {
  color: #9ddcff !important;
  border-color: rgba(99, 205, 255, .30) !important;
  background: rgba(38, 156, 255, .12) !important;
}
.cit-mini-metric > small {
  order: 4 !important;
}
.cit-hero-metrics .cit-mini-metric {
  min-height: 132px !important;
}
#metric-groups .cit-mini-metric {
  min-height: 150px !important;
}
