/* Manual dark-theme fixes, loaded after the generated dark.css. */
html[data-theme=dark]{color-scheme:dark}
html[data-theme=dark] ::placeholder{color:#7f8a84!important}
/* logos are transparent PNGs drawn for white tiles */

/* inline SVG labels/numbers drawn with dark hard-coded fills */
html[data-theme=dark] svg text[fill^="#1"],html[data-theme=dark] svg text[fill^="#2"],html[data-theme=dark] svg text[fill^="#3"],html[data-theme=dark] svg text[fill^="#4"]{fill:#d9dfdb!important}
html[data-theme=dark] svg text[fill^="#6"],html[data-theme=dark] svg text[fill^="#7"],html[data-theme=dark] svg text[fill^="#8"],html[data-theme=dark] svg text[fill^="#a"]{fill:#a3ada7!important}
html[data-theme=dark] svg [fill="#fff"]:not(text),html[data-theme=dark] svg [fill="#ffffff"]:not(text){fill:#1c2027!important}
html[data-theme=dark] iframe{color-scheme:light}
/* menu / section tabs: navigation.js injects light colours with !important at runtime */
html[data-theme=dark] #nav a.active,html[data-theme=dark] #nav a[aria-current=page]{background:#1f3a2c!important;color:#8fe0b5!important}
html[data-theme=dark] #nav.has-pill a.active,html[data-theme=dark] #nav.has-pill a[aria-current=page]{background:transparent!important}
html[data-theme=dark] #nav .nav-pill{background:#1f3a2c!important;box-shadow:0 2px 12px #0008!important}
html[data-theme=dark] #nav a:hover{color:#8fe0b5!important}
html[data-theme=dark] .analysis-jumps a.section-selected,html[data-theme=dark] .analysis-jumps a[aria-current=location],html[data-theme=dark] .institution-jumps a.section-selected{background:#1f3a2c!important;color:#8fe0b5!important;border-color:#2f5a44!important}
/* data-driven palette colours that JS writes through variables */
html[data-theme=dark] .revenue-label{filter:brightness(2.1) saturate(1.1)}
html[data-theme=dark] .revenue-ring{filter:brightness(1.5) saturate(1.15)}
html[data-theme=dark] .revenue-ring .revenue-hole{filter:brightness(.667) saturate(.87)}
html[data-theme=dark] .revenue-key i{filter:brightness(1.7)}
/* black / dark logos get a light chip (class added by theme.js after measuring the image) */
html[data-theme=dark] img.logo-chip{background:#eef0f3!important;border-radius:9px;box-shadow:0 0 0 4px #eef0f3}
/* thin range track under 일간/52주 high-low */
html[data-theme=dark] .range .track{background:#343b47!important}
/* logos are full-bleed squares: a white backing only shows as a fringe */
html[data-theme=dark][data-theme=dark][data-theme=dark] img[src*="company-logo"],html[data-theme=dark][data-theme=dark][data-theme=dark] img[src*="toss-logos"],html[data-theme=dark][data-theme=dark][data-theme=dark] .company-logo.has-logo{background:transparent!important}
/* 밸류에이션 단계 칩: 현재 단계가 한눈에 보이게 */
html[data-theme=dark] #valuation-status .score-step.current{background:#5a2a2d!important}
html[data-theme=dark] #valuation-status .score-step.current span{color:#ffc4c4!important}
html[data-theme=dark] #valuation-status .score-step.current.tone-2{background:#51451f!important}
html[data-theme=dark] #valuation-status .score-step.current.tone-2 span{color:#ffe49a!important}
html[data-theme=dark] #valuation-status .score-step.current.tone-3,html[data-theme=dark] #valuation-status .score-step.current.tone-4{background:#1f5136!important}
html[data-theme=dark] #valuation-status .score-step.current.tone-3 span,html[data-theme=dark] #valuation-status .score-step.current.tone-4 span{color:#b6f0cd!important}
