/*
 * STUDIO > PEOPLE (A-162 to A-166, 14 Nov 2026): Visitors, Employees and Go-Live Users on ONE card (peopleGrid), the
 * face preview, "Check employee details" and the Setup desk. Tokens only (--hb-*); nothing here picks a colour.
 * Motion is 150 to 250 ms ease-out and stops for people who ask for less.
 */
/* race.css already uses .pgrid / .pcard for the avatar picker (150px tiles); scoped under .cardgrid so People wins. */
.cardgrid.pgrid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; align-items: start; }
.cardgrid .pcard { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; min-width: 0; min-height: 0; border-radius: var(--hb-radius); font-weight: 400; cursor: pointer; transition: box-shadow .18s ease-out, border-color .18s ease-out; }
.pcard:hover, .pcard:focus-visible { border-color: var(--hb-blue); box-shadow: 0 6px 18px rgba(15,18,34,.08); outline: none; }
.pcard[hidden] { display: none; }
.pc-top { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.pc-pic { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--hb-mist); border: 1px solid var(--hb-line); display: grid; place-items: center; font-weight: 600; color: var(--hb-slate); }
.pc-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.pc-pic.has img { display: block; }
.pc-id { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.pc-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-co, .pc-line { font-size: 12.5px; color: var(--hb-slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-top .actmenu { flex: none; margin-left: auto; }
.pc-top .actmenu .actbtn { height: 28px; min-height: 28px; padding: 0 8px; font-size: 16px; line-height: 1; }
.pc-top .actmenu .actbtn .svg-i { display: none; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 22px; }
.pc-chips .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-go { align-self: flex-start; }
.pc-dots { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.pc-dot { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pc-dot i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--hb-line); border: 1px solid var(--hb-slate); }
.pc-dot.ok i { background: var(--hb-ok); border-color: var(--hb-ok); }
.pc-dot.bad i { background: var(--hb-bad); border-color: var(--hb-bad); }
.pc-dot b { font-weight: 600; }
.pc-dot span { color: var(--hb-slate); overflow-wrap: anywhere; }
.pc-note { font-size: 12.5px; color: var(--hb-warn); background: var(--hb-warn-bg); border-radius: var(--hb-radius-sm); padding: 6px 10px; }
.pc-hint { font-size: 12.5px; color: var(--hb-slate); }

/* a state that is only a state: one flat place under the filter bar */
.ppager { margin-top: 12px; }
.ppager:empty { display: none; }

/* the visitor's card: what was found out about them */
.vc-note { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 12px; border-radius: var(--hb-radius-sm); background: var(--hb-warn-bg); color: var(--hb-warn); font-size: 13px; }
.vc-note button { margin-left: auto; }
.vc-top { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* the face preview: 90vw by 85vh, view only */
dialog.faceview { width: 90vw; height: 85vh; max-width: none; padding: 0; overflow: hidden; }
dialog.faceview[open] { display: flex; }
dialog.faceview form { display: flex; flex-direction: column; width: 100%; height: 100%; }
.fv-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--hb-line); }
.fv-head h2 { margin: 0; font-size: 17px; flex: 1; min-width: 0; }
.fv-head .small { white-space: nowrap; }
.fv-x { height: 32px; min-height: 32px; width: 32px; padding: 0; border-radius: 50%; font-size: 18px; line-height: 1; }
.fv-main { position: relative; flex: 1; min-height: 0; overflow: auto; background: var(--hb-mist); display: grid; place-items: center; }
.fv-main img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; transition: transform .2s ease-out; transform-origin: center; user-select: none; }
.fv-main img.big { cursor: zoom-out; max-width: none; max-height: none; }
.fv-tile { text-align: center; color: var(--hb-slate); font-size: 15px; padding: 24px; max-width: 420px; }
.fv-tile b { display: block; color: var(--hb-ink); font-size: 17px; margin-bottom: 6px; }
.fv-strip { display: flex; gap: 10px; padding: 10px 14px; overflow-x: auto; border-top: 1px solid var(--hb-line); background: var(--hb-white); }
.fv-th { flex: none; width: 92px; display: flex; flex-direction: column; gap: 4px; align-items: center; border: 2px solid transparent; border-radius: var(--hb-radius-sm); padding: 4px; background: transparent; cursor: pointer; font-size: 11.5px; color: var(--hb-slate); }
.fv-th[aria-current="true"] { border-color: var(--hb-blue); color: var(--hb-ink); }
.fv-th:focus-visible { outline: 2px solid var(--hb-blue); outline-offset: 1px; }
.fv-th span.pic { width: 76px; height: 76px; border-radius: 8px; overflow: hidden; background: var(--hb-mist); border: 1px solid var(--hb-line); display: grid; place-items: center; font-size: 11px; text-align: center; padding: 2px; }
.fv-th span.pic img { width: 100%; height: 100%; object-fit: cover; }
.fv-th.none span.pic { color: var(--hb-slate); }

/* Check employee details */
.td-row { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--hb-line); }
.td-row > div { min-width: 0; flex: 1; }
.td-row .was { text-decoration: line-through; color: var(--hb-slate); }
.td-row .now { font-weight: 600; }
.td-list { max-height: 46vh; overflow: auto; }

/* The Setup desk: full screen, for Amit, in person */
.desk { position: fixed; inset: 0; z-index: 50; background: var(--hb-white); display: flex; flex-direction: column; animation: deskIn .2s ease-out; }
@keyframes deskIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .desk { animation: none; } .pcard, .fv-main img { transition: none; } }
.desk-bar { display: flex; gap: 16px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--hb-line); background: var(--hb-mist); flex-wrap: wrap; }
.desk-bar h2 { margin: 0; font-size: 18px; }
.desk-prog { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; flex: 1; min-width: 0; }
.desk-prog b { font-weight: 600; }
.desk-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(260px, 340px) 1fr; }
.desk-q { border-right: 1px solid var(--hb-line); overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.desk-q .fbar { margin-bottom: 4px; }
.desk-person { text-align: left; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--hb-line); border-radius: var(--hb-radius-sm); background: var(--hb-white); padding: 10px 12px; cursor: pointer; font-size: 14px; }
.desk-person small { color: var(--hb-slate); font-size: 12.5px; }
.desk-person[aria-current="true"] { border-color: var(--hb-blue); box-shadow: inset 3px 0 0 var(--hb-blue); }
.desk-main { overflow: auto; padding: 24px 28px; display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.desk-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.desk-steps .chip.on { background: var(--hb-ink); color: var(--hb-white); border-color: var(--hb-ink); }
.desk-steps .chip.done { background: var(--hb-ok-bg); color: var(--hb-ok); border-color: var(--hb-ok-bg); }
.desk-card { border: 1px solid var(--hb-line); border-radius: var(--hb-radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.desk-card dl { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
.desk-card dt { color: var(--hb-slate); }
.desk-card dd { margin: 0; overflow-wrap: anywhere; }
.desk-langs { display: flex; gap: 12px; flex-wrap: wrap; }
.desk-langs button { min-width: 140px; height: 48px; font-size: 16px; }
.desk-langs button[aria-pressed="true"] { background: var(--hb-ink); color: var(--hb-white); }
.desk-qr { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
@media (max-width: 760px) { .desk-body { grid-template-columns: 1fr; } .desk-q { max-height: 34vh; border-right: 0; border-bottom: 1px solid var(--hb-line); } }
