/* Scoped participant card/dialog styling only; evaluation pages stay untouched. */
#run .participant-info-card {
  width: min(320px, 100%);
  justify-self: end;
  align-self: center;
  display: grid;
  gap: 16px;
  padding: 20px;
}
#run .participant-info-card h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 22px; font-weight: 600; }
#run .participant-card-icon { width: 27px; height: 27px; flex: none; }
#run .participant-info-card .snapshot-divider { margin: 0; }
#run .participant-info-reminder { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--theme-ink, #263739); font-size: 14px; font-weight: 500; line-height: 1.5; }
#run .participant-info-reminder svg { width: 18px; height: 18px; flex: none; }
#run .participant-info-summary { display: grid; gap: 12px; margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
#run .participant-info-summary > div { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 16px; }
#run .participant-info-summary dt { color: var(--theme-muted, #617274); }
#run .participant-info-summary dd { margin: 0; color: var(--theme-ink, #263739); text-align: right; font-weight: 600; overflow-wrap: anywhere; }
#run #editParticipantInfo { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 42px; margin: 0; padding: 10px 40px; }
#run #editParticipantInfo svg { position: absolute; right: 15px; width: 18px; height: 18px; }
#run #editParticipantInfo,
.participant-profile-dialog #saveParticipantProfile { color: #fff !important; background: #c64e19 !important; border-color: #b94918 !important; box-shadow: 0 1px 2px rgb(105 44 17 / 12%) !important; }
#run #editParticipantInfo:hover,
.participant-profile-dialog #saveParticipantProfile:hover { background: #ae3e10 !important; border-color: #a63d13 !important; }
#run #editParticipantInfo:focus-visible,
.participant-profile-dialog #saveParticipantProfile:focus-visible { outline: 2px solid #c64e19; outline-offset: 3px; }
.participant-profile-dialog { width: min(600px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); padding: 30px 32px 0; gap: 12px; }
.participant-profile-head { gap: 16px; }
.participant-profile-head > div { justify-items: start; gap: 10px; }
.participant-profile-head h2 { margin: 0; font-size: 26px; font-weight: 650; line-height: 1.35; }
.participant-profile-head .participant-profile-board { display: inline-flex; border: 1px solid var(--theme-line, #cbdadb); border-radius: 999px; padding: 3px 10px; color: var(--theme-accent, #285d60); font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: 0; text-transform: none; }
.participant-profile-head .participant-profile-board[hidden] { display: none; }
.participant-profile-form { min-width: 0; gap: 20px; }
.participant-profile-guidance { margin: 0 0 5px; color: var(--theme-muted, #617274); font-size: 14px; line-height: 1.65; }
.participant-profile-fields { display: grid; gap: 22px; min-width: 0; }
.participant-profile-fields label { display: grid; gap: 8px; min-width: 0; color: var(--theme-ink, #263739); font-size: 14px; font-weight: 600; }
.participant-profile-label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; line-height: 1.5; }
.participant-profile-asterisk { color: #c23b36; }
.participant-profile-public { display: inline-block; border-radius: 4px; padding: 2px 9px; color: var(--theme-accent, #285d60); background: var(--theme-accent-soft, #dfedef); font-size: 12px; font-weight: 500; line-height: 1.4; }
.participant-profile-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.participant-profile-form input,
.participant-profile-form textarea { width: 100%; min-width: 0; font-family: inherit; border-radius: 7px; font-size: 14px; }
.participant-profile-form input { height: 44px; }
.participant-profile-form textarea { min-height: 84px; resize: vertical; padding: 11px 14px; line-height: 1.6; }
.participant-profile-form .participant-profile-hint { color: var(--theme-muted, #617274); font-size: 12px; font-weight: 400; line-height: 1.6; }
.participant-profile-dialog .participant-profile-feedback { margin: 0; font-size: 13px; line-height: 1.6; }
.participant-profile-dialog .participant-profile-feedback:empty { display: none; }
.participant-profile-dialog .participant-profile-feedback[data-status="error"] { color: #a13838; }
.participant-profile-dialog .participant-profile-feedback[data-status="success"] { color: var(--theme-accent, #285d60); }
.participant-profile-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 8px -32px 0; padding: 22px 32px; border-top: 1px solid var(--theme-line, #d5dfe0); }
.participant-profile-required-note { color: var(--theme-muted, #617274); font-size: 12px; white-space: nowrap; }
.participant-profile-buttons { display: flex; justify-content: flex-end; gap: 12px; }
.participant-profile-buttons button { min-width: 84px; min-height: 42px; }
@media (max-width: 800px) {
  #run .participant-info-card { width: 100%; justify-self: stretch; }
}
@media (max-width: 520px) {
  .participant-profile-dialog { padding: 22px 20px 0; }
  .participant-profile-head h2 { font-size: 23px; }
  .participant-profile-pair { grid-template-columns: 1fr; gap: 22px; }
  .participant-profile-actions { margin-right: -20px; margin-left: -20px; padding: 18px 20px; }
  .participant-profile-buttons { gap: 8px; }
  .participant-profile-buttons button { min-width: 72px; }
}
