/* Dashboard: standalone cards on the app's peach background.
   Only the two decorative section wrappers are flattened; each functional
   note, task, cash-flow, chart and Xero card retains its own surface. */
body[data-app-view="runs"] #runs-view > .workflow-intro.ym-dashboard-surface {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
  margin: 0 0 26px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  border-image: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-app-view="runs"] #runs-view > .ym-dashboard-surface::before,
body[data-app-view="runs"] #runs-view .ym-dashboard-drip-accent,
body[data-app-view="runs"] #runs-view .ym-dashboard-bloom-accent,
body[data-app-view="runs"] #runs-view .ym-dashboard-hero-mark {
  display: none;
}

/* No nested collection overview panel: the metric tiles and chart are cards. */
body[data-app-view="runs"] #runs-view .ym-dashboard-cashflow {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Make My Notes, My Tasks and the collection cards equal grid siblings. */
body[data-app-view="runs"] #runs-view #ym-personal-notes,
body[data-app-view="runs"] #runs-view #ym-dashboard-my-tasks-shortcut {
  min-width: 0;
  margin: 0;
}

body[data-app-view="runs"] #runs-view .ym-dashboard-cashflow-grid,
body[data-app-view="runs"] #runs-view .ym-dashboard-card-grid,
body[data-app-view="runs"] #runs-view .ym-dashboard-xero-widgets {
  min-width: 0;
}

/* Mobile: the page name lives in the peach bottom dock, so avoid
   an empty header/eyebrow above the first useful dashboard control. */
@media (max-width: 760px) {
  body[data-app-view="runs"] #runs-view > .workflow-intro.ym-dashboard-surface {
    gap: 14px;
    padding: 0;
    margin-bottom: 20px;
  }

  body[data-app-view="runs"] #runs-view .ym-dashboard-heading {
    display: none;
  }

  body[data-app-view="runs"] #runs-view .ym-dashboard-cashflow {
    gap: 14px;
  }
}
