/* People working on the same record.

   Each person keeps one of six colours, chosen from their id (Services/LivePerson.cs), so they look the
   same in every tab and to every viewer. The colours stay clear of the accent blue, which means "you" and
   "selected", and of the status colours. Dark values first; light values below, as the design tokens do. */

.person-1 { --person-accent: #b79cf5; --person-bg: #40365c; --person-fg: #d6c8fb; --person-on: #1a1a1a; }
.person-2 { --person-accent: #f0a35e; --person-bg: #523a1f; --person-fg: #f6c998; --person-on: #1a1a1a; }
.person-3 { --person-accent: #f08fc0; --person-bg: #54304a; --person-fg: #f7bedb; --person-on: #1a1a1a; }
.person-4 { --person-accent: #a6d875; --person-bg: #34481f; --person-fg: #cfeeb2; --person-on: #1a1a1a; }
.person-5 { --person-accent: #5fcfc4; --person-bg: #1f4a47; --person-fg: #b3ece6; --person-on: #1a1a1a; }
.person-6 { --person-accent: #d9b98a; --person-bg: #4a3d27; --person-fg: #eedcbc; --person-on: #1a1a1a; }

body:not([data-theme="dark"]) .person-1 { --person-accent: #6f4fd0; --person-bg: #e6defb; --person-fg: #4a2fa3; --person-on: #ffffff; }
body:not([data-theme="dark"]) .person-2 { --person-accent: #b3590a; --person-bg: #fbe3cd; --person-fg: #8a4406; --person-on: #ffffff; }
body:not([data-theme="dark"]) .person-3 { --person-accent: #b8327a; --person-bg: #f9dcea; --person-fg: #8e245d; --person-on: #ffffff; }
body:not([data-theme="dark"]) .person-4 { --person-accent: #4f7a16; --person-bg: #e0f0c8; --person-fg: #3c5e10; --person-on: #ffffff; }
body:not([data-theme="dark"]) .person-5 { --person-accent: #0f7a70; --person-bg: #cdeeea; --person-fg: #0b5e56; --person-on: #ffffff; }
body:not([data-theme="dark"]) .person-6 { --person-accent: #86621f; --person-bg: #f1e4c9; --person-fg: #674b16; --person-on: #ffffff; }

/* ---- Avatar (Components/PersonAvatar.razor) ---- */

.person-avatar {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: var(--person-avatar-size, 26px);
    height: var(--person-avatar-size, 26px);
    border-radius: 50%;
    background: var(--person-bg, var(--neutral-bg));
    color: var(--person-fg, var(--text-secondary));
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.person-avatar.small {
    --person-avatar-size: 18px;
}

.person-avatar.large {
    --person-avatar-size: 28px;
}

/* Here, but not using the page. */
.person-avatar.away {
    opacity: 0.55;
}

/* ---- Stack: a few people side by side, overlapping ---- */

.person-stack {
    display: inline-flex;
    align-items: center;
}

.person-stack .person-avatar {
    border: 2px solid var(--person-stack-edge, var(--surface-app));
}

.person-stack .person-avatar + .person-avatar {
    margin-left: -7px;
}

.person-stack.small .person-avatar {
    border-width: 1.5px;
}

.person-stack.small .person-avatar + .person-avatar {
    margin-left: -5px;
}

/* The count of people a stack has no room for. */
.person-avatar.more {
    background: var(--surface-card-elev);
    color: var(--text-secondary);
}
