/* People, the Initial exams report, Guest passes and the person page's
   "Exam & messages" tab (public/js/people.js). Tokens only (theme.css), so
   both themes come for free. */
.ppl-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.ppl-head > div:first-child:not(.ppl-actions) { flex: 1; min-width: 240px; }
.ppl-head input[type="search"] { width: 320px; max-width: 100%; }
.ppl-head select { width: auto; max-width: 220px; }
.ppl-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.ppl-banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px;
  border-radius: 14px; background: var(--bad-wash); border: 1px solid rgb(var(--bad-rgb) / 0.3); font-size: 15px; }
.ppl-scroll { overflow-x: auto; }
.ppl-table td { vertical-align: top; }
.ppl-table tr.clickable { cursor: pointer; }
.ppl-table tr.clickable:hover td { background: rgb(var(--ink-rgb) / 0.03); }
.ppl-sub { font-size: 14px; }
.ppl-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.ppl-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.ppl-foot p { margin: 0; }

.ppl-exam-now { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.ppl-exam-now .btn { margin-left: auto; }
#pe-exam-form { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.ppl-exam-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.ppl-exam-grid[hidden] { display: none; }
.ppl-exam-form .chip { cursor: pointer; display: inline-flex; align-items: center; }
.ppl-exam-form .chip:focus-within { outline: 2px solid var(--bronze); outline-offset: 2px; }
.ppl-prefs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; margin-bottom: 10px; }
.ppl-pref { display: flex; gap: 8px; align-items: center; font-size: 15px; min-height: 40px; }
.ppl-pref input { width: 20px; height: 20px; flex: none; }
.ppl-msg { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ppl-msg-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ppl-hist { margin-top: 8px; }
.ppl-hist summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; }

@media (max-width: 720px) {
  .ppl-head input[type="search"], .ppl-head select { width: 100%; max-width: none; }
  .ppl-actions { margin-left: 0; width: 100%; }
  .ppl-actions .btn { flex: 1; }
  .ppl-exam-grid, .ppl-prefs { grid-template-columns: 1fr; }
  .ppl-msg { flex-direction: column; }
  .ppl-exam-now .btn { margin-left: 0; }
}

/* Desktop: keep the short columns on one line so rows stay compact. */
@media (min-width: 721px) {
  .ppl-table th:first-child, .ppl-table td:first-child { min-width: 240px; }
  .ppl-table td:not(:first-child) { white-space: nowrap; }
  .ppl-table th { white-space: nowrap; }
}
