.people-view .topbar { align-items: center; padding: 20px 28px; }
.people-view .topbar h1 { color: #29242d; font-size: 22px; letter-spacing: -.4px; }
.people-view #top-actions { flex-wrap: wrap; }
.people-view #top-actions button { font-size: 13px; padding: 8px 13px; }
.people-view #content { padding: 0; scroll-behavior: auto; }
.people-directory { padding: 22px 28px 36px; color: #332c38; }
.people-description { margin: 0 0 22px; color: #706775; font-size: 14px; line-height: 1.6; }
.people-tabs { display: flex; gap: 26px; border-bottom: 1px solid #e7e3e9; margin-bottom: 22px; }
.people-tab { display: flex; align-items: center; gap: 8px; padding: 0 0 13px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: #746a7a; font-size: 14px; font-weight: 600; }
.people-tab:hover { background: transparent; color: #402447; }
.people-tab[aria-selected=true] { border-bottom-color: #65356e; color: #50245a; }
.people-tab-count { padding: 1px 7px; border-radius: 5px; background: #f1eef3; font-size: 12px; font-weight: 500; line-height: 19px; }
.people-tab[aria-selected=true] .people-tab-count { background: #eee3f1; color: #50245a; }
.people-controls { display: flex; align-items: center; gap: 10px; }
.people-controls select { width: 174px; flex-shrink: 0; font-size: 13px; padding: 10px; height: 40px; border-color: #d8d2dd; border-radius: 6px; color: #514659; }
.people-search { position: relative; flex: 1; min-width: 0; }
.people-search > svg { position: absolute; left: 12px; top: 11px; color: #85798d; pointer-events: none; }
.people-search input { display: block; width: 100%; height: 40px; padding: 9px 12px 9px 39px; border: 1px solid #d8d2dd; border-radius: 6px; font-size: 14px; color: #332c38; }
.people-search input::placeholder { color: #827687; }
.people-directory input:focus, .people-directory select:focus { border-color: #82618c; box-shadow: 0 0 0 2px #ece4f0; }
.people-directory button:focus-visible, .member-action-menu button:focus-visible, .member-profile-actions button:focus-visible { outline: 2px solid #795687; outline-offset: 3px; }
.people-summary { display: flex; align-items: center; gap: 12px; min-height: 62px; color: #796e7e; font-size: 12px; }
.people-result-count { white-space: nowrap; }
.people-reset { background: none; padding: 3px 0; border: 0; color: #674273; font-size: 12px; }
.people-reset:hover { background: none; text-decoration: underline; }
.people-sort { display: flex; align-items: center; gap: 6px; margin: 0 0 0 auto; font-size: 12px; font-weight: 400; white-space: nowrap; }
.people-sort select { max-width: 148px; border: 0; padding: 5px 2px; color: #514659; font-size: 12px; background: transparent; }
.people-results { border: 1px solid #e4dfe8; border-radius: 8px; overflow: hidden; }
.people-list-head, .card.member-row { display: grid; grid-template-columns: minmax(150px, 1.4fr) minmax(110px, 1fr) 110px 136px 222px; align-items: center; gap: 14px; padding: 16px; }
.people-list-head { background: #faf9fb; border-bottom: 1px solid #e8e3eb; color: #817487; font-size: 11px; font-weight: 600; padding-top: 11px; padding-bottom: 11px; }
.card.member-row { margin: 0; border: 0; border-radius: 0; min-width: 0; min-height: 85px; background: white; }
.card.member-row + .member-row { border-top: 1px solid #efebf1; }
.card.member-row:hover, .card.member-row:focus-within { background: #fcfbfd; }
.member-identity { display: flex; gap: 12px; align-items: center; min-width: 0; }
.member-identity .avatar, .member-profile-header .avatar { width: 40px; height: 40px; border-radius: 9px; border: 1px solid #dfd3e9; color: #765185; background: #efe6f6; font-size: 13px; }
.member-identity .avatar.human, .member-profile-header .avatar.human { background: #f9edd9; color: #8a682b; border-color: #eddfc5; }
.member-name-wrap { min-width: 0; }
.member-name-wrap h3 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.member-name { padding: 0; border: 0; border-radius: 2px; background: none; font-size: 14px; font-weight: 650; color: #352a3b; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-name:hover { color: #674273; text-decoration: underline; background: none; }
.member-you { color: #8c7e93; font-size: 11px; font-weight: 400; }
.member-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; color: #86778f; font-size: 11px; line-height: 16px; }
.member-meta .code { font-size: 10px; color: #97889e; padding-left: 8px; border-left: 1px solid #ded7e4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-team { display: grid; gap: 5px; min-width: 0; font-size: 12px; color: #594d61; }
.member-team span, .card .member-team small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .member-team small { font-size: 11px; color: #8c7d96; }
.member-status { display: inline-flex; align-items: center; gap: 7px; color: #756a7c; font-size: 12px; white-space: nowrap; }
.member-status:before { content: ''; width: 7px; height: 7px; border-radius: 50%; border: 1px solid #a79baa; background: #fff; flex: none; }
.member-status.available { color: #27744c; }
.member-status.available:before { background: #348359; border-color: #348359; }
.member-status.working { color: #236b9a; }
.member-status.working:before { background: #3384b8; border-color: #3384b8; }
.member-status.attention { color: #ad4433; }
.member-status.attention:before { background: #c3523f; border-color: #c3523f; }
.member-status.setting-up { color: #976a23; }
.member-status.setting-up:before { background: #b98d35; border-color: #b98d35; }
.member-status.retired { color: #8a7e90; }
.is-retired .avatar { filter: grayscale(1); opacity: .7; }
.member-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.member-row-actions button { height: 32px; padding: 5px 10px; font-size: 12px; font-weight: 500; border-radius: 5px; white-space: nowrap; border-color: #dcd5e2; color: #62506f; background: transparent; }
.member-row-actions .member-message { background: white; color: #51435a; }
.member-row-actions .member-rollout { border-color: transparent; }
.member-row-actions button:hover, .member-row-actions button[aria-expanded=true] { background: #eee7f2; color: #562d65; }
.member-row-actions .member-icon-button { display: grid; place-items: center; width: 30px; min-width: 30px; border-color: transparent; padding: 6px; }
.member-icon-button svg { width: 16px; height: 16px; }
.card .member-error { grid-column: 1 / -1; margin: -2px 0 0; padding: 9px 12px; color: #a34134; background: #fff4f1; border-radius: 5px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.people-empty { display: flex; align-items: center; flex-direction: column; padding: 48px 20px; text-align: center; }
.people-empty > svg { width: 34px; height: 34px; color: #a394af; margin-bottom: 8px; }
.people-empty h2 { color: #5e4d6a; font-size: 17px; font-weight: 600; margin: 12px 0 0; }
.people-empty p { color: #8b7d95; font-size: 13px; line-height: 1.6; margin: 9px 0 20px; }
.people-empty button { color: #674273; font-size: 12px; }
.member-action-menu { position: fixed; z-index: 200; width: 234px; max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); overflow: auto; border: 1px solid #d8cede; border-radius: 8px; padding: 5px; background: #fff; box-shadow: 0 6px 24px #2b18352e; }
.member-action-menu button { display: block; width: 100%; padding: 9px 10px; color: #4f3d5c; font-size: 13px; line-height: 18px; border: 0; border-radius: 4px; text-align: left; background: transparent; transition: none; }
.member-action-menu button:hover, .member-action-menu button:focus { color: #fff; background: #6f427a; outline: 0; }
.member-action-menu .menu-section { border-top: 1px solid #eee7f2; border-radius: 0 0 4px 4px; margin-top: 4px; padding-top: 12px; }
.member-action-menu .danger { color: #b34046; }
.member-action-menu .danger:hover, .member-action-menu .danger:focus { background: #b34046; color: white; }
.member-profile-header { display: flex; align-items: center; gap: 16px; padding: 26px 0; }
.member-profile-header .avatar { width: 64px; height: 64px; font-size: 22px; border-radius: 12px; }
.member-profile-header > div:last-child { display: grid; gap: 9px; }
.member-profile-header strong { color: #5c4c65; font-size: 14px; }
.member-profile-details { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 16px; margin: 0; padding: 20px 0; border-top: 1px solid #e9e1ed; border-bottom: 1px solid #e9e1ed; font-size: 13px; line-height: 1.5; }
.member-profile-details dt { color: #897792; }
.member-profile-details dd { margin: 0; color: #4c3c56; overflow-wrap: anywhere; }
.member-profile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px; }
.member-profile-actions button { font-size: 13px; }
.member-usage { display: grid; gap: 6px; min-width: 0; color: #5e536b; font-size: 12px; font-variant-numeric: tabular-nums; }
.member-work-time, .member-token-count { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-work-time { font-weight: 550; }
.member-token-count { color: #80738b; font-size: 11px; }
.member-usage.is-pending { color: #9a8d9e; }
.member-usage-profile { padding: 22px 0 0; }
.member-usage-profile h3 { margin: 0 0 16px; font-size: 13px; color: #6c5b79; }
.member-usage-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.member-usage-summary > div { display: grid; gap: 6px; padding: 16px; border: 1px solid #e8e2ec; border-radius: 7px; background: #faf8fc; }
.member-usage-summary strong { color: #584567; font-size: 21px; font-weight: 600; }
.member-usage-summary span { color: #8c7f96; font-size: 11px; }
.member-usage-breakdown { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 11px; margin: 18px 0; font-size: 12px; }
.member-usage-breakdown dt { color: #8b7d95; }
.member-usage-breakdown dd { margin: 0; color: #635171; font-variant-numeric: tabular-nums; text-align: right; }
.member-usage-note { margin: 15px 0 8px; color: #8e8098; font-size: 11px; line-height: 1.7; }
.member-usage-updated { margin: 8px 0 0; color: #9a8ca3; font-size: 10px; line-height: 1.6; }
@media (min-width: 961px) and (max-width: 1320px) {
  .people-list-head { display: none; }
  .card.member-row { grid-template-columns: minmax(160px, 1fr) 140px 222px; column-gap: 12px; row-gap: 9px; }
  .member-identity { grid-column: 1; grid-row: 1; }
  .member-team { grid-column: 1; grid-row: 2; padding-left: 52px; }
  .member-status-cell { grid-column: 2; grid-row: 1; }
  .member-usage { grid-column: 2; grid-row: 2; font-size: 11px; gap: 4px; }
  .member-row-actions { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 1150px) {
  .people-controls { flex-wrap: wrap; }
  .people-search { flex-basis: 100%; }
  .people-controls select { flex: 1; min-width: 0; width: auto; }
}
@media (max-width: 960px) {
  .people-view .topbar { padding: 18px 20px; flex-wrap: wrap; }
  .people-directory { padding: 20px; }
  .people-list-head { display: none; }
  .card.member-row { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; gap: 12px; }
  .member-identity { grid-column: 1 / -1; }
  .member-team { grid-column: 1; grid-row: 2; padding-left: 0; }
  .member-status-cell { grid-column: 2; grid-row: 2; }
  .member-usage { grid-column: 1 / -1; grid-row: 3; display: flex; gap: 18px; padding: 10px 0 0; border-top: 1px solid #eee8f2; font-size: 11px; }
  .member-row-actions { grid-column: 1 / -1; grid-row: 4; justify-content: flex-start; }
  .member-row-actions .member-more { margin-left: auto; }
}
@media (max-width: 700px) {
  .people-view .topbar { padding: 15px 14px; gap: 14px; }
  .people-view .topbar h1 { font-size: 20px; }
  .people-view #top-actions { justify-content: flex-start; gap: 7px; }
  .people-view #top-actions button { font-size: 12px; padding: 7px 10px; }
  .people-directory { padding: 17px 12px 28px; }
  .people-description { font-size: 13px; margin-bottom: 20px; }
  .people-tabs { gap: 18px; margin-bottom: 18px; }
  .people-tab { gap: 5px; font-size: 12px; }
  .people-tab-count { font-size: 10px; padding: 0 5px; }
  .people-controls { gap: 8px; }
  .people-search input { font-size: 13px; }
  .people-controls select { font-size: 12px; padding: 9px 7px; }
  .people-summary { flex-wrap: wrap; column-gap: 10px; row-gap: 6px; padding: 14px 0; min-height: 58px; }
  .people-sort { font-size: 11px; }
  .people-sort select { max-width: 128px; font-size: 11px; }
  .card.member-row { padding: 14px 12px; }
  .member-name { font-size: 14px; }
  .member-team { font-size: 11px; }
  .member-status { font-size: 11px; gap: 5px; }
  .member-profile-details { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; font-size: 12px; }
}
