/*
 * Dr.Prompt · Functional pages surface pass (P1)
 *
 * The Creative Engine establishes the visual language for the product:
 * ambient background, transparent module boundaries, and only a few deep
 * inner surfaces where content needs focus. This layer brings the supporting
 * pages into that same language without changing their DOM, controls, or
 * behavior.
 */

:root {
  --df-fp-page-line: rgba(255, 255, 255, .105);
  --df-fp-page-line-strong: rgba(255, 255, 255, .15);
  --df-fp-module: rgba(18, 15, 29, .22);
  --df-fp-inner: rgba(10, 9, 17, .54);
  --df-fp-inner-soft: rgba(15, 13, 25, .36);
  --df-fp-hover: rgba(138, 105, 240, .065);
  --df-fp-active: rgba(138, 105, 240, .105);
}

/* Keep the same ambient space as Creative Engine on every non-creative page. */
#app#app[data-active-view="sessions"],
#app#app[data-active-view="templates"],
#app#app[data-active-view="guided"],
#app#app[data-active-view="rag"],
#app#app[data-active-view="agents"],
#app#app[data-active-view="prd"],
#app#app[data-active-view="logs"],
#app#app[data-active-view="setup"],
#app#app[data-active-view="api"] {
  background:
    radial-gradient(circle at 15% 8%, rgba(118, 88, 232, .105), transparent 34%),
    radial-gradient(circle at 84% 78%, rgba(73, 91, 170, .075), transparent 36%),
    #09090d !important;
}

#app#app[data-active-view="sessions"] .view,
#app#app[data-active-view="templates"] .view,
#app#app[data-active-view="guided"] .view,
#app#app[data-active-view="rag"] .view,
#app#app[data-active-view="agents"] .view,
#app#app[data-active-view="prd"] .view,
#app#app[data-active-view="logs"] .view,
#app#app[data-active-view="setup"] .view,
#app#app[data-active-view="api"] .view,
#app#app[data-active-view="sessions"] .page-scroll,
#app#app[data-active-view="templates"] .page-scroll,
#app#app[data-active-view="guided"] .page-scroll,
#app#app[data-active-view="rag"] .page-scroll,
#app#app[data-active-view="agents"] .page-scroll,
#app#app[data-active-view="prd"] .page-scroll,
#app#app[data-active-view="logs"] .page-scroll,
#app#app[data-active-view="setup"] .page-scroll,
#app#app[data-active-view="api"] .page-scroll {
  background: transparent !important;
}

/* One quiet outer frame instead of a stack of opaque grey cards. */
#app#app[data-active-view="sessions"] .task-session-board,
#app#app[data-active-view="templates"] .template-use-workspace,
#app#app[data-active-view="rag"] .schema-card,
#app#app[data-active-view="agents"] .agent-map-card,
#app#app[data-active-view="prd"] .band-card,
#app#app[data-active-view="api"] .page-hero,
#app#app[data-active-view="api"] .schema-card,
#app#app[data-active-view="guided"] .coming-soon-panel {
  border-color: var(--df-fp-page-line) !important;
  background: var(--df-fp-module) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .018) !important;
  backdrop-filter: blur(18px) saturate(112%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(112%) !important;
}

#app#app[data-active-view="templates"] .template-grid .template-card,
#app#app[data-active-view="rag"] .library-card,
#app#app[data-active-view="agents"] .rubric-grid > *,
#app#app[data-active-view="agents"] .agent-skill-grid > *,
#app#app[data-active-view="prd"] .workflow-board > *,
#app#app[data-active-view="rag"] .field-schema-grid > *,
#app#app[data-active-view="rag"] .lifecycle-grid > *,
#app#app[data-active-view="rag"] .admin-view-grid > *,
#app#app[data-active-view="api"] .api-card {
  border-color: var(--df-fp-page-line) !important;
  background: var(--df-fp-inner-soft) !important;
  box-shadow: none !important;
}

/* Supporting copy areas stay open; typography, not a grey fill, creates hierarchy. */
#app#app[data-active-view="sessions"] .task-session-toolbar,
#app#app[data-active-view="templates"] .template-use-copy,
#app#app[data-active-view="rag"] .section-intro,
#app#app[data-active-view="agents"] .section-intro,
#app#app[data-active-view="prd"] .section-intro {
  background: transparent !important;
  box-shadow: none !important;
}

/* Workbench list: separators and a light active wash, not individual cards. */
#app#app[data-active-view="sessions"] .task-session-board-head,
#app#app[data-active-view="sessions"] .session-selection-bar {
  background: transparent !important;
  border-color: var(--df-fp-page-line) !important;
}

#app#app[data-active-view="sessions"] .task-session-list,
#app#app[data-active-view="sessions"] .task-session-list .session-card.session-row {
  background: transparent !important;
  box-shadow: none !important;
}

#app#app[data-active-view="sessions"] .task-session-list .session-card.session-row:hover,
#app#app[data-active-view="sessions"] .task-session-list .session-card.session-row:focus-within {
  background: var(--df-fp-hover) !important;
}

#app#app[data-active-view="sessions"] .task-session-list .session-card.session-row.active {
  background: linear-gradient(90deg, var(--df-fp-active), transparent 54%) !important;
  box-shadow: inset 2px 0 0 rgba(166, 139, 255, .72) !important;
}

/* Prompt Library: only the editor is a deliberate deep inner surface. */
#app#app[data-active-view="templates"] .template-use-workspace {
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr) !important;
  gap: 24px !important;
  padding: 22px !important;
}

#app#app[data-active-view="templates"] .template-use-editor-card {
  border-color: var(--df-fp-page-line-strong) !important;
  background: var(--df-fp-inner) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025) !important;
  backdrop-filter: blur(14px) saturate(112%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(112%) !important;
}

#app#app[data-active-view="templates"] .template-editor,
#app#app[data-active-view="api"] .api-preview,
#app#app[data-active-view="rag"] .schema-code {
  border-color: var(--df-fp-page-line-strong) !important;
  background: rgba(7, 7, 12, .64) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02) !important;
}

#app#app[data-active-view="templates"] .template-grid .template-card:hover,
#app#app[data-active-view="templates"] .template-grid .template-card:focus-within {
  background: var(--df-fp-hover) !important;
  border-color: rgba(166, 139, 255, .32) !important;
}

/* Run History: a transparent operational ledger. */
#app#app[data-active-view="logs"] .project-log-page,
#app#app[data-active-view="logs"] .project-log-toolbar,
#app#app[data-active-view="logs"] .project-log-grid,
#app#app[data-active-view="logs"] .project-log-card,
#app#app[data-active-view="logs"] .project-log-card-open,
#app#app[data-active-view="logs"] .history-empty {
  background: transparent !important;
  box-shadow: none !important;
}

#app#app[data-active-view="logs"] .project-log-toolbar {
  border-color: var(--df-fp-page-line) !important;
}

#app#app[data-active-view="logs"] .project-log-filters input,
#app#app[data-active-view="logs"] .project-log-filters select,
#app#app[data-active-view="logs"] .project-log-more > summary {
  border-color: var(--df-fp-page-line-strong) !important;
  background: var(--df-fp-inner-soft) !important;
  box-shadow: none !important;
}

#app#app[data-active-view="logs"] .project-log-more > div,
#app#app[data-active-view="logs"] .project-log-detail {
  border-color: var(--df-fp-page-line-strong) !important;
  background: rgba(12, 10, 20, .86) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28) !important;
}

#app#app[data-active-view="logs"] .project-log-card-open:hover,
#app#app[data-active-view="logs"] .project-log-card-open:focus-visible {
  background: var(--df-fp-hover) !important;
}

/* Model Services: open navigation, one focused configuration surface. */
#app#app[data-active-view="setup"] .model-service-commandbar,
#app#app[data-active-view="setup"] .model-service-workspace,
#app#app[data-active-view="setup"] .model-service-nav {
  background: transparent !important;
  box-shadow: none !important;
}

#app#app[data-active-view="setup"] .model-service-commandbar {
  border-color: var(--df-fp-page-line) !important;
}

#app#app[data-active-view="setup"] .model-service-nav-item {
  background: transparent !important;
  border-color: var(--df-fp-page-line) !important;
}

#app#app[data-active-view="setup"] .model-service-nav-item.is-active,
#app#app[data-active-view="setup"] .model-service-nav-item:hover {
  background: linear-gradient(90deg, var(--df-fp-active), transparent) !important;
}

#app#app[data-active-view="setup"] .setup-provider-band {
  border-color: var(--df-fp-page-line-strong) !important;
  background: rgba(15, 13, 25, .40) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .022) !important;
  backdrop-filter: blur(18px) saturate(112%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(112%) !important;
}

#app#app[data-active-view="setup"] .provider-guide,
#app#app[data-active-view="setup"] .provider-config {
  background: transparent !important;
  box-shadow: none !important;
}

#app#app[data-active-view="setup"] .provider-config {
  border-color: var(--df-fp-page-line) !important;
}

#app#app[data-active-view="setup"] .setup-field input,
#app#app[data-active-view="setup"] .setup-field select,
#app#app[data-active-view="setup"] .setup-field textarea {
  background: var(--df-fp-inner) !important;
  border-color: var(--df-fp-page-line-strong) !important;
  box-shadow: none !important;
}

/* Avoid a solid panel edge at narrow widths while retaining readable grouping. */
@media (max-width: 760px) {
  #app#app[data-active-view="templates"] .template-use-workspace {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 16px !important;
  }

  #app#app[data-active-view="setup"] .setup-provider-band {
    background: rgba(15, 13, 25, .34) !important;
  }
}

/* Final cascade guard: legacy release layers also set important background-color
   values, so set the two surface longhands explicitly in this last layer. */
html body #app#app[data-active-view="sessions"] .task-session-board,
html body #app#app[data-active-view="templates"] .template-use-workspace,
html body #app#app[data-active-view="rag"] .schema-card,
html body #app#app[data-active-view="agents"] .agent-map-card,
html body #app#app[data-active-view="prd"] .band-card,
html body #app#app[data-active-view="api"] .page-hero,
html body #app#app[data-active-view="api"] .schema-card,
html body #app#app[data-active-view="guided"] .coming-soon-panel {
  background-color: var(--df-fp-module) !important;
  background-image: none !important;
  border-color: var(--df-fp-page-line) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .018) !important;
}

html body #app#app[data-active-view="logs"] .project-log-toolbar,
html body #app#app[data-active-view="logs"] .project-log-page,
html body #app#app[data-active-view="logs"] .project-log-grid,
html body #app#app[data-active-view="logs"] .project-log-card,
html body #app#app[data-active-view="logs"] .project-log-card-open,
html body #app#app[data-active-view="logs"] .history-empty,
html body #app#app[data-active-view="setup"] .model-service-commandbar,
html body #app#app[data-active-view="setup"] .model-service-workspace,
html body #app#app[data-active-view="setup"] .model-service-nav {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html body #app#app[data-active-view="setup"] .setup-provider-band {
  background-color: rgba(15, 13, 25, .40) !important;
  background-image: none !important;
  border-color: var(--df-fp-page-line-strong) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .022) !important;
}

/* P1 final specificity guard: the legacy PSD layers use two #app selectors
   plus :not() attribute selectors. Keep this last rule intentionally stronger
   so supporting pages actually inherit the same transparent Creative Engine
   atmosphere instead of falling back to the old grey frame. */
html body #app#app#app[data-active-view="sessions"] .task-session-board,
html body #app#app#app[data-active-view="templates"] .template-use-workspace,
html body #app#app#app[data-active-view="rag"] .schema-card,
html body #app#app#app[data-active-view="agents"] .agent-map-card,
html body #app#app#app[data-active-view="prd"] .band-card,
html body #app#app#app[data-active-view="api"] .page-hero,
html body #app#app#app[data-active-view="api"] .schema-card,
html body #app#app#app[data-active-view="guided"] .coming-soon-panel {
  background: var(--df-fp-module) !important;
  background-color: var(--df-fp-module) !important;
  background-image: none !important;
  border-color: var(--df-fp-page-line) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .018) !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-toolbar,
html body #app#app#app[data-active-view="logs"] .project-log-page,
html body #app#app#app[data-active-view="logs"] .project-log-grid,
html body #app#app#app[data-active-view="logs"] .project-log-card,
html body #app#app#app[data-active-view="logs"] .project-log-card-open,
html body #app#app#app[data-active-view="logs"] .history-empty,
html body #app#app#app[data-active-view="setup"] .model-service-commandbar,
html body #app#app#app[data-active-view="setup"] .model-service-workspace,
html body #app#app#app[data-active-view="setup"] .model-service-nav {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html body #app#app#app[data-active-view="setup"] .setup-provider-band {
  background: rgba(15, 13, 25, .40) !important;
  background-color: rgba(15, 13, 25, .40) !important;
  background-image: none !important;
  border-color: var(--df-fp-page-line-strong) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .022) !important;
}

/* Supporting-page collection shells are open layouts, not extra grey cards. */
html body #app#app#app[data-active-view="templates"] .template-grid,
html body #app#app#app[data-active-view="rag"] .schema-grid,
html body #app#app#app[data-active-view="agents"] .agent-map-grid,
html body #app#app#app[data-active-view="prd"] .workflow-board,
html body #app#app#app[data-active-view="api"] .api-grid {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* ========================================================================== */
/* P2 · supporting-page density, alignment, and responsive polish            */
/*                                                                            */
/* This pass only refines existing surfaces and controls. It does not add     */
/* controls, change behavior, or touch the generation workflow.              */
/* ========================================================================== */

/* Shared geometry: keep every existing component inside its grid cell. */
html body #app#app#app[data-active-view="sessions"] *,
html body #app#app#app[data-active-view="templates"] *,
html body #app#app#app[data-active-view="logs"] *,
html body #app#app#app[data-active-view="setup"] *,
html body #app#app#app[data-active-view="rag"] *,
html body #app#app#app[data-active-view="agents"] *,
html body #app#app#app[data-active-view="prd"] *,
html body #app#app#app[data-active-view="api"] *,
html body #app#app#app[data-active-view="guided"] * {
  box-sizing: border-box;
  min-width: 0;
}

html body #app#app#app[data-active-view="sessions"] button,
html body #app#app#app[data-active-view="templates"] button,
html body #app#app#app[data-active-view="logs"] button,
html body #app#app#app[data-active-view="setup"] button,
html body #app#app#app[data-active-view="rag"] button,
html body #app#app#app[data-active-view="agents"] button,
html body #app#app#app[data-active-view="prd"] button,
html body #app#app#app[data-active-view="api"] button,
html body #app#app#app[data-active-view="guided"] button {
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  white-space: nowrap;
}

/* Workbench / Sessions: one compact, aligned command row instead of a tall
   three-row flex stack. */
html body #app#app#app[data-active-view="sessions"] .task-session-board-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px) auto !important;
  grid-template-areas: "filters summary tools" !important;
  align-items: center !important;
  column-gap: 18px !important;
  row-gap: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 14px 0 12px !important;
}

html body #app#app#app[data-active-view="sessions"] .task-session-board-head > .session-filter-bar {
  grid-area: filters !important;
  width: auto !important;
  min-width: 0 !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

html body #app#app#app[data-active-view="sessions"] .session-filter-bar > button {
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 10px !important;
  align-items: center !important;
}

html body #app#app#app[data-active-view="sessions"] .task-session-board-head > .session-active-summary {
  grid-area: summary !important;
  width: auto !important;
  min-height: 36px !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  overflow: hidden !important;
}

html body #app#app#app[data-active-view="sessions"] .session-active-summary > span {
  flex: 0 0 auto !important;
  line-height: 1 !important;
}

html body #app#app#app[data-active-view="sessions"] .session-active-summary > strong {
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.25 !important;
}

html body #app#app#app[data-active-view="sessions"] .task-session-board-head > .session-board-tools {
  grid-area: tools !important;
  margin: 0 !important;
  justify-self: end !important;
  align-items: center !important;
}

html body #app#app#app[data-active-view="sessions"] .session-board-tools .session-selection-toggle {
  min-width: 68px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 13px !important;
}

html body #app#app#app[data-active-view="sessions"] .task-session-list .session-card.session-row {
  grid-template-columns: 38px minmax(0, 1fr) minmax(190px, .42fr) auto !important;
  align-items: center !important;
  column-gap: 16px !important;
  min-height: 78px !important;
  height: auto !important;
  padding: 12px 0 !important;
}

html body #app#app#app[data-active-view="sessions"] .session-card-main,
html body #app#app#app[data-active-view="sessions"] .session-card-top,
html body #app#app#app[data-active-view="sessions"] .session-card-meta,
html body #app#app#app[data-active-view="sessions"] .session-progress-block,
html body #app#app#app[data-active-view="sessions"] .session-card-actions {
  min-width: 0 !important;
}

html body #app#app#app[data-active-view="sessions"] .session-card-top,
html body #app#app#app[data-active-view="sessions"] .session-card-meta,
html body #app#app#app[data-active-view="sessions"] .session-card-actions {
  align-items: center !important;
}

html body #app#app#app[data-active-view="sessions"] .session-card-title,
html body #app#app#app[data-active-view="sessions"] .session-card-idea,
html body #app#app#app[data-active-view="sessions"] .session-progress-copy small {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body #app#app#app[data-active-view="sessions"] .session-card-actions {
  gap: 7px !important;
  justify-content: flex-end !important;
}

html body #app#app#app[data-active-view="sessions"] .session-card-actions > button,
html body #app#app#app[data-active-view="sessions"] .session-overflow > summary {
  min-height: 32px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* Prompt Library: keep the editor header compact and controls on one baseline. */
html body #app#app#app[data-active-view="templates"] .template-use-workspace {
  align-items: stretch !important;
  gap: 20px !important;
  padding: 18px !important;
}

html body #app#app#app[data-active-view="templates"] .template-use-copy,
html body #app#app#app[data-active-view="templates"] .template-use-editor-card {
  min-height: 0 !important;
}

html body #app#app#app[data-active-view="templates"] .template-use-editor-card {
  gap: 10px !important;
  padding: 15px !important;
}

html body #app#app#app[data-active-view="templates"] .template-use-editor-head {
  min-height: 48px !important;
  height: auto !important;
  align-items: center !important;
  justify-content: space-between !important;
}

html body #app#app#app[data-active-view="templates"] .template-editor-actions {
  height: auto !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
}

html body #app#app#app[data-active-view="templates"] .template-editor-actions button,
html body #app#app#app[data-active-view="templates"] .template-choice-actions button {
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 11px !important;
}

html body #app#app#app[data-active-view="templates"] .template-editor {
  min-height: 190px !important;
  height: 190px !important;
  resize: vertical !important;
}

html body #app#app#app[data-active-view="templates"] .template-library-toolbar {
  gap: 12px !important;
  padding: 18px !important;
}

html body #app#app#app[data-active-view="templates"] .template-primary-filter,
html body #app#app#app[data-active-view="templates"] .template-filter-controls {
  min-width: 0 !important;
  align-items: center !important;
}

html body #app#app#app[data-active-view="templates"] .template-primary-tab,
html body #app#app#app[data-active-view="templates"] .template-filter-toggle {
  min-height: 34px !important;
  height: 34px !important;
  align-items: center !important;
}

html body #app#app#app[data-active-view="templates"] .template-choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 12px !important;
}

html body #app#app#app[data-active-view="templates"] .template-choice-card {
  min-height: 0 !important;
  height: auto !important;
  align-content: start !important;
  gap: 9px !important;
  padding: 14px !important;
}

html body #app#app#app[data-active-view="templates"] .template-choice-topline,
html body #app#app#app[data-active-view="templates"] .template-choice-facts,
html body #app#app#app[data-active-view="templates"] .template-choice-actions {
  align-items: center !important;
}

html body #app#app#app[data-active-view="templates"] .template-choice-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  margin-top: auto !important;
}

html body #app#app#app[data-active-view="templates"] .template-tag {
  line-height: 1.15 !important;
  white-space: nowrap !important;
}

/* Run History: controls share one visual height; project rows read as a ledger. */
html body #app#app#app[data-active-view="logs"] .project-log-toolbar {
  align-items: center !important;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.7fr) auto !important;
  gap: 16px !important;
  padding: 16px 18px !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-summary,
html body #app#app#app[data-active-view="logs"] .project-log-filters,
html body #app#app#app[data-active-view="logs"] .project-log-more {
  min-width: 0 !important;
  align-self: center !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-filters {
  grid-template-columns: minmax(180px, 1.7fr) repeat(3, minmax(112px, 1fr)) !important;
  align-items: end !important;
  gap: 8px !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-filters label {
  min-width: 0 !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-filters input,
html body #app#app#app[data-active-view="logs"] .project-log-filters select,
html body #app#app#app[data-active-view="logs"] .project-log-more > summary {
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  align-items: center !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-grid {
  min-width: 0 !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-card {
  min-width: 0 !important;
  min-height: 86px !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-card-open {
  min-width: 0 !important;
  align-items: center !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-card-copy,
html body #app#app#app[data-active-view="logs"] .project-log-card-meta {
  min-width: 0 !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-card-kicker,
html body #app#app#app[data-active-view="logs"] .project-log-card-meta,
html body #app#app#app[data-active-view="logs"] .project-log-card-cta {
  align-items: center !important;
}

/* Model Services: provider navigation and the one active form stay aligned. */
html body #app#app#app[data-active-view="setup"] .model-service-commandbar {
  min-height: 52px !important;
  height: auto !important;
  padding: 0 0 13px !important;
  align-items: center !important;
}

html body #app#app#app[data-active-view="setup"] .model-service-command-actions,
html body #app#app#app[data-active-view="setup"] .model-service-command-actions button {
  align-items: center !important;
}

html body #app#app#app[data-active-view="setup"] .model-service-command-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

html body #app#app#app[data-active-view="setup"] .model-service-command-actions button {
  height: 34px !important;
  min-height: 34px !important;
}

html body #app#app#app[data-active-view="setup"] .model-service-workspace {
  align-items: stretch !important;
  gap: 16px !important;
}

html body #app#app#app[data-active-view="setup"] .model-service-nav {
  align-self: stretch !important;
  height: auto !important;
}

html body #app#app#app[data-active-view="setup"] .model-service-nav-item {
  min-height: 68px !important;
  height: auto !important;
  align-items: center !important;
}

html body #app#app#app[data-active-view="setup"] .setup-provider-band,
html body #app#app#app[data-active-view="setup"] .provider-config {
  min-width: 0 !important;
  align-content: start !important;
}

html body #app#app#app[data-active-view="setup"] .provider-config {
  gap: 12px 14px !important;
  padding: 17px 18px !important;
}

html body #app#app#app[data-active-view="setup"] .setup-field {
  min-width: 0 !important;
  gap: 6px !important;
}

html body #app#app#app[data-active-view="setup"] .setup-field input,
html body #app#app#app[data-active-view="setup"] .setup-field select,
html body #app#app#app[data-active-view="setup"] .setup-field textarea {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 38px !important;
  height: 38px !important;
  line-height: 1.2 !important;
}

html body #app#app#app[data-active-view="setup"] .provider-actions {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

html body #app#app#app[data-active-view="setup"] .provider-actions button {
  min-height: 34px !important;
  height: 34px !important;
}

/* RAG, Agents, PRD and API: consistent open grids with compact inner blocks. */
html body #app#app#app[data-active-view="rag"] .schema-grid,
html body #app#app#app[data-active-view="agents"] .agent-map-grid,
html body #app#app#app[data-active-view="prd"] .band-grid,
html body #app#app#app[data-active-view="api"] .schema-grid,
html body #app#app#app[data-active-view="api"] .api-grid,
html body #app#app#app[data-active-view="rag"] .field-schema-grid,
html body #app#app#app[data-active-view="rag"] .lifecycle-grid,
html body #app#app#app[data-active-view="rag"] .admin-view-grid,
html body #app#app#app[data-active-view="agents"] .rubric-grid,
html body #app#app#app[data-active-view="agents"] .agent-skill-grid,
html body #app#app#app[data-active-view="prd"] .workflow-board {
  min-width: 0 !important;
  align-items: stretch !important;
}

html body #app#app#app[data-active-view="rag"] .schema-card,
html body #app#app#app[data-active-view="agents"] .agent-map-card,
html body #app#app#app[data-active-view="prd"] .band-card,
html body #app#app#app[data-active-view="api"] .api-card,
html body #app#app#app[data-active-view="rag"] .field-schema-grid > *,
html body #app#app#app[data-active-view="rag"] .lifecycle-grid > *,
html body #app#app#app[data-active-view="rag"] .admin-view-grid > *,
html body #app#app#app[data-active-view="agents"] .rubric-grid > *,
html body #app#app#app[data-active-view="agents"] .agent-skill-grid > *,
html body #app#app#app[data-active-view="prd"] .workflow-board > * {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}

html body #app#app#app[data-active-view="rag"] .schema-card,
html body #app#app#app[data-active-view="agents"] .agent-map-card,
html body #app#app#app[data-active-view="prd"] .band-card,
html body #app#app#app[data-active-view="api"] .api-card {
  padding: 18px !important;
}

html body #app#app#app[data-active-view="rag"] .schema-card h3,
html body #app#app#app[data-active-view="agents"] .agent-map-card h3,
html body #app#app#app[data-active-view="prd"] .band-card h3,
html body #app#app#app[data-active-view="api"] .api-card h3 {
  margin-bottom: 9px !important;
  line-height: 1.2 !important;
}

html body #app#app#app[data-active-view="rag"] .schema-card p,
html body #app#app#app[data-active-view="agents"] .agent-map-card p,
html body #app#app#app[data-active-view="prd"] .band-card p,
html body #app#app#app[data-active-view="api"] .api-card p {
  line-height: 1.55 !important;
}

html body #app#app#app[data-active-view="rag"] .schema-code,
html body #app#app#app[data-active-view="api"] .api-preview {
  max-width: 100% !important;
  overflow-x: auto !important;
  white-space: pre !important;
}

html body #app#app#app[data-active-view="rag"] .section-intro,
html body #app#app#app[data-active-view="agents"] .section-intro {
  margin: 24px 0 12px !important;
  padding: 0 !important;
}

html body #app#app#app[data-active-view="prd"] .workflow-board > * {
  min-height: 0 !important;
  padding: 16px !important;
}

html body #app#app#app[data-active-view="guided"] .coming-soon-panel {
  min-height: 280px !important;
  padding: 28px 20px !important;
}

/* Tablet: let dense toolbars wrap without changing the feature set. */
@media (max-width: 980px) {
  html body #app#app#app[data-active-view="sessions"] .task-session-board-head {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "filters tools" "summary summary" !important;
    row-gap: 10px !important;
  }

  html body #app#app#app[data-active-view="sessions"] .session-active-summary {
    min-height: 32px !important;
  }

  html body #app#app#app[data-active-view="logs"] .project-log-toolbar {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "summary manage" "filters filters" !important;
  }

  html body #app#app#app[data-active-view="logs"] .project-log-summary { grid-area: summary !important; }
  html body #app#app#app[data-active-view="logs"] .project-log-filters {
    grid-area: filters !important;
    grid-template-columns: minmax(180px, 1.6fr) repeat(3, minmax(110px, 1fr)) !important;
  }
  html body #app#app#app[data-active-view="logs"] .project-log-more { grid-area: manage !important; }

  html body #app#app#app[data-active-view="setup"] .model-service-workspace {
    grid-template-columns: 190px minmax(0, 1fr) !important;
  }

  html body #app#app#app[data-active-view="templates"] .template-use-workspace {
    grid-template-columns: minmax(190px, .72fr) minmax(0, 1.28fr) !important;
  }
}

/* Phone: stack existing content, preserve every control, and eliminate any
   accidental horizontal scroll. */
@media (max-width: 680px) {
  html body #app#app#app[data-active-view="sessions"] .task-session-board-head,
  html body #app#app#app[data-active-view="logs"] .project-log-toolbar,
  html body #app#app#app[data-active-view="setup"] .model-service-workspace,
  html body #app#app#app[data-active-view="templates"] .template-use-workspace {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "filters" "summary" "tools" !important;
    gap: 10px !important;
    padding: 13px 12px !important;
  }

  html body #app#app#app[data-active-view="sessions"] .task-session-board-head > .session-filter-bar,
  html body #app#app#app[data-active-view="sessions"] .task-session-board-head > .session-active-summary,
  html body #app#app#app[data-active-view="sessions"] .task-session-board-head > .session-board-tools {
    width: 100% !important;
  }

  html body #app#app#app[data-active-view="sessions"] .task-session-board-head > .session-board-tools {
    justify-self: stretch !important;
  }

  html body #app#app#app[data-active-view="sessions"] .session-board-tools .session-selection-toggle {
    width: 100% !important;
  }

  html body #app#app#app[data-active-view="sessions"] .task-session-list .session-card.session-row {
    grid-template-columns: 28px minmax(0, 1fr) !important;
    grid-template-areas: "index main" "index progress" "index actions" !important;
    row-gap: 9px !important;
    column-gap: 10px !important;
    padding: 13px 0 !important;
  }

  html body #app#app#app[data-active-view="sessions"] .session-card-main { grid-area: main !important; }
  html body #app#app#app[data-active-view="sessions"] .session-progress-block { grid-area: progress !important; }
  html body #app#app#app[data-active-view="sessions"] .session-card-actions {
    grid-area: actions !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }

  html body #app#app#app[data-active-view="templates"] .template-use-workspace {
    grid-template-areas: "copy" "editor" !important;
  }
  html body #app#app#app[data-active-view="templates"] .template-use-copy { grid-area: copy !important; }
  html body #app#app#app[data-active-view="templates"] .template-use-editor-card { grid-area: editor !important; }
  html body #app#app#app[data-active-view="templates"] .template-use-editor-head {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
  html body #app#app#app[data-active-view="templates"] .template-editor-actions {
    width: 100% !important;
    justify-content: flex-start !important;
  }
  html body #app#app#app[data-active-view="templates"] .template-choice-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body #app#app#app[data-active-view="logs"] .project-log-toolbar {
    grid-template-areas: "summary" "filters" "manage" !important;
  }
  html body #app#app#app[data-active-view="logs"] .project-log-summary,
  html body #app#app#app[data-active-view="logs"] .project-log-filters,
  html body #app#app#app[data-active-view="logs"] .project-log-more {
    width: 100% !important;
  }
  html body #app#app#app[data-active-view="logs"] .project-log-filters {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html body #app#app#app[data-active-view="logs"] .project-log-more > summary { width: 100% !important; }

  html body #app#app#app[data-active-view="setup"] .model-service-workspace {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "nav" "detail" !important;
  }
  html body #app#app#app[data-active-view="setup"] .model-service-nav { grid-area: nav !important; }
  html body #app#app#app[data-active-view="setup"] .model-service-detail-stack { grid-area: detail !important; }
  html body #app#app#app[data-active-view="setup"] .model-service-nav-item {
    min-height: 56px !important;
  }
  html body #app#app#app[data-active-view="setup"] .provider-config {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html body #app#app#app[data-active-view="setup"] .provider-actions button {
    flex: 1 1 auto !important;
  }

  html body #app#app#app[data-active-view="rag"] .schema-grid,
  html body #app#app#app[data-active-view="agents"] .agent-map-grid,
  html body #app#app#app[data-active-view="prd"] .band-grid,
  html body #app#app#app[data-active-view="api"] .schema-grid,
  html body #app#app#app[data-active-view="api"] .api-grid,
  html body #app#app#app[data-active-view="rag"] .field-schema-grid,
  html body #app#app#app[data-active-view="rag"] .lifecycle-grid,
  html body #app#app#app[data-active-view="rag"] .admin-view-grid,
  html body #app#app#app[data-active-view="agents"] .rubric-grid,
  html body #app#app#app[data-active-view="agents"] .agent-skill-grid,
  html body #app#app#app[data-active-view="prd"] .workflow-board {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body #app#app#app[data-active-view="rag"] .schema-card,
  html body #app#app#app[data-active-view="agents"] .agent-map-card,
  html body #app#app#app[data-active-view="prd"] .band-card,
  html body #app#app#app[data-active-view="api"] .api-card {
    padding: 15px !important;
  }
}

@media (max-width: 420px) {
  html body #app#app#app[data-active-view="sessions"] .session-filter-bar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
  }

  html body #app#app#app[data-active-view="sessions"] .session-filter-bar > button {
    width: 100% !important;
  }

  html body #app#app#app[data-active-view="templates"] .template-use-workspace,
  html body #app#app#app[data-active-view="logs"] .project-log-toolbar {
    padding: 12px 10px !important;
  }

  html body #app#app#app[data-active-view="templates"] .template-choice-actions button,
  html body #app#app#app[data-active-view="setup"] .provider-actions button {
    width: 100% !important;
  }
}

/* Final overflow guard for all supporting pages. */
html body #app#app#app[data-active-view="sessions"],
html body #app#app#app[data-active-view="templates"],
html body #app#app#app[data-active-view="logs"],
html body #app#app#app[data-active-view="setup"],
html body #app#app#app[data-active-view="rag"],
html body #app#app#app[data-active-view="agents"],
html body #app#app#app[data-active-view="prd"],
html body #app#app#app[data-active-view="api"],
html body #app#app#app[data-active-view="guided"] {
  overflow-x: hidden !important;
}

/* P2 verification fixes: keep the single provider rail readable instead of
   squeezing its status and guide copy into undersized grid tracks. */
html body #app#app#app[data-active-view="setup"] .model-service-nav-item {
  grid-template-columns: 30px minmax(0, 1fr) !important;
}

html body #app#app#app[data-active-view="setup"] .model-service-nav-item > em {
  grid-column: 2 !important;
  justify-self: start !important;
  width: auto !important;
  min-width: max-content !important;
}

html body #app#app#app[data-active-view="setup"] .provider-guide {
  grid-template-columns: minmax(0, 1fr) !important;
}

html body #app#app#app[data-active-view="setup"] .provider-guide .provider-number,
html body #app#app#app[data-active-view="setup"] .provider-guide .eyebrow,
html body #app#app#app[data-active-view="setup"] .provider-guide h3,
html body #app#app#app[data-active-view="setup"] .provider-guide .provider-summary,
html body #app#app#app[data-active-view="setup"] .provider-guide .provider-external-link {
  grid-column: 1 !important;
}

html body #app#app#app[data-active-view="setup"] .provider-guide .provider-external-link {
  justify-self: start !important;
}

/* 20261002 final visual alignment: Prompt Library uses a fixed two-column
   template grid, and each card keeps its action controls on one compact row.
   Supporting pages share the Creative Engine PSD canvas and let that canvas
   scroll with the document instead of pinning it to the viewport. */
html body #app#app#app[data-active-view="templates"] .template-choice-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  min-width: 0 !important;
}

html body #app#app#app[data-active-view="templates"] .template-choice-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: center !important;
  gap: 7px !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  min-width: 0 !important;
  margin-top: auto !important;
}

html body #app#app#app[data-active-view="templates"] .template-choice-actions > button,
html body #app#app#app[data-active-view="templates"] .template-choice-actions .ghost-btn,
html body #app#app#app[data-active-view="templates"] .template-choice-actions .primary-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 6px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex: 1 1 0 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}

/* One shared PSD canvas for every product feature page. The attachment is
   explicitly scroll so long pages reveal the same canvas as the page moves. */
html body #app#app#app[data-active-view]:not([data-active-view="home"]) {
  background-color: var(--df-p11-canvas, #272727) !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-p11-canvas, #272727) 680px, var(--df-p11-canvas, #272727) 100%),
    var(--df-p11-canvas-image, url("assets/directorflow-global-background-dark-mosaic-v2.webp")) !important;
  background-position: center top, center top !important;
  background-size: 100% 50vw, 100% auto !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll, scroll !important;
}


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

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

@media (max-width: 520px) {
  html body #app#app#app[data-active-view="templates"] .template-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  html body #app#app#app[data-active-view="templates"] .template-choice-actions {
    gap: 4px !important;
  }

  html body #app#app#app[data-active-view="templates"] .template-choice-actions > button,
  html body #app#app#app[data-active-view="templates"] .template-choice-actions .ghost-btn,
  html body #app#app#app[data-active-view="templates"] .template-choice-actions .primary-btn {
    height: 30px !important;
    min-height: 30px !important;
    padding-inline: 3px !important;
    font-size: 10px !important;
    letter-spacing: -.01em !important;
  }
}

/* 20261002 Prompt Library + Run History refinement: keep the information
   hierarchy light and aligned with the Creative Engine's compact inner-panel
   language instead of stacking large opaque shells. */
html body #app#app#app[data-active-view="logs"] .project-log-page {
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  padding: 20px 24px 30px !important;
  gap: 18px !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-toolbar {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  gap: 16px !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-summary {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-summary .eyebrow {
  color: rgba(255,255,255,.48) !important;
  letter-spacing: .16em !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-summary h2 {
  color: #f4f4f1 !important;
  font-size: 24px !important;
  line-height: 1.08 !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-summary > p:last-child {
  color: rgba(255,255,255,.46) !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-filters input,
html body #app#app#app[data-active-view="logs"] .project-log-filters select,
html body #app#app#app[data-active-view="logs"] .project-log-more > summary,
html body #app#app#app[data-active-view="logs"] .project-log-toolbar button {
  box-sizing: border-box !important;
  background: rgba(8, 8, 11, .62) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
  color: rgba(255,255,255,.86) !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-filters input,
html body #app#app#app[data-active-view="logs"] .project-log-filters select {
  min-height: 36px !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-grid {
  gap: 12px !important;
  padding: 0 !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-card {
  background: rgba(10, 9, 13, .46) !important;
  background-image: none !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-card:hover,
html body #app#app#app[data-active-view="logs"] .project-log-card:focus-within {
  background: rgba(18, 16, 23, .56) !important;
  border-color: rgba(185, 164, 255, .26) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 26px rgba(0,0,0,.16) !important;
}

@media (max-width: 720px) {
  html body #app#app#app[data-active-view="logs"] .project-log-page {
    padding: 16px 14px 24px !important;
    gap: 14px !important;
  }

  html body #app#app#app[data-active-view="logs"] .project-log-toolbar {
    gap: 12px !important;
  }
}

/* 20261003 outer-surface refinement: keep page-level shells open like Run
   History. The content cards remain the deliberate inner surfaces; only the
   redundant full-width frame loses its fill, outline, and shadow. */
html body #app#app#app[data-active-view="sessions"] .task-session-board,
html body #app#app#app[data-active-view="templates"] .template-grid,
html body #app#app#app[data-active-view="rag"] .schema-grid,
html body #app#app#app[data-active-view="rag"] .workflow-board,
html body #app#app#app[data-active-view="setup"] .model-service-workspace,
html body #app#app#app[data-active-view="api"] .page-hero,
html body #app#app#app[data-active-view="api"] .schema-grid {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Leave a quiet breathing gap below the transparent topbar instead of
   starting the Run History content flush against it. */
html body #app#app#app[data-active-view="logs"] .project-log-page {
  padding-top: 34px !important;
}

@media (max-width: 720px) {
  html body #app#app#app[data-active-view="logs"] .project-log-page {
    padding-top: 24px !important;
  }
}

/* 20261003 P0.2: Run History is the reference outer-surface position.
   Keep the shell transparent, but place it below the topbar with a small,
   deliberate breathing gap before applying the shared frame to other pages. */
html body #app#app#app[data-active-view="logs"] .project-log-page {
  margin-top: 12px !important;
}

@media (max-width: 720px) {
  html body #app#app#app[data-active-view="logs"] .project-log-page {
    margin-top: 8px !important;
  }
}

/* 20261003 P0: one transparent topbar contract for every product view.
   This final rule intentionally outranks the legacy dark functional-page
   fallback in styles.css and also covers the first route state before the
   active-view attribute is populated. */
html body #app#app > .shell > .topbar,
html body #app#app[data-active-view] > .shell > .topbar,
html body #app#app[data-active-view="home"] > .shell > .topbar {
  background: rgba(9, 9, 11, .24) !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .10) !important;
  outline: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(24px) saturate(112%) !important;
  backdrop-filter: blur(24px) saturate(112%) !important;
  transition: none !important;
}

html body #app#app > .shell > .topbar h1,
html body #app#app > .shell > .topbar .eyebrow,
html body #app#app > .shell > .topbar p:last-child {
  transition: none !important;
}

/* 20261003 P0.3: Creative Engine outer shell follows the Run History
   reference surface. Keep the page-level shell open while preserving the
   composer card as the focused inner surface. */
html body #app#app#app[data-active-view="workbench"][data-creation-entry="fast"] .setup-panel {
  margin-top: 12px !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 24px !important;
  outline: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: none !important;
}

@media (max-width: 720px) {
  html body #app#app#app[data-active-view="workbench"][data-creation-entry="fast"] .setup-panel {
    margin-top: 8px !important;
  }
}

/* 20261003 P0.4: Prompt Library uses the same open page shell as Run
   History and Creative Engine. Keep the content start aligned while the
   outer transparent surface receives a small topbar breathing gap. */
html body #app#app#app[data-active-view="templates"] .page-scroll {
  margin-top: 12px !important;
  padding-top: 34px !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 720px) {
  html body #app#app#app[data-active-view="templates"] .page-scroll {
    margin-top: 8px !important;
    padding-top: 24px !important;
  }
}

/* 20261003 P0.5: Model Services adopts the same open page shell as the
   reference pages. Preserve the configuration workspace as the inner
   content surface and keep its content start aligned with Run History. */
html body #app#app#app[data-active-view="setup"] .setup-service-scroll {
  margin-top: 12px !important;
  padding-top: 34px !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 720px) {
  html body #app#app#app[data-active-view="setup"] .setup-service-scroll {
    margin-top: 8px !important;
    padding-top: 24px !important;
  }
}

/* P39 · Final topbar transparency contract. The bar is nearly invisible;
   only the active route receives a solid dark button surface. */
html body #app#app > .shell > .topbar,
html body #app#app[data-active-view] > .shell > .topbar {
  background: rgba(9, 9, 11, .035) !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(14px) !important;
  backdrop-filter: blur(14px) !important;
}

html body #app#app:not([data-active-view="home"]) .workspace-topnav-item.active,
html body #app#app[data-active-view="workbench"][data-creation-entry="quick-start"] .workspace-topnav-item[data-view="quick-start"],
html body #app#app[data-active-view="workbench"][data-creation-entry="fast"] .workspace-topnav-item[data-view="fast"],
html body #app#app[data-active-view="sessions"] .workspace-topnav-item[data-view="sessions"],
html body #app#app[data-active-view="templates"] .workspace-topnav-item[data-view="templates"],
html body #app#app[data-active-view="logs"] .workspace-topnav-item[data-view="logs"],
html body #app#app[data-active-view="setup"] .workspace-topnav-item[data-view="setup"] {
  color: var(--dp-ink) !important;
  background: #1a1722 !important;
  border-radius: 9px !important;
}

/* P40 · Topbar is genuinely transparent; active navigation remains the only
   solid dark surface. */
html body #app#app > .shell > .topbar,
html body #app#app[data-active-view] > .shell > .topbar {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}


/* P40.1 · Win the legacy gradient rule by specificity while keeping the
   inactive navigation transparent. */
html body #app#app[data-active-view]:not([data-active-view="home"]) .topbar-navigation > .workspace-topnav .workspace-topnav-item.active,
html body #app#app[data-active-view]:not([data-active-view="home"]) .topbar-navigation > .workspace-topnav .workspace-topnav-item[aria-current="page"] {
  color: #f7f3ff !important;
  background: #1a1722 !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  border-radius: 9px !important;
}

/* P51 · Shared landing/function topbar parity. Keep the same transparent
   brand capsule and measured vertical rhythm on every route; only the active
   route navigation item retains its existing solid selection surface. */
html body #app#app > .shell > .topbar,
html body #app#app[data-active-view] > .shell > .topbar {
  box-sizing: border-box !important;
  align-items: center !important;
  min-height: 0 !important;
  border: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body #app#app > .shell > .topbar .topbar-copy,
html body #app#app[data-active-view] > .shell > .topbar .topbar-copy {
  display: block !important;
  min-width: 0 !important;
}

html body #app#app > .shell > .topbar .topbar-home-link,
html body #app#app[data-active-view] > .shell > .topbar .topbar-home-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  line-height: 1 !important;
}

html body #app#app > .shell > .topbar .topbar-home-mark,
html body #app#app[data-active-view] > .shell > .topbar .topbar-home-mark {
  display: inline-flex !important;
  width: 34px !important;
  height: 32px !important;
  min-width: 34px !important;
  min-height: 32px !important;
  flex: 0 0 34px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}

html body #app#app > .shell > .topbar .topbar-home-name,
html body #app#app[data-active-view] > .shell > .topbar .topbar-home-name {
  display: inline-flex !important;
  align-items: center !important;
  height: 32px !important;
  margin: 0 !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  font-size: 13px !important;
  font-weight: 760 !important;
  letter-spacing: -.02em !important;
}

html body #app#app > .shell > .topbar .topbar-navigation,
html body #app#app[data-active-view] > .shell > .topbar .topbar-navigation {
  align-self: center !important;
}

html body #app#app > .shell > .topbar .workspace-topnav,
html body #app#app[data-active-view] > .shell > .topbar .workspace-topnav {
  align-items: center !important;
}

/* P53 · One canonical DirectorFlow topbar across landing and every product
   page. The landing header is the visual source of truth; route state may
   change only the selected navigation surface, never the geometry, account
   controls, or brand alignment. */
html body #app#app > .shell > .topbar .topbar-copy,
html body #app#app[data-active-view] > .shell > .topbar .topbar-copy {
  grid-template-areas: none !important;
  gap: 10px 12px !important;
}

html body #app#app > .shell > .topbar .topbar-home-link,
html body #app#app[data-active-view] > .shell > .topbar .topbar-home-link {
  grid-area: auto !important;
}

html body #app#app > .shell > .topbar .topbar-home-mark,
html body #app#app[data-active-view] > .shell > .topbar .topbar-home-mark {
  position: static !important;
  letter-spacing: .06em !important;
}

html body #app#app > .shell > .topbar .workspace-topnav,
html body #app#app[data-active-view] > .shell > .topbar .workspace-topnav {
  position: static !important;
}

/* Keep the account controls on the same dark, transparent header language on
   the landing page and function pages. This also prevents route-specific
   base styles from reverting to browser-default black text. */
html body #app#app > .shell > .topbar .workspace-account-link,
html body #app#app[data-active-view] > .shell > .topbar .workspace-account-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: var(--dp-muted) !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html body #app#app > .shell > .topbar .workspace-account-primary,
html body #app#app[data-active-view] > .shell > .topbar .workspace-account-primary {
  min-height: 34px !important;
  padding: 0 10px !important;
  border: 1px solid var(--dp-purple) !important;
  border-radius: 7px !important;
  background: var(--dp-purple) !important;
  color: #fff !important;
}

html body #app#app > .shell > .topbar .workspace-account-link:hover,
html body #app#app > .shell > .topbar .workspace-account-link:focus-visible,
html body #app#app[data-active-view] > .shell > .topbar .workspace-account-link:hover,
html body #app#app[data-active-view] > .shell > .topbar .workspace-account-link:focus-visible {
  color: var(--dp-ink) !important;
  background: rgba(244, 244, 242, .06) !important;
  outline: none !important;
}

html body #app#app > .shell > .topbar .workspace-account-primary:hover,
html body #app#app > .shell > .topbar .workspace-account-primary:focus-visible,
html body #app#app[data-active-view] > .shell > .topbar .workspace-account-primary:hover,
html body #app#app[data-active-view] > .shell > .topbar .workspace-account-primary:focus-visible {
  border-color: var(--dp-purple-bright) !important;
  background: var(--dp-purple-bright) !important;
  color: #fff !important;
}

/* P54 · Match the transparent topbar's visual field across the landing and
   every routed page. The header itself stays transparent; its parent surfaces
   now share the landing page's exact global background so the transparent
   pixels never reveal a route-specific gradient or gray fill. */
html body #app#app,
html body #app#app > .shell,
html body #app#app[data-active-view] > .shell {
  background-color: #09090b !important;
  background-image:
    linear-gradient(
      rgba(9, 9, 11, .04) 0,
      rgba(9, 9, 11, .18) 180px,
      rgba(9, 9, 11, .42) 360px,
      rgba(9, 9, 11, .82) 540px,
      rgb(9, 9, 11) 700px,
      rgb(9, 9, 11) 100%
    ),
    url("assets/directorflow-global-background-dark-mosaic-v2.webp") !important;
  background-position: 50% 0, 50% 0 !important;
  background-repeat: no-repeat, no-repeat !important;
  background-size: 100% 50vw, 100% auto !important;
}

html body #app#app > .shell,
html body #app#app[data-active-view] > .shell {
  min-height: 100vh !important;
}

/* P55 · Beat the legacy triple-ID canvas rules on routed pages. The same
   background must win even where older release overrides deliberately paint
   the function canvas separately. */
html body #app#app#app,
html body #app#app#app[data-active-view],
html body #app#app#app > .shell,
html body #app#app#app[data-active-view] > .shell {
  background-color: #09090b !important;
  background-image:
    linear-gradient(
      rgba(9, 9, 11, .04) 0,
      rgba(9, 9, 11, .18) 180px,
      rgba(9, 9, 11, .42) 360px,
      rgba(9, 9, 11, .82) 540px,
      rgb(9, 9, 11) 700px,
      rgb(9, 9, 11) 100%
    ),
    url("assets/directorflow-global-background-dark-mosaic-v2.webp") !important;
  background-position: 50% 0, 50% 0 !important;
  background-repeat: no-repeat, no-repeat !important;
  background-size: 100% 50vw, 100% auto !important;
}

/* P56 · Same specificity as the legacy routed-canvas rule, later in the
   cascade. This keeps the landing background as the single source of truth
   without making the transparent topbar opaque. */
html body #app#app[data-active-view]:not([data-active-view="home"]),
html body #app#app[data-active-view]:not([data-active-view="home"]) > .shell {
  background-color: #09090b !important;
  background-image:
    linear-gradient(
      rgba(9, 9, 11, .04) 0,
      rgba(9, 9, 11, .18) 180px,
      rgba(9, 9, 11, .42) 360px,
      rgba(9, 9, 11, .82) 540px,
      rgb(9, 9, 11) 700px,
      rgb(9, 9, 11) 100%
    ),
    url("assets/directorflow-global-background-dark-mosaic-v2.webp") !important;
  background-position: 50% 0, 50% 0 !important;
  background-repeat: no-repeat, no-repeat !important;
  background-size: 100% 50vw, 100% auto !important;
}

/* P57 · Final cascade guard for the route canvas. The legacy release CSS
   uses a dense selector chain, so this final rule intentionally carries the
   same route attributes and a stronger selector instead of changing markup. */
html body div#app#app#app[data-active-view][data-creation-entry],
html body div#app#app#app[data-active-view][data-creation-entry] > .shell {
  background-color: #09090b !important;
  background-image:
    linear-gradient(
      rgba(9, 9, 11, .04) 0,
      rgba(9, 9, 11, .18) 180px,
      rgba(9, 9, 11, .42) 360px,
      rgba(9, 9, 11, .82) 540px,
      rgb(9, 9, 11) 700px,
      rgb(9, 9, 11) 100%
    ),
    url("assets/directorflow-global-background-dark-mosaic-v2.webp") !important;
  background-position: 50% 0, 50% 0 !important;
  background-repeat: no-repeat, no-repeat !important;
  background-size: 100% 50vw, 100% auto !important;
}

/* P58 · Canonical topbar parity across Landing and all functional routes.
   The existing topbar node is shared by every view; this final layer removes
   the route-only title treatment and applies the Landing geometry, brand
   capsule, navigation rhythm, account rail, and transparent surface without
   adding controls or touching workflow behavior. */
html body #app#app[data-active-view] > .shell > .topbar {
  position: relative !important;
  inset: auto !important;
  z-index: 500 !important;
  display: grid !important;
  grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr) !important;
  grid-template-areas: "copy nav actions" !important;
  align-items: center !important;
  align-content: center !important;
  gap: clamp(18px, 2.6vw, 36px) !important;
  width: 100% !important;
  height: 80px !important;
  min-height: 80px !important;
  margin: 0 !important;
  padding: 12px clamp(18px, 3.4vw, 48px) !important;
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body #app#app[data-active-view] > .shell > .topbar .topbar-copy {
  display: flex !important;
  grid-area: copy !important;
  align-items: center !important;
  align-self: center !important;
  min-width: 0 !important;
  gap: 0 !important;
}

/* Functional page titles belong to the page content, not to a second header
   treatment. Hiding these existing nodes makes the visible header identical
   to Landing while preserving the DOM and route contracts. */
html body #app#app[data-active-view] > .shell > .topbar .topbar-copy > .eyebrow,
html body #app#app[data-active-view] > .shell > .topbar .topbar-copy > h1,
html body #app#app[data-active-view] > .shell > .topbar .topbar-copy > #view-desc {
  display: none !important;
}

html body #app#app[data-active-view] > .shell > .topbar .topbar-home-link {
  display: inline-flex !important;
  grid-area: auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
  align-self: center !important;
  gap: 9px !important;
  width: auto !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  transform: none !important;
}

html body #app#app[data-active-view] > .shell > .topbar .topbar-home-mark.topbar-director-mark {
  display: inline-grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  flex: 0 0 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(205, 191, 255, .42) !important;
  border-radius: 10px !important;
  background: #111116 !important;
  color: #f6f2ff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    0 7px 18px rgba(76, 49, 164, .18) !important;
}

html body #app#app[data-active-view] > .shell > .topbar .topbar-home-mark.topbar-director-mark svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
}

html body #app#app[data-active-view] > .shell > .topbar .topbar-home-name {
  display: inline-flex !important;
  align-items: center !important;
  height: 32px !important;
  margin: 0 !important;
  color: #f7f3ff !important;
  font-size: 13px !important;
  font-weight: 780 !important;
  letter-spacing: -.02em !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html body #app#app[data-active-view] > .shell > .topbar .topbar-navigation {
  display: flex !important;
  grid-area: nav !important;
  align-items: center !important;
  align-self: stretch !important;
  justify-content: center !important;
  min-width: 0 !important;
  padding-left: clamp(12px, 1.8vw, 22px) !important;
  border-left: 1px solid rgba(255, 255, 255, .08) !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #app#app[data-active-view] > .shell > .topbar .workspace-topnav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 0 !important;
  overflow-x: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  scrollbar-width: none;
}

html body #app#app[data-active-view] > .shell > .topbar .workspace-topnav::-webkit-scrollbar {
  display: none;
}

html body #app#app[data-active-view] > .shell > .topbar .workspace-topnav-item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  min-height: 32px !important;
  padding: 0 10px !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #85818f !important;
  font-size: 9px !important;
  font-weight: 720 !important;
  letter-spacing: .015em !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  transform: none !important;
}

html body #app#app[data-active-view] > .shell > .topbar .workspace-topnav-item:hover,
html body #app#app[data-active-view] > .shell > .topbar .workspace-topnav-item:focus-visible {
  color: #f3effd !important;
  border-color: rgba(185, 163, 255, .16) !important;
  background: rgba(173, 150, 255, .07) !important;
  outline: none !important;
}

html body #app#app[data-active-view] > .shell > .topbar .workspace-topnav-item.active,
html body #app#app[data-active-view] > .shell > .topbar .workspace-topnav-item[aria-current="page"] {
  color: #f8f5ff !important;
  border-color: transparent !important;
  background: #1a1722 !important;
  background-image: none !important;
  box-shadow: none !important;
}

html body #app#app[data-active-view] > .shell > .topbar .workspace-topnav-item::after {
  display: none !important;
}

html body #app#app[data-active-view] > .shell > .topbar .topbar-actions {
  display: flex !important;
  grid-area: actions !important;
  align-items: center !important;
  align-self: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #app#app[data-active-view] > .shell > .topbar .topbar-actions > .workbench-task-context,
html body #app#app[data-active-view] > .shell > .topbar .topbar-actions > #jump-to-output,
html body #app#app[data-active-view] > .shell > .topbar .topbar-actions > #jump-to-logs {
  display: none !important;
}

html body #app#app[data-active-view] > .shell > .topbar .workspace-topbar-account {
  display: flex !important;
  align-items: center !important;
  align-self: center !important;
  gap: 1px !important;
  min-width: max-content !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 0 0 2px !important;
  padding: 3px 0 3px 10px !important;
  border: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #app#app[data-active-view] > .shell > .topbar .workspace-account-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 30px !important;
  padding: 0 8px !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #827d8c !important;
  font-size: 9px !important;
  font-weight: 720 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html body #app#app[data-active-view] > .shell > .topbar .workspace-account-link:hover,
html body #app#app[data-active-view] > .shell > .topbar .workspace-account-link:focus-visible {
  color: #f3effd !important;
  border-color: rgba(185, 163, 255, .16) !important;
  background: rgba(173, 150, 255, .07) !important;
  outline: none !important;
}

html body #app#app[data-active-view] > .shell > .topbar .workspace-account-primary {
  min-width: 62px !important;
  padding-inline: 11px !important;
  border-color: rgba(196, 177, 255, .28) !important;
  background: #6247c0 !important;
  color: #fff !important;
}

html body #app#app[data-active-view] > .shell > .topbar .workspace-account-primary:hover,
html body #app#app[data-active-view] > .shell > .topbar .workspace-account-primary:focus-visible {
  border-color: rgba(222, 211, 255, .48) !important;
  background: #7357dc !important;
  color: #fff !important;
}

@media (max-width: 1100px) {
  html body #app#app[data-active-view] > .shell > .topbar {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "copy actions" "nav nav" !important;
    height: 106px !important;
    min-height: 106px !important;
    row-gap: 7px !important;
    padding-block: 10px 8px !important;
  }

  html body #app#app[data-active-view] > .shell > .topbar .topbar-navigation {
    justify-content: flex-start !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-top: 6px !important;
    border-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .07) !important;
  }

  html body #app#app[data-active-view] > .shell > .topbar .workspace-topnav {
    justify-content: flex-start !important;
    width: 100% !important;
  }
}

@media (max-width: 720px) {
  html body #app#app[data-active-view] > .shell > .topbar {
    height: 104px !important;
    min-height: 104px !important;
    gap: 5px !important;
    padding-inline: 12px !important;
  }

  html body #app#app[data-active-view] > .shell > .topbar .topbar-home-name {
    font-size: 11px !important;
  }

  html body #app#app[data-active-view] > .shell > .topbar .workspace-topnav-item {
    min-height: 30px !important;
    padding-inline: 8px !important;
    font-size: 8px !important;
  }

  html body #app#app[data-active-view] > .shell > .topbar .workspace-topbar-account {
    padding-left: 6px !important;
  }

  html body #app#app[data-active-view] > .shell > .topbar .workspace-account-link {
    padding-inline: 6px !important;
    font-size: 8px !important;
  }
}

/* P61.2 · One shared, scroll-following product backdrop.
   The supplied artwork fades into the charcoal page base from mid-frame down. */
html,
html body {
  min-height: 100%;
  background: #09090b !important;
}

html body div#app#app#app#app#app {
  min-height: 100vh !important;
  background-color: #09090b !important;
  background-image:
    linear-gradient(
      to bottom,
      rgba(9, 9, 11, 0) 0%,
      rgba(9, 9, 11, 0) 43%,
      rgba(9, 9, 11, .12) 57%,
      rgba(9, 9, 11, .38) 72%,
      rgba(9, 9, 11, .72) 86%,
      #09090b 100%
    ),
    url("assets/directorflow-product-background.png?v=20261006-p61-2") !important;
  background-position: 50% 0, 50% 0 !important;
  background-repeat: no-repeat, no-repeat !important;
  background-size: 100% 50vw, 100% auto !important;
  background-attachment: scroll, scroll !important;
}

html body div#app#app#app#app#app > .shell,
html body div#app#app#app#app#app > .shell > .view.active,
html body div#app#app#app#app#app > .shell > .view.active > .page-scroll {
  background-color: transparent !important;
  background-image: none !important;
}


/* P62 · Shared topbar: one full-width translucent gray rail, no glass blur.
   Navigation labels are white; the current route is a solid purple capsule. */
html body #app#app#app#app#app#app[data-active-view] > .shell > .topbar {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(43, 43, 49, .66) !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body #app#app#app#app#app#app[data-active-view] > .shell > .topbar::before,
html body #app#app#app#app#app#app[data-active-view] > .shell > .topbar::after {
  content: none !important;
  display: none !important;
}

html body #app#app#app#app#app#app[data-active-view] > .shell > .topbar .topbar-home-mark.topbar-director-mark {
  border-color: rgba(226, 217, 255, .38) !important;
  background: #6f4be8 !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: none !important;
}

html body #app#app#app#app#app#app[data-active-view] > .shell > .topbar .topbar-home-mark.topbar-director-mark :is(path, circle) {
  stroke: currentColor !important;
}

html body #app#app#app#app#app#app[data-active-view] > .shell > .topbar :is(.topbar-home-name, .workspace-topnav-item, .workspace-account-link) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html body #app#app#app#app#app#app[data-active-view] > .shell > .topbar .workspace-topnav-item:hover,
html body #app#app#app#app#app#app[data-active-view] > .shell > .topbar .workspace-topnav-item:focus-visible {
  border-color: rgba(255, 255, 255, .10) !important;
  background: rgba(255, 255, 255, .08) !important;
  color: #fff !important;
}

html body #app#app#app#app#app#app[data-active-view] > .shell > .topbar .workspace-topnav-item.active,
html body #app#app#app#app#app#app[data-active-view] > .shell > .topbar .workspace-topnav-item[aria-current="page"] {
  border-color: #7957ef !important;
  background: #7957ef !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: none !important;
}


/* P63 · Contrast adaptation for the brighter mosaic background.
   Keep Creative Engine surfaces untouched; strengthen only the supporting
   workbench, library, history, and service panels plus the shared topbar. */
:root {
  --df-fp-page-line: rgba(255, 255, 255, .19);
  --df-fp-page-line-strong: rgba(255, 255, 255, .26);
  --df-fp-module: rgba(17, 16, 22, .82);
  --df-fp-inner: rgba(10, 10, 15, .88);
  --df-fp-inner-soft: rgba(21, 20, 27, .78);
  --df-fp-hover: rgba(128, 95, 235, .17);
  --df-fp-active: rgba(128, 95, 235, .24);
}

/* 80%-opaque neutral gray rail; no blur or separate glass around nav items. */
html body #app#app#app#app#app#app[data-active-view] > .shell > .topbar {
  background: rgba(58, 58, 66, .80) !important;
  background-color: rgba(58, 58, 66, .80) !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body #app#app#app#app#app#app[data-active-view] > .shell > .topbar .workspace-topnav-item {
  border-color: transparent !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #fff !important;
}

html body #app#app#app#app#app#app[data-active-view] > .shell > .topbar .workspace-topnav-item:hover,
html body #app#app#app#app#app#app[data-active-view] > .shell > .topbar .workspace-topnav-item:focus-visible {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
}

html body #app#app#app#app#app#app[data-active-view] > .shell > .topbar .workspace-topnav-item.active,
html body #app#app#app#app#app#app[data-active-view] > .shell > .topbar .workspace-topnav-item[aria-current="page"] {
  border-color: #7957ef !important;
  background: #7957ef !important;
  color: #fff !important;
}

/* Workbench (project list): restore readable depth to the existing board and
   rows without changing their structure or adding decorative frames. */
html body #app#app#app#app#app#app[data-active-view="sessions"] .task-session-board {
  border-color: rgba(255, 255, 255, .19) !important;
  background: rgba(16, 15, 21, .78) !important;
  color: #f5f3f8 !important;
  -webkit-backdrop-filter: blur(18px) saturate(112%) !important;
  backdrop-filter: blur(18px) saturate(112%) !important;
}

html body #app#app#app#app#app#app[data-active-view="sessions"] .task-session-list .session-card.session-row {
  color: #f4f1f8 !important;
}

/* Prompt Library cards and their existing category/metadata labels. */
html body #app#app#app#app#app#app[data-active-view="templates"] .template-grid .template-card {
  border-color: rgba(255, 255, 255, .18) !important;
  background: rgba(18, 17, 24, .82) !important;
  color: #f4f1f8 !important;
  -webkit-backdrop-filter: blur(14px) saturate(110%) !important;
  backdrop-filter: blur(14px) saturate(110%) !important;
}

/* Run History filters and run cards need stronger backing over bright art. */
html body #app#app#app#app#app#app[data-active-view="logs"] .project-log-filters :is(input, select),
html body #app#app#app#app#app#app[data-active-view="logs"] .project-log-more > summary,
html body #app#app#app#app#app#app[data-active-view="logs"] .project-log-toolbar button {
  border-color: rgba(255, 255, 255, .22) !important;
  background: rgba(12, 12, 17, .88) !important;
  color: #f7f5fa !important;
}

html body #app#app#app#app#app#app[data-active-view="logs"] .project-log-card,
html body #app#app#app#app#app#app[data-active-view="logs"] .project-log-detail {
  border-color: rgba(255, 255, 255, .20) !important;
  background: rgba(14, 13, 19, .84) !important;
  color: #f5f2f8 !important;
  -webkit-backdrop-filter: blur(16px) saturate(110%) !important;
  backdrop-filter: blur(16px) saturate(110%) !important;
}

/* Model Services: deepen the existing configuration workspace and labels. */
html body #app#app#app#app#app#app[data-active-view="setup"] .model-service-commandbar,
html body #app#app#app#app#app#app[data-active-view="setup"] .model-service-nav,
html body #app#app#app#app#app#app[data-active-view="setup"] .setup-provider-band,
html body #app#app#app#app#app#app[data-active-view="setup"] .provider-guide,
html body #app#app#app#app#app#app[data-active-view="setup"] .provider-config {
  border-color: rgba(255, 255, 255, .19) !important;
  background-color: rgba(14, 14, 20, .84) !important;
  color: #f5f3f8 !important;
  -webkit-backdrop-filter: blur(16px) saturate(110%) !important;
  backdrop-filter: blur(16px) saturate(110%) !important;
}

html body #app#app#app#app#app#app[data-active-view="setup"] .setup-field :is(input, select, textarea) {
  border-color: rgba(255, 255, 255, .22) !important;
  background: rgba(7, 7, 11, .88) !important;
  color: #fff !important;
}

/* P63.1 · Lift secondary copy on the darker supporting-page surfaces while
   preserving status colors and control-specific state treatments. */
html body #app#app#app#app#app#app[data-active-view="sessions"] .task-session-board :is(h2, h3, strong) {
  color: #fff !important;
}
html body #app#app#app#app#app#app[data-active-view="sessions"] .task-session-board :is(p, small, .session-card-meta, .session-card-subtitle) {
  color: rgba(246, 243, 250, .82) !important;
}
html body #app#app#app#app#app#app[data-active-view="templates"] .template-grid .template-card h3 {
  color: #fff !important;
}
html body #app#app#app#app#app#app[data-active-view="templates"] .template-grid .template-card p,
html body #app#app#app#app#app#app[data-active-view="templates"] .template-grid .template-card .template-meta {
  color: rgba(246, 243, 250, .82) !important;
}
html body #app#app#app#app#app#app[data-active-view="logs"] .project-log-summary .eyebrow,
html body #app#app#app#app#app#app[data-active-view="logs"] .project-log-summary > p:last-child {
  color: rgba(248, 246, 251, .78) !important;
}
html body #app#app#app#app#app#app[data-active-view="logs"] .project-log-card-copy > div:first-child,
html body #app#app#app#app#app#app[data-active-view="logs"] .project-log-card-copy > p,
html body #app#app#app#app#app#app[data-active-view="logs"] .project-log-card-meta span:not(.has-errors) {
  color: rgba(246, 243, 250, .78) !important;
}
html body #app#app#app#app#app#app[data-active-view="setup"] .model-service-nav-item small,
html body #app#app#app#app#app#app[data-active-view="setup"] .model-service-nav-note,
html body #app#app#app#app#app#app[data-active-view="setup"] .provider-guide .provider-summary,
html body #app#app#app#app#app#app[data-active-view="setup"] .setup-field > span,
html body #app#app#app#app#app#app[data-active-view="setup"] .model-lockup small {
  color: rgba(246, 243, 250, .80) !important;
}

/* P64 · Landing hero spacing and topbar surface correction.
   The shared nav capsule lives on .workspace-topnav (not on the individual
   buttons); clear that group surface while preserving the selected purple
   button and the separate translucent full-width topbar rail. */
html body #app#app#app#app#app#app#app[data-active-view] > .shell > .topbar {
  background: rgba(58, 58, 66, .24) !important;
  background-color: rgba(58, 58, 66, .24) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body #app#app#app#app#app#app#app[data-active-view] > .shell > .topbar .topbar-navigation,
html body #app#app#app#app#app#app#app[data-active-view] > .shell > .topbar .workspace-topnav {
  border-color: transparent !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body #app#app#app#app#app#app#app[data-active-view] > .shell > .topbar .topbar-navigation::before,
html body #app#app#app#app#app#app#app[data-active-view] > .shell > .topbar .topbar-navigation::after,
html body #app#app#app#app#app#app#app[data-active-view] > .shell > .topbar .workspace-topnav::before,
html body #app#app#app#app#app#app#app[data-active-view] > .shell > .topbar .workspace-topnav::after {
  content: none !important;
  display: none !important;
}

/* Move the complete landing hero copy away from the right-side video window.
   Keep the shift modest on desktop and remove it when the layout stacks. */
@media (min-width: 761px) {
  html body #app#app#app#app#app#app#app[data-active-view="home"] .home-hero-copy {
    transform: translateX(calc(-1 * clamp(18px, 3vw, 42px))) !important;
  }
}

@media (max-width: 760px) {
  html body #app#app#app#app#app#app#app[data-active-view="home"] .home-hero-copy {
    transform: none !important;
  }
}

/* P65 · Give Workbench and Prompt Library the same quiet outer glass shell
   used by Run History. Inner content panels and card treatments stay intact. */
html body #app#app#app#app#app#app#app[data-active-view="sessions"] .page-scroll.task-session-page,
html body #app#app#app#app#app#app#app[data-active-view="templates"] .view.active > .page-scroll {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.08) !important;
  border: 0 !important;
  border-radius: 20px !important;
  box-shadow: none !important;
  margin: 12px 12px 0 !important;
}

@media (max-width: 720px) {
  html body #app#app#app#app#app#app#app[data-active-view="sessions"] .page-scroll.task-session-page,
  html body #app#app#app#app#app#app#app[data-active-view="templates"] .view.active > .page-scroll {
    margin-top: 8px !important;
  }
}

/* P67 · Narrow the shared page shells and strengthen every Workbench and
   Prompt Library content marker against the bright, transparent backdrop. */
html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .page-scroll.task-session-page,
html body #app#app#app#app#app#app#app#app[data-active-view="templates"] .view.active > .page-scroll {
  margin-left: clamp(24px, 5vw, 64px) !important;
  margin-right: clamp(24px, 5vw, 64px) !important;
  width: calc(100% - 2 * clamp(24px, 5vw, 64px)) !important;
  min-width: 0 !important;
}

@media (max-width: 720px) {
  html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .page-scroll.task-session-page,
  html body #app#app#app#app#app#app#app#app[data-active-view="templates"] .view.active > .page-scroll {
    margin-left: 16px !important;
    margin-right: 16px !important;
    width: calc(100% - 32px) !important;
    min-width: 0 !important;
  }
}

/* The full-width Workbench list is part of the clear page shell now; retain
   separation on each individual task row instead of a second dark slab. */
html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-board {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] :is(.task-session-heading .eyebrow, .task-session-heading h2, .task-session-heading p, .task-session-board-head, .session-active-summary) {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(10, 8, 16, .92), 0 3px 10px rgba(10, 8, 16, .72) !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-filter-bar button {
  background: rgba(19, 16, 27, .88) !important;
  border: 1px solid rgba(231, 220, 255, .38) !important;
  color: #f7f3ff !important;
  text-shadow: none !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-filter-bar button.active {
  background: #7453c9 !important;
  border-color: #b69aff !important;
  color: #fff !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-card.session-row {
  background: rgba(18, 16, 26, .93) !important;
  border: 1px solid rgba(220, 207, 255, .42) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 8px 22px rgba(8, 7, 12, .18) !important;
  color: #f8f5ff !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-card.session-row:is(:hover, :focus-visible, .active, [aria-selected="true"]) {
  background: rgba(27, 22, 39, .97) !important;
  border-color: #b99cff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 2px rgba(155, 123, 255, .24), 0 10px 26px rgba(8, 7, 12, .28) !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-index {
  background: #6948b6 !important;
  border: 1px solid #c2aaff !important;
  border-radius: 50% !important;
  color: #fff !important;
  font-weight: 850 !important;
  box-shadow: 0 2px 8px rgba(4, 3, 8, .28), inset 0 1px 0 rgba(255, 255, 255, .22) !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] :is(.session-card-title, .session-card-idea, .session-card-meta, .session-progress-copy strong, .session-progress-copy small, .session-progress-value) {
  color: #f8f5ff !important;
  text-shadow: none !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-card-meta {
  color: #d2cbdc !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-status-pill {
  background: #493376 !important;
  border: 1px solid #a98be9 !important;
  color: #fff !important;
  font-weight: 750 !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-progress-track {
  background: rgba(255, 255, 255, .22) !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-open-btn {
  background: #7453c9 !important;
  border: 1px solid #b69aff !important;
  color: #fff !important;
  font-weight: 750 !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-overflow > summary {
  background: rgba(255, 255, 255, .09) !important;
  border: 1px solid rgba(255, 255, 255, .34) !important;
  color: #fff !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-overflow-menu {
  background: #17141f !important;
  border: 1px solid rgba(226, 215, 255, .40) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .38) !important;
}

/* Prompt Library filters and cards keep readable contrast even where the
   outer glass reveals the bright image; the actual prompt text stays intact. */
html body #app#app#app#app#app#app#app#app[data-active-view="templates"] :is(.template-library-heading .eyebrow, .template-library-heading h3) {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(10, 8, 16, .92), 0 3px 10px rgba(10, 8, 16, .72) !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="templates"] .template-search-field input {
  background: rgba(18, 16, 26, .94) !important;
  border: 1px solid rgba(231, 220, 255, .42) !important;
  color: #fff !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="templates"] .template-search-field input::placeholder {
  color: #d0c8dd !important;
  opacity: 1 !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="templates"] .template-filter-toggle,
html body #app#app#app#app#app#app#app#app[data-active-view="templates"] .template-primary-tab {
  background: rgba(19, 16, 27, .88) !important;
  border: 1px solid rgba(231, 220, 255, .38) !important;
  color: #f7f3ff !important;
  text-shadow: none !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="templates"] .template-primary-tab.active {
  background: #7453c9 !important;
  border-color: #b69aff !important;
  color: #fff !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-card {
  background: rgba(19, 17, 26, .97) !important;
  border: 1px solid rgba(220, 207, 255, .34) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 22px rgba(8, 7, 12, .18) !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-card:is(:hover, .active, [aria-selected="true"]) {
  border-color: #b99cff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), 0 0 0 2px rgba(155, 123, 255, .22), 0 10px 26px rgba(8, 7, 12, .26) !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-index {
  background: #6948b6 !important;
  border: 1px solid #c2aaff !important;
  border-radius: 6px !important;
  color: #fff !important;
  font-weight: 850 !important;
  box-shadow: 0 2px 8px rgba(4, 3, 8, .28), inset 0 1px 0 rgba(255, 255, 255, .22) !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-category {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 23px !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  background: #493376 !important;
  border: 1px solid #a98be9 !important;
  color: #fff !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="templates"] :is(.template-choice-body h3, .template-choice-facts > span) {
  color: #fff !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-body p {
  color: #e0d9e9 !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-facts small {
  color: #c9bfd8 !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="templates"] .template-tag {
  background: #272131 !important;
  border: 1px solid #8c78ad !important;
  color: #f5f0ff !important;
  font-weight: 650 !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-actions .ghost-btn {
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(231, 220, 255, .42) !important;
  color: #fff !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="templates"] :is(.template-choice-actions button, .template-primary-tab, .template-filter-toggle):focus-visible,
html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] :is(.session-filter-bar button, .session-open-btn, .session-overflow > summary):focus-visible {
  outline: 2px solid #d0baff !important;
  outline-offset: 2px !important;
}

/* P70 · Workbench current-project identity is a compact, state-derived label.
   The marker is rendered only for state.activeSessionId; the whole card no
   longer carries a persistent selected/highlight treatment. */
html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-board-head {
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas: "filters tools" !important;
  align-items: center !important;
}
html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-card.session-row.active {
  background: rgba(18, 16, 26, .93) !important;
  border-color: rgba(220, 207, 255, .42) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 8px 22px rgba(8, 7, 12, .18) !important;
}
html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-card.session-row.active::before {
  background: transparent !important;
}
html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-card.session-row:is(:hover, :focus-visible) {
  background: rgba(27, 22, 39, .97) !important;
  border-color: #b99cff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 2px rgba(155, 123, 255, .24), 0 10px 26px rgba(8, 7, 12, .28) !important;
}
html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-card-top {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-width: 0 !important;
}
html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-card-title {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-current-marker {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 5px !important;
  color: #c6adff !important;
  font-size: 10px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-current-marker i {
  width: 6px !important;
  height: 6px !important;
  flex: 0 0 6px !important;
  border-radius: 50% !important;
  background: #a98aff !important;
  box-shadow: 0 0 0 2px rgba(169, 138, 255, .17) !important;
}

/* P70 · Run History typography and state markers: stronger hierarchy,
   readable secondary metadata, and compact status-specific visual cues. */
html body #app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-summary .eyebrow {
  color: #d2c4ff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .17em !important;
}
html body #app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-summary h2 {
  color: #fff !important;
  font-size: clamp(22px, 2vw, 28px) !important;
  font-weight: 780 !important;
  letter-spacing: -.025em !important;
  line-height: 1.15 !important;
}
html body #app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-summary > p:last-child {
  color: #ded8e9 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}
html body #app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card {
  border-color: rgba(220, 207, 255, .34) !important;
  background: rgba(18, 16, 26, .94) !important;
}
html body #app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-copy .project-log-card-kicker {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 7px 12px !important;
  color: #d7c9ff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .015em !important;
}
html body #app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-kicker time {
  color: #d5cfdf !important;
  font-size: 11px !important;
  font-weight: 550 !important;
  font-variant-numeric: tabular-nums !important;
}
html body #app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-copy h3 {
  color: #fff !important;
  font-size: clamp(16px, 1.25vw, 19px) !important;
  font-weight: 760 !important;
  letter-spacing: -.018em !important;
  line-height: 1.3 !important;
}
html body #app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-meta span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  max-width: min(240px, 45vw) !important;
  padding: 3px 9px !important;
  border: 1px solid rgba(220, 207, 255, .27) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .075) !important;
  color: #f1edf8 !important;
  font-size: 11px !important;
  font-weight: 620 !important;
  line-height: 1.2 !important;
}
html body #app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-meta span.has-errors {
  border-color: rgba(255, 135, 151, .52) !important;
  background: rgba(139, 35, 55, .42) !important;
  color: #ffd7dd !important;
}
html body #app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-status-mark {
  min-width: 116px !important;
  min-height: 56px !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(200, 190, 222, .34) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .075) !important;
  color: #f4efff !important;
}
html body #app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-status-mark[data-tone="good"] {
  border-color: rgba(111, 222, 159, .48) !important;
  background: rgba(24, 104, 66, .38) !important;
  color: #c9ffe0 !important;
}
html body #app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-status-mark[data-tone="warning"] {
  border-color: rgba(255, 204, 116, .50) !important;
  background: rgba(130, 82, 22, .42) !important;
  color: #ffe3ae !important;
}
html body #app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-status-mark[data-tone="error"] {
  border-color: rgba(255, 142, 152, .50) !important;
  background: rgba(132, 37, 54, .42) !important;
  color: #ffd4da !important;
}
html body #app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-status-mark[data-tone="cancelled"] {
  border-color: rgba(195, 190, 207, .38) !important;
  background: rgba(89, 83, 105, .36) !important;
  color: #e8e3ef !important;
}
html body #app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-cta {
  color: #d8c8ff !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}
html body #app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-cta > span {
  color: #fff !important;
  font-size: 18px !important;
}
@media (max-width: 980px) {
  html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-board-head {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "filters tools" !important;
  }
}
@media (max-width: 680px) {
  html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-board-head {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "filters" "tools" !important;
    row-gap: 10px !important;
  }
}

/* P2 · Matte editorial SaaS surfaces for the bright prism background.
   The gradient remains atmospheric; content surfaces become calm, readable,
   and consistent without backdrop blur or translucent glass frames. */
:root {
  --df-fp-page-line: rgba(39, 31, 56, .11);
  --df-fp-page-line-strong: rgba(39, 31, 56, .17);
  --df-fp-module: rgba(250, 249, 247, .94);
  --df-fp-inner: #fffefa;
  --df-fp-inner-soft: rgba(255, 254, 250, .84);
  --df-fp-hover: rgba(112, 78, 218, .075);
  --df-fp-active: rgba(112, 78, 218, .11);
  --df-fp-ink: #272332;
  --df-fp-muted: #6b6676;
  --df-fp-accent: #6847c7;
}

/* Keep the product's existing luminous background visible across these pages. */
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"],
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"],
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] {
  background: transparent !important;
  color: var(--df-fp-ink) !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .view,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .view,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .view,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .page-scroll,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .page-scroll {
  color: var(--df-fp-ink) !important;
  background: transparent !important;
}

/* Workbench: one quiet matte board, then a list with separators rather than
   stacked glass cards. The active project uses a small state wash only. */
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-board {
  border: 1px solid var(--df-fp-page-line) !important;
  border-radius: 18px !important;
  background: rgba(250, 249, 247, .94) !important;
  box-shadow: 0 14px 36px rgba(43, 32, 69, .075) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: var(--df-fp-ink) !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-board-head,
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-selection-bar {
  border-color: var(--df-fp-page-line) !important;
  color: var(--df-fp-ink) !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-board-head strong,
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-card-title,
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-progress-copy strong,
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-empty-state strong {
  color: #292536 !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-board-head p,
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-card-idea,
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-card-meta,
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-progress-copy small,
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-progress-value,
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-empty-state span {
  color: var(--df-fp-muted) !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-filter-bar button {
  border-color: transparent !important;
  background: transparent !important;
  color: #615c6d !important;
  box-shadow: none !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-filter-bar button.active {
  border-color: rgba(104, 71, 199, .15) !important;
  border-radius: 999px !important;
  background: rgba(104, 71, 199, .1) !important;
  color: #5237a6 !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-list .session-card.session-row {
  border: 0 !important;
  border-bottom: 1px solid rgba(39, 31, 56, .09) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-list .session-card.session-row:hover,
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-list .session-card.session-row:focus-within {
  background: rgba(104, 71, 199, .045) !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-list .session-card.session-row.active {
  border-radius: 8px !important;
  background: rgba(104, 71, 199, .07) !important;
  box-shadow: inset 3px 0 0 #7455d0 !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-open-btn,
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-overflow summary,
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-selection-toggle {
  border-color: var(--df-fp-page-line-strong) !important;
  background: #fffefa !important;
  color: #443d55 !important;
}

/* Prompt Library: open toolbar and filters, with equal, quiet two-column cards. */
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-library-toolbar {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--df-fp-ink) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-library-heading h3,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-library-heading .eyebrow {
  color: var(--df-fp-ink) !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-library-heading p,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-body p {
  color: var(--df-fp-muted) !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-search-field input,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-filter-toggle,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-filter-panel,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-filter-select-field select {
  border-color: var(--df-fp-page-line-strong) !important;
  border-radius: 10px !important;
  background: rgba(255, 254, 250, .94) !important;
  color: var(--df-fp-ink) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-primary-tab {
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: rgba(255, 254, 250, .65) !important;
  color: #514b5e !important;
  box-shadow: none !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-primary-tab small {
  color: #777182 !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-primary-tab.active {
  border-color: rgba(104, 71, 199, .17) !important;
  background: #eee9fb !important;
  color: #5034a3 !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-primary-tab.active small {
  color: #6349b0 !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-card {
  border: 1px solid var(--df-fp-page-line) !important;
  border-radius: 16px !important;
  background: rgba(250, 249, 247, .95) !important;
  color: var(--df-fp-ink) !important;
  box-shadow: 0 10px 28px rgba(43, 32, 69, .065) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-card:hover,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-card:focus-within {
  border-color: rgba(104, 71, 199, .27) !important;
  background: #fffefa !important;
  box-shadow: 0 14px 32px rgba(43, 32, 69, .10) !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-index,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-category,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-facts,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-facts small,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-tag {
  color: #655f70 !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-body h3 {
  color: #292536 !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-facts span,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-tag {
  border-color: rgba(39, 31, 56, .10) !important;
  background: rgba(241, 239, 235, .78) !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-actions .ghost-btn {
  border-color: var(--df-fp-page-line-strong) !important;
  background: #fffefa !important;
  color: #4d465c !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-actions .primary-btn {
  background: #6847c7 !important;
  color: #fff !important;
}

/* Run History: no glass frame around the whole page; project records use the
   same matte surface language as Workbench and Prompt Library. */
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-page,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-toolbar,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-grid {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-summary .eyebrow,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-summary h2,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-summary p,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-filters label > span {
  color: var(--df-fp-ink) !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-summary p,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-kicker,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-kicker time {
  color: var(--df-fp-muted) !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-filters input,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-filters select,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-more > summary {
  border: 1px solid var(--df-fp-page-line-strong) !important;
  border-radius: 10px !important;
  background: rgba(255, 254, 250, .94) !important;
  color: var(--df-fp-ink) !important;
  box-shadow: none !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card {
  border: 1px solid var(--df-fp-page-line) !important;
  border-radius: 16px !important;
  background: rgba(250, 249, 247, .95) !important;
  box-shadow: 0 10px 28px rgba(43, 32, 69, .065) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open {
  background: transparent !important;
  color: var(--df-fp-ink) !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open:hover,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open:focus-visible {
  background: rgba(104, 71, 199, .045) !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-copy h3 {
  color: #292536 !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-meta span {
  border-color: rgba(39, 31, 56, .11) !important;
  background: #f0eeeb !important;
  color: #5b5567 !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-status-mark {
  border-color: rgba(39, 31, 56, .12) !important;
  background: #efedf2 !important;
  color: #4a4554 !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-status-mark[data-tone="good"] {
  border-color: rgba(38, 131, 83, .20) !important;
  background: #e5f4eb !important;
  color: #216443 !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-status-mark[data-tone="warning"] {
  border-color: rgba(171, 112, 27, .22) !important;
  background: #fff2da !important;
  color: #7b5010 !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-status-mark[data-tone="error"] {
  border-color: rgba(177, 56, 72, .20) !important;
  background: #fbe9eb !important;
  color: #922f3d !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-status-mark[data-tone="cancelled"] {
  border-color: rgba(90, 82, 104, .18) !important;
  background: #eeecf1 !important;
  color: #575263 !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-cta {
  color: #6243bd !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-detail,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-more > div {
  border-color: var(--df-fp-page-line-strong) !important;
  border-radius: 14px !important;
  background: #fffefa !important;
  color: var(--df-fp-ink) !important;
  box-shadow: 0 16px 38px rgba(43, 32, 69, .15) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Creative workflow disclosure: equal, restrained breathing room above and
   below, separating it from the text composer without creating a large gap. */
html body #app#app#app#app#app#app#app#app#app[data-active-view="workbench"][data-creation-entry="fast"] .creative-workflow-disclosure {
  margin-block: 11px 13px !important;
}

/* Run History action controls remain legible on matte cards in both the normal
   and management states; keep destructive emphasis restrained until hover. */
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card {
  color: var(--df-fp-ink) !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-check {
  border-color: var(--df-fp-page-line-strong) !important;
  border-radius: 8px !important;
  background: #f2f0ec !important;
  color: #514b5e !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-delete {
  border: 1px solid var(--df-fp-page-line-strong) !important;
  border-radius: 9px !important;
  background: #fffefa !important;
  color: #7d4650 !important;
  box-shadow: none !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-delete:hover,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-delete:focus-visible {
  border-color: rgba(177, 56, 72, .24) !important;
  background: #fbe9eb !important;
  color: #922f3d !important;
}

/* P2 correction · Rejoin the Creative Engine visual system.
   All product views keep the single #app mosaic background and shared topbar.
   These three pages use the same charcoal / violet palette as the composer and
   output surfaces; no light matte panels are introduced here. */
:root {
  --df-fp-page-line: rgba(244, 244, 242, .13);
  --df-fp-page-line-strong: rgba(244, 244, 242, .22);
  --df-fp-module: rgba(14, 13, 17, .68);
  --df-fp-inner: rgba(21, 20, 25, .78);
  --df-fp-inner-soft: rgba(255, 255, 255, .055);
  --df-fp-hover: rgba(160, 132, 255, .11);
  --df-fp-active: rgba(160, 132, 255, .17);
  --df-fp-ink: #f4f4f2;
  --df-fp-muted: #b9b5c1;
  --df-fp-accent: #a98cff;
}

html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"],
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"],
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] {
  background: transparent !important;
  color: var(--df-fp-ink) !important;
}
/* Keep the exact same transparent navigation and shared product background on
   every route; do not give these pages their own opaque header/backdrop. */
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .topbar,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .topbar,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .topbar {
  background: rgba(58, 58, 66, .24) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .page-scroll,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .page-scroll,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .page-scroll {
  color: var(--df-fp-ink) !important;
  background: transparent !important;
}

/* Shared panel language: dark neutral, restrained edge, soft purple focus. */
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-board,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-card,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card {
  border: 1px solid var(--df-fp-page-line) !important;
  border-radius: 16px !important;
  background: var(--df-fp-module) !important;
  color: var(--df-fp-ink) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18) !important;
  backdrop-filter: blur(14px) saturate(1.06) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.06) !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-board :is(h1,h2,h3,h4,strong,label),
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-library-toolbar :is(h1,h2,h3,h4,strong,label),
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-card :is(h1,h2,h3,h4,strong,label),
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-page :is(h1,h2,h3,h4,strong,label) {
  color: #f7f5fb !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-board :is(p,small,time,.session-card-meta,.session-progress-value,.session-empty-state span),
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-library-toolbar :is(p,.eyebrow),
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-body p,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-page :is(p,small,time,.project-log-card-kicker) {
  color: var(--df-fp-muted) !important;
}

/* Workbench list rows stay quiet; active state is a compact violet cue, not a
   permanent bright card or a separate light-colored surface. */
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-board-head,
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-selection-bar {
  border-color: var(--df-fp-page-line) !important;
  color: var(--df-fp-ink) !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-list .session-card.session-row {
  border: 0 !important;
  border-bottom: 1px solid rgba(244, 244, 242, .10) !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #f4f4f2 !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-list .session-card.session-row.active {
  background: rgba(153, 124, 245, .12) !important;
  box-shadow: inset 3px 0 0 #a98cff !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-open-btn,
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-overflow summary,
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-selection-toggle,
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-filter-bar button {
  border-color: var(--df-fp-page-line-strong) !important;
  background: var(--df-fp-inner-soft) !important;
  color: #e9e5f0 !important;
  box-shadow: none !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-filter-bar button.active {
  border-color: rgba(169, 140, 255, .48) !important;
  background: rgba(128, 96, 213, .34) !important;
  color: #fff !important;
}

/* Prompt Library filters, categories and actions use inset dark controls. */
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-search-field input,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-filter-toggle,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-filter-panel,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-filter-select-field select,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-primary-tab,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-actions .ghost-btn {
  border-color: var(--df-fp-page-line-strong) !important;
  background: var(--df-fp-inner) !important;
  color: #eeeaf5 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-primary-tab small {
  color: #c0b7d2 !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-primary-tab.active {
  border-color: rgba(169, 140, 255, .50) !important;
  background: rgba(128, 96, 213, .38) !important;
  color: #fff !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-primary-tab.active small {
  color: #e3d7ff !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-card:hover,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-card:focus-within {
  border-color: rgba(169, 140, 255, .46) !important;
  background: rgba(25, 22, 32, .84) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24) !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-index,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-category,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-facts span,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-tag {
  border-color: rgba(207, 194, 242, .22) !important;
  background: rgba(139, 112, 198, .19) !important;
  color: #ded1ff !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-actions .primary-btn {
  background: #7957d5 !important;
  color: #fff !important;
}

/* Run History filters and expanded details share the same dark inset language. */
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-filters input,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-filters select,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-more > summary,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-detail,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-more > div {
  border-color: var(--df-fp-page-line-strong) !important;
  border-radius: 12px !important;
  background: var(--df-fp-inner) !important;
  color: #eeeaf5 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-meta span {
  border-color: rgba(207, 194, 242, .2) !important;
  background: rgba(255, 255, 255, .07) !important;
  color: #ddd5eb !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-status-mark {
  border-color: rgba(207, 194, 242, .22) !important;
  background: rgba(255, 255, 255, .075) !important;
  color: #e8e3ef !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-status-mark[data-tone="good"] { background: rgba(39, 133, 84, .28) !important; color: #a9edc2 !important; }
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-status-mark[data-tone="warning"] { background: rgba(164, 111, 31, .30) !important; color: #ffdda0 !important; }
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-status-mark[data-tone="error"] { background: rgba(166, 49, 65, .30) !important; color: #ffb9c2 !important; }
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-status-mark[data-tone="cancelled"] { background: rgba(93, 86, 111, .30) !important; color: #ddd7e9 !important; }
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-cta { color: #c8b5ff !important; }
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-delete,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-check {
  border-color: var(--df-fp-page-line-strong) !important;
  background: rgba(255, 255, 255, .06) !important;
  color: #eeeaf5 !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-delete:hover {
  border-color: rgba(255, 142, 152, .5) !important;
  background: rgba(132, 37, 54, .35) !important;
  color: #ffd4da !important;
}

/* P61.2 correction · keep the actual supplied mosaic image on every route,
   not only on the Creative Engine composer. The same scroll-following canvas
   and charcoal fade sit under all transparent views. */
html body div#app#app#app#app#app#app#app#app#app[data-active-view] {
  background-color: #09090b !important;
  background-image:
    linear-gradient(
      to bottom,
      rgba(9, 9, 11, 0) 0%,
      rgba(9, 9, 11, 0) 43%,
      rgba(9, 9, 11, .12) 57%,
      rgba(9, 9, 11, .38) 72%,
      rgba(9, 9, 11, .72) 86%,
      #09090b 100%
    ),
    url("assets/directorflow-product-background.png?v=20261006-p61-2") !important;
  background-position: 50% 0, 50% 0 !important;
  background-repeat: no-repeat, no-repeat !important;
  background-size: 100% 50vw, 100% auto !important;
  background-attachment: scroll, scroll !important;
}

html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-card-title {
  color: #f7f5fb !important;
}

/* P73 · One Creative Engine surface system across the three library views.
   The shared #app art remains the only page background; major content modules
   reuse the Output panel's charcoal gradient, edge, and blur treatment. */
html body #app#app#app#app#app#app#app#app#app[data-active-view] > .shell > .topbar {
  background: rgba(58, 58, 66, .14) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view] > .shell > .topbar .workspace-topnav-item.active,
html body #app#app#app#app#app#app#app#app#app[data-active-view] > .shell > .topbar .workspace-topnav-item[aria-current="page"] {
  background: #7655d7 !important;
  color: #fff !important;
}

html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-board,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-library-toolbar,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-page {
  border: 1px solid rgba(255, 255, 255, .16) !important;
  border-radius: 18px !important;
  background: linear-gradient(rgba(18, 17, 22, .78), rgba(7, 7, 9, .91)) !important;
  color: #f4f4f2 !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .20) !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.08) !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-board :is(h1,h2,h3,h4,strong),
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-library-toolbar :is(h1,h2,h3,h4,strong),
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-page :is(h1,h2,h3,h4,strong) {
  color: #f7f5fb !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-list .session-card.session-row,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-grid .template-choice-card,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card {
  border-color: rgba(255, 255, 255, .13) !important;
  border-radius: 14px !important;
  background: rgba(20, 19, 25, .78) !important;
  color: #f4f4f2 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14) !important;
  backdrop-filter: blur(12px) saturate(1.04) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.04) !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-list .session-card.session-row:hover,
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-list .session-card.session-row:focus-within,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-card:hover,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-card:focus-within,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open:hover,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open:focus-visible {
  border-color: rgba(169, 140, 255, .42) !important;
  background: rgba(35, 29, 48, .88) !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-card-title,
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-card :is(h2,h3,h4,strong),
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card :is(h2,h3,h4,strong) {
  color: #f7f5fb !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .session-card :is(p,small,time,.session-card-idea,.session-card-meta),
html body #app#app#app#app#app#app#app#app#app[data-active-view="templates"] .template-choice-card :is(p,small,.template-choice-description),
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card :is(p,small,time,.project-log-card-kicker) {
  color: #c5c0cc !important;
}

/* P74 · Run History top-nav separator removal.
   The legacy nth-child rules still add a pseudo-element before the logs item;
   keep the rest of the navigation spacing unchanged and remove only this line. */
html body #app#app#app#app#app#app[data-active-view] > .shell > .topbar .workspace-topnav-item[data-view="logs"]::before {
  content: none !important;
  display: none !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* P78 · Canonical landing hero title treatment.
   This is the single source of truth for the hero title. The first line stays
   plain; the second line uses one opaque gold face with purple dimensional
   edging. No transparent text layers or stacked legacy effects. */
@keyframes directorflow-hero-sparkle-canonical {
  0%, 100% { opacity: .22; transform: scale(.82) rotate(0deg); }
  42% { opacity: .92; transform: scale(1.04) rotate(16deg); }
  72% { opacity: .34; transform: scale(.88) rotate(34deg); }
}

html body #app#app#app#app#app#app[data-active-view="home"] .home-hero h1 {
  color: #1c1725 !important;
  -webkit-text-fill-color: #1c1725 !important;
  text-shadow: none !important;
}

html body #app#app#app#app#app#app[data-active-view="home"] .home-hero h1 em {
  position: relative !important;
  display: inline-block !important;
  isolation: isolate !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-stroke: 0 !important;
  text-shadow:
    0 1px 0 #d8c4ff,
    0 2px 0 #a978e7,
    0 4px 0 #68449f,
    0 6px 10px rgba(44, 19, 78, .34) !important;
  filter: none !important;
  animation: none !important;
}

html body #app#app#app#app#app#app[data-active-view="home"] .home-hero .home-lede {
  color: #fff !important;
  font-style: italic !important;
  font-weight: 750 !important;
  text-shadow:
    0 1px 2px rgba(19, 10, 35, .88),
    0 3px 10px rgba(19, 10, 35, .52) !important;
}

html body #app#app#app#app#app#app[data-active-view="home"] .home-hero h1 em::before {
  content: none !important;
  display: none !important;
}

html body #app#app#app#app#app#app[data-active-view="home"] .home-hero h1 em::after {
  content: "✦" !important;
  position: absolute !important;
  top: -.30em !important;
  right: -.82em !important;
  z-index: 1 !important;
  color: #ffe5a0 !important;
  -webkit-text-fill-color: #ffe5a0 !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  font-size: .24em !important;
  font-style: normal !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-shadow: 0 0 7px rgba(255, 219, 126, .52) !important;
  transform-origin: center !important;
  animation: directorflow-hero-sparkle-canonical 3.8s ease-in-out infinite !important;
  pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html body #app#app#app#app#app#app[data-active-view="home"] .home-hero h1 em::after {
    animation: none !important;
    opacity: .62 !important;
  }
}

/* Workbench: promote the project board to the former outer-shell footprint.
   The page wrapper stays as a transparent layout/scroll frame only. */
html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .page-scroll.task-session-page {
  box-sizing: border-box !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-board {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  align-self: stretch !important;
  margin-inline: 0 !important;
}

/* Workbench empty filter states: let the empty notice occupy the list viewport
   so zero-result filters remain centered inside the board, independent of the
   selected status or how many rows/pagination controls exist. */
html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-board:has(.session-empty-state:not([hidden])) .task-session-list {
  display: none !important;
}

html body #app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-board:has(.session-empty-state:not([hidden])) .session-empty-state {
  display: grid !important;
  flex: 1 1 0 !important;
  align-content: center !important;
  justify-items: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 24px 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-align: center !important;
}

/* P85 · Workbench rows keep the same fixed track size for every status filter.
   A short Needs review/Completed result set must not stretch its grid tracks to
   fill the list viewport; extra space belongs to the scroll area, not the rows. */
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-list {
  align-content: start !important;
  grid-auto-rows: 76px !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-list .session-card.session-row {
  box-sizing: border-box !important;
  height: 76px !important;
  min-height: 76px !important;
  max-height: 76px !important;
  overflow: hidden !important;
}

@media (max-width: 780px) {
  html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-list {
    grid-auto-rows: 112px !important;
  }
  html body #app#app#app#app#app#app#app#app#app[data-active-view="sessions"] .task-session-list .session-card.session-row {
    height: 112px !important;
    min-height: 112px !important;
    max-height: 112px !important;
  }
}


/* P86 · Landing Prompt Library copy visibility and CTA spacing. */
html body #app#app#app#app#app#app#app#app#app[data-active-view="home"] #home-prompt-library .home-feature-copy {
  align-self: center !important;
  overflow: visible !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="home"] #home-prompt-library .home-feature-copy > p:not(.home-kicker) {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  max-width: 470px !important;
  margin: 20px 0 0 !important;
  overflow: visible !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  -webkit-line-clamp: unset !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="home"] #home-prompt-library .home-feature-copy > button {
  margin-top: 34px !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="home"] .home-footer {
  justify-content: flex-start !important;
}
html body #app#app#app#app#app#app#app#app#app[data-active-view="home"] .home-footer span:first-child {
  color: var(--dp-ink) !important;
  font-weight: 750 !important;
}
