.profile-layout { display:grid; grid-template-columns:minmax(230px, 320px) minmax(0, 1fr); gap:1.2rem; align-items:start; }
.profile-block { padding:1.15rem; border:1px solid var(--line, #dbe5eb); border-radius:16px; background:var(--panel, #fff); min-width:0; }
.profile-block h2, .profile-block h3 { margin:0; }
.profile-block p { margin:.45rem 0; }
.profile-detail { display:grid; gap:.9rem; min-width:0; }
.profile-rail > input { width:100%; margin:.8rem 0; }
.profile-results, .profile-linked, .profile-events { list-style:none; margin:0; padding:0; }
.profile-results { max-height:60vh; overflow:auto; display:grid; gap:.28rem; }
.profile-pick { width:100%; display:flex; flex-direction:column; align-items:flex-start; gap:.25rem; text-align:left; border:1px solid transparent; background:transparent; padding:.55rem .65rem; border-radius:9px; color:inherit; overflow-wrap:anywhere; }
.profile-pick[aria-current], .profile-pick:hover { background:#eaf4f9; border-color:#cfe1ed; }
.profile-pick-id, .profile-help, .profile-event-time { color:#5d7180; font-size:.82rem; }
.profile-contact { overflow-wrap:anywhere; }
.profile-timeline-head, .profile-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem; justify-content:space-between; }
.profile-actions { margin-top:.65rem; justify-content:flex-start; }
.profile-linked li { display:flex; align-items:center; gap:.7rem; flex-wrap:wrap; padding:.45rem 0; }
.profile-linked li + li, .profile-event + .profile-event { border-top:1px solid var(--line, #dbe5eb); }
.profile-fields { display:grid; gap:.75rem; margin-top:.65rem; }
.profile-fields input, .profile-fields textarea { width:100%; }
.profile-event { display:grid; grid-template-columns:2rem 1fr; gap:.7rem; padding:.65rem 0; }
.profile-event > div { min-width:0; overflow-wrap:anywhere; }
.profile-event a { display:inline-block; margin:.12rem 0; }
.profile-event-marker { align-self:start; display:grid; place-items:center; width:2rem; height:2rem; border-radius:50%; background:#eaf4f9; color:#21536e; font-weight:750; }
.profile-event-type { font-size:.82rem; color:#40677b; font-weight:700; }
.profile-timeline .profile-event p { margin:.13rem 0; }
.profile-empty { padding:.65rem; color:#5d7180; }
.profile-manual { margin-top:.65rem; }
.profile-manual summary { cursor:pointer; min-height:2rem; }
.profile-roster { display:grid; grid-template-columns:1fr auto; gap:.65rem 1rem; align-items:center; margin-bottom:1rem; }
.profile-roster > p, .profile-roster-totals { grid-column:1/-1; }
.profile-roster-controls { display:flex; flex-wrap:wrap; gap:.6rem; }
.profile-roster-controls label { display:flex; align-items:center; gap:.35rem; }
.profile-roster-totals { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; margin:0; }
.profile-roster-totals div { padding:.55rem; border:1px solid var(--line, #dbe5eb); border-radius:9px; }
.profile-roster-totals dt { color:#5d7180; font-size:.82rem; }
.profile-roster-totals dd { margin:.2rem 0 0; font-size:1.25rem; font-weight:750; }
@media (max-width:820px) {
  .profile-layout { grid-template-columns:1fr; gap:.75rem; }
  .profile-results { max-height:13rem; }
  .profile-roster { grid-template-columns:1fr; }
}
