/*
 * Dr.Prompt · shared PSD canvas pass (P9)
 *
 * The Creative Engine hero material is the product-wide visual canvas. Other
 * pages keep their information architecture and controls, but inherit the
 * same dark gradient, transparent chrome, and quiet image depth.
 */

:root {
  --df-p9-canvas-base: #272727;
  --df-p9-canvas-image: url("assets/directorflow-global-background-dark-mosaic-v2.webp");
}

#app[data-active-view]:not([data-active-view="home"]) {
  min-height: 100dvh !important;
  background-color: var(--df-p9-canvas-base) !important;
  background-image:
    linear-gradient(
      180deg,
      rgba(10, 9, 12, .08) 0,
      rgba(10, 9, 12, .16) 180px,
      rgba(39, 39, 39, .18) 320px,
      rgba(39, 39, 39, .68) 500px,
      var(--df-p9-canvas-base) 680px,
      var(--df-p9-canvas-base) 100%
    ),
    var(--df-p9-canvas-image) !important;
  background-position: center top, center top !important;
  background-size: 100% 100%, 100% auto !important;
  background-repeat: no-repeat !important;
}

#app[data-active-view]:not([data-active-view="home"]) > .shell,
#app[data-active-view]:not([data-active-view="home"]) .view,
#app[data-active-view]:not([data-active-view="home"]) .page-scroll {
  background-color: transparent !important;
  background-image: none !important;
}

/* Preserve the glass topbar over the shared image instead of introducing a
   second opaque page background. */
#app[data-active-view]:not([data-active-view="home"]) .topbar {
  background:
    linear-gradient(180deg, rgba(22, 18, 25, .24), rgba(8, 8, 11, .10)) !important;
  -webkit-backdrop-filter: blur(18px) saturate(116%) !important;
  backdrop-filter: blur(18px) saturate(116%) !important;
}

/* Existing content cards remain readable as separate inner surfaces; only
   the canvas behind them is shared. */
#app[data-active-view]:not([data-active-view="home"]) .panel,
#app[data-active-view]:not([data-active-view="home"]) .page-hero,
#app[data-active-view]:not([data-active-view="home"]) .template-use-workspace,
#app[data-active-view]:not([data-active-view="home"]) .task-session-board,
#app[data-active-view]:not([data-active-view="home"]) .model-service-workspace,
#app[data-active-view]:not([data-active-view="home"]) .project-log-page,
#app[data-active-view]:not([data-active-view="home"]) .schema-grid,
#app[data-active-view]:not([data-active-view="home"]) .workflow-board {
  background-color: transparent !important;
}

@media (max-width: 720px) {
  #app[data-active-view]:not([data-active-view="home"]) {
    background-size: 100% 720px, auto 620px !important;
    background-position: center top, center top !important;
  }
}
