/* Smart Shrimp Log — Global Background System v1
   Owner direction: one professional green background family across the authenticated app.
   Login remains its own visual authority. Presentation only; no data/business semantics. */

:root{
  --ssl-app-canvas:var(--penqo-color-bg-canvas,#F9FAFB);
  --ssl-app-canvas-soft:var(--penqo-color-surface-secondary,#F1F4F7);
}

html{
  background:var(--ssl-app-canvas)!important;
}

/* One shared app atmosphere.
   This direct body override intentionally supersedes every legacy app-background image.
   Login stays visually isolated because its full-screen shell paints its own opaque image. */
body:before{
  content:""!important;
  position:fixed!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  z-index:-2!important;
  pointer-events:none!important;
  background:var(--ssl-app-canvas)!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
  background-position:center top!important;
}

body:after{
  content:""!important;
  position:fixed!important;
  inset:0!important;
  z-index:-1!important;
  pointer-events:none!important;
  background:none!important;
}

/* Remove page-family canvas conflicts. Cards, heroes and functional surfaces keep their own authority. */
body #app,
body .shell,
body .shell>.content,
body .content,
body .simple-os,
body .simple-content,
body .shell.pond-detail-shell,
body .shell.farm-level-shell,
body .shell.home-shell{
  background:transparent!important;
}

body .shell.pond-detail-shell,
body .shell.farm-level-shell,
body .shell.home-shell{
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}

/* Kill legacy page-level photo backgrounds, but preserve hero/card artwork. */
body .marix-reference-shell .content{
  background:transparent!important;
}
body .marix-home:before{
  background:none!important;
  background-image:none!important;
  opacity:0!important;
}
body .marix-home{
  background:transparent!important;
}

/* Final leak guard: legacy Golden Master paints a full-page farm photo on the
   shell pseudo-element. Disable only this page-canvas painter; hero/card media
   continue to own their own imagery. */
body{
  background:transparent!important;
  background-image:none!important;
}
body .shell.farm-level-shell::before,
body .shell.home-shell::before{
  content:none!important;
  display:none!important;
  background:none!important;
  background-image:none!important;
  opacity:0!important;
}
:root[data-theme="dark"] body .shell.farm-level-shell::before,
:root[data-theme="dark"] body .shell.home-shell::before{
  content:none!important;
  display:none!important;
  background:none!important;
  background-image:none!important;
  opacity:0!important;
}

/* Keep information surfaces calm and legible against the shared canvas. */
body .panel,
body .pond-card,
body .farm-card,
body .inventory-card,
body .stat-card,
body .module-card,
body .warehouse-table-panel{
  --ssl-global-card-edge:var(--penqo-color-border-default,#DFE5EC);
}

@media (max-width:900px){
  body:before{
    background:var(--ssl-app-canvas)!important;
  }
  body:after{
    background:none!important;
  }
}

:root[data-theme="dark"]{--ssl-app-canvas:var(--ssl-bg-page)}
:root[data-theme="dark"] html{
  background:var(--ssl-app-canvas)!important;
}
:root[data-theme="dark"] body:before{
  background:var(--ssl-app-canvas)!important;
}
:root[data-theme="dark"] body:after{
  background:none!important;
}
