/* HeroUI surfaces for Employees and Profile. All visual rules are page-scoped. */
@font-face { font-family: 'HeroUI Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter/inter-cyrillic-wght-normal.de93fdc85e3d.woff2") format('woff2'); unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'HeroUI Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter/inter-latin-wght-normal.260c81a4759b.woff2") format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

html[data-design]:has(.people-ui) {
  --people-primary: #006fee;
  --people-primary-text: #005bc4;
  --people-primary-soft: #e6f1fe;
  --people-background: #f4f4f5;
  --people-surface: #fff;
  --people-panel-rgb: 255 255 255;
  --people-foreground: #11181c;
  --people-muted: #62626d;
  --people-border: #d4d4d8;
  --people-divider: #e8e8eb;
  --people-field-border: #8c8c98;
  --people-success: #0a6b35;
  --people-success-soft: #e8faf0;
  --people-danger: #b80846;
  --people-danger-soft: #fff0f5;
  --people-radius: 14px;
  --people-font: 'HeroUI Inter', ui-sans-serif, system-ui, sans-serif;
  --focus: #006fee33;
  color-scheme: light;
}
html[data-theme='dark']:has(.people-ui) {
  --people-primary: #66aaff;
  --people-primary-text: #88bcff;
  --people-primary-soft: #142b47;
  --people-background: #111114;
  --people-surface: #1b1b20;
  --people-panel-rgb: 27 27 32;
  --people-foreground: #f4f4f5;
  --people-muted: #c8c8d2;
  --people-border: #3f3f46;
  --people-divider: #303036;
  --people-field-border: #777783;
  --people-success: #75e3a2;
  --people-success-soft: #123522;
  --people-danger: #ff8fb5;
  --people-danger-soft: #351322;
  color-scheme: dark;
}
html[data-design]:has(.people-ui) body { font-family: var(--people-font) !important; }
html[data-design]:has(.people-ui) .content { display: block !important; max-width: none !important; padding: 32px clamp(24px,3vw,48px) 40px !important; overflow: auto !important; scrollbar-gutter: stable; background: transparent !important; }
html[data-design]:has(.people-ui) .content > .motion-page-panels { display: contents !important; }
html[data-design]:has(.people-ui) .legal-footer { color: var(--people-muted); border-color: var(--people-divider); }
html[data-design]:has(.people-ui) .policy-ack-banner { background: var(--people-primary-soft) !important; border-color: var(--people-border) !important; color: var(--people-foreground); box-shadow: none !important; }
html[data-design]:has(.people-ui) .btn.primary { border-color: #006fee !important; background: #006fee !important; color: #fff !important; }

.people-ui { max-width: 1440px; min-width: 0; margin-inline: auto; color: var(--people-foreground); font-family: var(--people-font); font-size: 14px; line-height: 1.5; }
.people-ui *, .people-modal * { box-sizing: border-box; }
.people-ui .icon-svg, .people-modal .icon-svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.people-ui a { text-decoration: none; }
.people-ui :is(h1,h2,h3,p,dl,dd) { margin: 0; }
.people-ui :is(h1,h2,h3,strong) { color: var(--people-foreground); }
.people-ui h1 { font-size: 30px; font-weight: 650; line-height: 1.25; letter-spacing: -.035em; }
.people-ui h2 { font-size: 16px; font-weight: 600; line-height: 24px; letter-spacing: -.015em; }
.people-ui :is(button,input,select,textarea) { font-family: inherit; }
.people-ui :is(button,a,input,select):focus-visible, .people-modal :is(button,a,input,select):focus-visible { outline: 2px solid var(--people-primary); outline-offset: 3px; }
.people-page-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.people-page-head > div { min-width: 0; }
.people-page-head > div > p:not(.people-eyebrow) { margin-top: 10px; color: var(--people-muted); font-size: 14px; line-height: 20px; }
.people-ui .people-eyebrow { margin-bottom: 8px; color: var(--people-muted); font-size: 12px; line-height: 16px; }
.people-ui .btn, .people-modal .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--people-border); border-radius: 12px; background: var(--people-surface); color: var(--people-foreground); font-size: 14px; font-weight: 500; line-height: 20px; text-decoration: none; box-shadow: none; transform: none; }
.people-ui .btn.primary, .people-modal .btn.primary { border-color: #006fee; background: #006fee; color: #fff; box-shadow: 0 4px 12px rgb(0 0 0 / 8%); }
.people-add { flex: 0 0 auto; }
.people-surface { min-width: 0; border: 1px solid var(--people-border); border-radius: var(--people-radius); background: rgb(var(--people-panel-rgb) / var(--motion-panel-alpha-top,1)); box-shadow: 0 4px 12px rgb(0 0 0 / 3%); }
.people-overview { margin-bottom: 24px; padding: 24px 0; border: 1px solid var(--people-border); border-radius: var(--people-radius); background: rgb(var(--people-panel-rgb) / var(--motion-panel-alpha-top,1)); }
.people-stats { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); }
.people-stats > div { min-width: 0; padding: 0 24px; }
.people-stats > div + div { border-left: 1px solid var(--people-divider); }
.people-stats dt { display: flex; align-items: center; gap: 6px; color: var(--people-muted); font-size: 12px; line-height: 20px; }
.people-stats dd { margin-top: 8px; color: var(--people-foreground); font-size: 28px; font-weight: 600; line-height: 36px; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.people-online-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #17c964; }
.people-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px; border-bottom: 1px solid var(--people-divider); }
.people-section-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.people-section-heading > div { min-width: 0; }
.people-section-heading p { max-width: 60ch; margin-top: 4px; color: var(--people-muted); font-size: 12px; line-height: 20px; }
.people-section-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 12px; background: var(--people-primary-soft); color: var(--people-primary); }
.people-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 8px; background: var(--people-background); color: var(--people-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
/* Employee cards adapt to the available content width. */
.people-directory-section { container: people-cards / inline-size; }
.people-directory-heading { padding: 0 0 16px; border: 0; }
.people-ui .people-employee-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.people-card-item { display: flex; min-width: 0; }
.people-employee-card { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 20px; overflow: hidden; transition: border-color 250ms ease,box-shadow 250ms ease; }
.people-card-head { min-width: 0; margin: -20px -20px 0; }
.people-employee-card .people-person { flex-direction: column; align-items: stretch; gap: 0; }
.people-card-photo { position: relative; width: 100%; aspect-ratio: 8 / 5; background: linear-gradient(135deg,var(--people-primary-soft),color-mix(in srgb,var(--people-primary-soft) 80%,#7828c8 15%)); border-bottom: 1px solid var(--people-divider); }
.people-employee-card .people-avatar { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; background: transparent; object-position: 50% 30%; font-size: 64px; font-weight: 500; }
.people-employee-card .people-person-copy { gap: 6px; padding: 20px 20px 0; }
.people-employee-card .people-person:focus-visible, .people-ui .people-avatar-edit:focus-visible { outline-offset: -4px; }
.people-employee-card h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 24px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.people-employee-card .people-presence { margin: 0; font-weight: 400; }
.people-card-tags { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 16px; }
.people-card-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 20px !important; padding: 14px 16px; border: 1px solid var(--people-divider); border-radius: 12px; background: var(--people-background); }
.people-card-metrics > div { display: flex; flex-direction: column; min-width: 0; }
.people-card-metrics > div + div { padding-left: 16px; border-left: 1px solid var(--people-divider); }
.people-card-metrics dt { margin-bottom: 8px; color: var(--people-muted); font-size: 12px; line-height: 18px; }
.people-card-metrics dd { margin-top: auto; display: flex; align-items: center; min-height: 28px; color: var(--people-foreground); font-size: 13px; font-weight: 500; line-height: 20px; overflow-wrap: anywhere; }
.people-card-metrics .people-card-client-count { font-size: 24px; font-weight: 600; line-height: 28px; font-variant-numeric: tabular-nums; }
.people-ui .people-card-contacts { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.people-card-contacts li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; color: var(--people-muted); font-size: 13px; line-height: 20px; }
.people-card-contacts .icon-svg { width: 16px; height: 16px; margin-top: 2px; }
.people-card-contacts span { min-width: 0; overflow-wrap: anywhere; }
.people-card-activity { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 20px !important; padding-bottom: 20px; font-size: 12px; line-height: 18px; }
.people-card-activity dt { color: var(--people-muted); }
.people-card-activity dd { color: var(--people-muted); font-variant-numeric: tabular-nums; }
.people-card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--people-divider); }
.people-employee-card .people-profile-link { min-height: 40px; padding: 8px 12px; border-radius: 10px; background: var(--people-primary-soft); font-size: 13px; }
.people-card-actions { display: flex; align-items: center; gap: 8px; }
.people-card-actions form { display: flex; margin: 0; }
.people-card-actions .people-icon-action { width: 40px; height: 40px; }
.people-employee-card.is-disabled .people-avatar { background: var(--people-background); color: var(--people-muted); }
.people-employee-grid > .people-empty { grid-column: 1 / -1; }
.people-person { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; }
.people-avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid var(--people-divider); border-radius: 50%; object-fit: cover; background: var(--people-primary-soft); color: var(--people-primary-text); font-size: 14px; font-weight: 600; }
.people-person-copy { display: grid; gap: 3px; min-width: 0; }
.people-person-copy strong { font-size: 14px; font-weight: 600; line-height: 20px; white-space: normal; }
.people-person-copy > :is(span,small) { color: var(--people-muted); font-size: 12px; font-weight: 400; line-height: 18px; }
.people-role { display: inline-flex; width: fit-content; max-width: 100%; padding: 4px 8px; border-radius: 8px; background: var(--people-primary-soft); color: var(--people-primary-text); font-size: 12px; font-weight: 500; line-height: 20px; overflow-wrap: anywhere; }
.people-secondary { display: block; margin-top: 4px; color: var(--people-muted); font-size: 12px; line-height: 18px; }
.people-account { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 9999px; background: var(--people-success-soft); color: var(--people-success); font-size: 12px; font-weight: 500; line-height: 20px; }
.people-account::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.people-account.is-blocked { background: var(--people-danger-soft); color: var(--people-danger); }
.people-presence { display: flex; align-items: center; gap: 5px; width: fit-content; margin-top: 6px; color: var(--people-muted); font-size: 12px; }
.people-presence::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.people-presence.online { color: var(--people-success); }
.people-actions-group { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.people-actions-group form { display: inline-flex; margin: 0; }
.people-profile-link { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; color: var(--people-primary-text); font-size: 12px; font-weight: 500; }
.people-profile-link .icon-svg { width: 16px; height: 16px; }
.people-icon-action { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--people-border); border-radius: 8px; background: var(--people-surface); color: var(--people-muted); cursor: pointer; }
.people-icon-action .icon-svg { width: 16px; height: 16px; }
.people-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.people-empty { display: grid; justify-items: center; gap: 12px; padding: 56px 24px; text-align: center; }
.people-empty h3 { font-size: 16px; font-weight: 600; }
.people-empty p { color: var(--people-muted); }
.people-empty .btn { margin-top: 8px; }
.people-breadcrumb { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; color: var(--people-muted); font-size: 12px; }
.people-breadcrumb a { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; color: var(--people-muted); }
.people-breadcrumb .icon-svg { width: 16px; height: 16px; }
.people-profile-layout { display: grid; grid-template-columns: minmax(280px,320px) minmax(0,1fr); align-items: start; gap: 24px; }
.people-identity { overflow: hidden; }
.people-identity-body { padding: 24px; }
.people-avatar-edit { position: relative; display: grid; width: 100%; height: auto; aspect-ratio: 1; margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--people-divider); border-radius: 0; background: var(--people-primary-soft); color: var(--people-primary); cursor: pointer; }
.people-profile-avatar { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 0; object-fit: cover; object-position: 50% 30%; background: linear-gradient(135deg,var(--people-primary-soft),color-mix(in srgb,var(--people-primary-soft) 80%,#7828c8 15%)); color: var(--people-primary-text); font-size: 88px; font-weight: 500; }
span.people-avatar-edit { cursor: default; }
.people-avatar-camera { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 44px; height: 44px; border: 3px solid var(--people-surface); border-radius: 12px; background: #006fee; color: #fff; box-shadow: 0 4px 12px rgb(0 0 0 / 12%); }
.people-avatar-camera .icon-svg { width: 18px; height: 18px; }
.people-identity h2 { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.025em; overflow-wrap: anywhere; }
.people-identity-email { margin-top: 8px !important; color: var(--people-muted); font-size: 12px; overflow-wrap: anywhere; }
.people-identity-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.people-ui .people-identity-edit { width: 100%; margin-top: 24px; color: var(--people-primary-text); }
.people-identity-meta { margin-top: 24px !important; padding-top: 20px; border-top: 1px solid var(--people-divider); }
.people-identity-meta dt { color: var(--people-muted); font-size: 12px; }
.people-identity-meta dd { margin-top: 4px; font-size: 14px; font-variant-numeric: tabular-nums; }
.people-profile-sections { display: grid; gap: 24px; min-width: 0; }
.people-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 32px; padding: 24px; }
.people-details > div { min-width: 0; }
.people-details dt { margin-bottom: 8px; color: var(--people-muted); font-size: 12px; line-height: 20px; }
.people-details dd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 24px; }
.people-details strong { min-width: 0; font-size: 14px; font-weight: 500; line-height: 24px; overflow-wrap: anywhere; }
.people-inline-action { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: fit-content; min-height: 32px; padding: 4px 0; border: 0; border-radius: 4px; background: transparent; color: var(--people-primary-text); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
.people-section-head > .people-inline-action { margin-top: 2px; white-space: nowrap; }
.people-section-foot { display: flex; justify-content: flex-end; padding: 12px 24px; border-top: 1px solid var(--people-divider); }
.people-create-panel { max-width: 800px; padding: 28px; }

/* Context editors are moved to body by the existing modal controller. */
html[data-design]:has(.people-ui) .dialog-backdrop { background: rgb(0 0 0 / 45%) !important; backdrop-filter: blur(3px); }
html[data-design]:has(.people-ui) .dialog { width: min(560px,calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: calc(100svh - 48px); padding: 24px; overflow-y: auto; border: 1px solid var(--people-border) !important; border-radius: 14px; background: var(--people-surface) !important; color: var(--people-foreground) !important; font-family: var(--people-font); box-shadow: 0 16px 48px rgb(0 0 0 / 16%) !important; }
html[data-design]:has(.people-ui) .employee-create-dialog { width: min(680px,calc(100vw - 32px)); }
html[data-design]:has(.people-ui) .dialog-head { display: flex !important; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 24px; padding: 0 0 20px; border-bottom: 1px solid var(--people-divider); }
html[data-design]:has(.people-ui) .dialog-head > div { min-width: 0; }
html[data-design]:has(.people-ui) .dialog-head h2 { margin: 0; color: var(--people-foreground); font-size: 20px; font-weight: 600; line-height: 28px; white-space: normal; overflow-wrap: anywhere; }
html[data-design]:has(.people-ui) .dialog-head p { margin-top: 6px; color: var(--people-muted); font-size: 13px; line-height: 20px; }
html[data-design]:has(.people-ui) .dialog-head .icon-btn { position: static !important; display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid var(--people-border); border-radius: 8px; background: transparent; color: var(--people-muted); font-size: 24px; }
html[data-design]:has(.people-ui) .dialog :is(form,p,label,small,input,select,button) { font-family: var(--people-font); }
html[data-design]:has(.people-ui) .dialog-actions { gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--people-divider); }
.people-modal .dialog form > p, .people-modal .dialog form > .field { margin: 0 0 20px; color: var(--people-foreground); font-size: 14px; line-height: 1.6; }
.people-modal .dialog form > p label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.people-modal .field { min-width: 0; }
.people-modal .field > label, .people-create-panel .field > label { color: var(--people-foreground); font-size: 14px; font-weight: 500; }
.people-modal .field small, .people-modal .helptext, .people-create-panel .field small { display: block; color: var(--people-muted); font-size: 12px; line-height: 20px; }
.people-modal .form-grid, .people-create-panel .form-grid { gap: 20px 24px; }
.people-modal :is(input:not([type='checkbox']):not([type='radio']):not([type='hidden']),select,textarea,.crm-select-trigger), .people-create-panel :is(input:not([type='checkbox']):not([type='radio']):not([type='hidden']),select,textarea,.crm-select-trigger) { width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid var(--people-field-border); border-radius: 12px; background: var(--people-background); color: var(--people-foreground); font-size: 16px; line-height: 24px; box-shadow: none; }
.people-modal input:focus, .people-create-panel input:focus { border-color: var(--people-primary); box-shadow: 0 0 0 3px var(--focus); }
html[data-design]:has(.people-ui) :is(.people-modal,.people-create-panel) :is(input:not([type='checkbox']):not([type='radio']):not([type='hidden']),textarea,.crm-select-trigger) { border: 1px solid var(--people-field-border) !important; background: var(--people-background) !important; color: var(--people-foreground) !important; }
html[data-design]:has(.people-ui) :is(.people-modal,.people-create-panel) :is(input,textarea,.crm-select-trigger):focus-visible { outline: 2px solid var(--people-primary) !important; outline-offset: 3px; border-color: var(--people-primary) !important; }
.people-modal :is(input[type='checkbox'],input[type='radio']), .people-create-panel :is(input[type='checkbox'],input[type='radio']) { width: 20px; height: 20px; margin: 0; accent-color: #006fee; }
.people-modal .checkbox-field, .people-create-panel .checkbox-field { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.people-modal .checkbox-field > label, .people-create-panel .checkbox-field > label { flex: 1; margin: 0; }
.people-modal .check-line { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0; color: var(--people-foreground); }
.people-modal .form-tip, .people-create-panel .form-tip { margin: 0 0 24px; padding: 16px; border: 0; border-radius: 12px; background: var(--people-primary-soft); color: var(--people-primary-text); box-shadow: none; }
html[data-design]:has(.people-ui) :is(.people-modal,.people-create-panel) .form-tip { background: var(--people-primary-soft) !important; color: var(--people-primary-text) !important; }
.people-modal .dialog form > p:has(input[type='checkbox']) { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.people-modal .dialog form > p:has(input[type='checkbox']) label { margin: 0; }
.people-modal .form-tip strong, .people-create-panel .form-tip strong { display: block; margin-bottom: 4px; color: inherit; }
.people-modal .form-tip span, .people-create-panel .form-tip span { display: block; font-size: 12px; line-height: 20px; }
html[data-design]:has(.people-ui) :is(.error-text,.dialog-error,.errorlist) { color: var(--people-danger) !important; }
html[data-design]:has(.people-ui) .crm-select-popover { border-color: var(--people-border); border-radius: 12px; background: var(--people-surface) !important; color: var(--people-foreground); box-shadow: 0 4px 12px rgb(0 0 0 / 8%); }
html[data-design]:has(.people-ui) .crm-select-option[aria-selected='true'] { background: var(--people-primary-soft); color: var(--people-primary-text); }
html[data-design]:has(.people-ui) .dialog .btn { min-height: 44px; padding: 10px 16px; border: 1px solid var(--people-border); border-radius: 12px; background: var(--people-background); color: var(--people-foreground); font-size: 14px; line-height: 20px; box-shadow: none; }
html[data-design]:has(.people-ui) .dialog .btn.primary { border-color: #006fee; background: #006fee; color: #fff; }
html[data-design]:has(.people-ui) .dialog .btn.danger-btn { border-color: var(--people-danger); background: var(--people-danger); color: var(--people-surface); }

@container people-cards (width < 1000px) {
  .people-ui .people-employee-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@container people-cards (width < 620px) {
  .people-ui .people-employee-grid { grid-template-columns: minmax(0,1fr); }
}
@media (hover:hover) {
  .people-ui .btn.primary:hover, .people-modal .btn.primary:hover { border-color: #005bc4; background: #005bc4; }
  .people-ui :is(.people-profile-link,.people-inline-action,.people-breadcrumb a):hover { color: var(--people-primary); text-decoration: underline; text-underline-offset: 3px; }
  .people-icon-action:hover { background: var(--people-primary-soft); color: var(--people-primary-text); border-color: var(--people-primary); }
  .people-danger-action:hover { background: var(--people-danger-soft); color: var(--people-danger); border-color: var(--people-danger); }
  .people-person:hover strong { color: var(--people-primary-text); }
  .people-employee-card:hover { border-color: var(--people-primary); box-shadow: 0 4px 12px rgb(0 0 0 / 8%); }
  .people-person:hover h3 { color: var(--people-primary-text); }
}
@media (max-width:1100px) {
  .people-profile-layout { grid-template-columns: 280px minmax(0,1fr); }
  .people-stats > div { padding-inline: 16px; }
  .people-details { grid-template-columns: minmax(0,1fr); }
}
@media (max-width:900px) {
  html[data-design]:has(.people-ui) .content { padding: 24px 20px 32px !important; }
  .people-profile-layout { grid-template-columns: minmax(0,1fr); }
  .people-identity { display: grid; grid-template-columns: minmax(220px,.9fr) minmax(0,1fr); }
  .people-avatar-edit { height: 100%; min-height: 280px; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--people-divider); }
  .people-identity-body { padding: 24px; }
  .people-identity h2 { font-size: 24px; }
  .people-details { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .people-identity-edit { max-width: 240px; }
  .people-page-head { align-items: flex-start; }
  .people-stats { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .people-stats > div { padding-inline: 12px; }
  .people-stats dt { font-size: 12px; line-height: 20px; }
}
@media (max-width:600px) {
  .people-identity { display: block; }
  .people-avatar-edit { height: auto; min-height: 0; aspect-ratio: 1; border-right: 0; border-bottom: 1px solid var(--people-divider); }
  .people-page-head { flex-direction: column; gap: 20px; margin-bottom: 24px; }
  .people-ui h1 { font-size: 26px; }
  .people-ui .people-add { width: 100%; }
  .people-overview { padding: 0; }
  .people-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .people-stats > div { padding: 16px 20px; }
  .people-stats > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--people-divider); }
  .people-stats > div + div { border-left: 0; }
  .people-stats > div:nth-child(2n+3) { border-left: 1px solid var(--people-divider); }
  .people-stats > div:nth-child(n+4) { border-top: 1px solid var(--people-divider); }
  .people-stats dt { font-size: 12px; line-height: 20px; }
  .people-stats dd { margin-top: 4px; font-size: 24px; line-height: 32px; }
  .people-section-head { flex-wrap: wrap; gap: 12px; padding: 20px; }
  .people-section-heading { gap: 10px; }
  .people-section-head > .people-inline-action { margin-left: 46px; }
  .people-directory-heading { padding: 0 0 16px; }
  .people-details { grid-template-columns: minmax(0,1fr); gap: 24px; padding: 20px; }
  .people-section-foot { padding-inline: 20px; }
  .people-create-panel { padding: 20px; }
  .people-modal .form-grid, .people-create-panel .form-grid { grid-template-columns: minmax(0,1fr); }
  html[data-design]:has(.people-ui) .dialog { max-height: calc(100svh - 32px); padding: 20px; }
  html[data-design]:has(.people-ui) .dialog-actions { flex-wrap: wrap; }
}
@media (prefers-reduced-motion:reduce) {
  .people-ui *, .people-modal *, html:has(.people-ui) .dialog { animation: none !important; transition: none !important; }
}
@media (forced-colors:active) {
  .people-surface, .people-overview, .people-account, .people-role { border: 1px solid CanvasText; }
  .people-avatar-camera { border-color: Canvas; }
}
