#staff-panel .rd-tools .btn { min-height: 45px; padding: 8px 20px; font-size: 14px; }
#staff-panel .rd-tools input { width: min(300px, 100%); min-width: 235px; }
#staff-panel .rd-identity { display: flex; align-items: center; gap: 12px; }
#staff-panel .rd-identity small { display: block; font-size: 12px; color: var(--muted); }
#staff-panel .rd-avatar { display: grid; flex: none; place-items: center; width: 38px; height: 38px; overflow: hidden; border-radius: 50%; background: #eaf5ed; color: #396646; font-weight: 600; }
#staff-panel .rd-avatar img { width: 100%; height: 100%; object-fit: cover; }
#staff-panel .rd-pages { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 10px; font-size: 13px; color: var(--muted); }
#staff-panel .rd-pages:empty { display: none; }
#staff-panel .rd-pages button:disabled { color: var(--muted); text-decoration: none; opacity: .55; }
#staff-panel .rd-dialog { width: min(620px, calc(100vw - 32px)); }
#staff-panel .rd-dialog header { position: sticky; top: 0; background: white; border-bottom: 1px solid var(--divider); z-index: 1; }
#staff-panel .rd-body { padding: 20px 24px 24px; overflow-wrap: anywhere; }
#staff-panel .rd-body h3 { margin: 0 0 12px; font-size: 16px; }
#staff-panel .rd-body section { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--divider); }
#staff-panel .rd-phone-history { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--divider); }
#staff-panel .rd-phone-history summary { cursor: pointer; font-size: 16px; font-weight: 600; }
#staff-panel .rd-phone-history[open] summary { margin-bottom: 12px; }
#staff-panel .rd-body .rd-avatar { width: 52px; height: 52px; font-size: 20px; }
#staff-panel .rd-body .rd-identity strong { font-size: 20px; }
#staff-panel .rd-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0; font-size: 14px; }
#staff-panel .rd-fields dt, #staff-panel .rd-events :is(time,small) { color: var(--muted); font-size: 12px; }
#staff-panel .rd-fields dd { margin: 2px 0 0; }
#staff-panel .rd-events { list-style: none; margin: 0; padding: 0; }
#staff-panel .rd-events li { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--divider); font-size: 14px; }
#staff-panel .rd-events li:last-child { border-bottom: 0; }
#staff-panel .rd-events time { text-align: right; }
#staff-panel .rd-events :is(p,small) { grid-column: 1 / -1; }
@media(max-width: 500px) {
  #staff-panel .sf-groups { gap: 14px; flex-wrap: wrap; }
  #staff-panel .sf-groups button { font-size: 14px; }
  #staff-panel .rd-tools { width: 100%; }
  #staff-panel .rd-tools label:first-child { width: 100%; }
  #staff-panel .rd-tools input { min-width: 0; width: 100%; }
  #staff-panel .rd-body { padding: 16px; }
}
