/* White workspace: people, assignments and the project file hub.
   Loaded after the existing module styles; their layout and behavior remain intact. */

/* People and team work */
body.mac-theme .next-shell .staff-page {
  --staff-ink: var(--white-text, #1d2c30);
  --staff-muted: var(--white-muted, #64767a);
  --staff-line: var(--white-line, #e1e7e4);
  --staff-accent: var(--white-accent, #2b675b);
  color: var(--staff-ink);
}
body.mac-theme .next-shell .staff-page .staff-heading {
  border: 1px solid var(--staff-line);
  background: #fff;
  box-shadow: none;
}
body.mac-theme .next-shell .staff-page .staff-heading::before { display: none; }
body.mac-theme .next-shell .staff-page .staff-heading h1,
body.mac-theme .next-shell .staff-page .staff-directory-heading h2,
body.mac-theme .next-shell .staff-page .staff-person h2,
body.mac-theme .next-shell .staff-page .staff-board-heading h2,
body.mac-theme .next-shell .staff-page .staff-side-heading h2,
body.mac-theme .next-shell .staff-page .staff-list-heading h2,
body.mac-theme .next-shell .staff-page .staff-detail-heading h2,
body.mac-theme .next-shell .staff-page .staff-summary-item strong,
body.mac-theme .next-shell .staff-page .staff-assignment > strong { color: var(--staff-ink); }
body.mac-theme .next-shell .staff-page .staff-heading p,
body.mac-theme .next-shell .staff-page .staff-directory-heading p,
body.mac-theme .next-shell .staff-page .staff-board-heading > span,
body.mac-theme .next-shell .staff-page .staff-side-heading p,
body.mac-theme .next-shell .staff-page .staff-person p,
body.mac-theme .next-shell .staff-page .staff-row-meta,
body.mac-theme .next-shell .staff-page .staff-detail-meta { color: var(--staff-muted); }
body.mac-theme .next-shell .staff-page .staff-eyebrow { color: var(--staff-accent); }
body.mac-theme .next-shell .staff-page .staff-heading-actions .staff-button:not(.staff-primary),
body.mac-theme .next-shell .staff-page .staff-button:not(.staff-primary) {
  border-color: var(--staff-line);
  background: #fff;
  color: var(--staff-accent);
  box-shadow: none;
}
body.mac-theme .next-shell .staff-page .staff-heading-actions .staff-button:not(.staff-primary):hover,
body.mac-theme .next-shell .staff-page .staff-button:not(.staff-primary):hover { background: var(--white-soft, #f7f9f8); }
body.mac-theme .next-shell .staff-page .staff-primary,
body.mac-theme .staff-dialog .staff-primary {
  border-color: var(--white-accent, #2b675b);
  background: var(--white-accent, #2b675b);
  color: #fff;
  box-shadow: none;
}
body.mac-theme .next-shell .staff-page .staff-primary:hover,
body.mac-theme .staff-dialog .staff-primary:hover { border-color: #205348; background: #205348; }
body.mac-theme .next-shell .staff-page :is(.staff-directory, .staff-center, .staff-side, .staff-list-panel, .staff-detail) {
  border-color: var(--staff-line);
  background: #fff;
  box-shadow: none;
}
body.mac-theme .next-shell .staff-page .staff-directory-heading,
body.mac-theme .next-shell .staff-page .staff-list-heading,
body.mac-theme .next-shell .staff-page .staff-assignment,
body.mac-theme .next-shell .staff-page .staff-detail-meta,
body.mac-theme .next-shell .staff-page .staff-history,
body.mac-theme .next-shell .staff-page .staff-history li { border-color: var(--staff-line); }
body.mac-theme .next-shell .staff-page .staff-list-heading { background: #fff; }
body.mac-theme .next-shell .staff-page .staff-list-heading > span,
body.mac-theme .next-shell .staff-page .staff-person > .staff-text-button,
body.mac-theme .next-shell .staff-page .staff-history-caption strong,
body.mac-theme .next-shell .staff-page .staff-more { color: var(--staff-accent); }
body.mac-theme .next-shell .staff-page .staff-profile { border-color: transparent; background: #fff; color: var(--staff-ink); box-shadow: none; }
body.mac-theme .next-shell .staff-page .staff-profile:hover,
body.mac-theme .next-shell .staff-page .staff-assignment:hover { background: var(--white-soft, #f7f9f8); }
body.mac-theme .next-shell .staff-page .staff-profile.is-selected,
body.mac-theme .next-shell .staff-page .staff-assignment.is-selected {
  border-color: #cbded7;
  background: var(--white-accent-soft, #eaf3ef);
  color: var(--staff-ink);
  box-shadow: inset 3px 0 var(--staff-accent);
}
body.mac-theme .next-shell .staff-page .staff-profile small { color: var(--staff-muted); }
body.mac-theme .next-shell .staff-page .staff-avatar { background: var(--white-accent-soft, #eaf3ef); color: var(--staff-accent); }
body.mac-theme .next-shell .staff-page .staff-profile.is-selected .staff-avatar,
body.mac-theme .next-shell .staff-page .staff-person-mark { background: var(--staff-accent); color: #fff; box-shadow: none; }
body.mac-theme .next-shell .staff-page .staff-context { border-color: var(--staff-line); background: #fff; }
body.mac-theme .next-shell .staff-page .staff-person { border-bottom-color: var(--staff-line); }
body.mac-theme .next-shell .staff-page .staff-person .staff-responsibilities { color: #465f61; }
body.mac-theme .next-shell .staff-page .staff-summary-item,
body.mac-theme .next-shell .staff-page .staff-summary-item.is-total {
  border-color: var(--staff-line);
  background: #fff;
  color: var(--staff-ink);
}
body.mac-theme .next-shell .staff-page .staff-summary-item::before { background: #aebfba; }
body.mac-theme .next-shell .staff-page .staff-summary-item.is-total::before { background: var(--staff-accent); }
body.mac-theme .next-shell .staff-page .staff-summary-item span,
body.mac-theme .next-shell .staff-page .staff-summary-item.is-total span { color: var(--staff-muted); }
body.mac-theme .next-shell .staff-page .staff-summary-item.is-total strong { color: var(--staff-ink); }
body.mac-theme .next-shell .staff-page .staff-filters { border: 1px solid var(--staff-line); background: var(--white-soft, #f7f9f8); box-shadow: none; }
body.mac-theme .next-shell .staff-page .staff-filter { color: var(--staff-muted); }
body.mac-theme .next-shell .staff-page .staff-filter.is-active { border-color: #cbded7; background: #fff; color: var(--staff-accent); box-shadow: none; }
body.mac-theme .next-shell .staff-page .staff-filter:hover { color: var(--staff-accent); }
body.mac-theme .next-shell .staff-page .staff-assignment { color: var(--staff-ink); }
body.mac-theme .next-shell .staff-page .staff-more { border-color: var(--staff-line); background: #fff; }
body.mac-theme .next-shell .staff-page .staff-detail.is-empty { background: #fff; }
body.mac-theme .next-shell .staff-page .staff-instruction h3,
body.mac-theme .next-shell .staff-page .staff-history h3 { color: var(--staff-accent); }
body.mac-theme .next-shell .staff-page .staff-instruction > p { color: var(--staff-ink); }
body.mac-theme .next-shell .staff-page .staff-related,
body.mac-theme .next-shell .staff-page .staff-report,
body.mac-theme .next-shell .staff-page .staff-history dl,
body.mac-theme .next-shell .staff-page .staff-done-note {
  border-color: var(--staff-line);
  background: var(--white-soft, #f7f9f8);
  color: #425d58;
}
body.mac-theme .next-shell .staff-page .staff-report > label { color: var(--staff-accent); }
body.mac-theme .next-shell .staff-page .staff-report textarea { border-color: var(--staff-line); background: #fff; color: var(--staff-ink); }
body.mac-theme .next-shell .staff-page .staff-empty h2 { color: var(--staff-ink); }
body.mac-theme .next-shell .staff-page .staff-empty p { color: var(--staff-muted); }
body.mac-theme .next-shell .staff-page > .staff-empty { border: 1px solid var(--staff-line); border-radius: 14px; background: #fff; }
body.mac-theme .next-shell .staff-page .staff-status-assigned { background: #f1f3f2; color: #566a65; }
body.mac-theme .next-shell .staff-page .staff-status-in_progress { background: #eaf2f6; color: #336c86; }
body.mac-theme .next-shell .staff-page .staff-status-review_requested { background: #f8f0e4; color: #89652d; }
body.mac-theme .next-shell .staff-page .staff-status-completed { background: #eaf3ed; color: #3d7153; }

/* Staff forms open outside .next-shell. */
body.mac-theme dialog:has(.staff-dialog) { border-color: var(--white-line, #e1e7e4); background: #fff; box-shadow: 0 22px 60px #1d2c301a; }
body.mac-theme .staff-dialog { --staff-ink: #1d2c30; --staff-muted: #64767a; --staff-line: #e1e7e4; --staff-accent: #2b675b; color: var(--staff-ink); background: #fff; }
body.mac-theme .staff-dialog h2 { color: var(--staff-ink); }
body.mac-theme .staff-dialog :is(.staff-recipient, .staff-assignee-recovery) { border-color: var(--staff-line); background: #f7f9f8; color: #425d58; }
body.mac-theme .staff-dialog .staff-avatar { background: #eaf3ef; color: var(--staff-accent); }
body.mac-theme .staff-dialog .staff-form-fields label { color: #425d58; }
body.mac-theme .staff-dialog .staff-form-fields :is(input, textarea, select) { border-color: var(--staff-line); background: #fff; color: var(--staff-ink); }
body.mac-theme .staff-dialog footer { border-top-color: var(--staff-line); }

/* Library: white canvas, white tree and white reading panes. */
body.mac-theme .next-shell .library-page {
  --library-ink: var(--white-text, #1d2c30);
  --library-muted: var(--white-muted, #64767a);
  --library-line: var(--white-line, #e1e7e4);
  --library-lime: var(--white-accent-soft, #eaf3ef);
  background: #fff;
  color: var(--library-ink);
}
body.mac-theme .next-shell .library-page .library-heading {
  border-color: var(--library-line);
  background: #fff;
  color: var(--library-ink);
  box-shadow: none;
}
body.mac-theme .next-shell .library-page .library-heading h1 { color: var(--library-ink); }
body.mac-theme .next-shell .library-page .library-heading p { color: var(--library-muted); }
body.mac-theme .next-shell .library-page .next-library-kicker { color: var(--white-accent, #2b675b); }
body.mac-theme .next-shell .library-page .library-heading > button,
body.mac-theme .next-shell .library-page .library-toolbar > div:nth-child(2) > .secondary,
body.mac-theme .next-shell .library-page .library-file-list > .library-empty .secondary {
  border-color: var(--white-accent, #2b675b);
  background: var(--white-accent, #2b675b);
  color: #fff;
  box-shadow: none;
}
body.mac-theme .next-shell .library-page .library-heading > button:hover,
body.mac-theme .next-shell .library-page .library-toolbar > div:nth-child(2) > .secondary:hover,
body.mac-theme .next-shell .library-page .library-file-list > .library-empty .secondary:hover { border-color: #205348; background: #205348; }
body.mac-theme .next-shell .library-sync-notice { border-color: var(--library-line); background: var(--white-soft, #f7f9f8); color: #425d58; }
body.mac-theme .next-shell .next-library-start { border-color: var(--library-line); background: #fff; color: var(--library-ink); box-shadow: none; }
body.mac-theme .next-shell .next-library-start::after { display: none; }
body.mac-theme .next-shell .next-library-start-mark { border-color: #d5e5dd; background: var(--white-accent-soft, #eaf3ef); color: var(--white-accent, #2b675b); }
body.mac-theme .next-shell .next-library-start-kicker { color: var(--white-accent, #2b675b); }
body.mac-theme .next-shell .next-library-start h2 { color: var(--library-ink); }
body.mac-theme .next-shell .next-library-start p,
body.mac-theme .next-shell .next-library-start > small { color: var(--library-muted); }
body.mac-theme .next-shell .next-library-start-action { border-color: var(--white-accent, #2b675b); background: var(--white-accent, #2b675b); color: #fff; }
body.mac-theme .next-shell .next-library-start-action:hover { border-color: #205348; background: #205348; }
body.mac-theme .next-shell .library-page :is(.library-sidebar, .library-main, .library-preview) { border-color: var(--library-line); background: #fff; box-shadow: none; }
body.mac-theme .next-shell .library-page .library-sidebar { color: var(--library-ink); }
body.mac-theme .next-shell .library-sidebar .library-project-group > h2,
body.mac-theme .next-shell .library-sidebar .library-category-heading .library-category-title { color: #526b67; }
body.mac-theme .next-shell .library-sidebar .library-tree-toggle,
body.mac-theme .next-shell .library-sidebar .library-category-heading .library-group-add,
body.mac-theme .next-shell .library-sidebar .library-folder-add { color: var(--library-muted); }
body.mac-theme .next-shell .library-sidebar .library-project-heading > .library-collection-button,
body.mac-theme .next-shell .library-sidebar .library-project-folders .library-folder-button { color: var(--library-ink); }
body.mac-theme .next-shell .library-sidebar .library-project-heading > .library-collection-button .library-tree-folder { color: var(--white-accent, #2b675b); }
body.mac-theme .next-shell .library-sidebar .library-project-heading > .library-collection-button.is-ancestor,
body.mac-theme .next-shell .library-sidebar .library-project-folders .library-folder-button.is-active,
body.mac-theme .next-shell .library-sidebar .library-collection-button.is-active {
  border-color: #cbded7;
  background: var(--white-accent-soft, #eaf3ef);
  color: var(--white-accent, #2b675b);
  box-shadow: inset 2px 0 var(--white-accent, #2b675b);
}
body.mac-theme .next-shell .library-sidebar .library-project-heading > .library-collection-button:hover,
body.mac-theme .next-shell .library-sidebar .library-project-folders .library-folder-button:hover,
body.mac-theme .next-shell .library-sidebar .library-tree-toggle:hover { background: var(--white-soft, #f7f9f8); color: var(--library-ink); }
body.mac-theme .next-shell .library-sidebar .library-category-heading .library-group-add:hover,
body.mac-theme .next-shell .library-sidebar .library-folder-add:hover { color: var(--white-accent, #2b675b); }
body.mac-theme .next-shell .library-sidebar .library-category-projects,
body.mac-theme .next-shell .library-sidebar .library-project-folders { border-left-color: #d7e2dc; }
body.mac-theme .next-shell .library-sidebar .library-project-node::before,
body.mac-theme .next-shell .library-sidebar .library-project-folders .library-folder-button::before { border-top-color: #d7e2dc; }
body.mac-theme .next-shell .library-page .library-toolbar,
body.mac-theme .next-shell .library-page .library-preview-heading { border-color: var(--library-line); background: #fff; }
body.mac-theme .next-shell .library-toolbar .library-breadcrumb,
body.mac-theme .next-shell .library-toolbar > div:nth-child(2) > a,
body.mac-theme .next-shell .library-toolbar .library-rename-button,
body.mac-theme .next-shell .library-page .library-preview-heading > a,
body.mac-theme .next-shell .library-page .library-preview-source button { color: var(--white-accent, #2b675b); }
body.mac-theme .next-shell .library-toolbar h2,
body.mac-theme .next-shell .library-page .library-preview-heading h2,
body.mac-theme .next-shell .library-page .library-item-title { color: var(--library-ink); }
body.mac-theme .next-shell .library-toolbar > div:first-child > span:last-child,
body.mac-theme .next-shell .library-page .library-item-meta,
body.mac-theme .next-shell .library-page .library-item-date { color: var(--library-muted); }
body.mac-theme .next-shell .library-toolbar .library-sharing-label,
body.mac-theme .next-shell .library-page .library-item-kind,
body.mac-theme .next-shell .library-page .library-final-badge,
body.mac-theme .next-shell .library-page .library-item-badge { border-color: #d5e5dd; background: var(--white-accent-soft, #eaf3ef); color: var(--white-accent, #2b675b); }
body.mac-theme .next-shell .library-toolbar .library-search input,
body.mac-theme .next-shell .library-toolbar .library-sort select { border-color: var(--library-line); background: #fff; color: var(--library-ink); }
body.mac-theme .next-shell .library-toolbar .library-type-tab,
body.mac-theme .next-shell .library-page .library-format-button { border-color: var(--library-line); background: #fff; color: var(--library-muted); }
body.mac-theme .next-shell .library-toolbar .library-type-tab[aria-pressed="true"],
body.mac-theme .next-shell .library-page .library-format-button[aria-pressed="true"] { border-color: #cbded7; background: var(--white-accent-soft, #eaf3ef); color: var(--white-accent, #2b675b); }
body.mac-theme .next-shell .library-page .library-file-list,
body.mac-theme .next-shell .library-page .library-preview-body,
body.mac-theme .next-shell .library-page .library-preview-feedback,
body.mac-theme .next-shell .library-page .library-preview-body pre { background: #fff; }
body.mac-theme .next-shell .library-page .library-document-row { border-color: #e9eeeb; }
body.mac-theme .next-shell .library-page .library-list-row { color: var(--library-ink); }
body.mac-theme .next-shell .library-page .library-list-row:hover,
body.mac-theme .next-shell .library-page .library-document-row:hover { background: var(--white-soft, #f7f9f8); }
body.mac-theme .next-shell .library-page .library-list-row.is-selected,
body.mac-theme .next-shell .library-page .library-document-row:has(.library-list-row.is-selected) { border-color: #cbded7; background: var(--white-accent-soft, #eaf3ef); color: var(--library-ink); box-shadow: inset 3px 0 var(--white-accent, #2b675b); }
body.mac-theme .next-shell .library-page .library-file-list > .library-empty h3,
body.mac-theme .next-shell .library-page .library-preview-feedback strong,
body.mac-theme .next-shell .library-page .library-preview-body > .library-empty > span { color: var(--library-ink); }
body.mac-theme .next-shell .library-page .library-file-list > .library-empty p,
body.mac-theme .next-shell .library-page .library-preview-body > .library-empty p { color: var(--library-muted); }
body.mac-theme .next-shell .library-page .library-preview-body > .library-empty > a { border-color: var(--library-line); background: #fff; color: var(--white-accent, #2b675b); }
body.mac-theme .next-shell .library-page .library-preview-spinner { border-top-color: var(--white-accent, #2b675b); }
body.mac-theme .next-shell .library-page .library-preview-source { border-color: var(--library-line); background: #fff; }
body.mac-theme .next-shell .library-page details[open] > div { border-color: var(--library-line); background: #fff; }
body.mac-theme .next-shell .library-page details[open] > div > button:hover { background: var(--white-soft, #f7f9f8); }
body.mac-theme .next-shell .library-page :is(button, a, summary, input, select):focus-visible { outline-color: var(--white-accent, #2b675b); }

/* Library dialogs are outside .next-shell. */
body.mac-theme .library-dialog { color: #1d2c30; background: #fff; }
body.mac-theme .library-dialog h2 { color: #1d2c30; }
body.mac-theme .library-dialog :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { border-color: #e1e7e4; background: #fff; color: #1d2c30; }
body.mac-theme .library-dialog input[type=file] { border-color: #d5e5dd !important; background: #f7f9f8 !important; }

@media (max-width: 560px) {
  body.mac-theme .next-shell .staff-page .staff-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  body.mac-theme .next-shell .staff-page .staff-summary-item { min-height: 66px; padding: 9px 8px; }
  body.mac-theme .next-shell .staff-page .staff-summary-item span { font-size: 10px; }
  body.mac-theme .next-shell .staff-page .staff-filters { overflow-x: auto; flex-wrap: nowrap; }
  body.mac-theme .next-shell .staff-page .staff-filter { flex: 0 0 auto; padding-inline: 10px; }
  body.mac-theme .next-shell .library-page .library-heading { background: #fff; }
  body.mac-theme .next-shell .library-page .library-sidebar { background: #fff; }
}
