/* Scene 5 visual refresh, scoped to People and the simulated Teams drawer. */
body[data-scene="5"] {
  --people-ink: #101d45;
  --people-muted: #536184;
  --people-line: #e0e6ef;
  --people-blue: #075bff;
  --people-purple: #5e54cf;
  --people-green: #15956b;
  background: #f8f9fb;
}

body[data-scene="5"] #main {
  max-width: 1500px;
  padding: 30px clamp(20px, 3vw, 48px) 48px;
  color: var(--people-ink);
}

body[data-scene="5"] #main::before {
  top: 0;
  right: 2%;
  left: 2%;
  height: 112px;
  margin: 0;
  border-radius: 0 0 34px 34px;
  background: linear-gradient(105deg, #eef5ff 0%, #fafcff 58%, rgb(248 249 251 / 0%) 100%);
}

body[data-scene="5"] .page-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 21px;
}

body[data-scene="5"] .page-heading h1,
body[data-scene="5"] .page-heading .title {
  margin-bottom: 5px;
  color: var(--people-ink);
  font-size: clamp(26px, 2.15vw, 34px);
  letter-spacing: -.85px;
}

body[data-scene="5"] .page-heading .lead {
  margin: 0;
  color: var(--people-muted);
  font-size: 15px;
}

body[data-scene="5"] .people-section-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 17px 16px 16px;
  border: 1px solid var(--people-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 7px rgb(19 38 75 / 5%);
}

body[data-scene="5"] .people-section-heading {
  align-items: flex-start;
  gap: 10px;
  padding: 0 4px;
}

body[data-scene="5"] .people-section-heading h2 {
  margin: 1px 0 3px;
  color: var(--people-ink);
  font-size: 17px;
}

body[data-scene="5"] .people-section-heading p {
  margin: 0;
  color: var(--people-muted);
  font-size: 13px;
  line-height: 1.5;
}

body[data-scene="5"] .people-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  background: #eeeaff;
  color: var(--people-purple);
}

body[data-scene="5"] .people-section-icon .people-inline-icon {
  width: 20px;
  height: 20px;
}

body[data-scene="5"] .people-expert-card,
body[data-scene="5"] .people-community-card {
  min-width: 0;
  border: 1px solid #dfe5ee;
  border-radius: 11px;
  background: #fff;
}

body[data-scene="5"] .people-expert-card {
  padding: 18px 18px 12px;
}

body[data-scene="5"] .people-expert-top {
  align-items: flex-start;
  gap: 18px;
}

body[data-scene="5"] .people-expert-identity {
  min-width: 0;
  align-items: flex-start;
  gap: 14px;
}

body[data-scene="5"] .people-avatar {
  position: relative;
  display: inline-flex;
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  overflow: visible;
  border-radius: 50%;
  background: #e8e1d9;
  box-shadow: 0 0 0 1px #d0d8e6;
}

body[data-scene="5"] .people-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
}

body[data-scene="5"] .people-presence-dot {
  position: absolute;
  right: -1px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #2ea046;
  box-shadow: 0 0 0 1px #d0d8e6;
}

body[data-scene="5"] .people-name-row {
  gap: 8px;
  margin: 1px 0 3px;
}

body[data-scene="5"] .people-name-row h2 {
  margin: 0;
  color: var(--people-ink);
  font-size: 20px;
}

body[data-scene="5"] .people-role {
  margin: 0;
  color: #26375e;
  font-size: 13px;
}

body[data-scene="5"] .people-presence {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: #4d5c7b;
  font-size: 12px;
}

body[data-scene="5"] .people-presence-dot-inline {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ea046;
}

body[data-scene="5"] .people-tags {
  gap: 7px;
  margin-top: 10px;
}

body[data-scene="5"] .people-tags .badge,
body[data-scene="5"] .people-community-copy strong {
  color: #25375d;
}

body[data-scene="5"] .people-expert-actions {
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: flex-end;
}

body[data-scene="5"] .people-expert-actions .btn {
  min-height: 38px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

body[data-scene="5"] .people-contact-button {
  background: #072750;
  border-color: #072750;
}

body[data-scene="5"] .people-button-icon {
  display: inline-flex;
  align-items: center;
}

body[data-scene="5"] .people-button-icon .people-inline-icon {
  width: 17px;
  height: 17px;
}

body[data-scene="5"] .people-follow-button {
  padding-right: 13px;
  padding-left: 13px;
}

body[data-scene="5"] .people-expert-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .95fr);
  gap: 23px;
  margin-top: 21px;
  padding-top: 18px;
  border-top: 1px solid #edf0f4;
}

body[data-scene="5"] .people-match-panel h3,
body[data-scene="5"] .people-activity-panel h3 {
  margin: 0 0 13px;
  color: var(--people-ink);
  font-size: 14px;
}

body[data-scene="5"] .people-check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-scene="5"] .people-check-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: #25375d;
  font-size: 13px;
  line-height: 1.45;
}

body[data-scene="5"] .people-check-list small {
  display: block;
  margin-top: 3px;
  color: var(--people-muted);
  font-size: 12px;
}

body[data-scene="5"] .people-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border: 1px solid #38a879;
  border-radius: 50%;
  color: #15956b;
}

body[data-scene="5"] .people-check-icon .people-inline-icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.3;
}

body[data-scene="5"] .people-profile-link {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #edf0f4;
}

body[data-scene="5"] .people-profile-link .btn.link {
  padding: 0;
  font-size: 12px;
  font-weight: 700;
}

body[data-scene="5"] .people-activity-panel {
  min-width: 0;
  padding: 14px 15px 8px;
  border: 1px solid #e3e8f0;
  border-radius: 9px;
  background: #fbfcfe;
}

body[data-scene="5"] .people-activity-list {
  border-top: 1px solid #edf0f4;
}

body[data-scene="5"] .people-activity-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f4;
}

body[data-scene="5"] .people-activity-row:last-child { border-bottom: 0; }

body[data-scene="5"] .people-activity-row strong,
body[data-scene="5"] .people-activity-row span,
body[data-scene="5"] .people-activity-row time {
  display: block;
}

body[data-scene="5"] .people-activity-row strong {
  color: #25375d;
  font-size: 12px;
  line-height: 1.4;
}

body[data-scene="5"] .people-activity-row div span {
  margin-top: 3px;
  color: var(--people-muted);
  font-size: 11px;
}

body[data-scene="5"] .people-activity-row time {
  color: #536184;
  font-size: 11px;
  white-space: nowrap;
}

body[data-scene="5"] .people-activity-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 7px;
}

body[data-scene="5"] .people-activity-icon .people-inline-icon { width: 20px; height: 20px; }
body[data-scene="5"] .people-activity-policy { background: #fff0df; color: #d8790b; }
body[data-scene="5"] .people-activity-teams { background: #ece9ff; color: #6259c9; }

body[data-scene="5"] .people-community-section { padding-bottom: 15px; }

body[data-scene="5"] .people-community-card {
  padding: 12px 14px 13px;
}

body[data-scene="5"] .people-community-top {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: start;
}

body[data-scene="5"] .people-community-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 9px;
  background: #5a4dd1;
  color: #fff;
}

body[data-scene="5"] .people-community-icon .people-inline-icon { width: 31px; height: 31px; stroke-width: 1.4; }

body[data-scene="5"] .people-community-copy {
  min-width: 0;
}

body[data-scene="5"] .people-community-copy h3 {
  margin: 1px 0 3px;
  color: var(--people-ink);
  font-size: 16px;
}

body[data-scene="5"] .people-community-copy > strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}

body[data-scene="5"] .people-community-copy p {
  margin: 7px 0 0;
  color: var(--people-muted);
  font-size: 12px;
  line-height: 1.45;
}

body[data-scene="5"] .people-community-actions {
  justify-content: flex-end;
}

body[data-scene="5"] .people-community-actions .btn {
  min-height: 38px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

body[data-scene="5"] .people-discussion {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #edf0f4;
}

body[data-scene="5"] .people-discussion > strong {
  display: block;
  margin-bottom: 7px;
  color: var(--people-ink);
  font-size: 13px;
}

body[data-scene="5"] .people-discussion ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 17px;
  color: #3f4e77;
  font-size: 12px;
}

body[data-scene="5"] .people-discussion li { line-height: 1.45; }

body[data-scene="5"] .people-discussion-footer {
  margin-top: 12px;
  gap: 10px;
}

body[data-scene="5"] .people-discussion-footer .btn {
  min-height: 35px;
  font-size: 12px;
}

body[data-scene="5"] .people-profile-preview .people-avatar { width: 64px; height: 64px; flex-basis: 64px; }

/* Teams is a local simulation, presented as a right hand panel on larger screens. */
body[data-scene="5"] .people-teams-scrim {
  padding: 0;
  align-items: stretch;
  background: rgb(0 20 46 / 42%);
}

body[data-scene="5"] .people-teams-modal {
  display: flex;
  flex-direction: column;
  width: min(100%, 470px);
  height: 100vh;
  max-height: none;
  border-radius: 16px 0 0 16px;
}

body[data-scene="5"] .people-teams-modal > header {
  flex: 0 0 auto;
  padding: 15px 20px;
  border-color: #e5e8ef;
}

body[data-scene="5"] .people-teams-modal > header h2 {
  color: #14275d;
  font-size: 16px;
}

body[data-scene="5"] .people-teams-modal > .modal-body {
  display: flex;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

body[data-scene="5"] .people-teams-panel {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  color: #172858;
  background: #f7f8fc;
}

body[data-scene="5"] .people-teams-brandbar {
  flex: 0 0 auto;
  padding: 10px 20px;
  border-bottom: 1px solid #edf0f4;
  background: #fff;
}

body[data-scene="5"] .people-teams-brand,
body[data-scene="5"] .people-teams-brandbar .row { gap: 9px; }

body[data-scene="5"] .people-teams-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  color: #6259c9;
}

body[data-scene="5"] .people-teams-logo .people-inline-icon { width: 26px; height: 26px; }
body[data-scene="5"] .people-teams-brand strong { font-size: 14px; }

body[data-scene="5"] .people-teams-external {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #075bff;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

body[data-scene="5"] .people-teams-external:hover { text-decoration: underline; }
body[data-scene="5"] .people-teams-external .people-inline-icon { width: 14px; height: 14px; }

body[data-scene="5"] .people-teams-person {
  flex: 0 0 auto;
  align-items: flex-start;
  padding: 15px 20px 11px;
  background: #fff;
}

body[data-scene="5"] .people-avatar-chat {
  width: 45px;
  height: 45px;
  flex-basis: 45px;
}

body[data-scene="5"] .people-avatar-chat .people-presence-dot { width: 12px; height: 12px; right: -1px; bottom: 1px; border-width: 2px; }
body[data-scene="5"] .people-teams-person strong,
body[data-scene="5"] .people-teams-person .small,
body[data-scene="5"] .people-teams-person .people-presence { display: block; }
body[data-scene="5"] .people-teams-person strong { font-size: 15px; }
body[data-scene="5"] .people-teams-person .small { margin-top: 2px; }

body[data-scene="5"] .people-teams-quick-actions { gap: 13px; padding-top: 6px; color: #263761; }
body[data-scene="5"] .people-teams-quick-actions span { display: inline-flex; }
body[data-scene="5"] .people-teams-quick-actions .people-inline-icon { width: 18px; height: 18px; }

body[data-scene="5"] .people-teams-tabs {
  display: flex;
  gap: 23px;
  flex: 0 0 auto;
  padding: 0 20px;
  border-bottom: 1px solid #dfe3ec;
  background: #fff;
  color: #526181;
  font-size: 12px;
}

body[data-scene="5"] .people-teams-tabs span {
  position: relative;
  padding: 10px 0 11px;
  white-space: nowrap;
}

body[data-scene="5"] .people-teams-tabs .active {
  color: #182b60;
  font-weight: 700;
}

body[data-scene="5"] .people-teams-tabs .active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: #5b4fd4;
  content: '';
}

body[data-scene="5"] .people-teams-chat {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding: 14px 17px 9px;
  background: #f8f9fd;
}

body[data-scene="5"] .people-chat-day {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1px 0 14px;
  color: #71809d;
  font-size: 11px;
  text-align: center;
}

body[data-scene="5"] .people-chat-day::before,
body[data-scene="5"] .people-chat-day::after {
  height: 1px;
  flex: 1;
  background: #e3e7ef;
  content: '';
}

body[data-scene="5"] .people-chat-message {
  position: relative;
  max-width: 88%;
  margin-bottom: 13px;
  padding: 9px 11px;
  border-radius: 11px;
  color: #22335f;
  font-size: 12px;
  line-height: 1.5;
}

body[data-scene="5"] .people-chat-message p { margin: 3px 0 0; line-height: 1.5; }
body[data-scene="5"] .people-chat-user { margin-left: auto; border-radius: 11px 11px 3px 11px; background: #e8e8fb; }
body[data-scene="5"] .people-chat-sarah { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 8px; max-width: 94%; padding: 0; background: transparent; }
body[data-scene="5"] .people-chat-sarah > div:last-child { padding: 9px 11px; border-radius: 3px 11px 11px 11px; background: #eef0f4; }
body[data-scene="5"] .people-chat-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #667594; font-size: 10px; font-weight: 600; }
body[data-scene="5"] .people-chat-meta span { color: #7a86a1; font-weight: 500; }
body[data-scene="5"] .people-avatar-message { width: 30px; height: 30px; flex-basis: 30px; }
body[data-scene="5"] .people-avatar-message .people-presence-dot { width: 9px; height: 9px; border-width: 2px; bottom: 0; }
body[data-scene="5"] .people-chat-thanks { margin-bottom: 3px; }
body[data-scene="5"] .people-chat-reaction { display: inline-block; margin-top: 6px; padding: 2px 6px; border: 1px solid #d9ddec; border-radius: 8px; background: #fff; font-size: 11px; }

body[data-scene="5"] .people-teams-composer {
  flex: 0 0 auto;
  margin: 0 17px 10px;
  padding: 12px 12px 9px;
  border: 1px solid #cfd6e3;
  border-radius: 9px;
  background: #fff;
  color: #71809d;
}

body[data-scene="5"] .people-teams-placeholder { font-size: 12px; }
body[data-scene="5"] .people-teams-composer-tools { display: flex; align-items: center; gap: 15px; margin-top: 15px; color: #5f6d8a; }
body[data-scene="5"] .people-teams-composer-tools span { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; font-size: 17px; }
body[data-scene="5"] .people-teams-composer-tools .people-gif-tool { width: 20px; height: 18px; border: 1px solid #687692; border-radius: 3px; font-size: 9px; font-weight: 700; }
body[data-scene="5"] .people-teams-composer-tools .people-send-icon { margin-left: auto; color: #76839e; transform: rotate(-27deg); }

body[data-scene="5"] .people-teams-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
  padding: 0 17px 9px;
}

body[data-scene="5"] .people-teams-actions .btn { min-height: 36px; border-radius: 8px; font-size: 12px; }

body[data-scene="5"] .people-teams-note {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 17px 14px;
  font-size: 10px;
  text-align: right;
}

@media (max-width: 960px) {
  body[data-scene="5"] .people-expert-details { grid-template-columns: 1fr; }
  body[data-scene="5"] .people-activity-panel { max-width: none; }
}

@media (max-width: 720px) {
  body[data-scene="5"] .people-community-top { grid-template-columns: 52px minmax(0, 1fr); }
  body[data-scene="5"] .people-community-actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 4px; }
  body[data-scene="5"] .people-community-actions .btn { flex: 1 1 0; }
}

@media (max-width: 620px) {
  body[data-scene="5"] #main { padding: 23px 14px 38px; }
  body[data-scene="5"] #main::before { right: 0; left: 0; height: 100px; border-radius: 0 0 22px 22px; }
  body[data-scene="5"] .people-section-card { padding: 14px 11px 11px; }
  body[data-scene="5"] .people-expert-card { padding: 15px 13px 10px; }
  body[data-scene="5"] .people-expert-top { display: grid; gap: 15px; }
  body[data-scene="5"] .people-expert-actions { justify-content: flex-start; }
  body[data-scene="5"] .people-expert-actions .btn { flex: 1 1 0; }
  body[data-scene="5"] .people-expert-details { gap: 17px; margin-top: 17px; padding-top: 16px; }
  body[data-scene="5"] .people-activity-row { grid-template-columns: 29px minmax(0, 1fr); }
  body[data-scene="5"] .people-activity-row time { grid-column: 2; }
  body[data-scene="5"] .people-community-card { padding: 11px 12px 12px; }
  body[data-scene="5"] .people-community-actions .btn { padding-right: 8px; padding-left: 8px; font-size: 11px; }
  body[data-scene="5"] .people-teams-modal { width: 100%; border-radius: 0; }
  body[data-scene="5"] .people-teams-modal > header { padding-right: 14px; padding-left: 14px; }
  body[data-scene="5"] .people-teams-brandbar { padding-right: 14px; padding-left: 14px; }
  body[data-scene="5"] .people-teams-person { padding-right: 14px; padding-left: 14px; }
  body[data-scene="5"] .people-teams-tabs { gap: 15px; padding-right: 14px; padding-left: 14px; overflow-x: auto; }
  body[data-scene="5"] .people-teams-actions { padding-right: 14px; padding-left: 14px; }
  body[data-scene="5"] .people-teams-note { padding-right: 14px; padding-left: 14px; }
}

@media (max-width: 390px) {
  body[data-scene="5"] .people-avatar { width: 70px; height: 70px; flex-basis: 70px; }
  body[data-scene="5"] .people-avatar-chat { width: 45px; height: 45px; flex-basis: 45px; }
  body[data-scene="5"] .people-avatar-message { width: 30px; height: 30px; flex-basis: 30px; }
  body[data-scene="5"] .people-avatar-message .people-presence-dot { width: 9px; height: 9px; bottom: 0; border-width: 2px; }
  body[data-scene="5"] .people-name-row h2 { font-size: 18px; }
  body[data-scene="5"] .people-expert-identity { gap: 10px; }
  body[data-scene="5"] .people-teams-external { max-width: 128px; white-space: normal; line-height: 1.25; }
}
