@import url("/performance.css");
html[data-theme=dark]{color-scheme:dark;--ink:#e4edf3;--muted:#93a6b4;--line:#2b3b47;--green:#46cbae;--red:#ff7b8f;--paper:#101820;--teal:#50d2bb}
html[data-theme=dark] :is(header,.panel,.stats article,.highlight,.leader-card,dialog,.strategy-card,.strategy-editor,.strategy-metric,.strategy-chart,.strategy-trades,.strategy-calendar,.strategy-deploy,.replay-panel,.controls,.date-controls,.builder-risk,.builder-instrument,.builder-legs article,.builder-leg){background:#18232d;color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(button,input,select,textarea,.strategy-fields input,.strategy-fields select){background:#202e39;color:var(--ink);border-color:#354957}
html[data-theme=dark] :is(button:hover,.sector-row.selected,.segmented,.strategy-status,.strategy-day,.builder-flow){background:#253e43;color:#bfddd8}
html[data-theme=dark] :is(.strategy-studio,.studio-tabs,.studio-extra){background:#111d26;color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(th,.table-tools,.panel-head,.panel-foot,.strategy-card p,.strategy-note,.strategy-fields label,.replay-date-help){color:#a4b7c4;border-color:var(--line)}
html[data-theme=dark] :is(.leader-row,.stock-row,td,.pagination,footer){border-color:var(--line)}
html[data-theme=dark] :is(.notice,.badge.connected){background:#153d34;color:#74d9be;border-color:#28564a}
html[data-theme=dark] :is(.notice.error,.strategy-status.error,.strategy-day.loss){background:#40252d;color:#ff97a7}
html[data-theme=dark] :is(.primary,.studio-primary){background:#08765f;color:white}
html[data-theme=dark] .strategy-positive{color:#4dd7ad}html[data-theme=dark] .strategy-negative{color:#ff8294}
[hidden]{display:none!important}
html[data-theme="dark"] .studio-tabs{display:flex;gap:4px;flex-wrap:wrap;padding:14px 22px;border-bottom:1px solid var(--line);background:white}html[data-theme="dark"] .studio-tabs button{background:transparent;border:0;font-size:12px;color:var(--muted)}html[data-theme="dark"] .studio-tabs button.active{background:#e4f3ee;color:#08765f}.studio-tabs #studioTheme{margin-left:auto}.studio-search{max-width:440px;margin:0 0 20px}html[data-theme="dark"] .builder-flow{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:16px;background:#edf6f2;border-radius:12px;font-size:10px;font-weight:750;color:#467769;margin-bottom:20px}html[data-theme="dark"] .builder-instrument{display:flex;flex-wrap:wrap;gap:20px;background:#f0f5f8;padding:17px;border-radius:10px;margin:16px 0;font-size:12px}html[data-theme="dark"] .builder-instrument span{color:var(--muted)}.builder-legs{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:20px}html[data-theme="dark"] .builder-legs article{border:1px solid #d6e7e1;border-radius:14px;padding:20px;background:#f7fcfa}html[data-theme="dark"] .builder-legs small{color:#13816b;font-size:10px;font-weight:750}html[data-theme="dark"] .builder-legs p{font-size:12px;color:#718591;line-height:1.7}.builder-risk{border:1px solid var(--line);padding:18px;border-radius:12px;margin:18px 0;display:flex;flex-direction:column;gap:9px;font-size:12px}html[data-theme="dark"] .builder-risk span{color:var(--muted)}html[data-theme="dark"] .builder-engine-label{display:block;color:var(--muted);font-size:10px;letter-spacing:.08em;margin-bottom:18px;max-width:500px}.builder-engine-label select{margin-top:8px}html[data-theme="dark"] .builder-leg{padding:20px;margin:15px 0;border:1px solid #d6e5ed;border-radius:15px;background:#f6fafc}.builder-weekdays{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.builder-weekdays label{display:flex;gap:6px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;font-size:12px}.builder-weekdays input{width:auto}#independentBuilder{border-top:1px solid var(--line);margin-top:22px;padding-top:22px}#strategyReportList{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:15px;margin:22px 0}#strategyLogs{white-space:pre-wrap;font-size:12px;line-height:1.8;max-height:400px;overflow:auto}#strategyReports label{font-size:12px}.studio-extra{padding:10px}.studio-extra>.strategy-card{margin-top:20px;max-width:520px}
@media(max-width:700px){.builder-flow{font-size:8px;gap:5px;padding:10px}.builder-legs{grid-template-columns:1fr}.studio-tabs{padding:10px}.studio-tabs button{padding:8px;font-size:11px}.builder-leg{padding:13px}.builder-instrument{gap:10px}}

.builder-two-column{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:20px}.builder-block{padding:22px;border:1px solid var(--line);border-radius:16px;min-width:0}.builder-block>.strategy-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.builder-block:nth-child(2){grid-row:span 2}.builder-checks{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:20px 0}.builder-checks label{display:flex;gap:8px;font-size:12px;align-items:center}.builder-checks input{width:auto}.builder-leg .strategy-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.strategy-fields label{min-width:0;white-space:normal;overflow-wrap:anywhere}.builder-leg .studio-title button{font-size:10px;padding:8px}.builder-leg .studio-title{align-items:flex-start}.builder-leg .studio-title>div{display:flex;gap:5px}@media(max-width:1000px){.builder-two-column{grid-template-columns:1fr}.builder-block:nth-child(2){grid-row:auto}}@media(max-width:430px){.builder-block{padding:12px}.strategy-fields{grid-template-columns:1fr}.builder-leg .strategy-fields{grid-template-columns:1fr 1fr}.builder-flow{display:none}}
body[data-infinity-page=dashboard],body[data-infinity-page=dashboard] .workspace {background:#020306;color:#e2e8f0}
body.studio-page main>.infinity-page:not([hidden]) {display:block!important}
html[data-theme="dark"] .infinity-brand{display:flex;align-items:center;gap:10px;margin:0 4px 24px;color:var(--ink)}
.infinity-brand img{object-fit:cover;border-radius:12px}
.infinity-brand small{display:block;font-size:9px;letter-spacing:.08em}
.infinity-navigation [data-page=subscription]{margin-top:auto}
html[data-theme="dark"] .infinity-pro{border-radius:999px;padding:3px 6px;background:#14b8a628;color:#2dd4bf;font-size:10px}
.infinity-page{min-width:0;padding:16px}
.infinity-page h1{margin:0 0 24px}
.infinity-page h2{font-size:16px;margin:0 0 12px}
.infinity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:18px}
.infinity-grid article{padding:20px;min-width:0}
.infinity-grid strong{font-size:24px}
.infinity-dashboard-content{position:relative;z-index:1;padding:26px}
html[data-theme="dark"] .infinity-dashboard-content h1{color:#f1f5f9}
.infinity-page:has(.infinity-galaxy){position:relative;min-height:calc(100vh - 150px);isolation:isolate}
.infinity-galaxy{position:absolute;inset:0;overflow:hidden;pointer-events:none}
#milan-charts-root{height:min(780px,75dvh);overflow:hidden}
@media(max-width:768px){.infinity-brand{display:none}.infinity-page,.infinity-dashboard-content{padding:10px}#milan-charts-root{height:68dvh}.infinity-galaxy{display:none}}
.infinity-mobile-navigation{display:none}
@media(max-width:768px){
 body:has(.infinity-mobile-navigation) .rail{display:none}
 body:has(.infinity-mobile-navigation) .workspace{margin-left:0;padding-bottom:72px}
 html[data-theme="dark"] .infinity-mobile-navigation{position:fixed;display:flex;align-items:center;justify-content:space-around;gap:2px;z-index:22;bottom:max(8px,env(safe-area-inset-bottom));left:8px;right:8px;min-height:52px;border-radius:18px;background:#111827;color:#e2e8f0;border:1px solid #475569;box-shadow:0 12px 28px #0007}
 html[data-theme="dark"] .infinity-mobile-navigation button,html[data-theme="dark"] .infinity-mobile-navigation summary{padding:8px 5px;font-size:11px;color:inherit;background:transparent;border:0;white-space:nowrap;cursor:pointer}
 html[data-theme="dark"] .infinity-mobile-navigation button.active{color:#5eead4;background:#14b8a629}
 html[data-theme="dark"] .infinity-drawer{position:absolute;bottom:62px;right:0;left:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:12px;background:#111827}
 .infinity-drawer button{white-space:normal}
}
html[data-theme] body[data-infinity-page=dashboard],html[data-theme] body[data-infinity-page=dashboard] .workspace,html[data-theme] body[data-infinity-page=dashboard] header,html[data-theme] body[data-infinity-page=dashboard] .rail {background:#020306;color:#e2e8f0}
body[data-infinity-page=dashboard] .infinity-brand{color:#e2e8f0}
body[data-infinity-page=dashboard] .app-navigation button:not(.active){color:#94a3b8}
@media(prefers-reduced-motion:reduce){.pulse-dot,.mpc-pulse-dot{animation:none}}
.infinity-drawer button{display:flex;align-items:center;justify-content:center;gap:6px}
.infinity-drawer svg{flex:none}
#backtestCharges{padding:14px;align-items:center}
#backtestCharges input{width:86px;margin-left:6px;padding:7px}
#tradeChargesResult{font-variant-numeric:tabular-nums}
.strategy-lots input{width:85px}
/* ===== EXACT IMAGE_336FC2 HEADER + CLEAN SIDEBAR ===== */

/* 1. Slim Cosmic-Black Top Header Bar (Left: Status + Clock | Right: Action Pills) */
html[data-theme="dark"] html body .workspace > header {
  display: flex !important;
  align-items: center !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 18px !important;
  background: rgba(4, 6, 11, 0.96) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
}
html body .workspace > header > .brand {
  display: none !important;
}
html body .workspace > header .header-right {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Hide ONLY old Menu button & Install app button */
html body .workspace > header .header-right > button:first-of-type,
html body .workspace > header button[id*="install" i],
html body .workspace > header button[id*="menu" i] {
  display: none !important;
}

/* Push action buttons to the far right (keep Status + Clock on the left) */
html[data-theme="dark"] html body .workspace > header .header-right > span:last-of-type {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #94a3b8 !important;
  font-family: monospace !important;
  font-size: 11.5px !important;
  margin-right: auto !important;
  padding: 0 4px !important;
}

/* Slim dark 3D pills for Open in Chrome, Chrome profile, Reconnect, Change FYERS, Light */
html[data-theme="dark"] html body .workspace > header button,html[data-theme="dark"] html body .workspace > header a {
  display: inline-flex !important;
  align-items: center !important;
  height: 32px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  background: rgba(14, 20, 32, 0.92) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  color: #e2e8f0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] html body .workspace > header button:hover,html[data-theme="dark"] html body .workspace > header a:hover {
  border-color: rgba(45, 212, 191, 0.55) !important;
  color: #ffffff !important;
}

/* 2. Left Sidebar: inactive buttons transparent, ONLY active button glowing blue 3D pill */
html[data-theme="dark"] html body aside.rail nav.infinity-navigation button[data-page],html[data-theme="dark"] html body aside.rail .infinity-navigation button {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 1px solid transparent !important;
  color: #94a3b8 !important;
}
html body aside.rail nav.infinity-navigation button[data-page]::before {
  display: none !important;
}
html[data-theme="dark"] html body aside.rail nav.infinity-navigation button[data-page].active,html[data-theme="dark"] html body aside.rail nav.infinity-navigation button[data-page].is-active,html[data-theme="dark"] html body aside.rail nav.infinity-navigation button[data-page][aria-current="page"] {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(96, 165, 250, 0.55) !important;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}
/* ===== 100% GUARANTEED SIDEBAR FIX (IMAGE_33CD57) ===== */
html[data-theme="dark"] nav.infinity-navigation button,html[data-theme="dark"] nav.app-navigation button,html[data-theme="dark"] button[data-page] {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  width: 100% !important;
  padding: 10px 13px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 1px solid transparent !important;
  color: #94a3b8 !important;
  text-align: left !important;
}
html[data-theme="dark"] button[data-page]:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}
html[data-theme="dark"] button[data-page="charts"] {
  color: #2dd4bf !important;
}
html[data-theme="dark"] button[data-page="screener"] {
  color: #38bdf8 !important;
  margin-top: 6px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(148, 163, 184, 0.16) !important;
}
html[data-theme="dark"] button[data-page].active,html[data-theme="dark"] button[data-page].is-active,html[data-theme="dark"] button[data-page][aria-current="page"],html[data-theme="dark"] nav.infinity-navigation button.active {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: 1px solid rgba(129, 140, 248, 0.55) !important;
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}
/* ===== SCREENER DARK MODE FIX (READABLE STOCK NAMES + DARK HEADERS) ===== */
html[data-theme="dark"] .market-highlights > * > :first-child,html[data-theme="dark"] .market-highlights header,html[data-theme="dark"] .market-highlights .card-head,html[data-theme="dark"] .market-highlights .mh-head {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(20, 32, 52, 0.92)) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .market-highlights span,html[data-theme="dark"] .market-highlights a,html[data-theme="dark"] .market-highlights strong,html[data-theme="dark"] .market-highlights .sym,html[data-theme="dark"] .market-highlights .badge,html[data-theme="dark"] .market-highlights .pill {
  background-color: rgba(15, 23, 42, 0.88) !important;
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}
html[data-theme="dark"] .notice,html[data-theme="dark"] [class*="stream" i],html[data-theme="dark"] [id*="stream" i] {
  background: rgba(15, 23, 42, 0.94) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(45, 212, 191, 0.25) !important;
}
/* ===== SCREENER BOTTOM CARDS (SECTOR STRENGTH + STOCKS IN FOCUS) DARK FIX ===== */
html[data-theme="dark"] .panel-head {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(20, 32, 52, 0.92)) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .panel-head h2 {
  color: #f8fafc !important;
}
html[data-theme="dark"] .panel-head p {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .stock-panel td:first-child a,html[data-theme="dark"] .stock-panel td:first-child strong,html[data-theme="dark"] .stock-panel td:first-child span,html[data-theme="dark"] .stock-panel td:first-child button:first-child {
  background: transparent !important;
  background-color: transparent !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .stock-panel td[class*="up" i],html[data-theme="dark"] .stock-panel td[class*="pos" i],html[data-theme="dark"] .stock-panel td[class*="gain" i] {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #34d399 !important;
}
html[data-theme="dark"] .stock-panel td[class*="down" i],html[data-theme="dark"] .stock-panel td[class*="neg" i],html[data-theme="dark"] .stock-panel td[class*="loss" i] {
  background: rgba(244, 63, 94, 0.18) !important;
  color: #fb7185 !important;
}
html[data-theme="dark"] .stock-panel tbody tr:hover,html[data-theme="dark"] .stock-panel tbody tr:hover td {
  background: rgba(45, 212, 191, 0.08) !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .stock-panel thead,html[data-theme="dark"] .stock-panel thead th {
  background: #0d1422 !important;
  color: #94a3b8 !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2) !important;
}
/* ===== REMOVE WHITE TICK BORDERS & POLISH % PILLS (SCREENER DARK) ===== */
html[data-theme="dark"] .stock-panel td,
html[data-theme="dark"] .market-highlights * {
  outline: none !important;
}
html[data-theme="dark"] .stock-panel td[class*="tick" i],html[data-theme="dark"] .stock-panel td[class*="flash" i],html[data-theme="dark"] .stock-panel td[class*="up" i],html[data-theme="dark"] .stock-panel td[class*="down" i],html[data-theme="dark"] .market-highlights [class*="tick" i],html[data-theme="dark"] .market-highlights [class*="flash" i],html[data-theme="dark"] .market-highlights [class*="price" i] {
  border-color: transparent !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .stock-panel td:nth-child(4) span,html[data-theme="dark"] .stock-panel [class*="chg" i],html[data-theme="dark"] .stock-panel [class*="pct" i] {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .stock-panel td:nth-child(4) span[class*="neg" i],html[data-theme="dark"] .stock-panel td:nth-child(4) span[class*="down" i] {
  background: rgba(244, 63, 94, 0.16) !important;
  color: #fb7185 !important;
  border: 1px solid rgba(244, 63, 94, 0.35) !important;
}
/* ===== GOD-LEVEL 3D SCREENER UPGRADE (ZERO LAYOUT CHANGE) ===== */

/* Ambient 3D Obsidian-Teal Canvas Glow */
html[data-theme="dark"] main {
  background:
    radial-gradient(circle at 12% 8%, rgba(20, 184, 166, 0.12), transparent 36%),
    radial-gradient(circle at 88% 12%, rgba(56, 189, 248, 0.1), transparent 36%),
    radial-gradient(circle at 50% 85%, rgba(245, 158, 11, 0.06), transparent 45%) !important;
}

/* Deep 3D Elevated Cards (Controls, Stats, Movers, Replay, Panels) */
html[data-theme="dark"] .controls,html[data-theme="dark"] .date-controls,html[data-theme="dark"] .stats > article,html[data-theme="dark"] .market-highlights > *,html[data-theme="dark"] .panel,html[data-theme="dark"] .stock-panel,html[data-theme="dark"] [class*="replay" i] {
  position: relative !important;
  border-radius: 18px !important;
  background: linear-gradient(155deg, rgba(24, 34, 54, 0.94) 0%, rgba(11, 16, 27, 0.98) 100%) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow:
    0 22px 44px -10px rgba(0, 0, 0, 0.72),
    0 6px 16px -4px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -3px 0 rgba(0, 0, 0, 0.55) !important;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease !important;
}

/* Smooth 3D Hover Lift on Stat & Mover Cards */
html[data-theme="dark"] .stats > article:hover,html[data-theme="dark"] .market-highlights > *:hover {
  transform: translateY(-4px) !important;
  box-shadow:
    0 28px 54px -10px rgba(0, 0, 0, 0.8),
    0 0 26px rgba(20, 184, 166, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -3px 0 rgba(0, 0, 0, 0.6) !important;
}

/* Color-Coded 3D Rim Glows for 4 Stat Cards */
html[data-theme="dark"] .stats > article:nth-child(2) {
  border-top-color: rgba(52, 211, 153, 0.55) !important;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.7), 0 0 22px rgba(16,185,129,0.12), inset 0 1px 0 rgba(110,231,183,0.28), inset 0 -3px 0 rgba(0,0,0,0.55) !important;
}
html[data-theme="dark"] .stats > article:nth-child(3) {
  border-top-color: rgba(251, 113, 133, 0.55) !important;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.7), 0 0 22px rgba(244,63,94,0.12), inset 0 1px 0 rgba(253,164,175,0.28), inset 0 -3px 0 rgba(0,0,0,0.55) !important;
}
html[data-theme="dark"] .stats > article:nth-child(4) {
  border-top-color: rgba(56, 189, 248, 0.55) !important;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.7), 0 0 22px rgba(56,189,248,0.12), inset 0 1px 0 rgba(125,211,252,0.28), inset 0 -3px 0 rgba(0,0,0,0.55) !important;
}

/* Color-Coded 3D Top Glows for 4 Mover Cards */
html[data-theme="dark"] .market-highlights > *:nth-child(1) { border-top: 2px solid #10b981 !important; }
html[data-theme="dark"] .market-highlights > *:nth-child(2) { border-top: 2px solid #f43f5e !important; }
html[data-theme="dark"] .market-highlights > *:nth-child(3) { border-top: 2px solid #06b6d4 !important; }
html[data-theme="dark"] .market-highlights > *:nth-child(4) { border-top: 2px solid #f59e0b !important; }

/* Recessed 3D Inputs & Dropdowns */
html[data-theme="dark"] .controls select,html[data-theme="dark"] .controls input,html[data-theme="dark"] .date-controls input,html[data-theme="dark"] .panel select {
  background: linear-gradient(180deg, #070b13 0%, #0f1726 100%) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  color: #f1f5f9 !important;
}

/* Tactile 3D Push Buttons (Refresh, Load & Play, Export CSV, Copy, Chart) */
html[data-theme="dark"] main button {
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
  border: 1px solid rgba(148, 163, 184, 0.26) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5), 0 8px 16px -4px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  color: #f1f5f9 !important;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.16s ease !important;
}
html[data-theme="dark"] main button:hover {
  border-color: rgba(45, 212, 191, 0.55) !important;
  transform: translateY(-1px) !important;
}
html[data-theme="dark"] main button:active {
  transform: translateY(2px) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.55) !important;
}

/* Glowing 3D Primary Action Buttons (Refresh Data & Load & Play) */
html[data-theme="dark"] #refresh,html[data-theme="dark"] button[id*="refresh" i],html[data-theme="dark"] button[id*="play" i],html[data-theme="dark"] button[id*="load" i] {
  background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%) !important;
  border-color: rgba(94, 234, 212, 0.55) !important;
  box-shadow: 0 4px 0 rgba(8, 51, 68, 0.75), 0 10px 22px rgba(13, 148, 136, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
}

/* Fix last light-mint "READY TO LOAD" pill */
html[data-theme="dark"] [class*="status" i],html[data-theme="dark"] [id*="replayStatus" i] {
  background: rgba(13, 148, 136, 0.2) !important;
  color: #5eead4 !important;
  border: 1px solid rgba(45, 212, 191, 0.45) !important;
}
/* ===== FINAL 2 MICRO-POLISHES: COLORED % IN MOVERS + ROUNDED 3D SECTOR BARS ===== */

/* 1. Mover cards: Gainers % bright Green (#34d399), Losers % bright Red (#fb7185) */
html[data-theme="dark"] .market-highlights > *:nth-child(1) [class*="chg" i],html[data-theme="dark"] .market-highlights > *:nth-child(1) [class*="pct" i],html[data-theme="dark"] .market-highlights > *:nth-child(1) small,html[data-theme="dark"] .market-highlights > *:nth-child(3) [class*="chg" i],html[data-theme="dark"] .market-highlights > *:nth-child(3) [class*="pct" i],html[data-theme="dark"] .market-highlights > *:nth-child(3) small {
  color: #34d399 !important;
  background: transparent !important;
}
html[data-theme="dark"] .market-highlights > *:nth-child(2) [class*="chg" i],html[data-theme="dark"] .market-highlights > *:nth-child(2) [class*="pct" i],html[data-theme="dark"] .market-highlights > *:nth-child(2) small,html[data-theme="dark"] .market-highlights > *:nth-child(4) [class*="chg" i],html[data-theme="dark"] .market-highlights > *:nth-child(4) [class*="pct" i],html[data-theme="dark"] .market-highlights > *:nth-child(4) small {
  color: #fb7185 !important;
  background: transparent !important;
}

/* 2. Sector strength bars: fully rounded 3D pills + glowing depth */
html[data-theme="dark"] .panel [class*="zero" i],html[data-theme="dark"] .panel [class*="axis" i],html[data-theme="dark"] .panel [class*="mid" i] {
  background: rgba(148, 163, 184, 0.2) !important;
}
/* ===== SAFE FIX: COLORED % IN MOVERS + ROUNDED INNER SECTOR BARS ONLY ===== */

/* 1. Mover cards: Gainers % bright Green, Losers % bright Red */
html[data-theme="dark"] .market-highlights > *:nth-child(1) span:last-child,html[data-theme="dark"] .market-highlights > *:nth-child(3) span:last-child {
  color: #34d399 !important;
  background: transparent !important;
}
html[data-theme="dark"] .market-highlights > *:nth-child(2) span:last-child,html[data-theme="dark"] .market-highlights > *:nth-child(4) span:last-child {
  color: #fb7185 !important;
  background: transparent !important;
}

/* 2. Sirf andar ke chhote green/red sector bars gol + glowing (outer box bilkul touch nahi hoga) */
/* ===== INSTANT UNDO GIANT CIRCLE ===== */
/* ===== 3D PEARL / PORCELAIN LIGHT MODE FOR SCREENER ===== */
html[data-theme="light"] main {
  background:
    radial-gradient(circle at 14% 8%, rgba(20, 184, 166, 0.12), transparent 36%),
    radial-gradient(circle at 86% 10%, rgba(56, 189, 248, 0.11), transparent 36%),
    #eef2f7 !important;
}
html[data-theme="light"] .controls,html[data-theme="light"] .date-controls,html[data-theme="light"] .stats > article,html[data-theme="light"] .market-highlights > *,html[data-theme="light"] .panel,html[data-theme="light"] .stock-panel,html[data-theme="light"] [class*="replay" i] {
  border-radius: 18px !important;
  background: linear-gradient(158deg, #ffffff 0%, #f4f7fc 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow:
    0 18px 36px -10px rgba(15, 23, 42, 0.14),
    0 4px 10px -2px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 #ffffff,
    inset 0 -3px 0 rgba(15, 23, 42, 0.08) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}
html[data-theme="light"] .stats > article:hover,html[data-theme="light"] .market-highlights > *:hover {
  transform: translateY(-4px) !important;
  box-shadow:
    0 24px 44px -8px rgba(13, 148, 136, 0.18),
    inset 0 1px 0 #ffffff,
    inset 0 -3px 0 rgba(13, 148, 136, 0.14) !important;
}
html[data-theme="light"] .controls select,html[data-theme="light"] .controls input,html[data-theme="light"] .date-controls input,html[data-theme="light"] .panel select {
  background: linear-gradient(180deg, #e8eef6 0%, #f7faff 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 2px 5px rgba(15, 23, 42, 0.09), 0 1px 0 #ffffff !important;
}
html[data-theme="light"] main button {
  border-radius: 10px !important;
  box-shadow: 0 3px 0 rgba(15, 23, 42, 0.14), 0 6px 12px rgba(15, 23, 42, 0.08), inset 0 1px 0 #ffffff !important;
  transition: transform 0.14s ease !important;
}
html[data-theme="light"] main button:active {
  transform: translateY(2px) !important;
}

html[data-theme="dark"] .bar-plot>i{border-radius:999px!important;box-shadow:0 0 8px #34D39955}
html[data-theme="dark"] .bar-plot>i.neg{box-shadow:0 0 8px #FB718555}
html[data-theme="dark"] .leader-return.positive{color:#34D399!important}
html[data-theme="dark"] .leader-return.negative{color:#FB7185!important}
