/* Staff workspace · people → assignments → work context.
   Orbix CareNest and MediFlex inspired the information order; live records remain authoritative. */
body[class] .staff-page {
  --staff-ink: #153039;
  --staff-muted: #688188;
  --staff-line: #d9e8e5;
  --staff-accent: #126e67;
  max-width: 1630px;
  padding: 0 2px 36px;
}

body[class] .staff-page .staff-heading {
  min-height: 138px;
  margin-bottom: 14px;
  border-color: #17404b;
  background: radial-gradient(ellipse at 78% 15%, rgba(135, 224, 209, .22), transparent 42%), linear-gradient(110deg, #09242e, #12434c 64%, #276a69);
  box-shadow: 0 20px 42px rgba(8, 42, 48, .13);
}
body[class] .staff-page .staff-heading::before {
  border-color: rgba(177, 245, 221, .23);
  box-shadow: 0 0 0 58px rgba(177, 245, 221, .045), 0 0 0 116px rgba(177, 245, 221, .025);
}
body[class] .staff-page .staff-heading h1 { color: #f8fffb; }
body[class] .staff-page .staff-heading p { color: #b7d4d0; }
body[class] .staff-page .staff-heading-actions { position: relative; z-index: 1; }
body[class] .staff-page .staff-heading-actions .staff-button:not(.staff-primary) {
  border-color: rgba(211, 242, 233, .34);
  background: rgba(255, 255, 255, .08);
  color: #effbf6;
}
body[class] .staff-page .staff-heading-actions .staff-button:not(.staff-primary):hover { background: rgba(255, 255, 255, .16); }
body[class] .staff-page .staff-heading-actions .staff-primary { background: #dbf4a5; border-color: #dbf4a5; color: #15302c; }
body[class] .staff-page .staff-heading-actions .staff-primary:hover { background: #e6ffb7; border-color: #e6ffb7; }

body[class] .staff-page .staff-workspace.staff-command {
  display: grid;
  grid-template-columns: minmax(195px, 226px) minmax(345px, .94fr) minmax(345px, 1.06fr);
  gap: 13px;
  align-items: start;
}
body[class] .staff-page .staff-command.is-member { grid-template-columns: minmax(345px, .94fr) minmax(345px, 1.06fr); }
body[class] .staff-page .staff-directory,
body[class] .staff-page .staff-center,
body[class] .staff-page .staff-side {
  min-width: 0;
  border: 1px solid var(--staff-line);
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(13, 53, 56, .045);
}
body[class] .staff-page .staff-directory { background: #f8fcfa; padding: 19px 10px 12px; }
body[class] .staff-page .staff-center { background: #fff; padding: 12px; }
body[class] .staff-page .staff-side { background: #f3f9f7; padding: 13px; }

body[class] .staff-page .staff-eyebrow {
  display: block;
  color: #488c82;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .16em;
}
body[class] .staff-page .staff-directory-heading { padding: 3px 12px 17px; border-bottom: 1px solid var(--staff-line); }
body[class] .staff-page .staff-directory-heading h2 { margin: 8px 0 4px; color: var(--staff-ink); font-size: 22px; line-height: 1.25; letter-spacing: -.045em; }
body[class] .staff-page .staff-directory-heading p { margin: 0; color: var(--staff-muted); font-size: 12px; line-height: 1.6; word-break: keep-all; }
body[class] .staff-page .staff-profiles { display: grid; gap: 3px; margin: 11px 0 0; padding: 0; border: 0; }
body[class] .staff-page .staff-profile {
  width: 100%; max-width: none; min-height: 58px; flex: none; gap: 10px;
  padding: 9px 10px; border: 1px solid transparent; border-radius: 11px;
  background: transparent; box-shadow: none; color: var(--staff-ink);
}
body[class] .staff-page .staff-profile:hover { background: #ecf7f3; }
body[class] .staff-page .staff-profile.is-selected {
  border-color: #a8d6c8; background: #e9f7f1;
  box-shadow: inset 3px 0 0 #31977f;
}
body[class] .staff-page .staff-profile strong { font-size: 13px; font-weight: 700; }
body[class] .staff-page .staff-profile small { color: #78948f; font-size: 11px; }
body[class] .staff-page .staff-avatar { width: 35px; height: 35px; border-radius: 11px; background: #e1f0e9; color: #247a6a; font-weight: 750; }
body[class] .staff-page .staff-profile.is-selected .staff-avatar { background: #2f8677; color: #fff; }

body[class] .staff-page .staff-context {
  overflow: hidden; border: 1px solid #d3e7e1; border-radius: 14px;
  background: radial-gradient(circle at 88% -10%, rgba(160, 225, 210, .48), transparent 43%), #f1faf6;
}
body[class] .staff-page .staff-person {
  display: flex; align-items: center; justify-content: flex-start; gap: 13px;
  margin: 0; padding: 20px 18px 17px; border-bottom: 1px solid #d6eae4;
}
body[class] .staff-page .staff-person-mark {
  display: grid; place-items: center; flex: none; width: 49px; height: 49px;
  border-radius: 16px; background: #1d716a; color: #fff; font-size: 22px; font-weight: 750;
  box-shadow: 0 7px 20px rgba(23, 108, 99, .16);
}
body[class] .staff-page .staff-person-mark .staff-icon { width: 22px; height: 22px; }
body[class] .staff-page .staff-person-copy { flex: 1; min-width: 0; }
body[class] .staff-page .staff-person h2 { margin: 3px 0 0; color: #163a3f; font-size: 20px; font-weight: 760; letter-spacing: -.04em; }
body[class] .staff-page .staff-person p { margin: 3px 0 0; color: #647e7e; font-size: 11.5px; line-height: 1.55; }
body[class] .staff-page .staff-person .staff-responsibilities { margin-top: 7px; color: #3d6664; }
body[class] .staff-page .staff-person > .staff-text-button { align-self: flex-start; flex: none; padding: 7px 9px; border-radius: 8px; color: #28746e; font-size: 11px; font-weight: 700; }

body[class] .staff-page .staff-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; padding: 12px; }
body[class] .staff-page .staff-summary-item {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 70px; padding: 10px 8px 8px; border: 1px solid #dceae5; border-radius: 9px;
  background: rgba(255, 255, 255, .82); overflow: hidden;
}
body[class] .staff-page .staff-summary-item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: #b8c8c3; }
body[class] .staff-page .staff-summary-item.is-total { background: #1a3d43; border-color: #1a3d43; color: #fff; }
body[class] .staff-page .staff-summary-item.is-total::before { background: #a9e5b5; }
body[class] .staff-page .staff-summary-item.is-in_progress::before { background: #64abd0; }
body[class] .staff-page .staff-summary-item.is-review_requested::before { background: #e6b76b; }
body[class] .staff-page .staff-summary-item.is-completed::before { background: #6ebe98; }
body[class] .staff-page .staff-summary-item span { color: #6d8580; font-size: 10px; font-weight: 650; line-height: 1.3; word-break: keep-all; }
body[class] .staff-page .staff-summary-item.is-total span { color: #cce6d9; }
body[class] .staff-page .staff-summary-item strong { color: #163439; font-size: 23px; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; }
body[class] .staff-page .staff-summary-item.is-total strong { color: #fff; }

body[class] .staff-page .staff-board-heading,
body[class] .staff-page .staff-side-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 22px 5px 10px; }
body[class] .staff-page .staff-side-heading { display: block; padding: 7px 7px 15px; }
body[class] .staff-page .staff-board-heading h2,
body[class] .staff-page .staff-side-heading h2 { margin: 4px 0 0; color: #18323b; font-size: 18px; font-weight: 750; letter-spacing: -.045em; }
body[class] .staff-page .staff-board-heading > span,
body[class] .staff-page .staff-side-heading p { margin: 0; color: #829792; font-size: 11px; line-height: 1.45; }
body[class] .staff-page .staff-filters { display: flex; width: 100%; gap: 2px; margin: 0 0 10px; padding: 4px; border-radius: 9px; background: #eff4f1; }
body[class] .staff-page .staff-filter { flex: 1 1 auto; padding: 7px 5px; color: #6c817a; font-size: 11px; font-weight: 650; white-space: nowrap; }
body[class] .staff-page .staff-filter.is-active { background: #fff; color: #1e6c64; box-shadow: 0 2px 6px rgba(17, 70, 60, .08); }

body[class] .staff-page .staff-list-panel,
body[class] .staff-page .staff-detail { border: 1px solid #dbe9e5; border-radius: 12px; background: #fff; box-shadow: none; }
body[class] .staff-page .staff-list-heading { padding: 14px 15px; border-bottom-color: #e3eeea; background: #f9fcfa; }
body[class] .staff-page .staff-list-heading h2 { color: #26424a; font-size: 13px; font-weight: 740; }
body[class] .staff-page .staff-list-heading > span { color: #26776e; font-size: 11px; font-weight: 700; }
body[class] .staff-page .staff-assignment { padding: 15px; border-bottom-color: #e5efeb; color: #233b42; }
body[class] .staff-page .staff-assignment:hover { background: #f5faf7; }
body[class] .staff-page .staff-assignment.is-selected { background: #e9f7f1; box-shadow: inset 3px 0 0 #31977f; }
body[class] .staff-page .staff-assignment > strong { font-size: 14px; font-weight: 680; line-height: 1.42; }
body[class] .staff-page .staff-row-top { margin-bottom: 7px; }
body[class] .staff-page .staff-row-meta { margin-top: 8px; color: #7f938d; font-size: 11px; }
body[class] .staff-page .staff-status { border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 750; }
body[class] .staff-page .staff-status-assigned { background: #ebefed; color: #596e67; }
body[class] .staff-page .staff-status-in_progress { background: #e7f2f8; color: #307394; }
body[class] .staff-page .staff-status-review_requested { background: #fcf0dc; color: #9c6f2e; }
body[class] .staff-page .staff-status-completed { background: #e5f5e8; color: #3a8057; }
body[class] .staff-page .staff-priority { color: #a55644; font-weight: 700; }
body[class] .staff-page .staff-more { background: #f9fcfa; color: #26776e; font-weight: 700; }

body[class] .staff-page .staff-detail { min-height: 455px; padding: 18px; }
body[class] .staff-page .staff-detail.is-empty { background: #fff; }
body[class] .staff-page .staff-detail-tools { margin-bottom: 16px; }
body[class] .staff-page .staff-detail-heading h2 { color: #18343b; font-size: 22px; font-weight: 740; line-height: 1.35; }
body[class] .staff-page .staff-detail-meta { color: #6c827f; border-bottom-color: #e3eeea; }
body[class] .staff-page .staff-instruction { margin: 19px 0; }
body[class] .staff-page .staff-instruction h3,
body[class] .staff-page .staff-history h3 { color: #4f7971; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
body[class] .staff-page .staff-instruction > p { color: #2a4248; font-size: 14px; line-height: 1.8; }
body[class] .staff-page .staff-related { border: 1px solid #d6eae2; background: #f1faf5; color: #315d57; }
body[class] .staff-page .staff-report { border-color: #cee4da; background: #f5faf7; }
body[class] .staff-page .staff-report > label { color: #315f5c; font-weight: 750; }
body[class] .staff-page .staff-history { border-top-color: #e2eee9; }
body[class] .staff-page .staff-history li { border-bottom-color: #e5efea; }
body[class] .staff-page .staff-history-caption strong { color: #246d65; font-weight: 740; }
body[class] .staff-page .staff-empty h2 { color: #477069; }
body[class] .staff-page .staff-empty p { color: #849b94; }
body[class] .staff-page .staff-detail-back { display: none; }

/* Keep staff forms on the same visual language without changing their actions. */
dialog:has(.staff-dialog) { border-color: #bfdcd2; background: #f8fcfa; box-shadow: 0 28px 80px rgba(10, 47, 49, .25); }
.staff-dialog { --staff-ink: #173841; --staff-muted: #607f7b; --staff-line: #d8e9e2; --staff-accent: #176f66; }
.staff-dialog h2 { color: #18363e; }
.staff-dialog .staff-recipient { border-color: #cfe6dc; background: #edf9f3; color: #3d6d63; }
.staff-dialog .staff-recipient .staff-avatar { background: #d4eee0; color: #176f66; }
.staff-dialog .staff-form-fields label { color: #3c6964; }
.staff-dialog .staff-form-fields :is(input, textarea, select) { border-color: #cbded6; background: #fff; color: #1d3b40; }
.staff-dialog footer { border-top-color: #dcebe4; }
.staff-dialog .staff-primary { border-color: #176f66; background: #176f66; color: #fff; }
.staff-dialog .staff-primary:hover { border-color: #10574f; background: #10574f; }

@media (max-width: 1260px) {
  body[class] .staff-page .staff-workspace.staff-command { grid-template-columns: minmax(185px, 210px) minmax(0, 1fr); }
  body[class] .staff-page .staff-command.is-member { grid-template-columns: minmax(0, 1fr); }
  body[class] .staff-page .staff-side { grid-column: 2; }
  body[class] .staff-page .staff-command.is-member .staff-side { grid-column: 1; }
}
@media (max-width: 900px) {
  body[class] .staff-page .staff-workspace.staff-command,
  body[class] .staff-page .staff-command.is-member { grid-template-columns: minmax(0, 1fr); }
  body[class] .staff-page .staff-directory,
  body[class] .staff-page .staff-center,
  body[class] .staff-page .staff-side { grid-column: 1; }
  body[class] .staff-page .staff-directory { padding: 13px; }
  body[class] .staff-page .staff-directory-heading { padding: 2px 4px 11px; }
  body[class] .staff-page .staff-directory-heading p { display: none; }
  body[class] .staff-page .staff-profiles { display: flex; overflow-x: auto; padding-bottom: 2px; }
  body[class] .staff-page .staff-profile { flex: 0 0 auto; width: min(190px, 48vw); }
  body[class] .staff-page .staff-command:not(.has-detail) .staff-side { display: none; }
  body[class] .staff-page .staff-command.has-detail .staff-center,
  body[class] .staff-page .staff-command.has-detail .staff-directory { display: none; }
  body[class] .staff-page .staff-command.has-detail .staff-side { display: block; }
  body[class] .staff-page .staff-detail-back { display: inline-flex; }
}
@media (max-width: 560px) {
  body[class] .staff-page .staff-heading { min-height: 0; }
  body[class] .staff-page .staff-center,
  body[class] .staff-page .staff-side { padding: 9px; }
  body[class] .staff-page .staff-person { padding: 15px 12px; gap: 10px; flex-wrap: wrap; }
  body[class] .staff-page .staff-person-mark { width: 42px; height: 42px; border-radius: 13px; font-size: 18px; }
  body[class] .staff-page .staff-person > .staff-text-button { margin-left: 52px; }
  body[class] .staff-page .staff-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; padding: 8px; }
  body[class] .staff-page .staff-summary-item { min-height: 60px; padding: 8px 5px 6px; }
  body[class] .staff-page .staff-summary-item span { font-size: 9px; }
  body[class] .staff-page .staff-summary-item strong { font-size: 19px; }
  body[class] .staff-page .staff-filter { font-size: 10px; padding: 7px 2px; }
  body[class] .staff-page .staff-board-heading > span { display: none; }
  body[class] .staff-page .staff-detail { padding: 15px; }
}
