/* 批MKTPRGDEV097 / BUG-20261105-MKTPRG-001:
   Load before page content; preserve the saved module background until the full
   theme stylesheet arrives. Never hide the page or animate through a default. */
html[data-app-theme] { background-color: var(--app-page); }
html[data-app-theme]:not([data-app-theme="original"]) {
  --page: var(--app-page) !important;
  --panel: var(--app-panel) !important;
  --panel-deep: var(--app-field) !important;
  --chart-background-color: var(--app-page) !important;
}
html[data-app-theme]:not([data-app-theme="original"]) body {
  background-color: var(--app-page) !important;
}
/* The empty canvas is visible before draw data arrives; use the same page
   colour as the chart renderer rather than exposing its old dark backing. */
html[data-app-theme] :is(#klineCanvas, #missCanvas, #miniCanvas) {
  background-color: var(--app-page);
}
