/* Shared empty lists use the user's decorative character, independently of AI access. */
html:root :is(.crm-empty-state,.calendar-empty,.workspace-empty,.testing-empty,.news-empty,.events-empty,.invoice-column-empty,.chat-list-empty,.payroll-directory-empty,.payroll-audit-empty) {
  --empty-art-size: 190px;
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 278px;
  margin: 0;
  padding: calc(var(--empty-art-size) + 18px) 20px 24px;
  overflow: hidden;
  border-radius: 14px;
  background: transparent;
  color: var(--text-primary);
  text-align: center;
  font: inherit;
}
html:root[data-theme] :is(.crm-empty-state,.calendar-empty,.workspace-empty,.testing-empty,.news-empty,.events-empty,.invoice-column-empty,.chat-list-empty,.payroll-directory-empty,.payroll-audit-empty)::before {
  content: '';
  display: block;
  position: absolute;
  z-index: -1;
  inset: 8px 0 auto;
  width: 100%;
  height: var(--empty-art-size);
  transform: none;
  background: var(--character-empty) center / contain no-repeat;
  opacity: .85;
  pointer-events: none;
}
html:root :is(.crm-empty-compact,.events-empty,.invoice-column-empty,.chat-list-empty,.payroll-directory-empty,.payroll-audit-empty) {
  --empty-art-size: 110px;
  min-height: 180px;
  padding: calc(var(--empty-art-size) + 18px) 12px 18px;
}
html:root :is(.crm-empty-state,.calendar-empty,.workspace-empty,.testing-empty,.news-empty,.events-empty) > :is(h3,p,strong,span) {
  max-width: 560px;
  margin: 0;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.45;
}
html:root :is(.crm-empty-state,.calendar-empty,.workspace-empty,.testing-empty,.news-empty,.events-empty) > :is(h3,strong,.calendar-empty-title) { font-weight: 600; color: var(--text-primary); }
html:root :is(.crm-empty-state,.calendar-empty,.workspace-empty,.testing-empty,.news-empty,.events-empty) > :is(p,span:not(.calendar-empty-title)) { color: var(--text-secondary); font-size: .875rem; }
html:root[data-artwork="none"] :is(.crm-empty-state,.calendar-empty,.workspace-empty,.testing-empty,.news-empty,.events-empty,.invoice-column-empty,.chat-list-empty,.payroll-directory-empty,.payroll-audit-empty) { min-height: 100px; padding: 24px 16px; justify-content: center; }
html:root[data-theme][data-artwork="none"] :is(.crm-empty-state,.calendar-empty,.workspace-empty,.testing-empty,.news-empty,.events-empty,.invoice-column-empty,.chat-list-empty,.payroll-directory-empty,.payroll-audit-empty)::before { display: none; }
html:root :is(.crm-empty-state,.calendar-empty,.workspace-empty,.testing-empty,.news-empty,.events-empty,.invoice-column-empty,.chat-list-empty,.payroll-directory-empty,.payroll-audit-empty)[hidden] { display: none; }
html:root #home-tasks-card .home-task-links[hidden] { display: none; }
html:root .chat-welcome > .crm-empty-state { opacity: 1; }
html:root :is(.workspace-empty,#project-list > .crm-empty-state,#analytics-results > .crm-empty-state,#production-content > .crm-empty-state,#structure-list > .crm-empty-state,#company-tree > .crm-empty-state) { grid-column: 1 / -1; background: var(--surface); }
html:root :is(.shift-scroll,.timesheet-scroll):has(.crm-empty-state) { container-type: inline-size; }
html:root :is(.shift-empty,.timesheet-empty) > .crm-empty-state { position: sticky; left: 0; width: calc(100cqw - 32px); max-width: 100%; }
@media (max-width: 600px) {
  html:root :is(.crm-empty-state:not(.crm-empty-compact),.calendar-empty,.workspace-empty,.testing-empty,.news-empty) { --empty-art-size: 160px; min-height: 248px; padding: calc(var(--empty-art-size) + 18px) 14px 20px; }
  html:root[data-artwork="none"] :is(.crm-empty-state,.calendar-empty,.workspace-empty,.testing-empty,.news-empty) { min-height: 100px; padding: 24px 16px; }
}
