/* DupontMaster appearance. All dark overrides are screen-only.
   Surfaces and semantic tones keep the page hierarchy and avoid blanket inversion. */
#dupont-appearance{position:relative;z-index:90;font:14px system-ui,-apple-system,sans-serif;flex:none}
#dupont-appearance-host{display:flex;align-items:center;flex:none}
body > #dupont-appearance{position:fixed;right:16px;bottom:calc(96px + env(safe-area-inset-bottom,0px));z-index:2147483000}
#dupont-appearance-trigger{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid transparent;border-radius:10px;background:transparent;color:#cbd5e1;cursor:pointer;font-size:22px;line-height:1}
#dupont-appearance-trigger:hover,#dupont-appearance-trigger[aria-expanded=true]{background:rgba(255,255,255,.1);color:#fff}
body > #dupont-appearance #dupont-appearance-trigger{border:1px solid #cbd5e1;background:#fff;color:#334155;box-shadow:0 3px 14px #0002;border-radius:50%}
#dupont-appearance-menu{position:absolute;right:0;top:calc(100% + 8px);width:156px;padding:6px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;box-shadow:0 8px 30px #0003}
body > #dupont-appearance #dupont-appearance-menu{top:auto;bottom:50px}
#dupont-appearance-menu[hidden]{display:none}
#dupont-appearance-menu button{display:block;width:100%;text-align:left;padding:10px;border:0;border-radius:8px;background:transparent;color:#334155;cursor:pointer}
#dupont-appearance-menu button:hover{background:#f1f5f9}
#dupont-appearance-menu button[aria-pressed=true]{background:#dbeafe;color:#1d4ed8;font-weight:650}
@media(max-width:450px){#dupont-appearance-trigger{width:34px;height:38px}#dupont-appearance-menu{right:-10px}}
@media screen{
html[data-appearance=dark]{
  --dm-page:#111827;--dm-surface:#1e293b;--dm-surface-alt:#24344a;
  --dm-muted-panel:#293b53;--dm-border:#3a4c64;--dm-border-strong:#50637c;
  --dm-text:#edf3fb;--dm-secondary:#c3d1e3;--dm-muted:#a7b8ce;
  --dm-link:#8ebcff;--dm-blue-surface:#203752;--dm-rose-ink:#f0b7bf;--dm-green-ink:#9fd3b8;--dm-amber-ink:#e7c98c;
  --dm-green-surface:#1b3531;--dm-amber-surface:#3a3027;--dm-rose-surface:#382632;
  background:var(--dm-page);color-scheme:dark;
}
html[data-appearance=dark] body,
html[data-appearance=dark] #root,
html[data-appearance=dark] [data-mobile-shell]{background-color:var(--dm-page)!important;color:var(--dm-text)}
html[data-appearance=dark] [class~="bg-white"],html[data-appearance=dark] [class~="bg-white/95"],html[data-appearance=dark] [class~="bg-white/90"],html[data-appearance=dark] [class~="bg-white/80"]{background-color:var(--dm-surface)!important}
html[data-appearance=dark] [class~="bg-slate-50"],html[data-appearance=dark] [class~="bg-gray-50"],html[data-appearance=dark] [class~="bg-neutral-50"],html[data-appearance=dark] [class~="bg-zinc-50"]{background-color:#172335!important}
html[data-appearance=dark] [class~="bg-slate-50/95"],html[data-appearance=dark] [class~="bg-slate-50/80"],html[data-appearance=dark] [class~="bg-slate-50/70"],html[data-appearance=dark] [class~="bg-slate-50/60"],html[data-appearance=dark] [class~="bg-slate-50/40"],html[data-appearance=dark] [class~="bg-gray-50/80"]{background-color:var(--dm-surface-alt)!important}
html[data-appearance=dark] [class~="bg-slate-100"],html[data-appearance=dark] [class~="bg-gray-100"],html[data-appearance=dark] [class~="bg-neutral-100"],html[data-appearance=dark] [class~="bg-zinc-100"],html[data-appearance=dark] [class~="bg-slate-200"],html[data-appearance=dark] [class~="bg-gray-200"],html[data-appearance=dark] [class~="bg-slate-300"],html[data-appearance=dark] [class~="bg-gray-300"]{background-color:var(--dm-muted-panel)!important}
html[data-appearance=dark] [class~="bg-blue-50"],html[data-appearance=dark] [class~="bg-blue-50/70"],html[data-appearance=dark] [class~="bg-blue-50/60"],html[data-appearance=dark] [class~="bg-blue-50/50"],html[data-appearance=dark] [class~="bg-blue-50/30"],html[data-appearance=dark] [class~="bg-blue-50/25"],html[data-appearance=dark] [class~="bg-indigo-50"],html[data-appearance=dark] [class~="bg-indigo-50/50"],html[data-appearance=dark] [class~="bg-blue-100"],html[data-appearance=dark] [class~="bg-indigo-100"]{background-color:var(--dm-blue-surface)!important}
html[data-appearance=dark] [class~="bg-emerald-50"],html[data-appearance=dark] [class~="bg-emerald-50/60"],html[data-appearance=dark] [class~="bg-emerald-50/50"],html[data-appearance=dark] [class~="bg-emerald-100"],html[data-appearance=dark] [class~="bg-green-50"],html[data-appearance=dark] [class~="bg-green-100"]{background-color:var(--dm-green-surface)!important}
html[data-appearance=dark] [class~="bg-amber-50"],html[data-appearance=dark] [class~="bg-amber-50/50"],html[data-appearance=dark] [class~="bg-amber-50/60"],html[data-appearance=dark] [class~="bg-amber-100"],html[data-appearance=dark] [class~="bg-yellow-50"],html[data-appearance=dark] [class~="bg-yellow-100"]{background-color:var(--dm-amber-surface)!important}
html[data-appearance=dark] [class~="bg-rose-50"],html[data-appearance=dark] [class~="bg-rose-50/70"],html[data-appearance=dark] [class~="bg-rose-100"],html[data-appearance=dark] [class~="bg-red-50"],html[data-appearance=dark] [class~="bg-red-100"]{background-color:var(--dm-rose-surface)!important}
html[data-appearance=dark] [class~="text-slate-950"],html[data-appearance=dark] [class~="text-slate-900"],html[data-appearance=dark] [class~="text-slate-800"],html[data-appearance=dark] [class~="text-gray-950"],html[data-appearance=dark] [class~="text-gray-900"],html[data-appearance=dark] [class~="text-gray-800"],html[data-appearance=dark] [class~="text-zinc-900"],html[data-appearance=dark] [class~="text-black"]{color:var(--dm-text)!important}
html[data-appearance=dark] [class~="text-slate-700"],html[data-appearance=dark] [class~="text-slate-600"],html[data-appearance=dark] [class~="text-gray-700"],html[data-appearance=dark] [class~="text-gray-600"],html[data-appearance=dark] [class~="text-neutral-700"]{color:var(--dm-secondary)!important}
html[data-appearance=dark] [class~="text-slate-500"],html[data-appearance=dark] [class~="text-slate-400"],html[data-appearance=dark] [class~="text-gray-500"],html[data-appearance=dark] [class~="text-gray-400"]{color:var(--dm-muted)!important}
html[data-appearance=dark] [class~="text-slate-300"],html[data-appearance=dark] [class~="text-gray-300"]{color:#9eafc7!important}
html[data-appearance=dark] [class~="text-blue-900"],html[data-appearance=dark] [class~="text-blue-800"],html[data-appearance=dark] [class~="text-blue-700"],html[data-appearance=dark] [class~="text-blue-600"],html[data-appearance=dark] [class~="text-blue-500"],html[data-appearance=dark] [class~="text-indigo-900"],html[data-appearance=dark] [class~="text-indigo-700"],html[data-appearance=dark] [class~="text-indigo-600"]{color:var(--dm-link)!important}
html[data-appearance=dark] [class~="text-emerald-900"],html[data-appearance=dark] [class~="text-emerald-800"],html[data-appearance=dark] [class~="text-emerald-700"],html[data-appearance=dark] [class~="text-emerald-600"],html[data-appearance=dark] [class~="text-green-800"],html[data-appearance=dark] [class~="text-green-700"]{color:var(--dm-green-ink)!important}
html[data-appearance=dark] [class~="text-amber-900"],html[data-appearance=dark] [class~="text-amber-800"],html[data-appearance=dark] [class~="text-amber-700"],html[data-appearance=dark] [class~="text-amber-600"]{color:var(--dm-amber-ink)!important}
html[data-appearance=dark] [class~="text-rose-900"],html[data-appearance=dark] [class~="text-rose-800"],html[data-appearance=dark] [class~="text-rose-700"],html[data-appearance=dark] [class~="text-rose-600"],html[data-appearance=dark] [class~="text-red-900"],html[data-appearance=dark] [class~="text-red-800"],html[data-appearance=dark] [class~="text-red-700"]{color:var(--dm-rose-ink)!important}
html[data-appearance=dark] [class~="border-slate-100"],html[data-appearance=dark] [class~="border-slate-200"],html[data-appearance=dark] [class~="border-slate-300"],html[data-appearance=dark] [class~="border-gray-100"],html[data-appearance=dark] [class~="border-gray-200"],html[data-appearance=dark] [class~="border-gray-300"],html[data-appearance=dark] [class~="border-neutral-200"]{border-color:var(--dm-border)!important}
html[data-appearance=dark] [class~="border-blue-100"],html[data-appearance=dark] [class~="border-blue-200"],html[data-appearance=dark] [class~="border-blue-300"],html[data-appearance=dark] [class~="border-indigo-100"],html[data-appearance=dark] [class~="border-indigo-200"]{border-color:#43668e!important}
html[data-appearance=dark] [class~="border-emerald-100"],html[data-appearance=dark] [class~="border-emerald-200"],html[data-appearance=dark] [class~="border-green-200"]{border-color:#356a59!important}
html[data-appearance=dark] [class~="border-amber-100"],html[data-appearance=dark] [class~="border-amber-200"],html[data-appearance=dark] [class~="border-yellow-200"]{border-color:#866941!important}
html[data-appearance=dark] [class~="border-rose-100"],html[data-appearance=dark] [class~="border-rose-200"],html[data-appearance=dark] [class~="border-red-200"]{border-color:#82516a!important}
html[data-appearance=dark] [class~="divide-slate-100"] > :not([hidden]) ~ :not([hidden]),html[data-appearance=dark] [class~="divide-slate-200"] > :not([hidden]) ~ :not([hidden]){border-color:var(--dm-border)!important}
html[data-appearance=dark] [class~="from-blue-50"]{--tw-gradient-from:#1b324b var(--tw-gradient-from-position)!important;--tw-gradient-to:rgb(27 50 75 / 0) var(--tw-gradient-to-position)!important}
html[data-appearance=dark] [class~="to-white"]{--tw-gradient-to:var(--dm-surface) var(--tw-gradient-to-position)!important}
html[data-appearance=dark] [class~="from-indigo-50"]{--tw-gradient-from:#2a3050 var(--tw-gradient-from-position)!important;--tw-gradient-to:rgb(42 48 80 / 0) var(--tw-gradient-to-position)!important}
html[data-appearance=dark] [class~="from-slate-50"]{--tw-gradient-from:#1b293b var(--tw-gradient-from-position)!important;--tw-gradient-to:rgb(27 41 59 / 0) var(--tw-gradient-to-position)!important}
html[data-appearance=dark] [class~="to-slate-50"]{--tw-gradient-to:#172335 var(--tw-gradient-to-position)!important}
html[data-appearance=dark] [class~="to-blue-50"]{--tw-gradient-to:var(--dm-blue-surface) var(--tw-gradient-to-position)!important}
html[data-appearance=dark] [class~="hover:bg-slate-50"]:hover,html[data-appearance=dark] [class~="hover:bg-slate-50/60"]:hover,html[data-appearance=dark] [class~="hover:bg-slate-50/70"]:hover,html[data-appearance=dark] [class~="hover:bg-gray-50"]:hover,html[data-appearance=dark] [class~="hover:bg-white"]:hover{background-color:#30435d!important}
html[data-appearance=dark] [class~="hover:bg-blue-50"]:hover,html[data-appearance=dark] [class~="hover:bg-blue-50/30"]:hover,html[data-appearance=dark] [class~="hover:bg-blue-50/70"]:hover,html[data-appearance=dark] [class~="hover:bg-blue-100"]:hover{background-color:#29496f!important}
html[data-appearance=dark] [class~="hover:bg-slate-100"]:hover,html[data-appearance=dark] [class~="active:bg-slate-100"]:active{background-color:#354a63!important}
html[data-appearance=dark] [class~="hover:text-slate-800"]:hover,html[data-appearance=dark] [class~="active:text-slate-800"]:active{color:var(--dm-text)!important}
html[data-appearance=dark] [class~="hover:text-blue-700"]:hover,html[data-appearance=dark] [class~="hover:text-blue-600"]:hover{color:#b6d5ff!important}
html[data-appearance=dark] button:disabled,html[data-appearance=dark] input:disabled,html[data-appearance=dark] select:disabled{cursor:not-allowed}
html[data-appearance=dark] input:not([type="checkbox"]):not([type="radio"]),html[data-appearance=dark] textarea,html[data-appearance=dark] select{background-color:#24344a!important;color:var(--dm-text)!important;border-color:var(--dm-border-strong)!important}
html[data-appearance=dark] input::placeholder,html[data-appearance=dark] textarea::placeholder{color:#9fb0c6!important}
html[data-appearance=dark] input[type="checkbox"],html[data-appearance=dark] input[type="radio"]{accent-color:#558bf1}
html[data-appearance=dark] table{color:var(--dm-secondary)}
html[data-appearance=dark] table tbody tr:hover{background-color:#26364c}
html[data-appearance=dark] table thead{color:var(--dm-muted)}
html[data-appearance=dark] .recharts-cartesian-grid line,html[data-appearance=dark] .recharts-cartesian-grid path,html[data-appearance=dark] .recharts-reference-line line{stroke:#3a4c64!important}
/* Chart labels follow their own series contrast; axes and legends styled below. */
html[data-appearance=dark] .recharts-pie-sector path,html[data-appearance=dark] .recharts-sector{stroke:var(--dm-surface)!important}
html[data-appearance=dark] .recharts-default-tooltip{background:#1c2a3d!important;border:1px solid var(--dm-border)!important;box-shadow:0 8px 24px #0005!important;border-radius:8px!important}
html[data-appearance=dark] .recharts-default-tooltip *,html[data-appearance=dark] .recharts-tooltip-label,html[data-appearance=dark] .recharts-tooltip-item{color:var(--dm-text)!important}
html[data-appearance=dark] .recharts-tooltip-wrapper{color:var(--dm-text)!important}
html[data-appearance=dark] #contact-us{background-color:var(--dm-page)!important}
html[data-appearance=dark] #contact-us [class~="bg-gradient-to-r"]{background-color:var(--dm-surface)!important}
html[data-appearance=dark] [data-mobile-primary-nav]{background:rgba(22,33,49,.97)!important;border-color:var(--dm-border)!important;box-shadow:0 -6px 24px #050b1740}
html[data-appearance=dark] [data-mobile-primary-nav] button[aria-current="page"]{background-color:#294569!important;color:#9fc8ff!important}
html[data-appearance=dark] [data-mobile-primary-nav] button:not([aria-current="page"]){color:var(--dm-muted)!important}
html[data-appearance=dark] [data-mobile-shell] main{color:var(--dm-text)}
html[data-appearance=dark] #dupont-appearance-menu{background:var(--dm-surface)!important;color:var(--dm-text)!important;border-color:var(--dm-border)!important}
html[data-appearance=dark] #dupont-appearance-menu button{color:var(--dm-text)!important}
html[data-appearance=dark] #dupont-appearance-menu button:hover{background:#344861!important}
html[data-appearance=dark] #dupont-appearance-menu button[aria-pressed="true"]{background:#294569!important;color:#b3d4ff!important}
html[data-appearance=dark] body > #dupont-appearance #dupont-appearance-trigger{background:var(--dm-surface)!important;color:var(--dm-text)!important;border-color:var(--dm-border)!important}
/* Complete fractional light backgrounds that were previously leaking in night mode. */
html[data-appearance=dark] [class~="bg-emerald-50/70"],
html[data-appearance=dark] [class~="bg-emerald-50/80"],
html[data-appearance=dark] [class~="bg-green-50/70"]{background-color:var(--dm-green-surface)!important}
html[data-appearance=dark] [class~="bg-amber-50/70"],
html[data-appearance=dark] [class~="bg-yellow-50/70"]{background-color:var(--dm-amber-surface)!important}
html[data-appearance=dark] [class~="bg-gray-50/60"],
html[data-appearance=dark] [class~="bg-gray-50/70"],
html[data-appearance=dark] [class~="bg-gray-50/90"],
html[data-appearance=dark] [class~="bg-white/70"]{background-color:#26364b!important}
html[data-appearance=dark] [class~="bg-indigo-50/70"],
html[data-appearance=dark] [class~="bg-indigo-50/40"],
html[data-appearance=dark] [class~="bg-blue-50/40"]{background-color:#253b58!important}
html[data-appearance=dark] [class~="text-green-600"],
html[data-appearance=dark] [class~="text-emerald-500"]{color:var(--dm-green-ink)!important}
html[data-appearance=dark] [class~="text-red-600"],
html[data-appearance=dark] [class~="text-rose-500"]{color:var(--dm-rose-ink)!important}
/* Give status emphasis a restrained dark surface without changing the meaning of red/green financial figures. */
html[data-appearance=dark] [data-dark-change-tone="positive"]{
  background:#203832!important;border-color:#46695b!important;color:#b4ddc8!important;
}
html[data-appearance=dark] [data-dark-change-tone="warning"]{
  background:#392832!important;border-color:#78505c!important;color:#f0b7bf!important;
}
html[data-appearance=dark] [data-dark-change-tone="neutral"]{
  background:#202e41!important;border-color:var(--dm-border)!important;color:var(--dm-secondary)!important;
}
html[data-appearance=dark] [data-dark-dividend-summary]{
  background:#203832!important;border:1px solid #426353!important;
}
html[data-appearance=dark] [data-dark-dividend-summary] [class~="text-emerald-700"]{
  color:#b4ddc8!important;
}
/* Quiet, consistent treatment for the time-range/series controls. */
html[data-appearance=dark] [data-dark-trend-controls]{
  background:#26364b!important;border-color:#435773!important;
}
html[data-appearance=dark] [data-dark-trend-controls] label[class~="bg-white/70"]{
  background:#25354b!important;
}
html[data-appearance=dark] [data-dark-series-row]{
  background:#26364b!important;border-color:#425670!important;
}
html[data-appearance=dark] [data-dark-series-row][class~="bg-indigo-50/70"]{
  background:#293d5d!important;border-color:#6685b1!important;
}
/* Remove the original pale strip around the sticky second-level company navigation. */
html[data-appearance=dark] .no-print.max-w-7xl > div.overflow-x-auto,
html[data-appearance=dark] [data-mobile-research-tabs]{
  background:rgba(17,24,39,.96)!important;border-bottom-color:var(--dm-border)!important;
}
html[data-appearance=dark] [data-mobile-research-tabs] > div:first-child{
  background:#28374d!important;border:1px solid #3c506c!important;
}
html[data-appearance=dark] [data-mobile-research-tabs] > div:first-child > button[class~="bg-white"]{
  background:#19263a!important;color:#aaccff!important;
}
/* Secondary action buttons should not look neon on a dim screen. */
html[data-appearance=dark] [class~="bg-emerald-600"]{
  background-color:#297b67!important;color:#f6fbfa!important;
}
html[data-appearance=dark] [class~="hover:bg-emerald-700"]:hover{
  background-color:#236452!important;
}
/* The global rule for every Recharts SVG text was washing out labels inside colored bars.
   Restore component label colors and style axes/legends independently. */
html[data-appearance=dark] [data-dark-stack-chart] .recharts-label-list text,
html[data-appearance=dark] [data-dark-stack-chart] .recharts-label-list .recharts-label{
  fill:#f3f7ff!important;stroke:rgba(22,33,51,.7);stroke-width:1px;paint-order:stroke fill;
}
html[data-appearance=dark] .recharts-cartesian-axis-tick-value,
html[data-appearance=dark] .recharts-legend-item-text,
html[data-appearance=dark] .recharts-cartesian-axis-label text{
  fill:#bccbdc!important;color:#bccbdc!important;
}
/* Sankey nodes use inline dark labels originally intended for a white canvas. */
html[data-appearance=dark] [class~="group/sankey"] svg > g > text:first-of-type{
  fill:#eaf1f9!important;
}
html[data-appearance=dark] [class~="group/sankey"] svg > g > text:nth-of-type(2){
  fill:#b1c0d3!important;
}
html[data-appearance=dark] [class~="group/sankey"] svg text tspan:first-child{
  fill:#e5edf6!important;
}
html[data-appearance=dark] [class~="group/sankey"] svg text tspan:nth-child(2){
  fill:#aebed2!important;
}
html[data-appearance=dark] [class~="group/sankey"] svg tspan[data-dark-yoy="up"]{
  fill:#f2a0ad!important;
}
html[data-appearance=dark] [class~="group/sankey"] svg tspan[data-dark-yoy="down"]{
  fill:#a0d8bb!important;
}
html[data-appearance=dark] [class~="group/sankey"] svg tspan[data-dark-yoy="flat"]{
  fill:#b1c0d3!important;
}

/* 2026-11-07: financial comparison summary cards; muted warm surfaces with readable figures. */
html[data-appearance=dark] [data-dark-revenue-change]{
  background-color:#203754!important;border:1px solid #385476;
}
html[data-appearance=dark] [data-dark-revenue-change] [class~="text-blue-700"]{
  color:#a9ceff!important;
}
html[data-appearance=dark] [data-dark-price-change]{
  background-color:#3b2e2b!important;border:1px solid #69504a;
}
html[data-appearance=dark] [data-dark-price-change] [class~="text-orange-700"]{
  color:#ffd1ae!important;
}
html[data-appearance=dark] [data-dark-price-change] [class~="text-slate-500"],
html[data-appearance=dark] [data-dark-revenue-change] [class~="text-slate-500"]{
  color:#c3d0e1!important;
}
/* Shareholder return totals and CAGR must remain legible with semantic A-share colors. */
html[data-appearance=dark] [data-dark-return-period]{
  background:#202d40!important;
}
html[data-appearance=dark] [data-dark-return-value="positive"]{
  color:#efb1bc!important;
  opacity:1!important;
}
html[data-appearance=dark] [data-dark-return-value="negative"]{
  color:#a3dbc1!important;
  opacity:1!important;
}
html[data-appearance=dark] [data-dark-return-value="neutral"]{
  color:#d1ddec!important;
  opacity:1!important;
}
html[data-appearance=dark] [data-dark-return-period] [class~="text-slate-400"]{
  color:#aabbd0!important;
}
/* ROE decomposition table: replace bright dividing lines with the existing card border tone. */
html[data-appearance=dark] [data-dark-dupont-table]{
  border-color:#3a4c64!important;
}
html[data-appearance=dark] [data-dark-dupont-table] thead{
  background-color:#26364b!important;
}
html[data-appearance=dark] [data-dark-dupont-table] tbody{
  --tw-divide-opacity:1;
}
html[data-appearance=dark] [data-dark-dupont-table] tbody > tr + tr{
  border-top-color:#3a4c64!important;
  border-bottom-color:#3a4c64!important;
}
html[data-appearance=dark] [data-dark-dupont-table] tbody tr{
  background:#1e293b!important;
}
html[data-appearance=dark] [data-dark-dupont-table] tbody tr[class~="bg-indigo-50/40"]{
  background:#263850!important;
}
/* DCF FCF labels: no luminous white halos, but sufficient contrast on dark bars. */
html[data-appearance=dark] #valuation-cash-flow svg text[data-dark-cashflow-label]{
  stroke:none!important;
  stroke-width:0!important;
  paint-order:normal!important;
}
html[data-appearance=dark] #valuation-cash-flow svg text[data-dark-cashflow-label="ocf"]{
  fill:#b4d8ff!important;
}
html[data-appearance=dark] #valuation-cash-flow svg text[data-dark-cashflow-label="fcf"]{
  fill:#c5baff!important;
}
html[data-appearance=dark] #valuation-cash-flow svg text[data-dark-cashflow-label="growth"]{
  fill:#f1bf77!important;
}


/* Holdings-only semantic numbers: keep the dark palette but restore readable returns, dividends and valuation. */
html[data-appearance=dark] [data-portfolio-holdings] [data-portfolio-ink="positive"]{
  color:#ffc0cb!important;opacity:1!important;
}
html[data-appearance=dark] [data-portfolio-holdings] [data-portfolio-ink="negative"]{
  color:#b5efd2!important;opacity:1!important;
}
html[data-appearance=dark] [data-portfolio-holdings] [data-portfolio-ink="dividend"]{
  color:#b5efd2!important;opacity:1!important;
}
html[data-appearance=dark] [data-portfolio-holdings] [data-portfolio-ink="valuation"],
html[data-appearance=dark] [data-portfolio-holdings] [data-portfolio-ink="neutral"]{
  color:#e8eff9!important;opacity:1!important;
}

}
@media print{#dupont-appearance{display:none!important}}

/* 盈亏笔记：资产结构在深色模式中采用与外层卡片相同的深色底，
   避免半透明 bg-slate-50/50 造成亮灰色大块突兀背景。 */
html[data-appearance=dark] [data-portfolio-asset-structure],
html[data-appearance=dark] [data-portfolio-trade-history] {
  background-color:var(--dm-surface)!important;
  border-color:var(--dm-border)!important;
}
html[data-appearance=dark] [data-portfolio-asset-structure] [class~="bg-slate-200"] {
  background-color:#344861!important;
}


/* 盈亏笔记和持仓明细：深色主题采用高对比度、符合A/H股习惯的盈红亏绿。 */
html[data-appearance=dark] [data-portfolio-journal] [data-portfolio-pnl-value="positive"],
html[data-appearance=dark] [data-portfolio-holdings] [data-portfolio-ink="positive"]{
  color:#ff7483!important;opacity:1!important;
}
html[data-appearance=dark] [data-portfolio-journal] [data-portfolio-pnl-value="negative"],
html[data-appearance=dark] [data-portfolio-holdings] [data-portfolio-ink="negative"]{
  color:#4adea5!important;opacity:1!important;
}
html[data-appearance=dark] [data-portfolio-journal] [data-portfolio-pnl-value="neutral"],
html[data-appearance=dark] [data-portfolio-holdings] [data-portfolio-ink="neutral"],
html[data-appearance=dark] [data-portfolio-holdings] [data-portfolio-ink="dividend"],
html[data-appearance=dark] [data-portfolio-holdings] [data-portfolio-ink="valuation"],
html[data-appearance=dark] [data-portfolio-holdings] [data-portfolio-ink="personal-income"]{
  color:#f1f5fa!important;opacity:1!important;
}
html[data-appearance=dark] [data-portfolio-holdings] table tbody td,
html[data-appearance=dark] [data-portfolio-holdings] table tfoot td{
  color:#f1f5fa!important;opacity:1!important;
}
html[data-appearance=dark] [data-portfolio-holdings] table td [class~="text-slate-400"],
html[data-appearance=dark] [data-portfolio-holdings] table td [class~="text-slate-500"],
html[data-appearance=dark] [data-portfolio-holdings] table td [class~="text-slate-600"],
html[data-appearance=dark] [data-portfolio-holdings] table td [class~="text-slate-700"],
html[data-appearance=dark] [data-portfolio-holdings] table td [class~="text-slate-800"]{
  color:#f1f5fa!important;opacity:1!important;
}
html[data-appearance=dark] [data-portfolio-holdings] [data-portfolio-overview-sidebar] [data-portfolio-ink="positive"]{
  color:#ff7483!important;
}
html[data-appearance=dark] [data-portfolio-holdings] [data-portfolio-overview-sidebar] [data-portfolio-ink="negative"]{
  color:#4adea5!important;
}

/* Portfolio-only iPad/Safari contrast: win over generic muted cell selectors.
   Keep financial semantics consistent in A/H markets: gain = red, loss = green. */
@media screen {
  html[data-appearance="dark"] [data-portfolio-holdings] table tbody td [data-portfolio-ink="positive"],
  html[data-appearance="dark"] [data-portfolio-holdings] table tfoot td [data-portfolio-ink="positive"],
  html[data-appearance="dark"] [data-portfolio-holdings] [data-portfolio-overview-performance] [data-portfolio-ink="positive"] {
    color:#ff7483!important;-webkit-text-fill-color:#ff7483!important;opacity:1!important;
  }
  html[data-appearance="dark"] [data-portfolio-holdings] table tbody td [data-portfolio-ink="negative"],
  html[data-appearance="dark"] [data-portfolio-holdings] table tfoot td [data-portfolio-ink="negative"],
  html[data-appearance="dark"] [data-portfolio-holdings] [data-portfolio-overview-performance] [data-portfolio-ink="negative"] {
    color:#4adea5!important;-webkit-text-fill-color:#4adea5!important;opacity:1!important;
  }
  html[data-appearance="dark"] [data-portfolio-holdings] table tbody td [data-portfolio-ink="personal-income"],
  html[data-appearance="dark"] [data-portfolio-holdings] table tfoot td [data-portfolio-ink="personal-income"],
  html[data-appearance="dark"] [data-portfolio-holdings] table tbody td [data-portfolio-ink="neutral"],
  html[data-appearance="dark"] [data-portfolio-holdings] table tfoot td [data-portfolio-ink="neutral"],
  html[data-appearance="dark"] [data-portfolio-holdings] [data-portfolio-overview-performance] [data-portfolio-ink="neutral"] {
    color:#f1f5fa!important;-webkit-text-fill-color:#f1f5fa!important;opacity:1!important;
  }
}

/* Allocation chart label colors were hard-coded for light backgrounds. */
@media screen {
  html[data-appearance="dark"] [data-portfolio-holdings] .dupont-allocation-chart svg g > text:first-of-type {
    fill:#e7f1ff!important;
  }
  html[data-appearance="dark"] [data-portfolio-holdings] .dupont-allocation-chart svg g > text:nth-of-type(2) {
    fill:#b5c8e0!important;
  }
}
