/* Small, decorative brand marks. Existing title hooks also cover My tasks
   without changing its template or the work-list component. No new macro. */
.ph-app :is(.ph-header__title, .ph-taskhead__title, .ph-bm__title, .ds-page-title, .ph-my-work__header h1, .ph-onboarding__header h1)::after {
  content: '';
  display: block;
  width: var(--gradient-tab-w);
  height: var(--gradient-tab-h);
  margin-block-start: var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--gradient);
}

/* Fill the whole working area below the top bar, including its gutters.
   The base template opts in only the app-system pages. Do not isolate main:
   the fixed task scrim and sheet must still layer above the sidebar. */
.ph-app.ph-brand-workspace {
  position: relative;
  background: var(--page);
}
.ph-app.ph-brand-workspace::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--page-glow-height);
  z-index: var(--z-page-decoration);
  background: var(--gradient);
  opacity: var(--page-glow-opacity);
  mask-image: var(--page-glow-fade);
  pointer-events: none;
}
/* The working area is as wide as the window; the content stays capped. <main> is full width on these pages and its
   side padding grows past the cap, so the glow above spans the whole area right of the sidebar while the page
   content keeps the old box (the cap less two gutters). */
.ph-app.ph-brand-workspace {
  max-width: none;
  margin-inline: 0;
  padding-inline: max(var(--workspace-gutter), calc((100% - var(--workspace-max)) / 2 + var(--workspace-gutter)));
}
/* Page wrappers retain their layout but let the shared background show.
   Their own cards keep their surface. The sheet and scrim retain their layers. */
.ph-app.ph-brand-workspace > .ph-app:is(.ph-preview, .ph-my-work, .ph-bm, .ds-page, .ph-onboarding):not(.ph-taskpage) {
  position: relative;
  z-index: var(--z-raised);
  background: transparent;
}

@media (forced-colors: active) {
  .ph-app :is(.ph-header__title, .ph-taskhead__title, .ph-bm__title, .ds-page-title, .ph-my-work__header h1, .ph-onboarding__header h1)::after,
  .ph-app.ph-brand-workspace::before { content: none; }
}
@media print {
  .ph-app.ph-brand-workspace::before { content: none; }
}
