:where(.lf-app-shell) {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--lf-sidebar-width) minmax(0, 1fr);
  gap: var(--lf-space-6);
  padding: var(--lf-space-5) var(--lf-space-6) var(--lf-space-6);
  background: var(--lf-color-bg);
}

:where(.shell) {
  background: var(--lf-color-bg);
}

:where(.lf-main) {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: var(--lf-space-5);
}

:where(.main, .lf-page) {
  min-width: 0;
}

:where(.lf-page-grid) {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--lf-space-5);
}

@media (max-width: 980px) {
  :where(.lf-app-shell) {
    grid-template-columns: 1fr;
    padding: var(--lf-space-4);
  }

  :where(.lf-page-grid) {
    grid-template-columns: 1fr;
  }
}

/* Unified app shell flat styles moved from global-design-system.css. */
body.dashboard-client-flat-theme > .shell,
body[data-company-theme] > .shell:has(> .sidebar) {
  min-height: 100vh !important;
  display: grid !important;
  grid-template-columns: var(--lf-sidebar-width) minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 24px !important;
  padding: 20px 24px 24px !important;
}

body.dashboard-client-flat-theme > .shell > .main,
body[data-company-theme] > .shell:has(> .sidebar) > .main {
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 0 40px !important;
  background: transparent !important;
}
