.advisor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, clamp(150px, 26vw, 225px)), 1fr));
  gap: clamp(12px, 2vw, 24px);
}
.advisor-card {
  min-width: 0;
  padding: clamp(10px, 1.5vw, 18px);
  border: 1px solid #dbe4ea;
  border-radius: 6px;
  background: #fff;
  overflow-wrap: anywhere;
}
.advisor-portrait {
  --portrait-offset: 12px;
  position: relative;
  isolation: isolate;
  margin: 0 0 24px var(--portrait-offset);
  aspect-ratio: 3 / 4;
}
.advisor-portrait::before {
  content: "";
  position: absolute;
  inset: var(--portrait-offset) var(--portrait-offset) calc(-1 * var(--portrait-offset)) calc(-1 * var(--portrait-offset));
  z-index: -1;
  border-radius: 5px;
  background: linear-gradient(135deg, #c7d9a1, #becde0);
}
.advisor-photo,
.advisor-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background: #eef2f6;
}
.advisor-photo {
  display: block;
  object-fit: cover;
  object-position: center 35%;
}
.advisor-placeholder {
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #64748b;
}
.advisor-name,
.advisor-affiliation {
  max-width: 88%;
}
.advisor-name {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: clamp(1.2rem, 1rem + .45vw, 1.5rem);
  line-height: 1.2;
}
.advisor-affiliation {
  margin: 0;
  color: #334155;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.45;
}
.advisor-affiliation:empty { display: none; }
.advisor-card .collaborator-actions { justify-content: flex-start; margin-top: 12px; }

.collaborator-logo {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px;
}
.collaborator-logo[data-shape="circle"] { border-radius: 50%; }
.collaborator-logo[data-shape="rectangle"] { width: 144px; }
.collaborator-logo[data-shape="portrait"] { height: 128px; }
.collaborator-editor {
  box-sizing: border-box;
  width: min(540px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 22px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #0f172a;
}
.collaborator-editor::backdrop { background: rgb(15 23 42 / 65%); }
.collaborator-editor form { display: grid; gap: 8px; }
.collaborator-editor label { font-weight: 650; }
.collaborator-editor input,
.collaborator-editor select { width: 100%; min-height: 40px; padding: 6px 10px; border: 1px solid #94a3b8; border-radius: 6px; }
.collaborator-crop { height: min(300px, 40vh); background: #f1f5f9; }
.collaborator-crop img { display: block; max-width: 100%; }
.collaborator-crop[data-shape="circle"] .cropper-view-box { border-radius: 50%; }
.collaborator-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.collaborator-editor .collaborator-actions { justify-content: flex-end; }
.collaborator-actions button:not(.btn-primary),
#collaborator-remove-logo {
  background: #fff;
  color: #1e293b;
  border: 1px solid #94a3b8;
  padding: 6px 12px;
  min-height: 40px;
  border-radius: 6px;
  cursor: pointer;
}
.collaborator-hint { font-size: 0.875rem; color: #475569; }
#collaborator-error { color: #b91c1c; }
.collaborator-editor [hidden] { display: none; }
#collaborator-error:empty, #collaborator-status:empty { display: none; }
