/* ============================================================================
   Sto Field Intelligence — global surface consistency
   2026-08-07
   Loaded LAST on every screen so tool-specific legacy palettes cannot override
   the shared application shell/background.
   ========================================================================== */

/* Light mode uses the exact same neutral surfaces as the home dashboard. */
:root[data-theme="light"] {
  --bg:#F2F3F3 !important;
  --panel:#FFFFFF !important;
  --panel-2:#F7F8F8 !important;
  --raise:#EAECED !important;
  --line:#CFD3D5 !important;
  --line-soft:#DFE2E4 !important;
  --text:#171717 !important;
  --muted:#555B60 !important;
  --muted-2:#737A80 !important;
}

/* Auto gets the identical light palette when the OS is in light mode. */
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg:#F2F3F3 !important;
    --panel:#FFFFFF !important;
    --panel-2:#F7F8F8 !important;
    --raise:#EAECED !important;
    --line:#CFD3D5 !important;
    --line-soft:#DFE2E4 !important;
    --text:#171717 !important;
    --muted:#555B60 !important;
    --muted-2:#737A80 !important;
  }
}

/* Force the outer canvas to the shared app background. Individual cards,
   panels, forms and inputs continue to use --panel / --panel-2. */
:root[data-theme="light"] html,
:root[data-theme="light"] body {
  background:#F2F3F3 !important;
  background-color:#F2F3F3 !important;
}

@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] html,
  :root[data-theme="auto"] body {
    background:#F2F3F3 !important;
    background-color:#F2F3F3 !important;
  }
}

/* Timed mode resolves to light/dark via data-theme, so no special palette is
   necessary. Dark mode deliberately keeps its existing charcoal surfaces. */

@media print {
  html,body { background:#FFFFFF !important; }
}
