
:root{--bg:#0b1020;--card:#121a2e;--muted:#93a4c3;--text:#f5f7fb;--line:#26324e;--accent:#7aa2ff;--good:#51d88a;--warn:#f4c95d}*{box-sizing:border-box}body{margin:0;font:14px Inter,system-ui,Arial;background:var(--bg);color:var(--text)}header{height:64px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 28px;gap:28px;position:sticky;top:0;background:#0b1020ee;backdrop-filter:blur(10px);z-index:2}.brand{font-weight:800;font-size:20px;display:flex;align-items:center;flex:0 0 auto}.brand-logo{display:block;width:205px;height:42px;object-fit:contain;object-position:left center}.brand span{color:var(--accent)}nav{display:flex;gap:20px;color:var(--muted)}nav b{color:white}.search{margin-left:auto;background:#151f37;border:1px solid var(--line);border-radius:10px;padding:10px 14px;width:260px;color:white}.wrap{max-width:1220px;margin:auto;padding:28px}.hero{display:flex;justify-content:space-between;align-items:end;margin-bottom:22px}.ticker{font-size:13px;color:var(--muted)}h1{margin:4px 0;font-size:34px}.price{font-size:32px;font-weight:750}.up{color:var(--good);font-weight:700}.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:16px}.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:18px}.kpis{grid-column:span 12;display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.kpi{padding:12px;border-right:1px solid var(--line)}.kpi:last-child{border:0}.label{color:var(--muted);font-size:12px;margin-bottom:6px}.value{font-size:18px;font-weight:700}.power{grid-column:span 5}.fair{grid-column:span 7}.section-title{font-size:17px;font-weight:750;margin-bottom:14px}.score{display:flex;gap:20px;align-items:center}.ring{width:110px;height:110px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--accent) 0 76.1%,#26324e 76.1%);position:relative}.ring:after{content:'';position:absolute;inset:10px;background:var(--card);border-radius:50%}.ring strong{z-index:1;font-size:29px}.bars{flex:1}.barrow{display:grid;grid-template-columns:125px 1fr 34px;gap:8px;align-items:center;margin:8px 0}.track{height:7px;background:#26324e;border-radius:10px;overflow:hidden}.fill{height:100%;background:var(--accent)}.fvgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.fv{padding:14px;border:1px solid var(--line);border-radius:12px}.base{border-color:var(--accent)}.models{margin-top:14px;display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.model{background:#0e1628;border-radius:9px;padding:10px;min-width:0}.fv-margin{font-weight:800}.fv-margin.positive{color:var(--green,var(--good))}.fv-margin.negative{color:var(--red,#ed7777)}.model-formula,.model-inputs{margin:8px 0 0;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.model-inputs{color:var(--muted)}.model-description{margin:8px 0 0;color:var(--muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere}.fund{grid-column:span 12}.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:right;padding:11px;border-bottom:1px solid var(--line)}.table th:first-child,.table td:first-child{text-align:left}.table th{color:var(--muted);font-size:12px}.chart{grid-column:span 8}.notes{grid-column:span 4}.chartbox{height:220px;display:flex;align-items:end;gap:12px;padding:20px 10px 5px}.col{flex:1;background:linear-gradient(#7aa2ff,#3b5eae);border-radius:7px 7px 0 0;min-height:20px;position:relative}.col span{position:absolute;bottom:-23px;width:100%;text-align:center;color:var(--muted);font-size:11px}.pill{display:inline-block;border:1px solid var(--line);padding:6px 9px;border-radius:999px;margin:3px;color:var(--muted)}.disc{margin-top:18px;color:var(--muted);font-size:12px;border-top:1px solid var(--line);padding-top:14px}.screener{margin-top:28px}.wide{overflow:auto}.screener table{min-width:1900px}.screener th{position:sticky;top:64px;background:var(--card)}@media(max-width:800px){.power,.fair,.chart,.notes{grid-column:span 12}.kpis{grid-template-columns:repeat(2,1fr)}nav{display:none}}

.revenue-chart .col b{position:absolute;top:-22px;width:100%;text-align:center;font-size:11px;color:var(--text);font-weight:700}
.pe-line-wrap{height:250px;padding:4px 8px}.pe-line-wrap svg{width:100%;height:100%}.axis{stroke:#344260;stroke-width:1}.pepath{fill:none;stroke:#7aa2ff;stroke-width:4;stroke-linejoin:round;stroke-linecap:round}.dot{fill:#7aa2ff}.svgv{fill:#f5f7fb;font-size:12px;font-weight:700}.svgx{fill:#93a4c3;font-size:11px}
.tool-note{margin-left:auto;color:var(--muted);font-size:12px}

.score-concept{margin-top:14px;padding:13px 15px;border:1px solid #2d3b59;border-radius:12px;background:#111a2b}
.score-concept .concept-title{font-size:15px;font-weight:800;margin-bottom:5px}
.score-concept .concept-copy{font-size:12px;color:var(--muted);line-height:1.55}
.combo-wrap{height:285px;padding:8px 4px 0}
.combo-wrap svg,.eps-wrap svg{width:100%;height:100%}
.gridline{stroke:#26334c;stroke-width:1}
.revbar{fill:#7aa2ff}.nibar{fill:#5ed0a2}.marginline{fill:none;stroke:#f1c75b;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.margindot{fill:#f1c75b}.chartlabel{fill:#93a4c3;font-size:10px}.chartvalue{fill:#f5f7fb;font-size:10px;font-weight:700}
.legend{display:flex;gap:16px;flex-wrap:wrap;margin:4px 0 2px;font-size:11px;color:var(--muted)}
.legend span::before{content:"";display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:6px}
.legend .lrev::before{background:#7aa2ff}.legend .lni::before{background:#5ed0a2}.legend .lmargin::before{background:#f1c75b}
.eps-wrap{height:255px;padding:6px 8px}.epspath{fill:none;stroke:#a78bfa;stroke-width:4;stroke-linejoin:round;stroke-linecap:round}.epsdot{fill:#a78bfa}

.price-card{grid-column:span 12}
.price-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:8px}
.periods{display:flex;gap:6px;flex-wrap:wrap}
/* Respect native-chart fallback visibility even when .periods sets display:flex. */
#periodSelector[hidden],#priceChartWrap[hidden],#priceHistoryStatus[hidden],#priceDataFreshness[hidden]{display:none!important}
.periods button{background:#111a2b;color:#93a4c3;border:1px solid #2a3957;border-radius:8px;padding:7px 10px;font-size:11px;font-weight:700;cursor:pointer}
.periods button.active,.periods button:hover{color:#fff;border-color:#6f8fd8;background:#18243a}
.price-chart-wrap{height:300px}
.price-chart-wrap svg{width:100%;height:100%}
.pricepath{fill:none;stroke:#72a0ff;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}

.pricepoint{fill:#72a0ff}
.pricegrid{stroke:#26334c;stroke-width:1}
.priceaxis{fill:#93a4c3;font-size:10px}
.pricevalue{fill:#f5f7fb;font-size:12px;font-weight:700}
.range-note{font-size:11px;color:var(--muted)}

.fv-conclusion{margin-top:14px;padding:14px 16px;border:1px solid #4a3d2a;border-radius:12px;background:#1c1811}
.fv-conclusion .fv-status{font-size:15px;font-weight:800;margin-bottom:6px}
.fv-conclusion .fv-copy{font-size:12px;color:var(--muted);line-height:1.55}
.fv-reasons{margin:9px 0 0;padding-left:18px;color:var(--muted);font-size:12px;line-height:1.55}



/* v0.8 full-width desktop composition */
.analysis-top{display:block;width:100%;grid-column:1 / -1}
.left-stack{display:block;width:100%}
.analysis-top .power,
.analysis-top .fair,
.analysis-top .fund{
  width:100%;
  margin-bottom:16px;
  grid-column:1 / -1;
}
.desktop-charts{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  align-items:start;
  width:100%;
  grid-column:1 / -1;
}
.desktop-charts .revenue-combo{grid-column:1;grid-row:1}
.desktop-charts .pe-chart{grid-column:2;grid-row:1}
.desktop-charts .eps-chart{grid-column:1;grid-row:2}
.notes{grid-column:1 / -1;width:100%}

@media (max-width:1099px){
  .analysis-top,
  .left-stack,
  .desktop-charts{display:block}
  .analysis-top .power,
  .analysis-top .fair,
  .analysis-top .fund,
  .desktop-charts .chart,
  .notes{width:100%;margin-bottom:16px}
}

.debt-chart{grid-column:1;grid-row:2}
.debt-wrap{height:285px;padding:8px 4px 0}
.debt-wrap svg{width:100%;height:100%}
.debtbar{fill:#ef7f7f}.fcfbar{fill:#5ed0a2}.cashbar{fill:#7aa2ff}
.debt-legend{display:flex;gap:16px;flex-wrap:wrap;margin:4px 0 2px;font-size:11px;color:var(--muted)}
.debt-legend span::before{content:"";display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:6px}
.debt-legend .ldebt::before{background:#ef7f7f}.debt-legend .lfcf::before{background:#5ed0a2}.debt-legend .lcash::before{background:#7aa2ff}
@media (min-width:1100px){
  .desktop-charts .revenue-combo{grid-column:1;grid-row:1}
  .desktop-charts .pe-chart{grid-column:2;grid-row:1}
  .desktop-charts .debt-chart{grid-column:1;grid-row:2}
  .desktop-charts .eps-chart{grid-column:2;grid-row:2}
}

/* v0.10 equal-height historical charts on desktop */
@media (min-width:1100px){
  .desktop-charts{align-items:stretch}
  .desktop-charts .chart{
    height:390px;
    box-sizing:border-box;
    display:flex;
    flex-direction:column;
  }
  .desktop-charts .combo-wrap,
  .desktop-charts .debt-wrap,
  .desktop-charts .pe-line-wrap,
  .desktop-charts .eps-wrap{
    flex:1;
    height:auto;
    min-height:0;
  }
  .desktop-charts svg{height:100%;width:100%}
}

/* v0.11 debt-chart label readability */
.debt-chart .chartvalue{font-size:9px}
@media (min-width:1100px){
  .debt-chart .chartvalue{font-size:9px}
}

/* v0.12 consistent chart value labels on desktop */
@media (min-width:1100px){
  .desktop-charts .revenue-combo .chartvalue,
  .desktop-charts .debt-chart .chartvalue{
    font-size:11px;
  }
}

/* v0.13 full-width compact historical charts on desktop */
@media (min-width:1100px){
  .desktop-charts{
    display:block;
    width:100%;
  }
  .desktop-charts .chart{
    width:100%;
    height:300px;
    margin-bottom:14px;
    box-sizing:border-box;
  }
  .desktop-charts .revenue-combo,
  .desktop-charts .pe-chart,
  .desktop-charts .debt-chart,
  .desktop-charts .eps-chart{
    width:100%;
  }
  .desktop-charts .combo-wrap,
  .desktop-charts .debt-wrap,
  .desktop-charts .pe-line-wrap,
  .desktop-charts .eps-wrap{
    flex:1;
    height:auto;
    min-height:0;
  }
  .desktop-charts svg{
    width:100%;
    height:100%;
  }
  .desktop-charts .chartvalue,
  .desktop-charts .revenue-combo .chartvalue,
  .desktop-charts .debt-chart .chartvalue{
    font-size:13px;
  }
  .desktop-charts .chartlabel{
    font-size:12px;
  }
}

/* v0.14 maximize plot width inside chart cards on desktop */
@media (min-width:1100px){
  .desktop-charts .chart{
    padding-left:14px;
    padding-right:14px;
  }
  .desktop-charts .combo-wrap,
  .desktop-charts .debt-wrap,
  .desktop-charts .pe-line-wrap,
  .desktop-charts .eps-wrap{
    width:calc(100% + 8px);
    margin-left:-4px;
    margin-right:-4px;
    padding-left:0;
    padding-right:0;
  }
  .desktop-charts svg{
    display:block;
    width:100%;
    max-width:none;
  }
}

/* v0.16 theme switcher */
:root{
  --theme-toggle-bg:rgba(255,255,255,.06);
  --theme-toggle-border:rgba(255,255,255,.12);
}
body.light-mode{
  --bg:#f4f7fb;
  --panel:#ffffff;
  --panel2:#f8fafc;
  --text:#172033;
  --muted:#667085;
  --line:#dfe5ee;
  --accent:#3366ff;
  --accent2:#1d4ed8;
  --green:#11875d;
  --red:#c33b47;
  --yellow:#b7791f;
  --theme-toggle-bg:#eef2f7;
  --theme-toggle-border:#d7dee8;
}
body.light-mode{
  background:var(--bg);
  color:var(--text);
}
body.light-mode .card,
body.light-mode .topbar,
body.light-mode .price-card{
  box-shadow:0 8px 24px rgba(20,35,60,.06);
}
.theme-toggle{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px;
  border:1px solid var(--theme-toggle-border);
  background:var(--theme-toggle-bg);
  border-radius:999px;
}
.theme-toggle button{
  border:0;
  background:transparent;
  color:var(--muted);
  padding:7px 11px;
  border-radius:999px;
  cursor:pointer;
  font:inherit;
  font-size:12px;
  font-weight:700;
}
.theme-toggle button.active{
  background:var(--panel);
  color:var(--text);
  box-shadow:0 2px 8px rgba(0,0,0,.14);
}
body.light-mode .theme-toggle button.active{
  box-shadow:0 2px 8px rgba(20,35,60,.10);
}
.theme-icon{font-size:13px}

/* v0.17 complete light-theme contrast pass */
body.light-mode{
  background:#f3f6fa !important;
  color:#172033 !important;
}

/* Main surfaces */
body.light-mode .card,
body.light-mode .topbar,
body.light-mode .price-card,
body.light-mode .tool-note,
body.light-mode .kpi,
body.light-mode .score-box,
body.light-mode .fair-box,
body.light-mode .metric,
body.light-mode .pill,
body.light-mode .chip,
body.light-mode .badge,
body.light-mode .table-wrap,
body.light-mode .chart,
body.light-mode .notes,
body.light-mode .fund,
body.light-mode .power,
body.light-mode .fair{
  background:#ffffff !important;
  color:#172033 !important;
  border-color:#d9e1eb !important;
}

/* Secondary/light surfaces */
body.light-mode .subtle,
body.light-mode .muted-box,
body.light-mode .valuation-conclusion,
body.light-mode .reason,
body.light-mode .quarter-box,
body.light-mode .risk-box,
body.light-mode .strength-box,
body.light-mode .fund-table thead th,
body.light-mode table thead th{
  background:#f7f9fc !important;
  color:#273247 !important;
  border-color:#d9e1eb !important;
}

/* Primary text */
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode .section-title,
body.light-mode .ticker,
body.light-mode .company,
body.light-mode .price,
body.light-mode .score,
body.light-mode .big,
body.light-mode .metric-value,
body.light-mode .kpi-value,
body.light-mode .fair-value,
body.light-mode strong,
body.light-mode b,
body.light-mode td,
body.light-mode th{
  color:#172033 !important;
}

/* Secondary text */
body.light-mode .muted,
body.light-mode .label,
body.light-mode .small,
body.light-mode .caption,
body.light-mode .subtext,
body.light-mode .legend,
body.light-mode .debt-legend,
body.light-mode .footnote,
body.light-mode .note,
body.light-mode .meta{
  color:#5f6b7a !important;
}

/* Tables */
body.light-mode table,
body.light-mode .fund-table{
  background:#ffffff !important;
  color:#172033 !important;
}
body.light-mode table td,
body.light-mode table th,
body.light-mode .fund-table td,
body.light-mode .fund-table th{
  border-color:#dfe5ed !important;
}
body.light-mode table tbody tr:nth-child(even),
body.light-mode .fund-table tbody tr:nth-child(even){
  background:#fafbfd !important;
}

/* Inputs / controls */
body.light-mode button,
body.light-mode select,
body.light-mode input{
  color:#172033;
  border-color:#cfd8e3;
}
body.light-mode select,
body.light-mode input{
  background:#ffffff !important;
}
body.light-mode .period-btn,
body.light-mode .tab-btn{
  background:#eef2f7 !important;
  color:#465266 !important;
  border-color:#d6dee8 !important;
}
body.light-mode .period-btn.active,
body.light-mode .tab-btn.active{
  background:#dfe8ff !important;
  color:#214fc6 !important;
  border-color:#b9caf7 !important;
}

/* Positive / negative / caution states */
body.light-mode .positive,
body.light-mode .up,
body.light-mode .good{
  color:#087a55 !important;
}
body.light-mode .negative,
body.light-mode .down,
body.light-mode .bad{
  color:#b42332 !important;
}
body.light-mode .warning,
body.light-mode .caution{
  color:#9a6700 !important;
}

/* SVG chart text and lines */
body.light-mode svg text,
body.light-mode svg .chartvalue,
body.light-mode svg .chartlabel,
body.light-mode svg .svgv,
body.light-mode svg .svgx{
  fill:#253044 !important;
  color:#253044 !important;
}
body.light-mode svg .gridline{
  stroke:#d8dee8 !important;
}
body.light-mode svg .axis,
body.light-mode svg line.axis{
  stroke:#aeb8c7 !important;
}

/* Preserve series differentiation while improving light-background contrast */
body.light-mode .debtbar{fill:#d85b67 !important}
body.light-mode .fcfbar{fill:#16966a !important}
body.light-mode .cashbar{fill:#4f74d8 !important}

/* Context sections */
body.light-mode .notes,
body.light-mode .notes p,
body.light-mode .notes li,
body.light-mode .context,
body.light-mode .context p,
body.light-mode .context li{
  color:#334155 !important;
}

/* Links and navigation */
body.light-mode a{
  color:#2857c5;
}
body.light-mode nav a{
  color:#39465c !important;
}
body.light-mode nav a:hover{
  color:#1f4db4 !important;
}

/* Theme control itself */
body.light-mode .theme-toggle{
  background:#e9eef5 !important;
  border-color:#cfd8e3 !important;
}
body.light-mode .theme-toggle button{
  color:#586477 !important;
}
body.light-mode .theme-toggle button.active{
  background:#ffffff !important;
  color:#172033 !important;
}

/* Ensure no dark hard-coded backgrounds remain inside common blocks */
body.light-mode [style*="background:#0"],
body.light-mode [style*="background: #0"],
body.light-mode [style*="background:#1"],
body.light-mode [style*="background: #1"]{
  background:#ffffff !important;
}

/* v0.18 targeted light-theme fixes */
body.light-mode .topbar,
body.light-mode header,
body.light-mode .header,
body.light-mode .navbar,
body.light-mode .nav{
  background:#ffffff !important;
  color:#172033 !important;
  border-color:#d9e1eb !important;
}

/* POWERBAR logo */
body.light-mode .logo,
body.light-mode .brand,
body.light-mode .wordmark{
  color:#172033 !important;
}
body.light-mode .logo .power,
body.light-mode .brand .power,
body.light-mode .wordmark .power{
  color:#172033 !important;
}
body.light-mode .logo .bar,
body.light-mode .brand .bar,
body.light-mode .wordmark .bar{
  color:#2f5fd0 !important;
}

/* Power Bar panel and score */
body.light-mode .power,
body.light-mode .power *,
body.light-mode .score-card,
body.light-mode .score-box,
body.light-mode .score-grid,
body.light-mode .power-grid{
  background-color:transparent;
  color:#172033;
}
body.light-mode .power{
  background:#ffffff !important;
}
body.light-mode .power .score,
body.light-mode .power .score-value,
body.light-mode .power .final-score,
body.light-mode .power .score-number,
body.light-mode .power .big-score{
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
  opacity:1 !important;
}
body.light-mode .power .metric,
body.light-mode .power .score-box,
body.light-mode .power .score-card,
body.light-mode .power [class*="score"]{
  border-color:#d9e1eb !important;
}
body.light-mode .power [style*="background"],
body.light-mode .power [style*="background-color"]{
  background:#f7f9fc !important;
}

/* Fair Value panel */
body.light-mode .fair,
body.light-mode .fair-value-section,
body.light-mode .fair-value-grid{
  background:#ffffff !important;
  color:#172033 !important;
}
body.light-mode .fair .fair-box,
body.light-mode .fair .metric,
body.light-mode .fair .reason,
body.light-mode .fair .valuation-conclusion,
body.light-mode .fair [class*="fair"],
body.light-mode .fair [class*="valuation"]{
  background:#f7f9fc !important;
  color:#172033 !important;
  border-color:#d9e1eb !important;
}
body.light-mode .fair [style*="background"],
body.light-mode .fair [style*="background-color"]{
  background:#f7f9fc !important;
}
body.light-mode .fair .fair-value,
body.light-mode .fair .big,
body.light-mode .fair strong,
body.light-mode .fair b{
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
}

/* Historical price period selectors */
body.light-mode .periods,
body.light-mode .range-selector,
body.light-mode .time-selector{
  background:#ffffff !important;
}
body.light-mode .period-btn,
body.light-mode .range-btn,
body.light-mode .time-btn,
body.light-mode button[data-range]{
  background:#eef2f7 !important;
  color:#435066 !important;
  border:1px solid #d6dee8 !important;
  opacity:1 !important;
}
body.light-mode .period-btn:hover,
body.light-mode .range-btn:hover,
body.light-mode .time-btn:hover,
body.light-mode button[data-range]:hover{
  background:#e3e9f2 !important;
  color:#172033 !important;
}
body.light-mode .period-btn.active,
body.light-mode .range-btn.active,
body.light-mode .time-btn.active,
body.light-mode button[data-range].active{
  background:#2f5fd0 !important;
  color:#ffffff !important;
  border-color:#2f5fd0 !important;
}

/* Catch common dark hard-coded elements inside these key sections */
body.light-mode .power [style*="#0b"],
body.light-mode .power [style*="#0c"],
body.light-mode .power [style*="#0d"],
body.light-mode .power [style*="#11"],
body.light-mode .power [style*="#12"],
body.light-mode .power [style*="#13"],
body.light-mode .fair [style*="#0b"],
body.light-mode .fair [style*="#0c"],
body.light-mode .fair [style*="#0d"],
body.light-mode .fair [style*="#11"],
body.light-mode .fair [style*="#12"],
body.light-mode .fair [style*="#13"]{
  background:#f7f9fc !important;
  color:#172033 !important;
}

/* Ensure header text is visible */
body.light-mode .topbar *,
body.light-mode header *,
body.light-mode .header *{
  color:#172033;
}
body.light-mode .topbar a,
body.light-mode header a,
body.light-mode .header a{
  color:#39465c !important;
}

/* v0.19 hard light-theme overrides for remaining dark surfaces */

/* Historical price temporal selectors */
body.light-mode .price-card button,
body.light-mode .price-card .period-btn,
body.light-mode .price-card [class*="period"],
body.light-mode .price-card [class*="range"],
body.light-mode .price-card [class*="time"]{
  background:#eef2f7 !important;
  color:#344054 !important;
  border-color:#cfd8e3 !important;
  box-shadow:none !important;
}
body.light-mode .price-card button.active,
body.light-mode .price-card .period-btn.active,
body.light-mode .price-card [class*="period"].active,
body.light-mode .price-card [class*="range"].active,
body.light-mode .price-card [class*="time"].active{
  background:#2f5fd0 !important;
  color:#ffffff !important;
  border-color:#2f5fd0 !important;
}

/* Power Bar: force every inner panel and gauge background light */
body.light-mode .power,
body.light-mode .power > *,
body.light-mode .power [class*="card"],
body.light-mode .power [class*="box"],
body.light-mode .power [class*="score"],
body.light-mode .power [class*="gauge"],
body.light-mode .power [class*="ring"],
body.light-mode .power [class*="circle"]{
  background-color:#ffffff !important;
  color:#172033 !important;
  border-color:#d9e1eb !important;
}
body.light-mode .power svg{
  background:#ffffff !important;
}
body.light-mode .power svg circle:first-of-type,
body.light-mode .power .gauge-bg,
body.light-mode .power .ring-bg{
  fill:#e9eef5 !important;
  stroke:#e9eef5 !important;
}
body.light-mode .power svg text{
  fill:#172033 !important;
}
body.light-mode .power .score,
body.light-mode .power [class*="score-value"],
body.light-mode .power [class*="final-score"],
body.light-mode .power [class*="big-score"]{
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
  opacity:1 !important;
}

/* Fair Value: make all model result cards and explanation boxes light */
body.light-mode .fair,
body.light-mode .fair > *,
body.light-mode .fair [class*="model"],
body.light-mode .fair [class*="result"],
body.light-mode .fair [class*="box"],
body.light-mode .fair [class*="valuation"],
body.light-mode .fair [class*="reason"],
body.light-mode .fair [class*="conclusion"],
body.light-mode .fair [class*="scenario"],
body.light-mode .fair [class*="fair"]{
  background:#ffffff !important;
  color:#172033 !important;
  border-color:#d9e1eb !important;
  box-shadow:none !important;
}
body.light-mode .fair [class*="model"],
body.light-mode .fair [class*="result"],
body.light-mode .fair [class*="box"],
body.light-mode .fair [class*="reason"],
body.light-mode .fair [class*="conclusion"],
body.light-mode .fair [class*="scenario"]{
  background:#f7f9fc !important;
}
body.light-mode .fair p,
body.light-mode .fair span,
body.light-mode .fair div,
body.light-mode .fair li,
body.light-mode .fair small,
body.light-mode .fair strong,
body.light-mode .fair b{
  color:#243044 !important;
}
body.light-mode .fair .muted,
body.light-mode .fair small,
body.light-mode .fair [class*="label"]{
  color:#667085 !important;
}

/* Catch inline hard-coded dark backgrounds specifically in Power/Fair/Price */
body.light-mode .power [style*="background"],
body.light-mode .fair [style*="background"],
body.light-mode .price-card [style*="background"]{
  background:#f7f9fc !important;
}
body.light-mode .power [style*="color"],
body.light-mode .fair [style*="color"],
body.light-mode .price-card [style*="color"]{
  color:#243044 !important;
}

/* Avoid accidentally making the active period button light because of inline styles */
body.light-mode .price-card button.active{
  background:#2f5fd0 !important;
  color:#ffffff !important;
}

/* Ensure explanation / conclusion emphasis remains visible */
body.light-mode .fair .valuation-conclusion,
body.light-mode .fair [class*="conclusion"]{
  background:#eef4ff !important;
  border:1px solid #cbd8f5 !important;
}

/* v0.20 Power Bar light-mode repair */
body.light-mode .power svg circle{
  fill:none;
}
body.light-mode .power svg circle:first-of-type{
  fill:#ffffff !important;
  stroke:#e2e8f0 !important;
}
body.light-mode .power svg circle:nth-of-type(2){
  stroke:#dce3ec !important;
}
body.light-mode .power svg circle:last-of-type{
  fill:#ffffff !important;
}
body.light-mode .power .gauge-center,
body.light-mode .power .score-center,
body.light-mode .power .donut-center,
body.light-mode .power [class*="center"]{
  background:#ffffff !important;
  color:#172033 !important;
}
body.light-mode .power .gauge-center *,
body.light-mode .power .score-center *,
body.light-mode .power .donut-center *,
body.light-mode .power [class*="center"] *{
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
}
body.light-mode .power svg text,
body.light-mode .power svg tspan{
  fill:#172033 !important;
  opacity:1 !important;
}
body.light-mode .power .score,
body.light-mode .power .score-value,
body.light-mode .power .final-score,
body.light-mode .power .score-number,
body.light-mode .power .big-score{
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
  text-shadow:none !important;
  opacity:1 !important;
}

/* Criteria labels and numbers */
body.light-mode .power .criterion,
body.light-mode .power .criterion *,
body.light-mode .power .metric-row,
body.light-mode .power .metric-row *,
body.light-mode .power [class*="criterion"] *,
body.light-mode .power [class*="metric"] *{
  color:#243044 !important;
}
body.light-mode .power .criterion-value,
body.light-mode .power .metric-value,
body.light-mode .power [class*="value"]{
  color:#172033 !important;
  font-weight:700 !important;
}

/* Catch dark hard-coded SVG fills/strokes inside Power Bar only */
body.light-mode .power svg [fill="#000"],
body.light-mode .power svg [fill="#000000"],
body.light-mode .power svg [fill="black"]{
  fill:#ffffff !important;
}
body.light-mode .power svg [stroke="#000"],
body.light-mode .power svg [stroke="#000000"],
body.light-mode .power svg [stroke="black"]{
  stroke:#dce3ec !important;
}

/* v0.21 exact Power Bar light-mode fix based on actual component classes */

/* Restore the Power Bar layout itself */
body.light-mode .power .score,
body.light-mode .power .bars,
body.light-mode .power .barrow{
  background:transparent !important;
}

/* Circular score: outer ring stays a gauge, center becomes white */
body.light-mode .power .ring{
  background:conic-gradient(#4f74d8 0 76.1%, #e3e8f0 76.1% 100%) !important;
  border:none !important;
}
body.light-mode .power .ring::after{
  content:"" !important;
  position:absolute !important;
  inset:10px !important;
  background:#ffffff !important;
  border-radius:50% !important;
  z-index:0 !important;
}
body.light-mode .power .ring strong{
  position:relative !important;
  z-index:2 !important;
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
  background:transparent !important;
  opacity:1 !important;
  text-shadow:none !important;
}

/* Criteria rows */
body.light-mode .power .barrow > span,
body.light-mode .power .barrow > b{
  background:transparent !important;
  color:#243044 !important;
}

/* Track is neutral gray, never blue */
body.light-mode .power .track{
  height:7px !important;
  background:#e3e8f0 !important;
  border:none !important;
  border-radius:10px !important;
  overflow:hidden !important;
  box-shadow:none !important;
}

/* Only the actual partial-result fill is blue */
body.light-mode .power .track > .fill{
  height:100% !important;
  background:#4f74d8 !important;
  border-radius:10px !important;
  opacity:1 !important;
}

/* Neutralize overly broad rules from v0.20 that painted bar children blue */
body.light-mode .power .barrow > div:not(.track),
body.light-mode .power .bars > div:not(.barrow){
  background:transparent !important;
}

/* Score interpretation remains light */
body.light-mode .power .score-concept{
  background:#f7f9fc !important;
  border-color:#d9e1eb !important;
}
body.light-mode .power .score-concept .concept-title{
  color:#172033 !important;
}
body.light-mode .power .score-concept .concept-copy{
  color:#667085 !important;
}

/* v0.22 definitive Power Bar bar fix */

/* No colored/background panels behind criterion rows */
body.light-mode .power .bars > .barrow{
  background:transparent !important;
  background-color:transparent !important;
  border:none !important;
  box-shadow:none !important;
}

/* Neutral light track */
body.light-mode .power .bars > .barrow > .track{
  display:block !important;
  height:7px !important;
  background:#e1e6ed !important;
  background-color:#e1e6ed !important;
  border:none !important;
  border-radius:999px !important;
  overflow:hidden !important;
  box-shadow:none !important;
}

/* Visible partial score only */
body.light-mode .power .bars > .barrow > .track > .fill{
  display:block !important;
  height:100% !important;
  min-height:7px !important;
  background:#4f74d8 !important;
  background-color:#4f74d8 !important;
  border-radius:999px !important;
  opacity:1 !important;
}

/* Labels / values stay on plain background */
body.light-mode .power .bars > .barrow > span,
body.light-mode .power .bars > .barrow > b{
  background:transparent !important;
  background-color:transparent !important;
  color:#243044 !important;
}

/* Circular score */
body.light-mode .power .score{
  background:transparent !important;
}
body.light-mode .power .ring{
  background:conic-gradient(#4f74d8 0 76.1%, #e1e6ed 76.1% 100%) !important;
}
body.light-mode .power .ring::after{
  background:#ffffff !important;
}
body.light-mode .power .ring > strong{
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
  background:transparent !important;
}

/* v0.23 - only logo color adjustment in Day mode */
body.light-mode .logo .power,
body.light-mode .brand .power,
body.light-mode .wordmark .power{
  color:#172033 !important;
}

body.light-mode .logo .bar,
body.light-mode .brand .bar,
body.light-mode .wordmark .bar{
  color:#4F74D8 !important;
}

/* v0.24 - logo BAR color + Power Bar stacking fix */

/* Keep BAR blue in Day mode exactly like Night mode */
body.light-mode .logo .bar,
body.light-mode .brand .bar,
body.light-mode .wordmark .bar,
body.light-mode .logo-bar,
body.light-mode .bar-logo,
body.light-mode [class*="logo"] .bar,
body.light-mode [class*="brand"] .bar{
  color:#4F74D8 !important;
  -webkit-text-fill-color:#4F74D8 !important;
}

/* Ensure POWER remains dark in Day mode */
body.light-mode .logo .power,
body.light-mode .brand .power,
body.light-mode .wordmark .power,
body.light-mode [class*="logo"] .power,
body.light-mode [class*="brand"] .power{
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
}

/* Header must always sit above scrolling content */
.topbar,
header,
.header,
.navbar,
.nav{
  position:sticky;
  top:0;
  z-index:1000 !important;
}

/* Power Bar content must remain below sticky header */
.power,
.power .score,
.power .ring,
.power .ring::after,
.power .ring > strong,
.power .ring > span{
  z-index:auto !important;
}

.power{
  position:relative;
  z-index:1 !important;
}

.power .score,
.power .ring{
  position:relative;
  z-index:1 !important;
}

/* Do not compress the score into an ellipse on narrow screens. */
.power .ring{flex:0 0 110px;aspect-ratio:1 / 1}
.power .score{flex-wrap:wrap}

.power .ring > strong,
.power .ring > span{
  position:relative;
  z-index:2 !important;
}

/* v0.25 exact POWERBAR wordmark colors */
.logo-power{
  color:inherit !important;
  -webkit-text-fill-color:currentColor !important;
}
.logo-bar-accent{
  color:#4F74D8 !important;
  -webkit-text-fill-color:#4F74D8 !important;
}
body.light-mode .logo-power{
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
}
body.light-mode .logo-bar-accent{
  color:#4F74D8 !important;
  -webkit-text-fill-color:#4F74D8 !important;
}

/* v0.26 exact logo fix for actual markup: .brand > span */
.brand > span{
  color:#4F74D8 !important;
  -webkit-text-fill-color:#4F74D8 !important;
}

body.light-mode .brand{
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
}

body.light-mode .brand > span{
  color:#4F74D8 !important;
  -webkit-text-fill-color:#4F74D8 !important;
}

/* v0.27 historical price chart - Night mode axis/grid visibility */
/* Horizontal grid lines */
body:not(.light-mode) .price-card svg .gridline,
body:not(.light-mode) .price-card svg line.gridline,
body:not(.light-mode) .price-card svg .grid line,
body:not(.light-mode) .price-card svg line[stroke]{
  stroke:#FFFFFF !important;
  stroke-opacity:.32 !important;
}

/* Horizontal-axis values / labels */
body:not(.light-mode) .price-card svg text,
body:not(.light-mode) .price-card svg tspan,
body:not(.light-mode) .price-card .axis-label,
body:not(.light-mode) .price-card .tick-label{
  fill:#FFFFFF !important;
  color:#FFFFFF !important;
  opacity:1 !important;
}

/* v0.28 exact historical price horizontal grid fix - Night mode only */

/* Force horizontal guide lines in the price chart to be visible */
body:not(.light-mode) .price-card svg line{
  stroke:#FFFFFF !important;
}

/* Keep guide lines subtle but clearly visible */
body:not(.light-mode) .price-card svg line:not(.price-line):not(.series-line){
  stroke-opacity:.38 !important;
  stroke-width:1 !important;
}

/* Axis/tick labels */
body:not(.light-mode) .price-card svg text,
body:not(.light-mode) .price-card svg tspan{
  fill:#FFFFFF !important;
  opacity:1 !important;
}

/* If grid is drawn as paths instead of lines */
body:not(.light-mode) .price-card svg path.grid,
body:not(.light-mode) .price-card svg path.gridline,
body:not(.light-mode) .price-card svg g.grid path,
body:not(.light-mode) .price-card svg g.grid line{
  stroke:#FFFFFF !important;
  stroke-opacity:.38 !important;
  stroke-width:1 !important;
}

/* v0.29 data-layer provenance badge */
.data-provenance{font-size:11px;opacity:.72;margin-top:6px}
.data-provenance strong{color:var(--accent)}

/* v0.30 dynamic market chart */
.pricegrid{stroke:#344260;stroke-width:1;stroke-opacity:.65}
.priceaxis{fill:#93a4c3;font-size:11px}
.priceyaxis{fill:#93a4c3;font-size:11px}
.pricevalue{fill:#f5f7fb;font-size:12px;font-weight:700}
body:not(.light-mode) .price-card .pricegrid{stroke:#fff!important;stroke-opacity:.30!important}
body:not(.light-mode) .price-card .priceaxis,
body:not(.light-mode) .price-card .priceyaxis{fill:#fff!important}
body.light-mode .price-card .pricegrid{stroke:#cbd4e2!important;stroke-opacity:.85!important}
body.light-mode .price-card .priceaxis,
body.light-mode .price-card .priceyaxis{fill:#526078!important}
body.light-mode #tooltipBox{fill:#fff!important;stroke:#cbd4e2!important}
body.light-mode #tooltipDate{fill:#66758c!important}
body.light-mode #tooltipPrice{fill:#172033!important}

/* v0.31 Fair Value methodology cloud */
.fv-method-wrap{position:relative}
.fv-method-wrap::after{
  content:'ⓘ';
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;height:16px;
  margin-left:6px;
  border-radius:50%;
  font-size:11px;
  font-weight:700;
  color:var(--accent);
  border:1px solid currentColor;
  opacity:.9;
  vertical-align:middle;
}
.fv-method-cloud{
  position:absolute;
  left:50%;
  bottom:calc(100% + 12px);
  transform:translateX(-50%) translateY(6px);
  width:min(390px,82vw);
  background:#121a2d;
  border:1px solid #34415f;
  border-radius:14px;
  padding:14px 15px;
  box-shadow:0 16px 42px rgba(0,0,0,.34);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .16s ease, transform .16s ease, visibility .16s ease;
  z-index:60;
  text-align:left;
}
.fv-method-wrap:hover .fv-method-cloud,
.fv-method-wrap:focus-within .fv-method-cloud{
  opacity:1;
  visibility:visible;
  transform:translateX(-50%) translateY(0);
}
.fv-method-cloud:after{
  content:'';
  position:absolute;
  left:50%;
  top:100%;
  transform:translateX(-50%);
  border:8px solid transparent;
  border-top-color:#34415f;
}
.fv-cloud-title{font-weight:800;font-size:13px;color:#f3f6fb;margin-bottom:3px}
.fv-cloud-sub{font-size:11px;color:#9fb0cb;margin-bottom:10px}
.fv-cloud-grid{display:grid;grid-template-columns:1fr auto;gap:5px 12px;font-size:11px}
.fv-cloud-grid span:nth-child(odd){color:#aab7cb}
.fv-cloud-grid span:nth-child(even){color:#f2f5fa;font-weight:700;text-align:right}
.fv-cloud-formula{margin-top:10px;padding-top:9px;border-top:1px solid #2b3752;font-size:11px;color:#c9d3e4;line-height:1.45}
.fv-cloud-note{margin-top:8px;font-size:10.5px;color:#93a6c5;line-height:1.4}
body.light-mode .fv-method-cloud{
  background:#fff;
  border-color:#d7dee8;
  box-shadow:0 16px 42px rgba(33,45,70,.16);
}
body.light-mode .fv-method-cloud:after{border-top-color:#d7dee8}
body.light-mode .fv-cloud-title{color:#172033}
body.light-mode .fv-cloud-sub,
body.light-mode .fv-cloud-grid span:nth-child(odd),
body.light-mode .fv-cloud-note{color:#647089}
body.light-mode .fv-cloud-grid span:nth-child(even),
body.light-mode .fv-cloud-formula{color:#172033}
body.light-mode .fv-cloud-formula{border-top-color:#e4e8ef}
@media (max-width:700px){
  .fv-method-cloud{left:0;transform:translateX(0) translateY(6px);width:min(330px,78vw)}
  .fv-method-wrap:hover .fv-method-cloud,
  .fv-method-wrap:focus-within .fv-method-cloud{transform:translateX(0) translateY(0)}
  .fv-method-cloud:after{left:24px}
}

/* v0.32 Fair Value inline expandable methodology */
.fv-method-wrap.fv-expandable{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:7px;
  cursor:pointer;
}
.fv-method-wrap.fv-expandable::after{
  content:'⌄';
  width:auto;height:auto;
  margin-left:2px;
  border:0;
  border-radius:0;
  color:var(--accent);
  font-size:18px;
  font-weight:800;
  line-height:1;
  opacity:1;
  transform:translateY(-1px);
  transition:transform .18s ease;
}
.fv-method-wrap.fv-expandable.open::after{
  transform:rotate(180deg) translateY(1px);
}
.fv-method-wrap.fv-expandable .fv-inline-detail{
  display:none;
}

/* Expanded detail is moved by JS below the complete method row/card */
.fv-expanded-panel{
  margin-top:10px;
  width:100%;
  background:#121a2d;
  border:1px solid #34415f;
  border-radius:12px;
  padding:13px 14px;
  box-sizing:border-box;
  text-align:left;
  animation:fvSlide .16s ease;
}
@keyframes fvSlide{
  from{opacity:0;transform:translateY(-5px)}
  to{opacity:1;transform:translateY(0)}
}
.fv-expanded-panel .fv-cloud-title{font-weight:800;font-size:13px;color:#f3f6fb;margin-bottom:3px}
.fv-expanded-panel .fv-cloud-sub{font-size:11px;color:#9fb0cb;margin-bottom:10px}
.fv-expanded-panel .fv-cloud-grid{display:grid;grid-template-columns:1fr auto;gap:5px 12px;font-size:11px}
.fv-expanded-panel .fv-cloud-grid span:nth-child(odd){color:#aab7cb}
.fv-expanded-panel .fv-cloud-grid span:nth-child(even){color:#f2f5fa;font-weight:700;text-align:right}
.fv-expanded-panel .fv-cloud-formula{margin-top:10px;padding-top:9px;border-top:1px solid #2b3752;font-size:11px;color:#c9d3e4;line-height:1.45}
.fv-expanded-panel .fv-cloud-note{margin-top:8px;font-size:10.5px;color:#93a6c5;line-height:1.4}

body.light-mode .fv-expanded-panel{
  background:#f7f9fc;
  border-color:#d7dee8;
}
body.light-mode .fv-expanded-panel .fv-cloud-title,
body.light-mode .fv-expanded-panel .fv-cloud-grid span:nth-child(even),
body.light-mode .fv-expanded-panel .fv-cloud-formula{color:#172033}
body.light-mode .fv-expanded-panel .fv-cloud-sub,
body.light-mode .fv-expanded-panel .fv-cloud-grid span:nth-child(odd),
body.light-mode .fv-expanded-panel .fv-cloud-note{color:#647089}
body.light-mode .fv-expanded-panel .fv-cloud-formula{border-top-color:#e4e8ef}

/* Disable old hover cloud behavior completely */
.fv-method-wrap:hover .fv-method-cloud,
.fv-method-wrap:focus-within .fv-method-cloud{
  opacity:0!important;
  visibility:hidden!important;
  display:none!important;
}

/* v0.33: expanded Fair Value details always below the method */
.fv-expanded-panel{
  display:block !important;
  clear:both !important;
  width:100% !important;
  max-width:none !important;
  flex:0 0 100% !important;
  grid-column:1 / -1 !important;
  box-sizing:border-box !important;
}
.fv-detail-host{
  display:flex !important;
  flex-wrap:wrap !important;
}
.fv-detail-host > .fv-expanded-panel{
  order:999 !important;
}

/* v0.34 Fair Value audit status */
.audit-pending{
  font-size:16px !important;
  letter-spacing:.2px;
  color:#f0b35a !important;
}
body.light-mode .audit-pending{color:#9a650f !important}

/* v0.36 verified Fair Value v1 status */
.fv-status{letter-spacing:.1px}

/* v0.37 Fair Value applicability framework */
.framework-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
.framework-item{border:1px solid #293650;background:#11192b;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:5px}
.framework-item b{font-size:13px;color:#f4f7fb}
.framework-item span{font-size:11.5px;color:#8fb0ff;font-weight:700;line-height:1.4}
.framework-item small{font-size:10.5px;color:#9eabc1;line-height:1.4}
.framework-note{margin-top:10px;padding:11px 12px;border-radius:10px;background:#10182a;border:1px solid #293650;color:#aebbd0;font-size:11px;line-height:1.5}
body.light-mode .framework-item,body.light-mode .framework-note{background:#fff;border-color:#dce2eb}
body.light-mode .framework-item b{color:#172033}
body.light-mode .framework-item span{color:#4f74d8}
body.light-mode .framework-item small,body.light-mode .framework-note{color:#647089}
@media(max-width:850px){.framework-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.framework-grid{grid-template-columns:1fr}}

/* v0.38 automatic company-type/model selector */
.auto-flow{display:flex;align-items:stretch;gap:8px;margin-top:10px;overflow-x:auto;padding-bottom:3px}
.auto-flow>div{min-width:155px;flex:1;border:1px solid #293650;background:#11192b;border-radius:11px;padding:10px}
.auto-flow b{display:block;font-size:11.5px;color:#f3f6fb;margin-bottom:5px}
.auto-flow span{font-size:10px;color:#9eabc1;line-height:1.35}
.auto-flow i{align-self:center;color:#4f74d8;font-style:normal;font-weight:900}
.auto-table{display:grid;grid-template-columns:.75fr 1.55fr 1.7fr;margin-top:12px;border:1px solid #293650;border-radius:11px;overflow:hidden}
.auto-table>*{padding:8px 10px;border-bottom:1px solid #293650;font-size:10.5px;line-height:1.35}
.auto-table .auto-head{font-weight:800;color:#8fb0ff;background:#10182a}
.auto-table b{color:#f3f6fb}.auto-table span,.auto-table small{color:#a8b5ca}
body.light-mode .auto-flow>div,body.light-mode .auto-table .auto-head{background:#f7f9fc;border-color:#dce2eb}
body.light-mode .auto-flow b,body.light-mode .auto-table b{color:#172033}
body.light-mode .auto-flow span,body.light-mode .auto-table span,body.light-mode .auto-table small{color:#647089}
body.light-mode .auto-table{border-color:#dce2eb}
body.light-mode .auto-table>*{border-color:#dce2eb}
@media(max-width:700px){.auto-table{grid-template-columns:.65fr 1.35fr}.auto-table>*:nth-child(3n){display:none}.auto-table .auto-head:nth-child(3){display:none}}

/* v0.39 selector robustness test */
.test-grid{display:grid;grid-template-columns:.55fr 1.35fr .85fr 2.05fr;margin-top:10px;border:1px solid #293650;border-radius:11px;overflow:hidden}
.test-grid>*{padding:8px 10px;border-bottom:1px solid #293650;font-size:10.5px;line-height:1.35}
.test-head{background:#10182a;color:#8fb0ff;font-weight:800}
.test-grid b{color:#f3f6fb}.test-grid span,.test-grid small{color:#a8b5ca}
.test-grid .ok{color:#61d095}
.test-summary{margin-top:10px;padding:10px 12px;border:1px solid #294635;background:#10231a;border-radius:10px;color:#b7d7c3;font-size:11px;line-height:1.45}
body.light-mode .test-head{background:#f7f9fc;color:#4f74d8}
body.light-mode .test-grid{border-color:#dce2eb}
body.light-mode .test-grid>*{border-color:#dce2eb}
body.light-mode .test-grid b{color:#172033}
body.light-mode .test-grid span,body.light-mode .test-grid small{color:#647089}
body.light-mode .test-summary{background:#f3fbf6;border-color:#cfe8d7;color:#315f40}
@media(max-width:720px){.test-grid{grid-template-columns:.5fr 1fr 1fr}.test-grid>*:nth-child(4n){display:none}.test-grid .test-head:nth-child(4){display:none}}

/* v0.40 multi-profile valuation pilot */
.pilot-grid{display:grid;grid-template-columns:.5fr .8fr 1.6fr 1.45fr;margin-top:10px;border:1px solid #293650;border-radius:11px;overflow:hidden}
.pilot-grid>*{padding:8px 10px;border-bottom:1px solid #293650;font-size:10.5px;line-height:1.35}
.pilot-grid b{color:#f3f6fb}.pilot-grid span,.pilot-grid small{color:#a8b5ca}.pilot-grid .ok{color:#61d095}
.pilot-note{margin-top:10px;padding:11px 12px;border:1px solid #554527;background:#241d10;border-radius:10px;color:#d8c69c;font-size:11px;line-height:1.5}
.pilot-cards{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:10px}
.pilot-cards>div{background:#11192b;border:1px solid #293650;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:4px}
.pilot-cards b{color:#f3f6fb}.pilot-cards span{font-size:10px;color:#a8b5ca}.pilot-cards small{font-size:9.5px;color:#8fb0ff}
body.light-mode .pilot-grid{border-color:#dce2eb} body.light-mode .pilot-grid>*{border-color:#dce2eb}
body.light-mode .pilot-grid b,body.light-mode .pilot-cards b{color:#172033}
body.light-mode .pilot-grid span,body.light-mode .pilot-grid small,body.light-mode .pilot-cards span{color:#647089}
body.light-mode .pilot-note{background:#fff9ed;border-color:#ead9b5;color:#725b2d}
body.light-mode .pilot-cards>div{background:#fff;border-color:#dce2eb}
body.light-mode .pilot-cards small{color:#4f74d8}
@media(max-width:900px){.pilot-cards{grid-template-columns:1fr 1fr}.pilot-grid{grid-template-columns:.5fr .8fr 1.7fr}.pilot-grid>*:nth-child(4n){display:none}.pilot-grid .test-head:nth-child(4){display:none}}
@media(max-width:560px){.pilot-cards{grid-template-columns:1fr}}

/* v0.41 JPM financial subengine */
.fin-summary,.fin-scenarios{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}
.fin-summary>div,.fin-scenarios>div{background:#11192b;border:1px solid #293650;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:3px}
.fin-summary span,.fin-scenarios span{font-size:10px;color:#9eabc1}.fin-summary b,.fin-scenarios b{font-size:17px;color:#f3f6fb}
.fin-summary small,.fin-scenarios small{font-size:9px;color:#8fb0ff}
.fin-scenarios{grid-template-columns:repeat(3,1fr)}
.fin-scenarios .base{border-color:#4f74d8}
.fin-method{margin-top:10px;padding:11px 12px;border:1px solid #293650;border-radius:10px;background:#10182a}
.fin-method b{display:block;color:#f3f6fb;font-size:12px;margin-bottom:5px}.fin-method span{font-size:10.5px;color:#a8b5ca;line-height:1.5}
body.light-mode .fin-summary>div,body.light-mode .fin-scenarios>div,body.light-mode .fin-method{background:#fff;border-color:#dce2eb}
body.light-mode .fin-summary b,body.light-mode .fin-scenarios b,body.light-mode .fin-method b{color:#172033}
body.light-mode .fin-summary span,body.light-mode .fin-scenarios span,body.light-mode .fin-method span{color:#647089}
@media(max-width:700px){.fin-summary{grid-template-columns:1fr 1fr}.fin-scenarios{grid-template-columns:1fr}}

.tri-grid{display:grid;grid-template-columns:1fr 1.65fr .75fr 1.55fr;margin-top:10px;border:1px solid #293650;border-radius:11px;overflow:hidden}
.tri-grid>*{padding:8px 10px;border-bottom:1px solid #293650;font-size:10.5px;line-height:1.4}
.tri-grid b,.tri-grid strong{color:#f3f6fb}.tri-grid span,.tri-grid small{color:#a8b5ca}.tri-grid strong{font-size:13px}
.tri-result{margin-top:10px;padding:11px 12px;border:1px solid #554527;background:#241d10;border-radius:10px;display:flex;gap:7px;flex-direction:column}
.tri-result b{color:#f0cf8d;font-size:11.5px}.tri-result span{color:#d8c69c;font-size:10.5px;line-height:1.5}
body.light-mode .tri-grid{border-color:#dce2eb} body.light-mode .tri-grid>*{border-color:#dce2eb}
body.light-mode .tri-grid b,body.light-mode .tri-grid strong{color:#172033}
body.light-mode .tri-grid span,body.light-mode .tri-grid small{color:#647089}
body.light-mode .tri-result{background:#fff9ed;border-color:#ead9b5}.light-mode .tri-result b{color:#725b2d}.light-mode .tri-result span{color:#725b2d}
@media(max-width:720px){.tri-grid{grid-template-columns:1fr 1.4fr .7fr}.tri-grid>*:nth-child(4n){display:none}.tri-grid .test-head:nth-child(4){display:none}}

.regime-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}
.regime-grid>div{background:#11192b;border:1px solid #293650;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:3px}
.regime-grid span{font-size:10px;color:#9eabc1}.regime-grid b{font-size:16px;color:#f3f6fb}.regime-grid small{font-size:9px;color:#8fb0ff}
.weight-grid{display:grid;grid-template-columns:1.1fr .55fr 2fr;margin-top:10px;border:1px solid #293650;border-radius:10px;overflow:hidden}
.weight-grid>*{padding:8px 10px;border-bottom:1px solid #293650;font-size:10.5px}.weight-grid b,.weight-grid strong{color:#f3f6fb}.weight-grid span{color:#a8b5ca}
.regime-result{margin-top:10px;border:1px solid #4f74d8;border-radius:11px;padding:12px;background:#101a31;display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 12px}
.regime-result span{font-size:11px;color:#9fb0cb}.regime-result b{font-size:24px;color:#f3f6fb}.regime-result small{grid-column:1/-1;color:#8fb0ff;font-size:10px}
body.light-mode .regime-grid>div,body.light-mode .weight-grid,body.light-mode .regime-result{background:#fff;border-color:#dce2eb}
body.light-mode .regime-grid b,body.light-mode .weight-grid b,body.light-mode .weight-grid strong,body.light-mode .regime-result b{color:#172033}
body.light-mode .regime-grid span,body.light-mode .weight-grid span,body.light-mode .regime-result span{color:#647089}
@media(max-width:700px){.regime-grid{grid-template-columns:1fr 1fr}.weight-grid{grid-template-columns:1fr .5fr 1.5fr}}

.reit-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:10px}
.reit-kpis>div{background:#11192b;border:1px solid #293650;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:3px}
.reit-kpis span{font-size:9.5px;color:#9eabc1}.reit-kpis b{font-size:15px;color:#f3f6fb}
.reit-models{display:grid;grid-template-columns:1fr 1.7fr .8fr .65fr;margin-top:10px;border:1px solid #293650;border-radius:10px;overflow:hidden}
.reit-models>*{padding:8px 10px;border-bottom:1px solid #293650;font-size:10.5px}.reit-models b,.reit-models strong{color:#f3f6fb}.reit-models span,.reit-models small{color:#a8b5ca}
.reit-result{margin-top:10px;border:1px solid #4f74d8;border-radius:11px;padding:12px;background:#101a31;display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 12px}
.reit-result span{font-size:11px;color:#9fb0cb}.reit-result b{font-size:24px;color:#f3f6fb}.reit-result small{grid-column:1/-1;color:#8fb0ff;font-size:10px}
body.light-mode .reit-kpis>div,body.light-mode .reit-models,body.light-mode .reit-result{background:#fff;border-color:#dce2eb}
body.light-mode .reit-kpis b,body.light-mode .reit-models b,body.light-mode .reit-models strong,body.light-mode .reit-result b{color:#172033}
body.light-mode .reit-kpis span,body.light-mode .reit-models span,body.light-mode .reit-models small,body.light-mode .reit-result span{color:#647089}
@media(max-width:760px){.reit-kpis{grid-template-columns:1fr 1fr}.reit-models{grid-template-columns:1fr 1.5fr .8fr}.reit-models>*:nth-child(4n){display:none}.reit-models .test-head:nth-child(4){display:none}}

.nav-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:10px}.nav-kpis>div,.nav-scenarios>div{background:#11192b;border:1px solid #293650;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:3px}.nav-kpis span,.nav-scenarios span{font-size:9.5px;color:#9eabc1}.nav-kpis b,.nav-scenarios b{font-size:15px;color:#f3f6fb}.nav-kpis small,.nav-scenarios small{font-size:9px;color:#8fb0ff}.nav-mix{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-top:8px}.nav-mix>div{padding:8px;border:1px solid #293650;border-radius:9px;text-align:center}.nav-mix b{display:block;color:#f3f6fb;font-size:12px}.nav-mix span{font-size:9px;color:#9eabc1}.nav-scenarios{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}.nav-scenarios .base{border-color:#4f74d8}
body.light-mode .nav-kpis>div,body.light-mode .nav-scenarios>div,body.light-mode .nav-mix>div{background:#fff;border-color:#dce2eb}body.light-mode .nav-kpis b,body.light-mode .nav-scenarios b,body.light-mode .nav-mix b{color:#172033}body.light-mode .nav-kpis span,body.light-mode .nav-scenarios span,body.light-mode .nav-mix span{color:#647089}
@media(max-width:760px){.nav-kpis{grid-template-columns:1fr 1fr}.nav-mix{grid-template-columns:repeat(3,1fr)}.nav-scenarios{grid-template-columns:1fr}}

.reit-final-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}.reit-final-grid>div{background:#11192b;border:1px solid #293650;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:3px}.reit-final-grid span,.reit-band span{font-size:9.5px;color:#9eabc1}.reit-final-grid b,.reit-band b{font-size:17px;color:#f3f6fb}.reit-final-grid small{font-size:9px;color:#8fb0ff}.reit-band{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}.reit-band>div{background:#10182a;border:1px solid #293650;border-radius:10px;padding:10px;text-align:center}.reit-band .base{border-color:#4f74d8}
body.light-mode .reit-final-grid>div,body.light-mode .reit-band>div{background:#fff;border-color:#dce2eb}body.light-mode .reit-final-grid b,body.light-mode .reit-band b{color:#172033}body.light-mode .reit-final-grid span,body.light-mode .reit-band span{color:#647089}
@media(max-width:700px){.reit-final-grid{grid-template-columns:1fr 1fr}.reit-band{grid-template-columns:1fr}}

.utility-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:10px}.utility-kpis>div{background:#11192b;border:1px solid #293650;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:3px}.utility-kpis span{font-size:9.5px;color:#9eabc1}.utility-kpis b{font-size:15px;color:#f3f6fb}.utility-kpis small{font-size:9px;color:#8fb0ff}.utility-models{display:grid;grid-template-columns:1fr .55fr 2.6fr;margin-top:10px;border:1px solid #293650;border-radius:10px;overflow:hidden}.utility-models>*{padding:8px 10px;border-bottom:1px solid #293650;font-size:10.5px;line-height:1.4}.utility-models b,.utility-models strong{color:#f3f6fb}.utility-models span{color:#a8b5ca}
body.light-mode .utility-kpis>div,body.light-mode .utility-models{background:#fff;border-color:#dce2eb}body.light-mode .utility-kpis b,body.light-mode .utility-models b,body.light-mode .utility-models strong{color:#172033}body.light-mode .utility-kpis span,body.light-mode .utility-models span{color:#647089}
@media(max-width:760px){.utility-kpis{grid-template-columns:1fr 1fr}.utility-models{grid-template-columns:1fr .5fr 1.7fr}}

.util-band{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.util-band>div,.util-drivers>div{background:#11192b;border:1px solid #293650;border-radius:10px;padding:10px}.util-band>div{display:flex;flex-direction:column;text-align:center;gap:3px}.util-band .base{border-color:#4f74d8}.util-band span,.util-drivers span{font-size:9.5px;color:#9eabc1}.util-band b{font-size:18px;color:#f3f6fb}.util-band small,.util-drivers small{font-size:9px;color:#8fb0ff;line-height:1.35}.util-drivers{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:8px}.util-drivers b{display:block;color:#f3f6fb;font-size:12px}.util-drivers span{display:block;margin:3px 0}
body.light-mode .util-band>div,body.light-mode .util-drivers>div{background:#fff;border-color:#dce2eb}body.light-mode .util-band b,body.light-mode .util-drivers b{color:#172033}body.light-mode .util-band span,body.light-mode .util-drivers span{color:#647089}
@media(max-width:760px){.util-band{grid-template-columns:1fr}.util-drivers{grid-template-columns:1fr 1fr}}

.cyc-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:10px}.cyc-kpis>div,.cyc-band>div{background:#11192b;border:1px solid #293650;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:3px}.cyc-kpis span,.cyc-band span{font-size:9.5px;color:#9eabc1}.cyc-kpis b,.cyc-band b{font-size:16px;color:#f3f6fb}.cyc-kpis small,.cyc-band small{font-size:9px;color:#8fb0ff}.cycle-rule{margin-top:10px;padding:11px 12px;border:1px solid #293650;border-radius:10px;background:#10182a}.cycle-rule b{display:block;color:#f3f6fb;font-size:12px;margin-bottom:4px}.cycle-rule span{color:#a8b5ca;font-size:10.5px;line-height:1.45}.cyc-band{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}.cyc-band>div{text-align:center}.cyc-band .base{border-color:#4f74d8}
body.light-mode .cyc-kpis>div,body.light-mode .cyc-band>div,body.light-mode .cycle-rule{background:#fff;border-color:#dce2eb}body.light-mode .cyc-kpis b,body.light-mode .cyc-band b,body.light-mode .cycle-rule b{color:#172033}body.light-mode .cyc-kpis span,body.light-mode .cyc-band span,body.light-mode .cycle-rule span{color:#647089}
@media(max-width:760px){.cyc-kpis{grid-template-columns:1fr 1fr}.cyc-band{grid-template-columns:1fr}}

.hg-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:10px}.hg-kpis>div,.hg-band>div{background:#11192b;border:1px solid #293650;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:3px}.hg-kpis span,.hg-band span{font-size:9.5px;color:#9eabc1}.hg-kpis b,.hg-band b{font-size:16px;color:#f3f6fb}.hg-kpis small,.hg-band small{font-size:9px;color:#8fb0ff}.hg-rule{margin-top:10px;padding:11px 12px;border:1px solid #4f74d8;border-radius:10px;background:#10182a}.hg-rule b{display:block;color:#f3f6fb;font-size:12px;margin-bottom:4px}.hg-rule span{color:#a8b5ca;font-size:10.5px;line-height:1.45}.hg-band{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}.hg-band>div{text-align:center}.hg-band .base{border-color:#4f74d8}
body.light-mode .hg-kpis>div,body.light-mode .hg-band>div,body.light-mode .hg-rule{background:#fff;border-color:#dce2eb}body.light-mode .hg-kpis b,body.light-mode .hg-band b,body.light-mode .hg-rule b{color:#172033}body.light-mode .hg-kpis span,body.light-mode .hg-band span,body.light-mode .hg-rule span{color:#647089}
@media(max-width:760px){.hg-kpis{grid-template-columns:1fr 1fr}.hg-band{grid-template-columns:1fr}}

.audit-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}.audit-summary>div,.audit-rules>div{background:#11192b;border:1px solid #293650;border-radius:10px;padding:10px}.audit-summary span{font-size:9.5px;color:#9eabc1;display:block}.audit-summary b{font-size:14px;color:#f3f6fb;display:block;margin:3px 0}.audit-summary small,.audit-rules span{font-size:9px;color:#8fb0ff;line-height:1.35}.audit-table{display:grid;grid-template-columns:.8fr .55fr 1.7fr .8fr 1.6fr;margin-top:10px;border:1px solid #293650;border-radius:10px;overflow:hidden}.audit-table>*{padding:8px 9px;border-bottom:1px solid #293650;font-size:9.5px}.audit-table b,.audit-table strong{color:#f3f6fb}.audit-table span,.audit-table small{color:#a8b5ca}.audit-table em{font-style:normal;font-weight:700}.audit-table .pass{color:#78d7a3}.audit-table .cal{color:#f2c66d}.audit-rules{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}.audit-rules b{display:block;color:#f3f6fb;font-size:10.5px;margin-bottom:4px}
body.light-mode .audit-summary>div,body.light-mode .audit-rules>div,body.light-mode .audit-table{background:#fff;border-color:#dce2eb}body.light-mode .audit-summary b,body.light-mode .audit-rules b,body.light-mode .audit-table b,body.light-mode .audit-table strong{color:#172033}body.light-mode .audit-summary span,body.light-mode .audit-rules span,body.light-mode .audit-table span,body.light-mode .audit-table small{color:#647089}
@media(max-width:760px){.audit-summary{grid-template-columns:1fr 1fr}.audit-rules{grid-template-columns:1fr}.audit-table{grid-template-columns:.8fr .55fr 1.6fr .8fr}.audit-table>*:nth-child(5n){display:none}.audit-table .test-head:nth-child(5){display:none}}

.release-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.release-grid>div{background:#11192b;border:1px solid #293650;border-radius:10px;padding:11px}.release-grid b,.release-grid span,.release-grid strong,.release-grid small{display:block}.release-grid b{color:#f3f6fb;font-size:11px}.release-grid span{color:#9eabc1;font-size:9px;margin:2px 0}.release-grid strong{color:#78d7a3;font-size:11px;margin-bottom:4px}.release-grid small{color:#8fb0ff;font-size:9px;line-height:1.35}.release-guardrails,.release-warning{margin-top:8px;padding:11px 12px;border:1px solid #293650;border-radius:10px;background:#10182a}.release-guardrails b,.release-warning b{display:block;color:#f3f6fb;font-size:11px;margin-bottom:4px}.release-guardrails span,.release-warning{color:#a8b5ca;font-size:10px;line-height:1.45}.release-warning{border-color:#8b6d35}
body.light-mode .release-grid>div,body.light-mode .release-guardrails,body.light-mode .release-warning{background:#fff;border-color:#dce2eb}body.light-mode .release-grid b,body.light-mode .release-guardrails b,body.light-mode .release-warning b{color:#172033}body.light-mode .release-grid span,body.light-mode .release-guardrails span,body.light-mode .release-warning{color:#647089}
@media(max-width:760px){.release-grid{grid-template-columns:1fr 1fr}}

.prod-search{display:flex;gap:8px;align-items:center;margin-top:10px;flex-wrap:wrap}.prod-search input{width:110px;background:#11192b;border:1px solid #293650;color:#f3f6fb;border-radius:9px;padding:10px 12px;font-weight:700;text-transform:uppercase}.prod-search button{background:#4f74d8;border:0;color:white;border-radius:9px;padding:10px 14px;font-weight:700;cursor:pointer}.api-status{font-size:9px;border:1px solid #8b6d35;color:#f2c66d;border-radius:999px;padding:5px 8px}.api-status.ok{border-color:#3a8b62;color:#78d7a3}.api-status.err{border-color:#9c4d56;color:#ff9098}.prod-flow{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.prod-flow>div,.prod-result>div{background:#11192b;border:1px solid #293650;border-radius:10px;padding:10px}.prod-flow b{display:block;color:#f3f6fb;font-size:10.5px;margin-bottom:4px}.prod-flow span{font-size:9px;line-height:1.35;color:#8fb0ff}.prod-result{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:8px}.prod-result span{display:block;font-size:9px;color:#9eabc1}.prod-result b{display:block;font-size:11px;color:#f3f6fb;margin-top:3px;word-break:break-word}.release-warning code{font-size:9px}
body.light-mode .prod-search input,body.light-mode .prod-flow>div,body.light-mode .prod-result>div{background:#fff;border-color:#dce2eb;color:#172033}body.light-mode .prod-flow b,body.light-mode .prod-result b{color:#172033}body.light-mode .prod-result span{color:#647089}
@media(max-width:760px){.prod-flow{grid-template-columns:1fr 1fr}.prod-result{grid-template-columns:1fr 1fr}}

.dyn-fv-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-top:10px}.dyn-fv-grid>div{background:#11192b;border:1px solid #293650;border-radius:10px;padding:10px;text-align:center}.dyn-fv-grid .base{border-color:#4f74d8}.dyn-fv-grid span{display:block;font-size:9px;color:#9eabc1}.dyn-fv-grid b{display:block;font-size:14px;color:#f3f6fb;margin-top:4px}.dyn-models{margin-top:8px;border:1px solid #293650;border-radius:10px;overflow:hidden}.dyn-model-row{display:grid;grid-template-columns:1.1fr .6fr .8fr .8fr .8fr;gap:8px;padding:8px 10px;border-bottom:1px solid #293650;font-size:9.5px}.dyn-model-row b{color:#f3f6fb}.dyn-model-row span{color:#a8b5ca}.dyn-models>span{display:block;padding:10px;color:#a8b5ca;font-size:10px}
body.light-mode .dyn-fv-grid>div,body.light-mode .dyn-models{background:#fff;border-color:#dce2eb}body.light-mode .dyn-fv-grid b,body.light-mode .dyn-model-row b{color:#172033}body.light-mode .dyn-fv-grid span,body.light-mode .dyn-model-row span,body.light-mode .dyn-models>span{color:#647089}
@media(max-width:760px){.dyn-fv-grid{grid-template-columns:1fr 1fr 1fr}.dyn-model-row{grid-template-columns:1fr .5fr .7fr .7fr .7fr}}

.premium-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}.premium-grid>div{background:#11192b;border:1px solid #293650;border-radius:10px;padding:11px}.premium-grid b{display:block;color:#f3f6fb;font-size:11px}.premium-grid span{display:block;color:#8fb0ff;font-size:9px;line-height:1.4;margin-top:4px}.premium-mini{font-size:7px!important;padding:2px 4px;border:1px solid #4f74d8;border-radius:999px;color:#8fb0ff!important;vertical-align:middle;margin-left:3px}
body.light-mode .premium-grid>div{background:#fff;border-color:#dce2eb}body.light-mode .premium-grid b{color:#172033}body.light-mode .premium-grid span{color:#647089}
@media(max-width:760px){.premium-grid{grid-template-columns:1fr 1fr}}

.table .sector-vs{font-weight:700;white-space:nowrap}
#fundamentalsTable [data-sector-column][hidden]{display:none!important}
.table .sector-vs.positive{color:var(--green)}
.table .sector-vs.negative{color:var(--red)}
.table .sector-vs.neutral{color:var(--muted)}

@media (min-width: 1100px){
  .fundamentals-table{
    width:100%;
    table-layout:fixed;
  }
  .fundamentals-table th,
  .fundamentals-table td{
    width:12.5%;
    box-sizing:border-box;
    white-space:normal;
    overflow-wrap:break-word;
    text-align:center;
    vertical-align:middle;
    padding-left:8px;
    padding-right:8px;
  }
  .fundamentals-table th{
    line-height:1.25;
  }
}

.technical-analysis{margin-top:14px}
.ta-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:10px 0 14px}
.ta-signal-card{border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--panel-2)}
.ta-signal-card .ta-label{display:block;font-size:10px;color:var(--muted);margin-bottom:6px}
.ta-signal-card b{display:block;font-size:14px;line-height:1.25}
.ta-signal-card small{display:block;margin-top:6px;color:var(--muted);font-size:9px;line-height:1.45}
.ta-table-wrap{overflow-x:auto;isolation:isolate}
.technical-table th:first-child,
.technical-table td:first-child{
  position:sticky;left:0;z-index:1;background:var(--card);
  box-shadow:1px 0 0 var(--line);
}
.technical-table th:first-child{z-index:2}
body.light-mode .technical-table tbody td:first-child{background:#fff}
body.light-mode .technical-table tbody tr:nth-child(even) td:first-child{background:#fafbfd}
.technical-table{table-layout:fixed;width:100%}
.technical-table th,.technical-table td{width:25%;text-align:center;white-space:normal}
.ta-context{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:10px;font-size:11px;line-height:1.55}
.ta-disclaimer{margin-top:10px;font-size:10px;line-height:1.45;color:var(--muted);font-style:italic}
@media(max-width:900px){.ta-summary-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.ta-summary-grid{grid-template-columns:1fr}.technical-table{min-width:680px}}



.premium-feature{position:relative}
.premium-lock-overlay{
  display:none;
  position:absolute;
  inset:0;
  z-index:20;
  align-items:center;
  justify-content:center;
  border-radius:inherit;
  background:rgba(8,12,20,.62);
  backdrop-filter:blur(5px);
}
.premium-lock-card{
  max-width:360px;
  text-align:center;
  padding:18px 20px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--panel);
  box-shadow:0 18px 50px rgba(0,0,0,.28);
}
.premium-lock-card b{display:block;font-size:15px;margin-bottom:6px}
.premium-lock-card span{display:block;font-size:10px;line-height:1.45;color:var(--muted);margin-bottom:12px}
.premium-cta{
  border:1px solid #4f74d8;
  background:#4f74d8;
  color:#fff;
  border-radius:9px;
  padding:8px 12px;
  font-size:10px;
  font-weight:700;
  cursor:pointer;
}
body[data-premium='0'] .premium-feature .premium-lock-overlay{display:flex}
body[data-premium='0'] .premium-feature > :not(.premium-lock-overlay){filter:blur(2px);pointer-events:none;user-select:none}

/* v0.66: single source of truth for vertical section spacing */
section.card{
  margin-top:0 !important;
  margin-bottom:0 !important;
}
section.card + section.card{
  margin-top:20px !important;
}
/* Some sections sit in the same public content flow but legacy rules target their classes. */
.power,
.fair,
.technical-analysis,
.fundamentals,
.history,
.context{
  margin-bottom:0 !important;
}

section.card.uniform-gap{
  margin-top:20px !important;
}

.search-wrap{margin-left:auto;position:relative;width:300px}.search-wrap .search{margin-left:0;width:100%}.search-suggestions{display:none;position:absolute;top:calc(100% + 7px);left:0;right:0;background:#11192b;border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:0 14px 38px #0007;z-index:30}.search-suggestions.open{display:block}.search-item{padding:10px 12px;cursor:pointer;display:grid;grid-template-columns:64px 1fr auto;gap:8px;align-items:center;border-bottom:1px solid var(--line)}.search-item:last-child{border-bottom:0}.search-item:hover,.search-item.active{background:#19243d}.search-symbol{font-weight:800;color:#f5f7fb}.search-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#c6d0e4}.search-exchange{font-size:11px;color:var(--muted)}.search-empty{padding:11px 12px;color:var(--muted)}body.light-mode .search-suggestions{background:#fff}.search-source{padding:6px 12px;font-size:9px;color:var(--muted);text-align:right;background:#0e1628}body.light-mode .search-source{background:#f6f8fb}@media(max-width:1000px){.search-wrap{width:230px}}

/* Launch QA: fully visible Premium gate and unmistakable dark-mode selection. */
.theme-toggle{background:#0c1425;border-color:#52627c;gap:4px}
.theme-toggle button{color:#b7c5dc;min-width:58px;transition:background .15s,color .15s,box-shadow .15s}
body:not(.light-mode) .theme-toggle button.active{
  background:#dce9ff;color:#142642;
  box-shadow:inset 0 0 0 1px #a8c5f8,0 1px 5px rgba(0,0,0,.35);
}
body:not(.light-mode) .theme-toggle button:not(.active){color:#b7c5dc}
body.light-mode .theme-toggle{background:#e8eef7;border-color:#cbd6e6}
body.light-mode .theme-toggle button.active{background:#fff;color:#142642;box-shadow:0 1px 5px rgba(20,35,60,.2)}
/* Visitor overlays must not be cropped by the compact Fair Value panel. */
body:is([data-access='visitor'],[data-access='free']) .fair.premium-module{overflow:visible;min-height:240px}
body:is([data-access='visitor'],[data-access='free']) .fair.premium-module .visitor-premium-lock{
  inset:48px 0 0;min-height:185px;border-radius:0 0 18px 18px;
  box-sizing:border-box;
}
body:is([data-access='visitor'],[data-access='free']) .fair.premium-module .visitor-premium-lock-card{
  position:relative;max-width:calc(100% - 24px);box-sizing:border-box;
}
@media(max-width:650px){
 body:is([data-access='visitor'],[data-access='free']) .fair.premium-module{min-height:270px}
 body:is([data-access='visitor'],[data-access='free']) .fair.premium-module .visitor-premium-lock{min-height:220px;padding:12px}
}

/* Public charts: evenly spaced summary columns, consistent numeric alignment. */
/* Four evenly spaced visual anchors across both historical data tables. */
.revenue-combo .dynamic-table,.debt-chart .dynamic-table{
 table-layout:fixed !important;width:100% !important;border-spacing:0 !important;
}
.revenue-combo .dynamic-table col,.debt-chart .dynamic-table col{width:25% !important}
.revenue-combo .dynamic-table tr > :is(th,td),
.debt-chart .dynamic-table tr > :is(th,td){
 box-sizing:border-box !important;width:25% !important;
 text-align:left !important;padding-left:12px !important;padding-right:8px !important;
}
.revenue-combo .dynamic-table th,.revenue-combo .dynamic-table td,
.debt-chart .dynamic-table th,.debt-chart .dynamic-table td{
 width:25%;text-align:left;font-variant-numeric:tabular-nums;padding:7px 12px;
}
.revenue-combo .dynamic-table th:first-child,.revenue-combo .dynamic-table td:first-child,
.debt-chart .dynamic-table th:first-child,.debt-chart .dynamic-table td:first-child{text-align:left}
/* Preview for both visitors and registered free accounts: actual premium
   calculations remain protected by server-side entitlement checks. */
body:is([data-access='visitor'],[data-access='free']) .premium-module > *:not(.section-title):not(.visitor-premium-lock){
  filter:blur(6px);pointer-events:none;user-select:none;
}
body:is([data-access='visitor'],[data-access='free']) .premium-module .visitor-premium-lock{
  display:flex;
}
